/* Home page. Built around three things only this brand has:
   the before/after, the meal deal receipt, and the 1:1 chat. */

main > section { padding: 64px 0; }
@media (min-width: 800px) { main > section { padding: 96px 0; } }
.sub { margin-top: 14px; color: var(--text-2); font-size: 19px; max-width: 32em; }

/* ---------- Hero: the transformation is the page ---------- */
.hero { position: relative; }
.pin { --pos: 50%; height: 100svh; min-height: 620px; display: flex; flex-direction: column; padding-top: calc(54px + var(--safe-t)); }
.tf { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; outline-offset: -4px; }
.lay { position: absolute; inset: 0; }
.lay .ph { position: absolute; inset: 0; }
.lay .ph img { object-position: 50% 18%; pointer-events: none; -webkit-user-drag: none; }
.lay .ph::before { position: absolute; top: 34%; width: 50%; right: 0; }
.lay-b { overflow: hidden; transform: translate3d(calc(var(--pos) - 100%), 0, 0); will-change: transform; }
.lay-b .in { position: absolute; inset: 0; transform: translate3d(calc(100% - var(--pos)), 0, 0); will-change: transform; }
.lay-b .ph { background: var(--bg-3); }
.lay-b .ph::before { right: auto; left: 0; }
.tf::after { content: ""; position: absolute; z-index: 1; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.tf-line { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.tf-line::after {
  content: ""; position: absolute; top: 40%; left: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5); transition: transform .5s var(--spring-b);
}
.tf.drag .tf-line::after { transform: scale(.88); }

/* The two numbers sit in the same strip and get wiped by the divider */
.num {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 4px; padding: 0 20px; pointer-events: none;
  font-size: clamp(84px, 25vw, 150px); font-weight: 800; letter-spacing: -.065em; line-height: .82; font-variant-numeric: tabular-nums;
}
.num small { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0; line-height: 1; color: var(--text); -webkit-text-stroke: 0; }
.num sup { font-size: .42em; vertical-align: top; position: relative; top: .1em; margin-left: .06em; letter-spacing: 0; }
.num-b { clip-path: inset(-10% calc(100% - var(--pos)) -10% 0); color: transparent; -webkit-text-stroke: 1.5px rgba(243, 241, 236, .8); }
.num-a { clip-path: inset(-10% 0 -10% var(--pos)); text-align: right; color: var(--accent); }

.hero-copy { position: relative; z-index: 4; padding: 14px 20px calc(14px + var(--safe-b)); }
.hero-copy h1 { font-size: clamp(31px, 8.4vw, 64px); letter-spacing: -.045em; line-height: 1; }
.hero-copy p { margin-top: 10px; color: var(--text-2); font-size: 16px; line-height: 1.4; max-width: 30em; }
.hero-cta { display: flex; flex-direction: column; margin-top: 14px; }
.textlink { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: var(--text-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }

/* Desktop: copy and photo share the same centred column as the nav, so nothing hangs off to one side */
@media (min-width: 900px) {
  .pin {
    max-width: 1120px; margin: 0 auto; height: auto; min-height: min(100svh, 900px); padding: calc(54px + var(--safe-t) + 32px) 32px 40px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  }
  .tf { order: 2; height: min(74svh, 680px); min-height: 440px; border-radius: var(--r-l); }
  .hero-copy { order: 1; padding: 0; }
  .hero-copy p { font-size: 19px; margin-top: 20px; }
  .hero-cta { flex-direction: row; align-items: center; gap: 22px; margin-top: 30px; }
  .num { padding: 0 22px; bottom: 14px; font-size: min(124px, 11.4vw); }
  .tf::after { height: 34%; }
}

/* ---------- One year, itemised ---------- */
.year { display: grid; gap: 48px; align-items: start; }
.year h2 { font-size: clamp(36px, 8.6vw, 76px); letter-spacing: -.045em; }
.year-txt p { margin-top: 18px; font-size: 19px; color: var(--text-2); max-width: 30em; }
.year-txt p strong { color: var(--text); font-weight: 650; }
.year > *, .how > *, .dash > *, .lock-grid > *, .tills > * { min-width: 0; }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 30px; max-width: 460px; }
.strip .ph { aspect-ratio: 3 / 4; border-radius: 10px; }
.strip .ph::before { font-size: 10px; padding: 4px; }
@media (min-width: 900px) { .year { grid-template-columns: 1fr 360px; gap: 80px; } .year .printer { margin-top: 30px; } }

/* ---------- Which one are you? (question 1 of the quiz) ---------- */
.picks { margin-top: 30px; border-top: 1px solid var(--line-2); }
.pick {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 6px 10px; align-items: baseline; padding: 22px 6px;
  border-bottom: 1px solid var(--line-2); text-decoration: none; transition: background-color .25s, color .25s, padding .6s var(--spring);
}
.pick .k { font: 600 13px var(--mono); color: var(--accent); }
.pick .t { font-size: clamp(27px, 7.2vw, 58px); font-weight: 750; letter-spacing: -.04em; line-height: 1.02; }
.pick .d { grid-column: 2; font-size: 16px; color: var(--text-2); max-width: 34em; }
.pick .go { grid-row: 1; grid-column: 3; font-size: clamp(22px, 5vw, 42px); line-height: 1; transition: transform .6s var(--spring-b); }
.pick:active { background: var(--accent); color: var(--accent-ink); }
.pick:active .k, .pick:active .d { color: var(--accent-ink); }
@media (hover: hover) {
  .pick:hover { background: var(--accent); color: var(--accent-ink); padding-left: 18px; padding-right: 18px; }
  .pick:hover .k, .pick:hover .d { color: var(--accent-ink); }
  .pick:hover .go { transform: translateX(6px); }
}

/* ---------- How it works: messages from me ---------- */
.how { display: grid; gap: 36px; }
@media (min-width: 900px) { .how { grid-template-columns: 1fr 440px; gap: 80px; align-items: start; } .how-txt { position: sticky; top: 110px; } }

/* ---------- Lock it in ---------- */
.lock h2 { font-size: clamp(38px, 9vw, 92px); letter-spacing: -.05em; line-height: .98; max-width: 12em; }
.lock-grid { display: grid; gap: 28px; margin-top: 44px; }
.lock-graph svg { width: 100%; height: auto; overflow: visible; }
.js .lock-graph[data-inview] .ln { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .lock-graph.in .ln { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease) .2s; }
.js .lock-graph.in .ln.reb { transition-delay: .5s; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 13px; color: var(--text-3); }
.legend i { display: inline-block; width: 18px; height: 3px; margin-right: 8px; vertical-align: middle; border-radius: 3px; background: var(--accent); }
.legend i.reb { height: 0; background: none; border-top: 2px dashed var(--text-3); }
.lock-txt h3 { font-size: 26px; }
.lock-txt p { margin-top: 12px; color: var(--text-2); font-size: 18px; }
.also { display: grid; gap: 0; margin-top: 56px; }
.also > div { padding: 24px 0; border-top: 1px solid var(--line-2); }
.also p { margin-top: 8px; color: var(--text-2); max-width: 30em; }
@media (min-width: 900px) {
  .lock-grid { grid-template-columns: 1.4fr 1fr; gap: 72px; align-items: center; }
  .also { grid-template-columns: 1fr 1fr; gap: 72px; }
}

/* ---------- Pricing ---------- */
.tills { display: grid; gap: 44px; margin-top: 44px; }
.tills .printer { width: min(100%, 380px); }
@media (min-width: 860px) { .tills { grid-template-columns: 1fr 1fr; align-items: start; } }
.fine { margin-top: 36px; font-size: 14px; color: var(--text-3); max-width: 46em; }

/* ---------- What's included ---------- */
.cmp-wrap { border-top: 1px solid var(--line-2); margin-top: 28px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 14px 8px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp td:first-child, .cmp th:first-child { text-align: left; padding-left: 0; color: var(--text-2); font-weight: 450; line-height: 1.4; }
.cmp thead th { position: sticky; top: calc(54px + var(--safe-t)); z-index: 3; width: 84px; background: var(--bg); font-size: 14px; font-weight: 650; }
.cmp thead th:first-child { width: auto; }
.cmp thead th.hi { color: var(--accent); }
.cmp .grp td { padding: 30px 0 10px; text-align: left; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.cmp td.t { font-size: 13px; line-height: 1.35; color: var(--text-2); }
.cmp td.t.hi { color: var(--text); font-weight: 600; }
.y, .n { font-style: normal; }
.y::before { content: "✓"; font-weight: 700; font-size: 17px; color: var(--accent); }
.n::before { content: "✕"; font-size: 12px; color: var(--text-3); }
@media (min-width: 700px) { .cmp { font-size: 16px; } .cmp th, .cmp td { padding: 16px 20px; } .cmp thead th { width: 170px; } .cmp td.t { font-size: 14px; } }

/* ---------- Dashboard preview ---------- */
.dash { display: grid; gap: 36px; align-items: center; }
.seg-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
/* The dashboard is rendered at a real phone width (390px) and scaled to fit the frame, so it looks exactly like it does on a phone */
.phone { width: min(330px, 84vw); aspect-ratio: 390 / 800; margin: 0 auto; border-radius: 46px; padding: 8px; background: #1d1d20; border: 1px solid var(--line-2); }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 38px; background: var(--bg); }
.phone iframe { position: absolute; top: 0; left: 0; width: 390px; height: 800px; border: 0; transform-origin: 0 0; pointer-events: none; }
@media (min-width: 900px) { .dash { grid-template-columns: 1fr 400px; gap: 72px; } }

/* ---------- FAQ ---------- */
.faq-sec { display: grid; gap: 24px; }
.faq { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
  padding: 20px 2px; background: none; border: 0; font-size: 19px; font-weight: 620; letter-spacing: -.02em; cursor: pointer;
}
.faq-q::after { content: "+"; flex: none; font-size: 28px; font-weight: 300; line-height: 1; color: var(--text-2); transition: transform .6s var(--spring-b); }
.faq-q[aria-expanded="true"]::after { transform: rotate(135deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 40px 22px 2px; color: var(--text-2); }
@media (min-width: 900px) { .faq-sec { grid-template-columns: 300px 1fr; gap: 72px; } .faq-sec h2 { position: sticky; top: 110px; align-self: start; } }

/* ---------- Final CTA + footer ---------- */
.final { border-top: 1px solid var(--line-2); }
.final h2 { font-size: clamp(54px, 15vw, 176px); letter-spacing: -.065em; line-height: .86; }
.final-row { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; }
.final-row p { color: var(--text-2); font-size: 19px; max-width: 22em; }
@media (min-width: 800px) { .final-row { flex-direction: row; align-items: center; justify-content: space-between; } }
footer { border-top: 1px solid var(--line); padding: 44px 0 calc(120px + var(--safe-b)); font-size: 15px; color: var(--text-2); }
.foot { display: grid; gap: 26px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { text-decoration: none; color: var(--text-2); padding: 6px 0; }
.foot-links a:hover { color: var(--text); }
.legal { font-size: 13px; color: var(--text-3); max-width: 52em; }
@media (min-width: 800px) { footer { padding-bottom: 56px; } .foot { grid-template-columns: 1fr auto; } .legal { grid-column: 1 / -1; } }

/* ---------- Sticky mobile CTA ---------- */
.sticky { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); padding: 8px; border-radius: 999px; transform: translateY(170%); transition: transform .8s var(--spring); }
.sticky.show { transform: none; }
@media (min-width: 800px) { .sticky { display: none; } }

/* "What's included" lives under pricing, folded away until asked for */
.more { margin-top: 28px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.more .cmp-wrap { margin-top: 0; border-top: 0; }
.more .cmp thead th { position: static; }
.more .fine { margin: 18px 0 24px; padding: 0; }
