/* ─── Tokens ─────────────────────────────────────────────────────────────────*/
:root {
  --bg:              #111210;
  --bg-raised:       #161714;
  --bg-elevated:     #1C1E18;
  --text:            #F2E8D5;
  --text-2:          rgba(242, 232, 213, 0.55);
  --text-3:          rgba(242, 232, 213, 0.45);
  --text-4:          rgba(242, 232, 213, 0.30);
  --sage:            #7EB8A8;
  --sage-dim:        rgba(126, 184, 168, 0.10);
  --sage-faint:      rgba(126, 184, 168, 0.05);
  --gold:            #C9A96E;
  --gold-dim:        rgba(201, 169, 110, 0.12);
  --border:          rgba(242, 232, 213, 0.06);
  --border-strong:   rgba(242, 232, 213, 0.10);

  --font-display:    'Cormorant Garamond', Georgia, serif;
  --font-body:       'Lora', Georgia, serif;

  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:     cubic-bezier(0.45, 0, 0.55, 1);

  --radius-sm:       8px;
  --radius-md:       12px;
  --radius-lg:       16px;

  --sp-xs:   8px;
  --sp-sm:   16px;
  --sp-md:   32px;
  --sp-lg:   56px;
  --sp-xl:   96px;
  --sp-xxl:  160px;
}

/* ─── Reset ──────────────────────────────────────────────────────────────────*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }
a { color: inherit; text-decoration: none; }

/* ─── Focus ──────────────────────────────────────────────────────────────────*/
:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Skip to Content ────────────────────────────────────────────────────────*/
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-sm);
  z-index: 200;
  padding: 12px 24px;
  background: var(--sage);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: var(--sp-sm);
}

/* ─── Selection ──────────────────────────────────────────────────────────────*/
::selection {
  background: rgba(126, 184, 168, 0.25);
  color: var(--text);
}

/* ─── Base ───────────────────────────────────────────────────────────────────*/
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* Grain sits above everything — pointer-events: none ensures no click blocking */
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Shared Layout ──────────────────────────────────────────────────────────*/
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── Navigation ─────────────────────────────────────────────────────────────*/
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(17, 18, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  transition: color 0.2s;
}

.nav-logo:hover { color: var(--sage); }

.nav-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: var(--sp-md);
  list-style: none;
}

.nav-links a {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s var(--ease-out);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-3);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}

.nav-drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer a {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text);
  transition: color 0.2s, opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  transform: translateY(12px);
  opacity: 0;
}

.nav-drawer.is-open a {
  opacity: 1;
  transform: translateY(0);
  transition: color 0.2s, opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.nav-drawer.is-open a:nth-child(1) { transition-delay: 0s, 0.05s, 0.05s; }
.nav-drawer.is-open a:nth-child(2) { transition-delay: 0s, 0.12s, 0.12s; }
.nav-drawer.is-open a:nth-child(3) { transition-delay: 0s, 0.19s, 0.19s; }

.nav-drawer a:hover { color: var(--sage); }

/* ─── Hero ───────────────────────────────────────────────────────────────────*/
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg);
}

.hero-contours {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  animation: contour-enter 2s var(--ease-out) 0.5s both;
}

.hero-contours svg {
  width: 100%;
  height: 100%;
}

@keyframes contour-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Contour ring animations */
@keyframes ring-drift {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.contour {
  transform-box: fill-box;
  transform-origin: center;
  fill: none;
}
.c1 { animation: ring-drift  88s linear infinite; }
.c2 { animation: ring-drift 115s linear infinite reverse; }
.c3 { animation: ring-drift 144s linear infinite; }
.c4 { animation: ring-drift 172s linear infinite reverse; }
.c5 { animation: ring-drift 200s linear infinite; }
.c6 { animation: ring-drift 228s linear infinite reverse; }
.c7 { animation: ring-drift  88s linear infinite 22s; }

/* Pin dot */
.hero-pin {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: transform;
}

@keyframes pin-enter {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes halo-bloom {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes halo-pulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 0.3; transform: translate(-50%, -50%) scale(1.35); }
}

.pin-core {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 12px rgba(126, 184, 168, 0.6), 0 0 32px rgba(126, 184, 168, 0.2);
  opacity: 0;
  animation: pin-enter 0.6s var(--ease-out) 0.1s both;
}

.pin-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.3);
  border-radius: 50%;
  opacity: 0;
  will-change: transform, opacity;
  animation:
    halo-bloom 0.8s var(--ease-out) both,
    halo-pulse 4s var(--ease-in-out) infinite;
}

.pin-halo--inner {
  width: 32px;
  height: 32px;
  background: radial-gradient(circle, rgba(126,184,168,0.18) 0%, transparent 70%);
  animation-delay: 0.35s, 1.2s;
}

.pin-halo--outer {
  width: 72px;
  height: 72px;
  background: radial-gradient(circle, rgba(126,184,168,0.08) 0%, transparent 70%);
  animation-delay: 0.55s, 1.4s;
}

/* Hero grain overlay */
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Bottom vignette */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 40px 48px;
  max-width: 760px;
}

/* ─── Phone Mockup Shell ─────────────────────────────────────────────────────*/
.phone-mockup {
  position: relative;
  width: 260px;
  background: linear-gradient(160deg, #252523 0%, #1a1a18 60%, #141412 100%);
  border-radius: 48px;
  padding: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 48px 96px rgba(0, 0, 0, 0.35);
}

/* Dynamic Island */
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 27px;
  background: #0c0c0a;
  border-radius: 18px;
  z-index: 10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-screen {
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  background: #000;
  display: block;
}

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

/* Screen glare */
.phone-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 35%, transparent 55%);
  pointer-events: none;
  border-radius: 38px;
}

/* ─── Hero phone ─────────────────────────────────────────────────────────────*/
.hero-phone-wrap {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 260px;
  flex-shrink: 0;
}

.hero-phone-wrap .phone-mockup {
  width: 100%;
  animation: hero-phone-up 1.4s var(--ease-out) 0.9s both;
}

@keyframes hero-phone-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes headline-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes sub-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes badge-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 8.5vw, 96px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  animation: headline-up 1.4s var(--ease-out) 0.7s both;
}

.hero-sub {
  margin-top: var(--sp-md);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  animation: sub-up 1s var(--ease-out) 1.0s both;
}

/* ─── App Store Badge ────────────────────────────────────────────────────────*/
.badge-wrap {
  margin-top: 48px;
  animation: badge-up 1s var(--ease-out) 1.3s both;
  display: inline-block;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text-3);
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.03em;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.coming-soon-apple {
  width: 13px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
  opacity: 0.7;
}


@media (min-width: 1024px) {
  .hero-content {
    max-width: 1080px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 88px;
    text-align: left;
    padding: 120px 60px 80px;
  }

  .hero-text {
    flex: 1;
    min-width: 0;
  }

  .hero-text .hero-sub {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-phone-wrap {
    margin-top: 0;
    width: 290px;
    flex-shrink: 0;
  }

  .hero-phone-wrap .phone-mockup {
    transform: rotate(-4deg) translateY(16px);
  }

  @keyframes hero-phone-up {
    from { opacity: 0; transform: rotate(-4deg) translateY(56px); }
    to   { opacity: 1; transform: rotate(-4deg) translateY(16px); }
  }
}

/* ─── Features ───────────────────────────────────────────────────────────────*/
.features {
  padding: var(--sp-xl) 0 var(--sp-xxl);
}

.features-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.feature {
  transition: transform 0.4s var(--ease-out);
}

.feature:hover {
  transform: translateY(-2px);
}

.feature + .feature {
  margin-top: var(--sp-xl);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--border);
}


.feature-num {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-sm);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

[data-reveal].is-visible .feature-num {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.15s;
}

.feature-heading {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--sp-sm);
}

.feature-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-2);
}

/* Feature with phone mockup (feature 03) */
.feature--visual {
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--sp-xl);
  align-items: center;
}

.feature--visual:hover {
  transform: none;
}

.feature-visual-phone {
  width: 280px;
}

.feature-visual-phone .phone-mockup {
  width: 100%;
}

/* Reversed layout: phone left, text right */
.feature--visual-reverse {
  grid-template-columns: 280px 1fr;
}

/* Tilt angles — desktop only, avoids !important overrides on mobile */
@media (min-width: 769px) {
  .feature--visual:nth-child(1) .phone-mockup {
    transform: rotate(3deg) translateY(-4px);
  }
  .feature--visual:nth-child(2) .phone-mockup {
    transform: rotate(-4deg) translateY(-6px);
  }
  .feature--visual:nth-child(3) .phone-mockup {
    transform: rotate(3deg) translateY(-8px);
  }
}

/* ─── Share Section ──────────────────────────────────────────────────────────*/
.share-section {
  padding: var(--sp-xl) 0 var(--sp-xxl);
}

.share-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}


.share-heading {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--sp-sm);
}

.share-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-2);
}

.share-cards {
  position: relative;
  height: 760px;
}

.share-phone {
  position: absolute;
  width: 310px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.share-phone--left {
  left: 0;
  top: 0;
  transform: rotate(-4deg);
  z-index: 1;
}

.share-phone--right {
  right: 0;
  top: 200px;
  transform: rotate(3deg);
  z-index: 2;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border);
}

.share-phone-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────*/
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 40px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-4);
}

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

.footer-links a {
  position: relative;
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.2s;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s var(--ease-out);
}

.footer-links a:hover { color: var(--sage); }
.footer-links a:hover::after { transform: scaleX(1); }

/* ─── Scroll Reveal ──────────────────────────────────────────────────────────*/
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity  0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.22s; }
[data-reveal][data-delay="3"] { transition-delay: 0.36s; }
[data-reveal][data-delay="4"] { transition-delay: 0.52s; }

/* ─── Prose pages (privacy, terms, support) ──────────────────────────────────*/
.prose-page {
  background: var(--bg);
}

.prose-main {
  padding-top: 80px;
}

.prose-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 40px 120px;
}

@keyframes prose-enter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.prose-page-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
  animation: prose-enter 0.8s var(--ease-out) 0.1s both;
}

.prose-meta {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-lg);
  animation: prose-enter 0.8s var(--ease-out) 0.2s both;
}

.prose-intro {
  background: var(--sage-faint);
  border: 1px solid rgba(126, 184, 168, 0.14);
  border-radius: var(--radius-md);
  padding: 24px var(--sp-md);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 48px;
  animation: prose-enter 0.8s var(--ease-out) 0.3s both;
}

.prose-intro strong {
  color: var(--text);
  font-weight: 500;
}

.prose-section {
  margin-bottom: var(--sp-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.prose-section-head {
  padding: 24px var(--sp-md) var(--sp-sm);
  border-bottom: 1px solid var(--border);
}

.prose-section-num {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-xs);
}

.prose-section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
}

.prose-section-body {
  padding: 24px var(--sp-md);
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
}

.prose-section-body p + p { margin-top: var(--sp-sm); }

.prose-section-body strong {
  color: var(--text);
  font-weight: 500;
}

.prose-section-body a {
  color: var(--sage);
  transition: opacity 0.2s;
}

.prose-section-body a:hover { opacity: 0.75; }

/* ─── Data list (privacy) ────────────────────────────────────────────────────*/
.data-list {
  list-style: none;
  margin-top: var(--sp-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.data-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: 15px;
  color: var(--text-2);
}

.data-list li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sage);
  margin-top: 9px;
}

/* ─── Third-party table (privacy) ────────────────────────────────────────────*/
.third-party-table {
  margin-top: var(--sp-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.third-party-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  padding: 14px var(--sp-sm);
  background: var(--bg-raised);
}

.third-party-row + .third-party-row {
  border-top: 1px solid var(--border);
}

.third-party-info strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.third-party-info span {
  font-size: 13px;
  color: var(--text-3);
}

.third-party-row a {
  font-size: 13px;
  color: var(--sage);
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.third-party-row a:hover { opacity: 0.75; }

/* ─── FAQ (support) ──────────────────────────────────────────────────────────*/
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  margin-top: var(--sp-xs);
}

.faq-item {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open {
  border-color: var(--border-strong);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: var(--sp-sm) 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-sm);
  cursor: pointer;
  transition: color 0.2s;
}

.faq-q:hover {
  color: var(--sage);
  background: var(--sage-faint);
}

.faq-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform 0.3s var(--ease-out), color 0.2s;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--sage);
}

.faq-a {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s var(--ease-out), opacity 0.3s var(--ease-out);
}

.faq-a-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: var(--sp-sm);
}

.faq-item.open .faq-a {
  opacity: 1;
}

/* ─── Contact block (support) ────────────────────────────────────────────────*/
.contact-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--sage);
  border-radius: var(--radius-lg);
  padding: var(--sp-md) var(--sp-md);
  margin-bottom: 48px;
}

.contact-block p {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: var(--sp-sm);
}

.contact-block a {
  font-size: 16px;
  color: var(--sage);
  transition: opacity 0.2s;
}

.contact-block a:hover { opacity: 0.75; }

/* ─── Responsive ─────────────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  :root {
    --sp-xl:  64px;
    --sp-xxl: 100px;
  }

  .nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .container,
  .features-inner { padding: 0 24px; }

  .hero-content { padding: 80px 24px 48px; }

  /* Phone mockups smaller on mobile — scaled proportionally from 260px */
  .hero-phone-wrap { width: 180px; margin: 64px auto 0; }
  .phone-mockup {
    width: 100%;
    border-radius: 34px;
    padding: 8px;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.09),
      0 0 0 1px rgba(0, 0, 0, 0.7),
      0 12px 24px rgba(0, 0, 0, 0.4),
      0 24px 48px rgba(0, 0, 0, 0.25);
  }
  .phone-mockup::before {
    top: 14px;
    width: 60px;
    height: 19px;
    border-radius: 12px;
  }
  .phone-screen { border-radius: 27px; }
  .phone-screen::after { border-radius: 27px; }

  .feature { max-width: 100%; }

  /* Feature visual layouts */
  .feature--visual,
  .feature--visual-reverse {
    grid-template-columns: 1fr;
  }
  .feature-visual-phone {
    width: 180px;
    margin: 0 auto;
    order: 1;
  }

  /* Share section */
  .share-inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }
  .share-cards {
    position: relative;
    height: auto;
    display: flex;
    justify-content: center;
  }
  .share-phone {
    position: relative;
    width: 150px;
    left: auto;
    right: auto;
    top: auto;
    border-radius: 16px;
  }
  .share-phone .share-phone-img {
    border-radius: 16px;
  }
  .share-phone--left {
    transform: rotate(-4deg) translateX(20px) translateY(-8px);
    z-index: 1;
  }
  .share-phone--right {
    transform: rotate(3deg) translateX(-20px) translateY(16px);
    z-index: 2;
  }

  .footer { padding: 40px 24px; }
  .footer-inner { flex-direction: column; gap: 20px; align-items: flex-start; }

  .prose-container { padding: 56px 24px 96px; }
  .prose-section-head { padding: var(--sp-sm) 20px 14px; }
  .prose-section-body { padding: var(--sp-sm) 20px 24px; }
  .contact-block { padding: 24px 22px; }
}

/* ─── Reduced Motion ─────────────────────────────────────────────────────────*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .feature-num {
    opacity: 1;
    transform: none;
  }
  .prose-page-title,
  .prose-meta,
  .prose-intro {
    animation: none;
    opacity: 1;
  }
}
