/* ============ TOKENS ============ */
:root {
  --bg: #f5f5f7;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f2f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #8e8e93;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.12);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.06);
  --shadow-float: 0 4px 14px rgba(0,0,0,0.08), 0 30px 60px rgba(0,0,0,0.12);

  --accent: #00cbbf;
  --accent-hover: #00b0a5;
  --accent-soft: rgba(0,203,191,0.12);
  --accent-text: #009188;
  --teal: #00cbbf;
  --teal-soft: rgba(0,203,191,0.12);

  --red: #ff3b30;
  --orange: #ff9500;
  --green: #34c759;
  --blue: #007aff;

  --maxw: 1140px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0c0c0e;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #8e8e93;
    --border: rgba(255,255,255,0.10);
    --border-strong: rgba(255,255,255,0.16);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 16px 40px rgba(0,0,0,0.5);
    --shadow-float: 0 8px 24px rgba(0,0,0,0.5), 0 40px 80px rgba(0,0,0,0.6);
    --accent: #1fd6c9;
    --accent-hover: #45e3d8;
    --accent-soft: rgba(31,214,201,0.18);
    --accent-text: #34ded2;
    --teal: #1fd6c9;
    --teal-soft: rgba(31,214,201,0.18);
  }
}

/* ============ BASE ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent-soft); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }

/* ============ TYPE ============ */
h1, h2, h3 { letter-spacing: -0.022em; line-height: 1.05; font-weight: 700; }
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent-text); text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow.teal { color: var(--teal); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); line-height: 1.45; }

/* ============ BUTTONS / BADGES ============ */
.appstore {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--text); color: var(--bg);
  padding: 12px 20px 12px 18px; border-radius: 14px;
  transition: transform .2s ease, opacity .2s ease;
}
@media (prefers-color-scheme: dark) { .appstore { background: #ffffff; color: #000; } }
.appstore:hover { transform: translateY(-2px); }
.appstore svg { width: 26px; height: 26px; flex: none; }
.appstore .as-txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.appstore .as-small { font-size: 11px; opacity: .85; font-weight: 500; }
.appstore .as-big { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }

.ghost-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-text); font-weight: 600; font-size: 17px;
  transition: gap .2s ease;
}
.ghost-link:hover { gap: 10px; }

/* ============ HEADER ============ */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
  padding: 9px 17px; border-radius: 980px; transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ============ HERO ============ */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 0.82fr; gap: clamp(24px, 5vw, 72px); align-items: center;
}
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.04; }
.hero h1 .hl { color: var(--accent-text); }
.hero p.lead { margin-top: 22px; max-width: 30ch; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 15px; height: 15px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-glow {
  position: absolute; inset: -10% -20%; z-index: 0;
  background: radial-gradient(60% 55% at 60% 40%, var(--teal-soft), transparent 70%),
              radial-gradient(55% 50% at 30% 70%, var(--accent-soft), transparent 70%);
  filter: blur(10px);
}

/* ============ DEVICE FRAME ============ */
.device {
  position: relative; z-index: 1;
  width: 100%; max-width: 320px;
  aspect-ratio: 1206 / 2622;
  background: #0a0a0a;
  border-radius: 13.5% / 6.2%;
  padding: 2.6%;
  box-shadow: var(--shadow-float), inset 0 0 0 2px rgba(255,255,255,0.06);
}
.device::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.5);
  pointer-events: none;
}
.device .screen {
  width: 100%; height: 100%; border-radius: 11% / 5.4%;
  overflow: hidden; background: #fff;
}
.device .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device.tilt { transform: rotate(2.2deg); }

/* ============ SECTION SCAFFOLD ============ */
.band { padding: clamp(64px, 10vw, 130px) 0; }
.band.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 52px); }
.section-head p { margin-top: 18px; }

/* ============ WHY (problem -> solution) ============ */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.why-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 38px 36px; box-shadow: var(--shadow-card);
}
.why-card .tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 980px; margin-bottom: 22px; letter-spacing: 0.01em;
}
.why-card.problem .tag { background: rgba(255,149,0,0.14); color: var(--orange); }
.why-card.solution .tag { background: var(--teal-soft); color: var(--teal); }
.why-card h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; }
.why-card p { margin-top: 14px; color: var(--text-2); font-size: 17px; line-height: 1.5; }
.why-card .dot { width: 7px; height: 7px; border-radius: 50%; }
.why-card.problem .dot { background: var(--orange); }
.why-card.solution .dot { background: var(--teal); }

/* ============ FEATURES GRID ============ */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; margin-top: 60px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); overflow: hidden; position: relative;
  display: flex; flex-direction: column;
}
.feature.span3 { grid-column: span 3; }
.feature.span2 { grid-column: span 2; }
.feature.span6 { grid-column: span 6; }
.feature .ftxt { padding: 34px 34px 30px; }
.feat-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 18px;
}
.feat-icon svg { width: 24px; height: 24px; }
.pro-pill {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent-text); border: 1px solid var(--accent-text); padding: 2px 8px; border-radius: 980px;
  margin-left: 10px; vertical-align: middle; text-transform: uppercase;
}
.feature h3 { font-size: 22px; }
.feature p { margin-top: 10px; color: var(--text-2); font-size: 16px; line-height: 1.5; }

/* feature with side-by-side text + shot */
.feature.split { flex-direction: row; align-items: stretch; }
.feature.split .ftxt { flex: 1; align-self: center; padding: 44px 0 44px 44px; }
.feature.split .fshot { flex: 0 0 46%; position: relative; display: flex; align-items: flex-end; justify-content: center; padding: 36px 36px 34px; min-height: 300px; }
.feature.split.dark { background: linear-gradient(165deg, #18191c 0%, #050506 78%); }
.feature.split.dark h3, .feature.split.dark p { color: #fff; }
.feature.split.dark p { color: rgba(255,255,255,0.7); }
.feature.split.dark .fshot::before {
  content: ""; position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
  width: 80%; height: 78%; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(0,203,191,0.22), rgba(0,203,191,0) 70%);
  filter: blur(8px);
}
.feature.split.dark .shot-device {
  background: #1a1b1e;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), inset 0 0 0 1.5px rgba(255,255,255,0.16), 0 0 0 1px rgba(255,255,255,0.07);
}
.shot-device {
  position: relative; z-index: 1;
  width: 210px; aspect-ratio: 1206 / 2622; background: #0a0a0a; border-radius: 13.5% / 6.2%;
  padding: 2.6%; box-shadow: 0 20px 50px rgba(0,0,0,0.3); flex: none;
}
.shot-device .screen { width:100%; height:100%; border-radius: 11% / 5.4%; overflow:hidden; }
.shot-device .screen img { width:100%; height:100%; object-fit: cover; object-position: top center; }

/* small in-card device */
.feature .mini-shots { padding: 30px 34px 0; display: flex; gap: 16px; justify-content: center; margin-top: auto; }

/* ============ FAMILY ============ */
.family-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,72px); align-items: center; margin-top: 24px; }
.family-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.family-visual .device { max-width: 280px; }
.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-float); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; min-width: 215px;
}
.float-card .fc-ic { width: 34px; height: 34px; border-radius: 50%; display:grid; place-items:center; flex:none; }
.float-card .fc-title { font-size: 15px; font-weight: 600; }
.float-card .fc-sub { font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
.float-card .fc-badge { margin-left: auto; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 980px; }
.fc-top { top: 8%; left: -4%; }
.fc-bottom { bottom: 10%; right: -6%; }

.checklist { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.checklist li { list-style: none; display: flex; gap: 14px; align-items: flex-start; }
.checklist .ck {
  width: 26px; height: 26px; border-radius: 50%; background: var(--teal-soft); color: var(--teal);
  display: grid; place-items: center; flex: none; margin-top: 1px;
}
.checklist .ck svg { width: 15px; height: 15px; }
.checklist b { font-weight: 600; font-size: 17px; }
.checklist span { display: block; color: var(--text-2); font-size: 15.5px; margin-top: 3px; }

/* ============ PRIVACY ============ */
.privacy { text-align: center; }
.privacy .lockwrap {
  width: 78px; height: 78px; border-radius: 22px; margin: 0 auto 30px;
  background: var(--teal-soft); color: var(--teal); display: grid; place-items: center;
}
.privacy .lockwrap svg { width: 38px; height: 38px; }
.privacy h2 { font-size: clamp(30px, 4.6vw, 52px); max-width: 16ch; margin: 0 auto; }
.privacy p.lead { margin: 20px auto 0; max-width: 56ch; }
.privacy-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 54px; }
.pp {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 30px 26px; text-align: left; box-shadow: var(--shadow-card);
}
.pp h3 { font-size: 18px; }
.pp p { margin-top: 8px; font-size: 15px; color: var(--text-2); line-height: 1.5; }
.pp .pp-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); display:grid; place-items:center; margin-bottom: 16px; }
.pp .pp-ic svg { width: 20px; height: 20px; }

/* ============ PRO COMPARE ============ */
.compare { margin-top: 56px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 18px 24px; text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--surface-2); }
.compare thead th.col-pro { color: var(--accent-text); }
.compare th.feat-name, .compare td.feat-name { font-weight: 500; font-size: 16px; width: 56%; }
.compare td.col-free, .compare td.col-pro, .compare th.col-free, .compare th.col-pro { text-align: center; width: 22%; }
.compare .col-pro { background: var(--accent-soft); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare .yes { color: var(--green); }
.compare .yes svg, .compare .no svg { width: 21px; height: 21px; }
.compare .no { color: var(--text-3); }
.compare td.val { font-size: 14.5px; color: var(--text-2); font-weight: 500; }
.compare .plan-head { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.compare .plan-head.pro { color: var(--accent-text); }
.compare .trial-row td { text-align: center; background: var(--accent-soft); font-size: 14px; color: var(--accent-text); font-weight: 600; }

/* ============ FOOTER CTA ============ */
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(32px, 5vw, 58px); max-width: 18ch; margin: 0 auto; }
.final-cta p { margin: 20px auto 0; max-width: 48ch; }
.final-cta .hero-actions { justify-content: center; margin-top: 36px; }
.app-icon-lg { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 28px; box-shadow: var(--shadow-float); }

footer {
  border-top: 1px solid var(--border); padding: 48px 0 56px; background: var(--bg);
}
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 17px; }
.foot-brand img { width: 30px; height: 30px; border-radius: 7px; }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-links a { color: var(--text-2); font-size: 15px; transition: color .2s ease; }
.foot-links a:hover { color: var(--text); }
.disclaimer { margin-top: 34px; font-size: 13px; color: var(--text-3); line-height: 1.6; max-width: 760px; }
.copyright { margin-top: 18px; font-size: 13px; color: var(--text-3); }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { justify-content: center; }
  .hero-visual { order: -1; }
  .why-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature.span3, .feature.span2 { grid-column: span 1; }
  .feature.span6 { grid-column: span 2; }
  .feature.split { flex-direction: column; }
  .feature.split .ftxt { padding: 34px 34px 0; }
  .feature.split .fshot { flex: none; min-height: 0; padding: 28px 34px 34px; }
  .family-grid { grid-template-columns: 1fr; }
  .family-visual { order: -1; min-height: 380px; }
  .privacy-points { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .features { grid-template-columns: 1fr; }
  .feature.span6 { grid-column: span 1; }
  .nav-cta .nav-cta-long { display: none; }
  .fc-top { left: -2%; }
  .fc-bottom { right: -2%; }
  .compare th, .compare td { padding: 14px 12px; }
  .compare th.feat-name, .compare td.feat-name { font-size: 14px; }
  .why-card { padding: 30px 26px; }
  /* Shrink phone mockups so they don't dominate on small screens (aspect-ratio keeps proportions) */
  .device { max-width: 232px; }
  .family-visual { min-height: 320px; }
  .family-visual .device { max-width: 208px; }
  .shot-device { width: 168px; }
}
