:root {
  interpolate-size: allow-keywords;
  --bg: #000000;
  --surface: #111113;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #6e6e73;
  --border: rgba(255, 255, 255, 0.12);
  --radius: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

/* Brand left, nav dead centre, download right */
.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 4px;
  font-size: 15px;
}

.nav-link {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link[aria-current="page"] {
  color: var(--text);
}

/* Header download button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #000;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  opacity: 1;
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.14);
}

.nav-cta:active {
  transform: translateY(0);
  box-shadow: none;
}

.nav-cta:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.nav-cta-logo {
  width: 15px;
  height: 18px;
  margin-top: -2px;
  flex-shrink: 0;
}

/* Home */
.home {
  flex: 1;
}

/* Hero */
.hero {
  padding: 56px 0 96px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

/* The DOM is in mobile order, phone first. Wide enough for two columns and the
   pitch goes back to the left of it. */
@media (min-width: 761px) {
  .hero-text {
    order: -1;
  }
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero .tagline {
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--muted);
  max-width: 34em;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* It is a button, not body copy: outrank the underline on .article a / .legal a */
.app-store-btn,
.article a.app-store-btn,
.legal a.app-store-btn,
.faq-answer a.app-store-btn {
  text-decoration: none;
}

.app-store-btn:hover {
  opacity: 1;
  background: #1c1c1f;
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.app-store-btn:active {
  transform: translateY(0);
}

.app-store-btn-logo {
  width: 26px;
  height: 30px;
  flex-shrink: 0;
}

.app-store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.app-store-btn-small {
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.app-store-btn-large {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-image {
  display: flex;
  justify-content: center;
}

/* Phone with the swipe demo. All inner geometry is a percentage of the
   frame image (916 x 1854), so the whole thing scales with one width. */
.phone {
  position: relative;
  width: 100%;
  max-width: 340px;
  container-type: inline-size;
}

.phone-frame {
  width: 100%;
  height: auto;
  display: block;
}

/* The glass area of the frame image: cards slide out and vanish under the bezel */
.phone-screen {
  position: absolute;
  left: 5.8%;
  right: 6%;
  top: 3.4%;
  bottom: 3.45%;
  overflow: hidden;
  border-radius: 40px;
  border-radius: 12cqw;
  pointer-events: none;
}

/* The fixed swipe area, sized like the app's: it does not follow the photo */
.swipe-stage {
  position: absolute;
  left: 6.8%;
  right: 6.7%;
  top: 13.6%;
  aspect-ratio: 562 / 920;
}

.swipe-card {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  border-radius: 9.6cqw;
  overflow: hidden;
  background: #1c1c1f;
  will-change: transform;
  transform-origin: 50% 50%;
  user-select: none;
  -webkit-user-select: none;
}

.swipe-card.is-top {
  z-index: 2;
  pointer-events: auto;
  cursor: grab;
  touch-action: pan-y;
}

.swipe-card.is-top:active {
  cursor: grabbing;
}

.swipe-card.is-next {
  z-index: 1;
  opacity: 0;
  transform: scale(0.98);
}

.swipe-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.swipe-tint {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.swipe-tint--keep {
  background: #34c759;
}

.swipe-tint--trash {
  background: #ff3b30;
}

/* Swipe verdict: the glyph only, no disc behind it */
.decision {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.decision__scrim {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
}

.decision__body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17%;
  aspect-ratio: 1;
  color: #fff;
  transform: scale(0.52);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.decision__body svg {
  width: 100%;
  height: 100%;
}

/* Home FAQ accordion */
.home-faq {
  padding: 0 0 104px;
}

.home-faq h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.home-faq .home-faq-intro {
  color: var(--muted);
  margin-bottom: 36px;
}

.faq-accordion {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 2px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: "";
}

.faq-item summary:hover {
  color: var(--muted);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: 4px;
  border-radius: 6px;
}

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--faint);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--text);
}

.faq-item summary:hover .faq-icon {
  color: var(--muted);
}

.faq-answer {
  padding: 0 2px 26px;
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.faq-answer a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--faint);
}

/* Animated open/close where supported; snaps open where not */
.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    content-visibility 0.32s allow-discrete;
}

.faq-item[open]::details-content {
  block-size: auto;
}

.home-faq-more {
  margin-top: 32px;
  font-size: 15px;
}

.home-faq-more a {
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .faq-icon,
  .faq-item::details-content {
    transition: none;
  }
}

/* FAQ page */
.faq-page {
  flex: 1;
  padding: 48px 0 96px;
}

.faq-page .container {
  max-width: 760px;
}

.faq-page h1 {
  font-size: clamp(32px, 5vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.faq-page .page-lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 19px);
  max-width: 60ch;
}

.faq-page .article-meta {
  margin: 20px 0 36px;
}

.faq-section {
  margin-top: 56px;
}

.faq-section > h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 4px;
}

.faq-item summary h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 0;
  color: inherit;
}

.faq-item {
  scroll-margin-top: 96px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 14px;
  color: var(--faint);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
}

/* Legal pages */
.legal {
  flex: 1;
  padding: 48px 0 96px;
}

.legal .container {
  max-width: 720px;
}

.legal h1 {
  font-size: clamp(30px, 4.5vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.legal .effective {
  color: var(--faint);
  margin-bottom: 40px;
  font-size: 15px;
}

.legal h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
}

.legal p {
  margin: 14px 0;
  color: var(--muted);
}

.legal p strong {
  color: var(--text);
  font-weight: 600;
}

.legal ul,
.legal ol {
  margin: 14px 0 14px 24px;
  color: var(--muted);
}

.legal li {
  margin: 6px 0;
}

.legal a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--faint);
}

/* Articles hub */
.articles {
  flex: 1;
  padding: 48px 0 96px;
}

.articles-intro {
  max-width: 660px;
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.articles-intro h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.articles-intro p {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 19px);
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-list > li {
  display: flex;
}

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 28px 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.article-card:hover {
  opacity: 1;
  background: #1c1c1f;
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.article-card:hover::before {
  opacity: 1;
}

.article-card h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.article-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.article-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
}

.article-card-foot .article-meta {
  margin-top: 0;
}

.article-card-arrow {
  font-size: 17px;
  color: var(--faint);
  transition: transform 0.2s ease, color 0.2s ease;
}

.article-card:hover .article-card-arrow {
  color: var(--text);
  transform: translateX(3px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--faint);
}

/* Separator rides with the item that follows, so it never dangles on a wrap */
.article-meta > * + *::before {
  content: "·";
  margin-right: 8px;
  color: var(--faint);
}

/* Article page */
.article {
  flex: 1;
  padding: 48px 0 96px;
}

.article .container {
  max-width: 720px;
}

.article h1 {
  font-size: clamp(30px, 4.5vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.article > .container > .article-meta {
  margin: 16px 0 36px;
}

.article h2 {
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 48px 0 14px;
}

.article h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 32px 0 10px;
}

.article p {
  margin: 16px 0;
  color: var(--muted);
}

.article p strong,
.article li strong {
  color: var(--text);
  font-weight: 600;
}

.article ul,
.article ol {
  margin: 16px 0 16px 24px;
  color: var(--muted);
}

.article li {
  margin: 8px 0;
}

.article a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--faint);
}

.answer-box {
  padding: 22px 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 0 0 44px;
}

.answer-box h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 12px;
}

/* A short rule instead of the full-height bar, which fought the rounded corner */
.answer-box h2::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--faint);
  flex-shrink: 0;
}

.answer-box p {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  max-width: 62ch;
}

.answer-box p strong {
  font-weight: 600;
}

.takeaways {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 44px 0;
}

.takeaways h2 {
  font-size: 18px;
  margin: 0 0 12px;
}

.takeaways ul {
  margin: 0 0 0 20px;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  color: var(--muted);
}

.article th,
.article td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.article th {
  color: var(--text);
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
}

.faq h3 {
  color: var(--text);
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 56px 0 0;
}

.article-cta-text h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.article-cta-text p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.article-cta .app-store-btn {
  margin-top: 0;
  background: #000;
}

.article-footer-nav {
  margin-top: 40px;
  font-size: 15px;
}

/* Responsive */
@media (max-width: 860px) {
  .article-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .article-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 24px 0 56px;
    text-align: center;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero .tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .phone {
    max-width: 230px;
  }

  .site-footer .container {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 18px;
  }

  .site-header {
    padding: 10px 0;
  }

  /* Too narrow to centre anything: spread the three across instead */
  .site-header .container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }

  .brand {
    font-size: 17px;
    gap: 10px;
  }

  .brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .site-nav {
    gap: 0;
    font-size: 14px;
  }

  .nav-link {
    padding: 8px 9px;
  }

  .nav-cta {
    padding: 8px 15px;
    font-size: 14px;
  }

  .articles,
  .article,
  .legal,
  .faq-page {
    padding-top: 32px;
  }

  .article-card {
    padding: 24px 22px 20px;
  }

  /* Narrow enough that the meta wraps: space it instead of punctuating it */
  .article-meta {
    gap: 4px 14px;
  }

  .article-meta > * + *::before {
    display: none;
  }

  .faq-item summary {
    padding: 20px 2px;
    gap: 16px;
  }

  .faq-item summary h3 {
    font-size: 17px;
  }
}

@media (max-width: 420px) {
  .brand-name {
    display: none;
  }
}
