/* Cherry Top Management: recipe R5 Pink Pop, pushed to cherry red.
   Cormorant Garamond (headings) · DM Sans (body) · Anton (logo, numbers, week labels). */

:root {
  --bg: #F5F5F6;
  --card: #FFFFFF;
  --ink: #111111;
  --muted: #5F5F66;
  --line: #E2E2E6;
  --accent: #D6264F;        /* white text on it: 4.9:1 */
  --accent-hover: #C21F45;
  --accent-ink: #B81D40;    /* small accent text on light backgrounds: 6.4:1 on white */
  --accent-edge: #8F1532;
  --tint: #FFF1F4;
  --tint-border: #F5C3CF;

  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --logo: 'Anton', 'Bebas Neue', Impact, sans-serif;

  --radius: 20px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --gutter: max(20px, env(safe-area-inset-left));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--accent); color: #fff;
  font: 700 1rem/1 var(--body); text-decoration: none; letter-spacing: .01em;
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 3px 0 var(--accent-edge);
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 1.0625rem; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.link {
  font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-hover); }
  .btn--ghost:hover { background: var(--ink); color: #fff; }
  .link:hover { color: var(--accent-ink); }
  .nav a:hover { color: var(--accent-ink); }
  .foot a:hover { color: #fff; }
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 30px; height: 30px; margin-top: -4px; color: var(--ink); }
.logo__word { font: 400 1.5rem/1 var(--logo); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
@media (max-width: 399px) { .logo__word { font-size: 1.25rem; } .logo__mark { width: 26px; height: 26px; } .top__end { gap: 6px; } }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.top__end { display: flex; align-items: center; gap: 8px; }
.top__menu {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  background: transparent; box-shadow: inset 0 0 0 1.5px var(--line);
  font: 500 .9375rem/1 var(--body); color: var(--ink); cursor: pointer; touch-action: manipulation;
}
.nav {
  position: absolute; left: 12px; right: 12px; top: calc(100% + 8px);
  display: flex; flex-direction: column; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(17, 17, 17, .12);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center;
  visibility: hidden; pointer-events: none;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s 180ms;
}
.nav a { padding: 14px 16px; font-weight: 500; text-decoration: none; border-radius: 12px; }
.top.is-open .nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }

@media (min-width: 1024px) {
  .top__menu { display: none; }
  .nav {
    position: static; flex-direction: row; gap: 4px; padding: 0;
    background: none; border: 0; box-shadow: none;
    opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: none;
  }
  .nav a { padding: 10px 14px; font-size: .9375rem; }
  .top__row { min-height: 76px; }
}

/* Hero */
.hero { padding: 44px 0 64px; }
.hero__grid { display: grid; gap: 40px; }
.label {
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
}
.hero h1 {
  margin-top: 16px;
  font: 700 clamp(2.75rem, 6.4vw + .6rem, 5.75rem)/.95 var(--display);
  letter-spacing: -.015em;
}
.hero__lead { margin-top: 22px; max-width: 34em; font-size: 1.125rem; color: var(--muted); }
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }

.fit {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px 22px;
}
.fit__title { font: 700 2rem/1 var(--display); }
.fit__list { margin-top: 18px; }
.fit__list li {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start;
  padding: 11px 0; border-top: 1px solid var(--line); font-weight: 500;
}
.fit__list .is-yes + .is-no { margin-top: 10px; border-top: 2px solid var(--ink); }
.fit__list .is-no { color: var(--muted); font-weight: 400; }
.tick { position: relative; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; }
.is-yes .tick { background: var(--accent); }
.is-yes .tick::after {
  content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.is-no .tick { box-shadow: inset 0 0 0 1.5px #A6A6AD; }
.is-no .tick::before, .is-no .tick::after {
  content: ""; position: absolute; left: 6px; top: 11px; width: 12px; height: 2px; background: #8A8A92; border-radius: 2px;
  transform: rotate(45deg);
}
.is-no .tick::after { transform: rotate(-45deg); }
.fit__foot { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--tint); font-size: .9375rem; }
.fit__foot a { font-weight: 700; color: var(--accent-ink); text-underline-offset: 3px; }

@media (min-width: 960px) {
  .hero { padding: 72px 0 104px; }
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 64px; align-items: center; }
  .fit { padding: 32px 30px 28px; }
}
@media (min-width: 1440px) {
  .hero { padding-bottom: 72px; }
  .hero h1 { font-size: 6.5rem; }
}
@media (max-width: 539px) {
  .hero__actions .btn { width: 100%; }
}

/* One entrance on load */
.enter { animation: rise 600ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Sections */
.section { padding: 72px 0; }
.section--tint { background: var(--tint); }
.head { display: grid; gap: 14px; margin-bottom: 36px; }
.head h2 { font: 700 clamp(2.4rem, 3.6vw + 1rem, 3.75rem)/1 var(--display); letter-spacing: -.01em; }
.head p { color: var(--muted); max-width: 36em; }
.head a { color: var(--accent-ink); font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (min-width: 1024px) {
  .section { padding: 112px 0; }
  .head { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; margin-bottom: 52px; }
  .head p { justify-self: end; }
}

/* Services: one numbered stack in a single card */
.stack { background: var(--card); border: 1px solid var(--line); border-radius: 24px; }
.stack__list li {
  display: grid; grid-template-columns: 52px 1fr; gap: 6px 12px;
  padding: 24px 22px;
}
.stack__list li + li { border-top: 1px solid var(--line); }
.stack__no { grid-row: span 2; font: 400 1.75rem/1 var(--logo); color: var(--accent); }
.stack__list h3 { font-size: 1.1875rem; line-height: 1.3; }
.stack__list p { color: var(--muted); }
@media (min-width: 900px) {
  .stack__list li { grid-template-columns: 96px minmax(200px, 320px) 1fr; gap: 32px; padding: 30px 40px; align-items: baseline; }
  .stack__no { grid-row: auto; font-size: 2.25rem; }
  .stack__list h3 { font-size: 1.3125rem; }
}

/* First 30 days */
.weeks { display: grid; gap: 0; }
.week { padding: 24px 0 28px; border-top: 2px solid var(--ink); }
.week h3 { font: 700 1.75rem/1.05 var(--display); }
.week__no {
  display: block; margin-bottom: 8px;
  font: 400 1rem/1 var(--logo); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink);
}
.week .checks-list { margin-top: 16px; }
@media (min-width: 640px) {
  .weeks { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
@media (min-width: 1024px) {
  .weeks { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .week { padding: 26px 26px 8px; border-left: 1px solid var(--tint-border); }
  .week:first-child { padding-left: 0; border-left: 0; }
  .week:last-child { padding-right: 0; }
}

.checks-list li { position: relative; padding: 7px 0 7px 32px; }
.checks-list li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 20px; height: 20px;
  border-radius: 6px; background: var(--card); box-shadow: inset 0 0 0 2px var(--accent);
}
.checks-list li::after {
  content: ""; position: absolute; left: 7px; top: 13px; width: 5px; height: 10px;
  border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* The deal: a receipt */
.deal { display: grid; gap: 8px; }
.deal__head { margin-bottom: 28px; }
.deal__head .btn { justify-self: start; margin-top: 6px; }
.receipt {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 22px; box-shadow: 0 4px 0 var(--tint-border);
}
.receipt > div {
  display: grid; grid-template-columns: auto minmax(20px, 1fr) minmax(0, max-content); align-items: baseline; gap: 10px;
  padding: 16px 0;
}
.receipt > div + div { border-top: 1px dashed var(--line); }
.receipt > div::after { content: ""; order: 2; border-bottom: 2px dotted #C9C9CF; transform: translateY(-4px); }
.receipt dt { order: 1; color: var(--muted); }
.receipt dd { order: 3; font-weight: 700; text-align: right; }
.receipt > div:first-child dd { font: 400 1.75rem/1 var(--logo); color: var(--accent); }
@media (max-width: 479px) {
  .receipt > div { grid-template-columns: 1fr; gap: 2px; }
  .receipt > div::after { display: none; }
  .receipt dd { text-align: left; }
}
@media (min-width: 1024px) {
  .deal { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
  .deal__head { grid-template-columns: 1fr; align-items: start; margin-bottom: 0; }
  .deal__head p { justify-self: start; }
  .receipt { padding: 14px 36px; }
  .receipt > div { padding: 20px 0; }
}

/* FAQ, open */
.faq { display: grid; column-gap: 56px; }
.faq__item { padding: 22px 0; border-top: 1px solid var(--tint-border); }
.faq__item h3 { font-size: 1.125rem; line-height: 1.35; }
.faq__item p { margin-top: 8px; color: var(--muted); }
@media (min-width: 900px) {
  .faq { grid-template-columns: 1fr 1fr; }
  .faq__item { padding: 28px 0; }
}

/* Apply */
.apply__grid { display: grid; gap: 36px; }
.apply__intro h2 { font: 700 clamp(2.4rem, 3.6vw + 1rem, 3.75rem)/1 var(--display); }
.apply__lead { margin-top: 14px; color: var(--muted); }
.apply__intro .checks-list { margin-top: 22px; }
.apply__alt { margin-top: 22px; font-size: .9375rem; color: var(--muted); }
.apply__alt a { color: var(--accent-ink); font-weight: 700; overflow-wrap: anywhere; text-underline-offset: 3px; }

.form {
  background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--accent);
  border-radius: var(--radius); padding: 24px 20px;
}
.form__grid { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: .9375rem; font-weight: 700; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--body); color: var(--ink);
  background: #FBFBFC; border: 1.5px solid #D6D6DC; border-radius: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
textarea { resize: vertical; min-height: 96px; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 19px) 22px, calc(100% - 14px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--tint); background-color: #fff; }
[aria-invalid="true"] { border-color: var(--accent); background-color: var(--tint); }
.tel { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px; }

.consent { margin-top: 22px; display: grid; gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--accent); }
.check a { color: var(--accent-ink); font-weight: 700; }
.check.is-invalid span { color: var(--accent-ink); }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form__error {
  margin-top: 18px; padding: 12px 14px; border-radius: 12px;
  background: var(--tint); color: var(--accent-ink); font-weight: 700; font-size: .9375rem;
}
.form__submit { margin-top: 22px; display: grid; gap: 12px; }
.form__submit .btn { width: 100%; }
.form__submit p { font-size: .875rem; color: var(--muted); }

.form.is-sent > :not(.form__done) { display: none; }
.form__done { padding: 28px 4px; text-align: center; animation: pop 260ms var(--ease-out) both; }
.form__done svg { width: 54px; height: 54px; margin: 0 auto; color: var(--ink); }
.form__done h3 { margin-top: 14px; font: 700 2.25rem/1 var(--display); }
.form__done p { margin-top: 10px; color: var(--muted); }
.form__done:focus { outline: none; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

@media (min-width: 640px) {
  .form { padding: 32px; }
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
  .form__submit { grid-template-columns: auto 1fr; align-items: center; gap: 20px; }
  .form__submit .btn { width: auto; }
}
@media (min-width: 1024px) {
  .apply__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
  .apply__intro { position: sticky; top: 112px; }
  .form { padding: 40px; }
}

/* Footer */
.foot { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 64px 0 calc(32px + env(safe-area-inset-bottom)); }
.foot .logo { color: #fff; }
.foot .logo__mark { color: #fff; }
.foot__top { display: grid; gap: 40px; }
.foot__brand p { margin: 14px 0 20px; max-width: 26em; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.foot__cols div { display: grid; gap: 4px; align-content: start; min-width: 0; }
.foot__cols h2 { font: 700 .75rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 8px; }
.foot__cols a { padding: 6px 0; text-decoration: none; overflow-wrap: anywhere; }
.foot__cols .foot__contact { grid-column: 1 / -1; order: 3; }
.foot__legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .8125rem; color: rgba(255, 255, 255, .62); }
.foot__legal a { color: rgba(255, 255, 255, .85); }
@media (min-width: 1024px) {
  .foot { padding-top: 88px; }
  .foot__top { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px 64px; }
  .foot__cols { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 32px; }
  .foot__cols .foot__contact { grid-column: auto; order: 0; }
  .foot__cols a { overflow-wrap: normal; }
}

/* Legal pages and 404 */
.legal { padding: 56px 0 80px; }
.legal__body { max-width: 760px; }
.legal h1 { font: 700 clamp(2.6rem, 5vw + 1rem, 4rem)/1 var(--display); }
.legal .updated { margin-top: 10px; color: var(--muted); font-size: .9375rem; }
.legal h2 { margin-top: 36px; font-size: 1.1875rem; }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--accent-ink); font-weight: 700; }

.lost { min-height: 100svh; display: grid; place-content: center; justify-items: start; gap: 18px; padding: 40px var(--gutter); max-width: 640px; margin: 0 auto; }
.lost svg { width: 64px; height: 64px; color: var(--ink); }
.lost h1 { font: 700 clamp(3rem, 8vw, 5rem)/1 var(--display); }
.lost p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter { animation: fade 300ms ease both; animation-delay: 0s; }
  .form__done { animation: fade 200ms ease both; }
  .nav { transform: none !important; }
  .btn:active { transform: none; }
}
@keyframes fade { from { opacity: 0; } }

@media (min-width: 1024px) { :root { --gutter: max(40px, env(safe-area-inset-left)); } }
