/* SugarReset — Premium Apple-like landing (no frameworks)
   Invariants: root-relative assets, overflow-x guard, WCAG-minded, reduced-motion support. */

:root{
  /* Layout */
  --container: 1180px;
  --gutter: clamp(16px, 3.2vw, 28px);
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 14px;
  --shadow-1: 0 10px 30px rgba(2,6,23,.10);
  --shadow-2: 0 18px 50px rgba(2,6,23,.14);
  --ease: cubic-bezier(.16,1,.3,1);

  /* Tokens (light) */
  --bg: #f7f8fb;
  --bg2: #eef2ff;
  --surface: rgba(255,255,255,.78);
  --surface2: rgba(255,255,255,.92);
  --text: #0b1220;
  --muted: #465264;
  --muted2: #6b7280;
  --border: rgba(15,23,42,.12);
  --border2: rgba(15,23,42,.18);

  /* Accents (from label + modern pastels) */
  --a1: #ff8fa3;  /* pastel rose */
  --a2: #ffc7a6;  /* pastel apricot */
  --a3: #86e7c0;  /* pastel mint */
  --p1: #d7e3ff;  /* powder blue */
  --p2: #d7fff3;  /* ice mint */
  --p3: #ffe2ec;  /* blush */

  /* Gradients */
  --g1: radial-gradient(1200px 600px at 20% -10%, rgba(199,210,254,.85) 0%, rgba(199,210,254,0) 60%),
        radial-gradient(900px 600px at 95% 10%, rgba(254,205,211,.70) 0%, rgba(254,205,211,0) 55%),
        radial-gradient(900px 600px at 80% 120%, rgba(167,243,208,.75) 0%, rgba(167,243,208,0) 55%),
        linear-gradient(180deg, var(--bg) 0%, #ffffff 100%);
  --g2: linear-gradient(135deg, rgba(255,143,163,.90) 0%, rgba(255,199,166,.88) 45%, rgba(134,231,192,.90) 100%);
  --ctaGrad: linear-gradient(135deg, rgba(255,127,152,.95) 0%, rgba(255,191,160,.95) 45%, rgba(123,226,186,.95) 100%);

  /* Noise (tiny inline SVG) */
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
}

html[data-theme="dark"]{
  --bg: #070a12;
  --bg2:#0a1020;
  --surface: rgba(12,18,34,.58);
  --surface2: rgba(12,18,34,.86);
  --text: #e8eefc;
  --muted:#b4c0d6;
  --muted2:#93a3be;
  --border: rgba(148,163,184,.18);
  --border2: rgba(148,163,184,.26);

  --g1: radial-gradient(1200px 600px at 20% -10%, rgba(99,102,241,.30) 0%, rgba(99,102,241,0) 60%),
        radial-gradient(900px 600px at 95% 10%, rgba(255,143,163,.18) 0%, rgba(255,143,163,0) 55%),
        radial-gradient(900px 600px at 80% 120%, rgba(134,231,192,.16) 0%, rgba(134,231,192,0) 55%),
        linear-gradient(180deg, var(--bg) 0%, #050714 100%);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{
  overflow-x:hidden;
  overflow-x:clip;
  scroll-behavior:smooth;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--g1);
  overflow-x:hidden;
  overflow-x:clip;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:var(--noise);
  opacity:.045;
  mix-blend-mode:overlay;
  z-index:-1;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }
button{ font:inherit; }

/* Utilities */
.container{
  width:100%;
  max-width: var(--container);
  margin-inline:auto;
  padding-inline-start: calc(var(--gutter) + env(safe-area-inset-left, 0px));
  padding-inline-end: calc(var(--gutter) + env(safe-area-inset-right, 0px));
}
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.55);
  color:var(--muted);
}
html[data-theme="dark"] .kicker{
  background:rgba(10,16,32,.55);
}
.badge-dot{
  width:8px; height:8px; border-radius:99px;
  background:var(--g2);
  box-shadow:0 0 0 5px rgba(255,143,163,.12);
}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:60;
  border-bottom:1px solid var(--border);
  background: color-mix(in srgb, var(--surface2) 72%, transparent);
  backdrop-filter: blur(14px);
}
.header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
    padding-block:14px;
  gap:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 0;
}
.brand__mark{
  width:38px; height:38px;
  border-radius:14px;
  background: var(--g2);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  display:grid;
  place-items:center;
  flex:0 0 auto;
}
.brand__mark svg{ width:22px; height:22px; fill:#fff; }
.brand__text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
  min-width:0;
}
.brand__name{
  font-weight:800;
  letter-spacing:-.02em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand__sub{
  font-size:12px;
  color:var(--muted2);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.nav{
  display:none;
  gap:22px;
  align-items:center;
}
.nav a{
  font-size:13px;
  color:var(--muted);
  font-weight:600;
}
.nav a:hover{ color:var(--text); }
.header__actions{
  display:flex;
  gap:10px;
  align-items:center;
}
.icon-btn{
  height:40px; width:40px;
  border-radius:999px;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--surface2) 70%, transparent);
  display:grid;
  place-items:center;
  color:var(--muted);
  cursor:pointer;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.icon-btn:hover{
  transform: translateY(-1px);
  border-color: var(--border2);
}
.icon-btn:focus-visible{ outline:3px solid color-mix(in srgb, var(--a1) 28%, transparent); outline-offset:2px; }
.icon-btn svg{ width:18px; height:18px; }

/* Language popover */
.lang{
  position:relative;
}
.popover{
  position:absolute;
  right:0;
  top: calc(100% + 10px);
  width: 210px;
  border-radius: 18px;
  border: 1px solid var(--border2);
  background: color-mix(in srgb, var(--surface2) 92%, transparent);
  box-shadow: var(--shadow-2);
  padding: 8px;
  display:none;
}
.popover[data-open="true"]{ display:block; }
.popover a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  border-radius:14px;
  color:var(--text);
  font-weight:650;
  font-size:13px;
}
.popover a:hover{
  background: color-mix(in srgb, var(--a1) 10%, transparent);
}
.popover small{ color:var(--muted2); font-weight:600; }

/* Primary CTA button with gradient border */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight:800;
  letter-spacing:-.01em;
  border:1px solid transparent;
  cursor:pointer;
  position:relative;
  user-select:none;
  transform: translateZ(0);
}
.btn:focus-visible{ outline: 3px solid color-mix(in srgb, var(--a1) 28%, transparent); outline-offset: 2px; }
.btn--primary{
  color:#fff;
  background: var(--ctaGrad);
  box-shadow: 0 16px 40px rgba(15,23,42,.14), 0 12px 34px rgba(255,127,152,.12);
}
.btn--primary::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,0));
  opacity:.25;
  pointer-events:none;
}
.btn--primary::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background: radial-gradient(300px 70px at 20% 0%, rgba(255,255,255,.28), transparent 60%);
  opacity:.0;
  transition: opacity .25s var(--ease);
  pointer-events:none;
}
.btn--primary:hover{ transform: translateY(-1px); }
.btn--primary:hover::after{ opacity:1; }
.btn--ghost{
  color:var(--text);
  background: color-mix(in srgb, var(--surface2) 75%, transparent);
  border-color: var(--border2);
}
.btn--ghost:hover{
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--a1) 22%, var(--border2));
}

/* Scroll progress */
.progress{
  position:absolute;
  left:0; right:0; bottom:-1px;
  height:2px;
  background: transparent;
}
.progress > span{
  display:block;
  height:100%;
  width: var(--scroll, 0%);
  background: var(--g2);
  transform-origin: left;
}

/* Sections */
.section{
  padding-block: 30px;
  min-height: 100svh;
  display:flex;
  align-items:center;
}
.section--tight{ min-height:auto; }
.section__inner{
  width:100%;
}
.section h2{
  font-size: clamp(26px, 3.6vw, 42px);
  letter-spacing:-.03em;
  margin: 0 0 14px;
}
.section p.lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height:1.6;
  max-width: 62ch;
}

/* Hero layout */
.hero{
  padding-top: 26px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items:center;
}
.hero-copy{
  text-align:center;
}
.hero-copy h1{
  margin: 12px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -.04em;
  line-height: 1.05;
}
.hero-copy .sub{
  color:var(--muted);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height:1.6;
  margin: 0 auto 18px;
  max-width: 65ch;
}
.hero-bullets{
  list-style:none;
  padding:0;
  margin: 16px auto 18px;
  display:grid;
  gap:10px;
  max-width: 58ch;
}
.hero-bullets li{
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:flex-start;
  color:var(--muted);
  font-weight:650;
}
.hero-bullets svg{ width:18px; height:18px; flex:0 0 auto; margin-top:1px; color: color-mix(in srgb, var(--a3) 70%, var(--a1)); }
.hero-cta{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top: 14px;
}
.hero-note{
  margin-top: 12px;
  color:var(--muted2);
  font-size: 12px;
  font-weight:600;
}
.hero-media{
  display:grid;
  place-items:center;
}
.media-shell{
  width: min(520px, 100%);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface2) 70%, transparent);
  box-shadow: var(--shadow-2);
  position:relative;
  overflow:hidden;
}
.media-shell::before{
  content:"";
  position:absolute;
  inset:-30%;
  background: radial-gradient(closest-side at 30% 20%, rgba(255,255,255,.65), transparent 60%);
  opacity:.55;
  pointer-events:none;
}
.media-shell .imgwrap{
  padding: 18px 18px 8px;
}
.media-shell img{
  margin-inline:auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 40px rgba(0,0,0,.18));
}
.media-shell .meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 16px 16px;
  border-top:1px solid var(--border);
  color:var(--muted2);
  font-size:12px;
  font-weight:700;
}
.pills{
  display:flex; gap:8px; flex-wrap:wrap;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--surface2) 75%, transparent);
}
.pill b{ color:var(--text); }

/* Grid cards */
.grid{
  display:grid;
  gap: 14px;
}
@media (min-width: 860px){
  .nav{ display:flex; }
  .hero-grid{ grid-template-columns: 1.05fr .95fr; gap: 24px; }
  .hero-copy{ text-align:left; }
  .hero-copy .sub{ margin-left:0; }
  .hero-bullets{ margin-left:0; }
  .hero-bullets li{ justify-content:flex-start; }
  .hero-cta{ justify-content:flex-start; }
}
@media (min-width: 740px){
  .grid--3{ grid-template-columns: repeat(3, 1fr); }
  .grid--2{ grid-template-columns: repeat(2, 1fr); }
}
.card{
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface2) 80%, transparent);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-1);
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:stretch; /* price cards invariant */
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card::before{
  content:"";
  position:absolute;
  inset:-25%;
  background: radial-gradient(closest-side at 20% 20%, rgba(255,255,255,.65), transparent 60%);
  opacity:.35;
  pointer-events:none;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in srgb, var(--a1) 18%, var(--border2));
}
@media (prefers-reduced-motion: reduce){
  .card{ transition:none; }
  .card:hover{ transform:none; }
}
.card h3{
  margin:0 0 8px;
  font-size:18px;
  letter-spacing:-.02em;
}
.card p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
  font-size:14px;
}
.card .icon{
  width:44px; height:44px; border-radius:16px;
  display:grid; place-items:center;
  background: color-mix(in srgb, var(--a1) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--a1) 22%, var(--border));
  margin-bottom: 12px;
}
.card .icon svg{ width:22px; height:22px; color: color-mix(in srgb, var(--a1) 80%, var(--text)); }

.list{
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
  font-weight:650;
}

/* Experience sticky */
.experience{
  align-items:stretch;
}
.experience-grid{
  display:grid;
  gap: 14px;
  align-items:start;
}
@media (min-width: 900px){
  .experience-grid{ grid-template-columns: .95fr 1.05fr; gap: 22px; }
}
.sticky{
  position: sticky;
  top: 92px;
}
.step-media{
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface2) 78%, transparent);
  box-shadow: var(--shadow-2);
  overflow:hidden;
  padding: 18px;
  min-height: 340px;
}
.step-media .frame{
  position:relative;
  height: 340px;
}
.step-media img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  opacity:0;
  transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  filter: drop-shadow(0 28px 40px rgba(0,0,0,.18));
}
.step-media img.is-active{
  opacity:1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .step-media img{ transition:none; transform:none; }
}
.steps{
  display:grid;
  gap:12px;
}
.step{
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface2) 72%, transparent);
  padding: 16px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.step[data-active="true"]{
  border-color: color-mix(in srgb, var(--a3) 24%, var(--border2));
  transform: translateY(-1px);
}
.step h3{ margin: 0 0 6px; font-size:16px; }
.step p{ margin:0; color:var(--muted); font-size:14px; line-height:1.6; }

/* Ingredients */
.ing{
  display:flex;
  align-items:center;
  gap:12px;
}
.ing img{
  width:44px; height:44px; border-radius:999px;
  border:1px solid var(--border2);
  background: color-mix(in srgb, var(--surface2) 75%, transparent);
}

/* Pricing */
.price-head{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
  margin-bottom: 10px;
}
.price-tag{
  font-size: 12px;
  font-weight:900;
  padding: 6px 10px;
  border-radius:999px;
  background: color-mix(in srgb, var(--a1) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--a1) 18%, var(--border));
}
.price{
  font-size: 34px;
  letter-spacing:-.03em;
  margin: 10px 0 4px;
}
.price small{ font-size: 14px; color:var(--muted2); font-weight:800; }
.strike{
  color: var(--muted2);
  text-decoration: line-through;
  font-weight:700;
  font-size: 12px;
}
.plan__img{
  display:grid;
  place-items:center;
  margin: 10px 0 8px;
  min-height: 210px;
}
.plan__img img{ object-fit:contain; }
.plan__cta{
  margin-top:auto; /* invariant */
  display:grid;
  gap: 10px;
  padding-top: 12px;
}
.plan__cta .btn{ width:100%; }
.plan__note{
  font-size: 12px;
  color: var(--muted2);
  font-weight:700;
  text-align:center;
}

/* Guarantee + trust */
.trust-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}
.trust-row img{ height:38px; width:auto; }

/* FAQ accordion */
.accordion{
  display:grid;
  gap: 12px;
}
.faq{
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface2) 78%, transparent);
  overflow:hidden;
}
.faq button{
  width:100%;
  text-align:left;
  background:transparent;
  border:0;
  padding: 16px 16px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
}
.faq button span{
  font-weight:850;
  letter-spacing:-.01em;
}
.faq button svg{
  width:18px; height:18px;
  flex:0 0 auto;
  color: var(--muted);
  transition: transform .22s var(--ease);
}
.faq[data-open="true"] button svg{ transform: rotate(180deg); }
.faq .panel{
  padding: 0 16px 16px;
  color: var(--muted);
  line-height:1.7;
  display:none;
}
.faq[data-open="true"] .panel{ display:block; }

/* Footer */
.footer{
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface2) 75%, transparent);
  padding: 30px 0;
}
.footer .grid{
  gap: 18px;
}
.footer a:hover{ text-decoration:underline; }
.footer small{ color:var(--muted2); font-weight:650; line-height:1.7; }

/* Mobile-only floating CTA */
.fab{
  position:fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 65;
  display:none;
}
.fab .wrap{
  border-radius: 999px;
  border: 1px solid var(--border2);
  background: color-mix(in srgb, var(--surface2) 85%, transparent);
  backdrop-filter: blur(12px);
  padding: 10px;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  box-shadow: var(--shadow-2);
}
.fab .wrap .mini{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.fab .wrap .mini b{ font-size: 13px; }
.fab .wrap .mini small{ color:var(--muted2); font-weight:700; font-size: 11px; }
.fab .wrap .btn{ padding: 12px 16px; }

@media (max-width: 899px){
  .nav{ display:none; }
  .fab{ display:block; } /* only mobile */
  .header .btn--primary{ display:none; } /* no header CTA on mobile */
}

/* Mobile menu (drawer) */
.drawer{
  position:fixed;
  inset:0;
  z-index: 90;
  display:none;
}
.drawer[data-open="true"]{ display:block; }
.drawer__backdrop{
  position:absolute;
  inset:0;
  background: rgba(2,6,23,.55);
}
.drawer__panel{
  position:absolute;
  inset: 12px;
  border-radius: 26px;
  border: 1px solid var(--border2);
  background: color-mix(in srgb, var(--surface2) 92%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-2);
  display:flex;
  flex-direction:column;
  overflow:auto;
  padding-bottom: env(safe-area-inset-bottom);
}
.drawer__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 16px;
  border-bottom: 1px solid var(--border);
}
.drawer__top b{ font-size: 14px; letter-spacing:-.01em; }
.drawer__nav{
  display:grid;
  gap: 10px;
  padding: 14px 16px 18px;
}
.drawer__nav a{
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface2) 75%, transparent);
  font-weight: 850;
}
.drawer__nav a:focus-visible{ outline:3px solid color-mix(in srgb, var(--a1) 28%, transparent); outline-offset:2px; }

/* Reveal */
.reveal{
  opacity:0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in{
  opacity:1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* Mobile alignment rule: center content between 360–900px */
@media (max-width: 899px){
  .section .container{ text-align:center; }
  .section p.lead{ margin-inline:auto; }
  .steps{ text-align:left; } /* keep steps readable */
  .accordion{ text-align:left; }
  .footer .container{ text-align:center; }
}

/* Selection */
::selection{
  background: color-mix(in srgb, var(--a1) 25%, transparent);
}


.hamburger{ display:grid; }
@media (min-width: 900px){
  .hamburger{ display:none; }
}
