/* Sarg landing page — brand tokens mirror the iOS design system */
:root {
  --coral: #FF6B47;
  --coral-deep: #E84E2C;
  --sunset: #FF9F5A;
  --teal: #1FA89F;
  --gold: #E9A83A;
  --violet: #7C6CF6;
  --navy: #1F2637;

  --canvas: #F6F2EC;
  --surface: #FFFFFF;
  --sunken: #EFE9E1;
  --hairline: rgba(0, 0, 0, 0.07);
  --ink: #171A21;
  --ink-2: #5B6170;
  --ink-3: #9097A6;
  --shadow: 0 12px 40px rgba(23, 26, 33, 0.08);
  --shadow-lg: 0 30px 80px rgba(23, 26, 33, 0.16);

  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Rounded", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  --radius: 20px;
  --radius-lg: 28px;
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --coral: #FF8264;
    --sunset: #FFB070;
    --teal: #4ECDC4;
    --gold: #FFCC66;
    --violet: #9D91FF;
    --canvas: #0B0E14;
    --surface: #161A22;
    --sunken: #11151C;
    --hairline: rgba(255, 255, 255, 0.08);
    --ink: #F4F4F6;
    --ink-2: #A3A9B7;
    --ink-3: #6B7180;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.container.narrow { max-width: 760px; }
.grad {
  background: linear-gradient(90deg, var(--coral), var(--sunset));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; z-index: 100; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); background: color-mix(in srgb, var(--canvas) 78%, transparent); border-bottom: 1px solid var(--hairline); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; border-radius: 12px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 16px; padding: 14px 22px; border-radius: 16px; transition: transform .15s ease, box-shadow .15s ease, background .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-small { padding: 10px 16px; font-size: 14px; border-radius: 12px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--coral), var(--sunset)); box-shadow: 0 10px 28px rgba(255, 107, 71, 0.32); }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(255, 107, 71, 0.42); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: var(--coral); color: var(--coral); }
.appstore-badge img { height: 60px; width: auto; transition: transform .15s ease; }
.appstore-badge:hover img { transform: translateY(-1px) scale(1.02); }

/* Eyebrow */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin-bottom: 14px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 20%, transparent); }
.eyebrow-light { color: var(--sunset); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero-glow { position: absolute; inset: -20% -10% auto -10%; height: 120%; background:
  radial-gradient(600px 400px at 20% 20%, color-mix(in srgb, var(--coral) 22%, transparent), transparent 70%),
  radial-gradient(500px 400px at 85% 60%, color-mix(in srgb, var(--violet) 18%, transparent), transparent 70%);
  pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; }
.lead { font-size: 19px; color: var(--ink-2); margin: 22px 0 30px; max-width: 560px; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 36px; margin-top: 40px; }
.hero-proof li { display: flex; flex-direction: column; }
.hero-proof strong { font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1; }
.hero-proof span { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* Phone frames */
.phone { position: relative; margin: 0; width: 300px; aspect-ratio: 300 / 652; border-radius: 48px; background: #0d0f14; padding: 10px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a2e38; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #0d0f14; border-radius: 16px; z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 40px; }
.hero-devices { position: relative; height: 700px; display: grid; place-items: center; }
/* Static placement lives in `transform`; the float animates the separate `translate`
   property so only the compositor is involved (no layout or paint per frame). */
.phone-front, .phone-back { position: absolute; left: 50%; will-change: translate; backface-visibility: hidden; }
.phone-front { transform: translateX(-30%) rotate(-3deg); z-index: 2; animation: float 7s ease-in-out infinite; }
.phone-back { transform: translateX(-88%) translateY(36px) rotate(6deg) scale(.92); opacity: .95; animation: float 8s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@media (prefers-reduced-motion: reduce) { .phone-front, .phone-back { animation: none; } }

/* Strip */
.strip { border-block: 1px solid var(--hairline); background: var(--surface); }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 28px; padding: 18px 0; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink-2); letter-spacing: .02em; }
.strip .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); align-self: center; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--sunken); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2, .programs-copy h2, .privacy-grid h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
.sub { color: var(--ink-2); font-size: 18px; margin-top: 16px; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature h3 { font-size: 20px; margin: 18px 0 10px; }
.feature p { color: var(--ink-2); font-size: 15px; }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; }
.icon-coral { background: linear-gradient(135deg, var(--coral), var(--sunset)); }
.icon-violet { background: linear-gradient(135deg, var(--violet), #B7AEFF); }
.icon-sunset { background: linear-gradient(135deg, var(--sunset), var(--coral-deep)); }
.icon-teal { background: linear-gradient(135deg, var(--teal), #7EDDD6); }
.icon-gold { background: linear-gradient(135deg, var(--gold), var(--sunset)); }
.icon-navy { background: linear-gradient(135deg, var(--navy), #3A4460); }

/* Gallery */
.gallery { position: relative; }
.gallery-track { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px calc((100% - var(--max)) / 2 + 20px) 32px; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 auto; width: 260px; margin: 0; scroll-snap-align: center; text-align: center; }
.shot picture img { width: 100%; border-radius: 34px; box-shadow: var(--shadow-lg); border: 6px solid #0d0f14; }
.shot figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.gallery-controls { display: flex; justify-content: center; gap: 10px; }
.gallery-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; box-shadow: var(--shadow); }
.gallery-btn:hover { color: var(--coral); border-color: var(--coral); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 30px 28px 28px; box-shadow: var(--shadow); }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--coral), var(--sunset)); color: #fff; font-family: var(--font-display); font-weight: 800; }
.step h3 { font-size: 20px; margin: 18px 0 8px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* Programs */
.programs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip-cloud li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); font-size: 13px; font-weight: 600; color: var(--ink); }
.program-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pcard { position: relative; border-radius: 18px; padding: 20px; color: #fff; min-height: 128px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow); overflow: hidden; }
.pcard::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.14); }
.pcard-cat { font-family: var(--font-display); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.pcard h3 { font-size: 20px; margin: 4px 0 2px; }
.pcard p { font-size: 13px; opacity: .9; }
.pcard-coral { background: linear-gradient(135deg, #FF6B47, #FF9F5A); }
.pcard-violet { background: linear-gradient(135deg, #7C6CF6, #4ECDC4); }
.pcard-teal { background: linear-gradient(135deg, #1FA89F, #7C6CF6); }
.pcard-navy { background: linear-gradient(135deg, #1F2637, #4A5570); }
.pcard-sunset { background: linear-gradient(135deg, #FF9F5A, #E84E2C); }
.pcard-gold { background: linear-gradient(135deg, #E9A83A, #FF6B47); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan h3 { font-size: 22px; }
.price { font-family: var(--font-display); font-size: 40px; font-weight: 800; margin: 12px 0 4px; letter-spacing: -0.03em; }
.price span { font-size: 16px; color: var(--ink-3); font-weight: 600; }
.plan-sub { color: var(--ink-2); font-size: 14px; }
.plan ul { margin: 22px 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink); }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 800; }
.plan-credits { border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.plan-credits li::before { color: var(--gold); }
.plan-pro { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--coral), var(--violet)) border-box; box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -14px; left: 28px; background: linear-gradient(135deg, var(--coral), var(--violet)); color: #fff; font-family: var(--font-display); font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; letter-spacing: .04em; }

/* Privacy (dark band) */
.section-dark { background: #0B0E14; color: #F4F4F6; }
.section-dark .sub { color: #A3A9B7; }
.privacy-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.checks { display: grid; gap: 12px; margin-top: 26px; }
.checks li { position: relative; padding-left: 30px; font-weight: 500; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #0B0E14; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.phone-solo { margin-inline: auto; width: 280px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 4px 22px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 17px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--coral); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 0 18px; font-size: 15px; }

/* Final CTA */
.cta-final { padding: 40px 0 110px; }
.cta-inner { text-align: center; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 64px 28px; box-shadow: var(--shadow-lg); display: grid; place-items: center; gap: 14px; position: relative; overflow: hidden; }
.cta-inner::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 80%; background: radial-gradient(closest-side, color-mix(in srgb, var(--coral) 18%, transparent), transparent); pointer-events: none; }
.cta-inner h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; }
.cta-inner .sub { margin-top: 0; }
.cta-inner .appstore-badge { margin-top: 12px; position: relative; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 36px 0 48px; color: var(--ink-2); font-size: 14px; }
.footer-inner { display: grid; gap: 18px; text-align: center; place-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a:hover { color: var(--coral); }
.copyright { font-size: 12px; color: var(--ink-3); max-width: 640px; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: grid; place-items: center; }
  .lead { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .hero-proof { justify-content: center; }
  .hero-devices { height: 560px; margin-top: 10px; }
  .phone { width: 250px; }
  .features-grid, .steps, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .programs-grid, .privacy-grid { grid-template-columns: 1fr; }
  .plan-pro { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--hairline); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 6px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 4px; }
  .nav-toggle { display: flex; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 38px; }
  .lead { font-size: 17px; }
  .hero-devices { height: 480px; }
  .phone { width: 210px; }
  .phone-back { transform: translateX(-92%) translateY(30px) rotate(6deg) scale(.9); }
  .section { padding: 64px 0; }
  .features-grid, .steps, .pricing-grid, .program-cards { grid-template-columns: 1fr; }
  .plan-pro { grid-column: auto; }
  .hero-proof { gap: 22px; }
  .gallery-track { padding-inline: 20px; }
}
