:root {
  --ink: #12151F;
  --ink-2: #5B6275;
  --ink-3: #8C92A3;
  --line: #E4E6EC;
  --bg: #F6F6F3;
  --card: #FFFFFF;
  --good: #157347;
  --good-bg: #EAF6EF;
  --sale: #D92D20;
  --sale-bg: #FDECEA;
  --radius: 14px;
  /* type: 5 sizes, 2 weights */
  --t1: 44px; --t2: 26px; --t3: 18px; --t4: 15px; --t5: 13px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t3)/1.55 Inter, system-ui, -apple-system, sans-serif;
  font-feature-settings: "tnum" 1;
}
a { color: inherit; }
b, strong { font-weight: 600; }
[hidden] { display: none !important; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* promo strip */
.promo { background: var(--sale-bg); color: var(--ink); font-size: var(--t5); }
.promo .wrap { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 16px; min-height: 40px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.promo-t span { font-weight: 600; color: var(--sale); }

/* top bar */
.top { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.mark { font-weight: 600; font-size: var(--t3); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.mark i { width: 22px; height: 22px; border-radius: 7px; background: var(--ink); position: relative; display: inline-block; }
.mark i::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: 5px; height: 5px; border-radius: 2px; background: #4CC38A; }
.top nav { display: flex; gap: 24px; }
.top a.link { font-size: var(--t4); color: var(--ink-2); text-decoration: none; }
.top a.link:hover { color: var(--ink); }

/* hero: promise, price, then the whole sheet in a looping video */
.hero { text-align: center; padding-top: 40px; padding-bottom: 88px; }
h1 { font-size: var(--t1); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; margin: 0 auto 20px; max-width: 17em; }
.lead { color: var(--ink-2); margin: 0 auto 32px; max-width: 36em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px;
  border: 0; border-radius: 12px; background: var(--ink); color: #fff; font: 600 var(--t3)/1 Inter, system-ui, sans-serif;
  cursor: pointer; text-decoration: none; transition: transform .12s, background .12s;
}
.btn:hover { background: #262B3B; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: default; }
.cta { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }
.was { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: var(--t3); }
.off { background: var(--sale-bg); color: var(--sale); font-size: var(--t5); font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.trust { list-style: none; padding: 0; margin: 24px 0 48px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; font-size: var(--t4); color: var(--ink-2); }
.trust li { position: relative; padding-left: 22px; }
.trust li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 5px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
.screen { max-width: 1120px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #EEF0F4; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(18,21,31,.06), 0 40px 80px -40px rgba(18,21,31,.4); }
.screen video { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 900; }

/* sections: each one a block on its own surface */
section { padding: 88px 0; }
section:nth-of-type(odd) { background: var(--card); }
h2 { font-size: var(--t2); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 40px; line-height: 1.25; text-align: center; }
h3 { font-size: var(--t3); font-weight: 600; margin: 0 0 6px; line-height: 1.35; }
.flow p, .card p { margin: 0; color: var(--ink-2); font-size: var(--t4); }

/* three steps joined by one line */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.flow::before { content: ""; position: absolute; top: 20px; left: 16.6%; right: 16.6%; height: 2px; background: var(--line); }
.flow li { position: relative; text-align: center; }
.flow .n { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); color: var(--ink); display: grid; place-items: center;
  font-size: var(--t4); font-weight: 600; margin: 0 auto 20px; box-shadow: 0 0 0 8px var(--card); }
.flow h3, .flow p { max-width: 17em; margin-left: auto; margin-right: auto; }
.flow h3 { margin-bottom: 6px; }

/* inside the sheet: a guided tour, switches itself */
.tour { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.tour-list { display: flex; flex-direction: column; gap: 4px; }
.tour-list button { position: relative; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 14px 16px 16px; border: 1px solid transparent;
  border-radius: 12px; background: none; font: inherit; color: var(--ink); cursor: pointer; overflow: hidden; transition: background .15s; }
.tour-list button:hover { background: rgba(18,21,31,.03); }
.tour-list button[aria-selected="true"] { background: var(--card); border-color: var(--line); box-shadow: 0 1px 3px rgba(18,21,31,.06); }
.tt { font-weight: 600; font-size: var(--t3); line-height: 1.35; }
.tn { font-size: var(--t5); color: var(--ink-3); }
.td { display: none; font-size: var(--t4); color: var(--ink-2); margin-top: 6px; line-height: 1.5; }
[aria-selected="true"] .td { display: block; }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
[aria-selected="true"] .bar::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.tour.auto [aria-selected="true"] .bar::after { animation: fill 7s linear forwards; }
.tour.auto.paused [aria-selected="true"] .bar::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.tour-shot { aspect-ratio: 1800 / 1183; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px -24px rgba(18,21,31,.25); }
.tour-shot a { display: block; height: 100%; cursor: zoom-in; }
.tour-shot img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: top left; }

/* why it works */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--bg); border-radius: var(--radius); padding: 20px; }
.viz { height: 190px; border-radius: 10px; background: var(--card); margin-bottom: 18px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.viz img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; box-shadow: 0 1px 3px rgba(18,21,31,.12); }

/* comparison */
.cmp-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.cmp { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: var(--t4); min-width: 640px; }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; border-top: 1px solid var(--line); vertical-align: middle; }
.cmp thead th { border-top: 0; font-weight: 600; color: var(--ink-2); }
.cmp tbody th { font-weight: 400; color: var(--ink-2); width: 32%; }
.cmp td { color: var(--ink-2); }
.cmp .me { background: var(--good-bg); color: var(--ink); font-weight: 600; }
.cmp thead .me { color: var(--ink); }
.cmp .y { display: inline-block; width: 10px; height: 5px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg) translateY(-3px); margin-right: 10px; }

/* the offer */
.offer { display: grid; grid-template-columns: 1.15fr .85fr; border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -36px rgba(18,21,31,.3); }
.offer-get { padding: 40px; }
.offer-get h2 { text-align: left; margin-bottom: 24px; }
.get { list-style: none; padding: 0; margin: 0; }
.get li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--line); font-size: var(--t4); }
.get li:first-child { border-top: 0; }
.get li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 12px; height: 7px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
.offer-pay { padding: 40px; background: var(--bg); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.offer-pay p { margin: 0; }
.tag { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t4); font-weight: 600; margin-bottom: 12px !important; }
.tag b { background: var(--sale-bg); color: var(--sale); font-size: var(--t5); padding: 3px 8px; border-radius: 6px; }
.price { font-size: var(--t1); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.price s { font-size: var(--t3); font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-left: 8px; }
.timer { font-size: var(--t4); color: var(--ink-2); margin: 10px 0 24px !important; }
.timer b { color: var(--ink); font-weight: 600; }
.offer-pay .btn { width: 100%; }
.offer-pay .sub { font-size: var(--t5); color: var(--ink-3); margin-top: 14px !important; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: var(--t3); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-1px); }
.faq details p { margin: -6px 0 20px; color: var(--ink-2); font-size: var(--t4); max-width: 40em; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--ink-3); font-size: var(--t5); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--ink-2); text-decoration: none; }
footer nav { display: flex; gap: 20px; }

/* phone buy bar */
.dock { display: none; }

/* checkout sheet */
dialog {
  border: 0; border-radius: 20px; padding: 32px; width: min(440px, calc(100vw - 32px)); background: var(--card); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(18,21,31,.4);
}
dialog::backdrop { background: rgba(18,21,31,.35); }
dialog h2 { margin: 0 0 8px; }
dialog p { margin: 0 0 20px; color: var(--ink-2); font-size: var(--t4); }
dialog label { display: block; font-size: var(--t5); color: var(--ink-2); margin-bottom: 6px; }
dialog input {
  width: 100%; height: 52px; border-radius: 12px; border: 1px solid var(--line); padding: 0 16px;
  font: 400 var(--t3) Inter, system-ui, sans-serif; color: var(--ink); background: #fff; margin-bottom: 16px;
}
dialog input:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
dialog .btn { width: 100%; }
dialog .close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; background: none; font-size: 22px; color: var(--ink-3); cursor: pointer; border-radius: 50%; }
dialog .err { color: #B42318; font-size: var(--t5); min-height: 18px; margin: -6px 0 10px; }

/* simple pages */
.doc { padding: 24px 0 72px; }
.doc h1 { font-size: var(--t2); }
.doc h2 { font-size: var(--t3); margin: 32px 0 8px; }
.doc p, .doc li { font-size: var(--t4); color: var(--ink-2); }
.center { text-align: center; padding: 64px 0 96px; }
.center p { color: var(--ink-2); margin: 0 auto 28px; max-width: 30em; }

@media (max-width: 820px) {
  :root { --t1: 32px; --t2: 22px; --t3: 17px; }
  .wrap { padding: 0 16px; }
  .top nav { display: none; }
  .hero { padding-top: 16px; padding-bottom: 56px; }
  .cta .btn { width: 100%; }
  .trust { flex-direction: column; align-items: center; gap: 6px; margin: 20px 0 32px; }
  .screen { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
  section { padding: 56px 0; }
  h2 { margin-bottom: 28px; }
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow::before { display: none; }
  .flow li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: -28px; width: 2px; background: var(--line); }
  .flow li { text-align: left; padding-left: 60px; min-height: 40px; }
  .flow .n { position: absolute; left: 0; top: 0; margin: 0; }
  .flow h3, .flow p { max-width: none; }
  .tour { grid-template-columns: 1fr; gap: 16px; }
  .tour-shot { order: -1; }
  .offer { grid-template-columns: 1fr; }
  .offer-get, .offer-pay { padding: 24px 20px; }
  .dock { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s; }
  .dock.on { transform: none; }
  .dock-p { font-size: var(--t3); }
  .dock-p s { color: var(--ink-3); font-size: var(--t5); margin-left: 6px; }
  .dock .btn { width: auto; height: 44px; padding: 0 24px; }
  footer { padding-bottom: 96px; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .viz { height: 170px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
