/* Landing page (vellora.themivo.com/). Builds on the tokens, buttons, forms and header in site.css.
   Motion: one-off hero reveal (site.css), scroll-linked rise where animation-timeline is supported,
   and the story crossfade. All of it is off under prefers-reduced-motion. */

.page-landing { --r-lg: 32px; overflow-x: clip; }
.page-landing .site-footer { margin-top: clamp(72px, 10vw, 140px); }

.l-section { padding-top: clamp(80px, 11vw, 160px); }
.page-landing main p { text-wrap: pretty; }
.l-h2 { font-size: clamp(38px, 5.4vw, 68px); }
.l-head { max-width: 780px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.l-head .eyebrow { margin-bottom: 16px; }
.l-head--tight { margin-bottom: 0; }
.l-head__lead { margin-top: 20px; max-width: 60ch; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); }
.l-head__note { margin-top: 10px; max-width: 60ch; font-size: 14px; color: var(--muted); }

.l-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--oak);
  text-decoration-thickness: 2px; text-underline-offset: .3em;
}
.l-link::after { content: '→'; transition: transform .25s var(--ease); }
.l-link:hover::after { transform: translateX(3px); }
.l-inline { text-decoration-color: var(--oak); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.l-inline:hover { text-decoration-color: currentColor; }

.l-ticks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.l-ticks li { position: relative; padding-left: 30px; }
.l-ticks li::before {
  content: ''; position: absolute; left: 3px; top: .52em; width: 13px; height: 7px;
  border-left: 2px solid var(--oak); border-bottom: 2px solid var(--oak); transform: rotate(-45deg);
}
.l-ticks--ink li::before { border-color: var(--oak-ink); }

/* ------------------------------------------------------------------ hero */

.l-hero { padding-top: clamp(40px, 6vw, 88px); }
.l-hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.l-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  font-size: 14px; font-weight: 500;
}
.l-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--oak); box-shadow: 0 0 0 4px rgba(201, 165, 122, .25); }
.l-hero__title { margin-top: 26px; max-width: 13ch; font-size: clamp(50px, 8.6vw, 120px); line-height: .98; letter-spacing: -.04em; }
.l-hero__lead { margin-top: 26px; max-width: 58ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.l-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.l-hero__price { margin-top: 22px; font-size: 15px; color: var(--muted); }
.l-hero__price strong { color: var(--ink); font-weight: 600; }

.l-hero__stage { position: relative; margin-top: clamp(40px, 4.5vw, 60px); padding-bottom: clamp(40px, 6vw, 72px); }
.l-browser {
  margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); box-shadow: var(--shadow);
}
.l-browser__bar { display: flex; gap: 6px; align-items: center; height: 30px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.l-browser__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--stage); }
.l-browser img { width: 100%; height: auto; }
.l-hero__desk { width: min(100%, 1080px); margin-inline: auto; }

.l-phone {
  position: absolute; margin: 0; overflow: hidden;
  border: 6px solid var(--ink); border-radius: 30px; background: var(--ink);
  box-shadow: 0 30px 60px -28px rgba(16, 48, 46, .6);
}
.l-phone img { width: 100%; height: auto; border-radius: 24px; }
.l-hero__phone { width: clamp(108px, 17%, 220px); bottom: 0; }
.l-hero__phone--a { left: max(0px, calc(50% - 600px)); }
.l-hero__phone--b { right: max(0px, calc(50% - 600px)); bottom: clamp(-40px, -3vw, -12px); }

.l-points {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin-top: clamp(56px, 7vw, 96px); padding: 0; list-style: none;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.l-points li { display: grid; gap: 4px; padding: 26px clamp(16px, 2.4vw, 32px); color: var(--muted); }
.l-points li + li { border-left: 1px solid var(--line); }
.l-points__n { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 3.6vw, 46px); line-height: 1; letter-spacing: -.03em; color: var(--ink); }

/* --------------------------------------------------------------- presets */

.l-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.l-jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-weight: 500; font-size: 15px; text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.l-jump a:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

.l-presets { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.l-preset {
  --p-bg: var(--surface); --p-fg: var(--ink); --p-muted: var(--muted); --p-line: var(--line); --p-accent: var(--oak-ink);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 2.6vw, 36px) clamp(24px, 3.4vw, 48px);
  padding: clamp(20px, 3.4vw, 44px); border: 1px solid var(--p-line); border-radius: var(--r-lg);
  background: var(--p-bg); color: var(--p-fg); scroll-margin-top: calc(var(--header-h) + var(--header-top) + 16px);
}
.l-preset--sorrel { --p-bg: #F5EDE4; --p-fg: #2B211C; --p-muted: #6A564B; --p-line: rgba(43, 33, 28, .14); --p-accent: #9A4A2F; }
.l-preset--graphite { --p-bg: #0B0B0B; --p-fg: #EDEDEA; --p-muted: rgba(237, 237, 234, .74); --p-line: rgba(237, 237, 234, .16); --p-accent: #C8F031; }
.l-preset__info { grid-row: span 2; align-self: start; position: sticky; top: calc(var(--header-h) + var(--header-top) + 28px); }
.l-preset__info .eyebrow { color: var(--p-accent); }
.l-preset__name { margin-top: 10px; font-family: var(--display); font-weight: 300; font-size: clamp(46px, 5.2vw, 72px); line-height: 1; letter-spacing: -.035em; }
.l-preset--sorrel .l-preset__name { font-family: 'Instrument Serif', var(--display); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.l-preset--graphite .l-preset__name { font-family: 'Archivo', var(--body); font-weight: 800; font-stretch: 75%; letter-spacing: -.01em; }
.l-preset__mood { margin-top: 16px; color: var(--p-muted); max-width: 40ch; }
.l-facts { display: grid; margin: 24px 0 0; border-top: 1px solid var(--p-line); }
.l-facts > div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--p-line); }
.l-facts dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--p-muted); }
.l-facts dd { margin: 0; font-size: 15px; font-weight: 500; }
.l-swatches { display: inline-flex; gap: 6px; vertical-align: middle; }
.l-swatches span { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .35); }
.l-preset .l-browser { border-color: var(--p-line); box-shadow: 0 24px 60px -36px rgba(0, 0, 0, .5); }
.l-preset--graphite .l-browser { background: #1A1A1A; }
.l-preset--graphite .l-browser__bar span { background: #333; }
.l-preset__more { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); }
.l-preset__more img { aspect-ratio: 1425 / 820; object-fit: cover; object-position: top; }

.l-shot { margin: 0; }
.l-shot img { width: 100%; height: auto; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--stage); }
.l-preset .l-shot img { border-color: var(--p-line); }
.l-shot figcaption { margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--p-muted, var(--muted)); }

/* ----------------------------------------------------------------- story */

.l-story {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(28px, 5vw, 72px); border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink);
}
.l-story__eyebrow { color: var(--oak); margin-bottom: 16px; }
.l-story__copy > p:not(.eyebrow) { margin-top: 20px; color: rgba(243, 241, 236, .84); max-width: 50ch; }
.l-story .l-ticks { margin-top: 24px; color: rgba(243, 241, 236, .92); font-size: 16px; }
.l-story .l-link { margin-top: 20px; }

.l-loop { display: grid; gap: 14px; }
.l-loop__frames { display: grid; overflow: hidden; border-radius: var(--r); background: #E8E2D6; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6); }
.l-loop__frames img { grid-area: 1 / 1; width: 100%; height: auto; }
.l-loop__frames img + img { opacity: 0; }
.l-loop__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.l-loop__steps { display: flex; gap: 6px; flex: 1; max-width: 220px; }
.l-loop__steps span { position: relative; flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(243, 241, 236, .22); }
.l-loop__steps span::after { content: ''; position: absolute; inset: 0; background: var(--oak); transform: scaleX(0); transform-origin: left; }
.l-loop__steps span:first-child::after { transform: none; }
.l-loop__toggle {
  min-height: 40px; padding: 0 16px; border: 1px solid rgba(243, 241, 236, .4); border-radius: var(--r-pill);
  background: transparent; color: var(--on-ink); font-size: 14px; font-weight: 500; cursor: pointer;
}
.l-loop__toggle:hover { background: rgba(243, 241, 236, .1); }

@media (prefers-reduced-motion: no-preference) {
  .l-loop { --loop: 13.5s; }
  .l-loop__frames img { animation: l-fade var(--loop) linear infinite; }
  .l-loop__frames img:nth-child(2) { animation-delay: calc(var(--loop) / -3 * 2); }
  .l-loop__frames img:nth-child(3) { animation-delay: calc(var(--loop) / -3); }
  .l-loop__steps span::after { animation: l-fill var(--loop) linear infinite; }
  .l-loop__steps span:nth-child(2)::after { animation-delay: calc(var(--loop) / -3 * 2); }
  .l-loop__steps span:nth-child(3)::after { animation-delay: calc(var(--loop) / -3); }
  .l-loop.is-paused img, .l-loop.is-paused .l-loop__steps span::after { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .l-loop__frames img, .l-loop__steps span::after { animation: none !important; }
  .l-loop__bar { display: none; }
}
@keyframes l-fade { 0%, 29% { opacity: 1; } 33.3%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes l-fill { 0% { transform: scaleX(0); } 33.2% { transform: scaleX(1); } 33.3%, 100% { transform: scaleX(0); } }

/* ------------------------------------------------------------- quick buy */

.l-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.l-step .l-shot img { border-radius: var(--r); box-shadow: var(--shadow-sm); }
.l-step__n { margin-top: 20px; font-family: var(--display); font-weight: 300; font-size: 15px; letter-spacing: .08em; color: var(--oak-ink); }
.l-step__title { margin: 4px 0 6px; font-family: var(--display); font-weight: 300; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.02em; }
.l-step p.muted { max-width: 40ch; }

/* -------------------------------------------------------------- features */

.l-features { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(12px, 1.6vw, 20px); }
/* 1, 2 or 4 columns, so the four groups never leave one card alone on a row. */
@media (min-width: 640px) { .l-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .l-features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.l-fgroup { padding: clamp(22px, 2.4vw, 30px); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.l-fgroup__title { font-family: var(--display); font-weight: 300; font-size: 26px; letter-spacing: -.02em; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.l-flist { margin: 0; padding: 0; list-style: none; }
.l-flist li { display: grid; gap: 2px; padding: 14px 0; }
.l-flist li + li { border-top: 1px solid var(--line); }
.l-flist strong { font-weight: 600; font-size: 16px; line-height: 1.35; }
.l-flist span { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ------------------------------------------------------------ principles */

.l-principles { padding: clamp(28px, 5vw, 72px); border-radius: var(--r-lg); background: var(--stage); }
.l-pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; list-style: none; }
.l-pcard { padding: 24px; border-radius: var(--r); background: var(--surface); }
.l-pcard h3 { font-size: 18px; line-height: 1.3; margin-bottom: 10px; }
.l-pcard p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.l-principles__links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 24px; }

/* --------------------------------------------------------------- pricing */

.l-pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.l-price { padding: clamp(28px, 3.6vw, 48px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.l-price__label { font-weight: 600; }
.l-price__amount { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.l-price__value { font-family: var(--display); font-weight: 300; font-size: clamp(72px, 8vw, 104px); line-height: 1; letter-spacing: -.045em; }
.l-price__unit { font-size: 18px; color: var(--muted); }
.l-price .l-ticks { font-size: 16px; }
.l-price__cta { width: 100%; margin: 28px 0 14px; }

/* ------------------------------------------------------------------- faq */

.l-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.l-faq .l-head { position: sticky; top: calc(var(--header-h) + var(--header-top) + 28px); }
.l-faq .l-head .muted { margin-top: 16px; }
.l-faq__list { border-top: 1px solid var(--line-strong); }
.l-qa { border-bottom: 1px solid var(--line-strong); }
.l-qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 44px; padding: 22px 0; cursor: pointer; list-style: none;
  font-size: clamp(17px, 1.6vw, 19px); font-weight: 500; line-height: 1.4;
}
.l-qa summary::-webkit-details-marker { display: none; }
.l-qa summary::after {
  content: ''; flex: none; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform .3s var(--ease), background-color .2s var(--ease);
}
.l-qa summary:hover::after { background-color: var(--stage); }
.l-qa[open] summary::after { transform: rotate(45deg); }
.l-qa summary:focus-visible { outline-offset: 4px; }
.l-qa__a { padding: 0 52px 24px 0; color: var(--muted); max-width: 66ch; }

/* ---------------------------------------------------------------- notify */

.l-notify {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 72px);
  border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink);
}
.l-notify::before {
  content: ''; position: absolute; inset: auto -10% -60% -10%; height: 90%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(201, 165, 122, .22), transparent);
}
.l-notify > * { position: relative; }
.l-notify .l-h2 { max-width: 14ch; margin-inline: auto; }
.l-notify__lead { max-width: 46ch; margin: 18px auto 0; color: rgba(243, 241, 236, .84); }
.l-notify__panel { max-width: 520px; margin: 28px auto 0; color: var(--ink); text-align: left; }
.l-notify__form { display: flex; gap: 10px; max-width: 520px; margin: 32px auto 0; }
.l-notify__form .input { flex: 1; min-width: 0; border-radius: var(--r-pill); padding-inline: 22px; border-color: transparent; }
.l-notify__form .input:focus-visible { box-shadow: 0 0 0 3px rgba(201, 165, 122, .7); }
.l-notify__form .input[aria-invalid="true"] { box-shadow: 0 0 0 2px #F2A58F; border-color: transparent; }
.l-notify__error { justify-content: center; max-width: 520px; margin: 12px auto 0; color: #F6C0B1; }
.l-notify__error::before { background: #F6C0B1; color: var(--ink); }
.l-notify__status { min-height: 1.6em; margin-top: 12px; font-size: 15px; color: rgba(243, 241, 236, .9); }
.l-notify__status:empty { display: none; }
.l-notify.is-sent .l-notify__form, #notify-sent:target ~ .l-notify__form { display: none; }

/* ------------------------------------------------- scroll-linked motion */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .l-head, .l-preset, .l-story, .l-step, .l-fgroup, .l-pcard, .l-price, .l-qa, .l-notify {
      animation: l-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 32%;
    }
    .l-hero__phone { animation: l-drift linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .l-hero__phone--b { animation-name: l-drift-b; }
  }
}
@keyframes l-rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes l-drift { to { transform: translateY(-56px); } }
@keyframes l-drift-b { to { transform: translateY(-96px); } }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
  .l-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .l-preset { grid-template-columns: 1fr; }
  .l-preset__info { grid-row: auto; position: static; }
  .l-facts { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .l-story, .l-pricing, .l-faq { grid-template-columns: 1fr; }
  .l-faq .l-head { position: static; }
  /* Image on the left across all rows; the text sits in the middle rows, centered as one block. */
  .l-step { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: 28px; }
  .l-step .l-shot { grid-column: 1; grid-row: 1 / -1; }
  .l-step > :not(.l-shot) { grid-column: 2; }
  .l-step__n { grid-row: 2; margin-top: 0; }
  .l-step__title { grid-row: 3; }
  .l-step > p.muted { grid-row: 4; }
  .l-steps { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .l-hero__stage { padding-bottom: 56px; }
  .l-hero__phone { width: 30%; border-width: 4px; border-radius: 20px; }
  .l-hero__phone img { border-radius: 16px; }
  .l-hero__phone--a { left: -4px; bottom: 0; }
  .l-hero__phone--b { right: -4px; bottom: -24px; }
  .l-browser__bar { height: 22px; padding: 0 10px; }
  .l-browser__bar span { width: 7px; height: 7px; }
  .l-points { grid-template-columns: 1fr; }
  .l-points li { grid-template-columns: 96px 1fr; align-items: baseline; padding: 18px 4px; }
  .l-points li + li { border-left: 0; border-top: 1px solid var(--line); }
  .l-facts { grid-template-columns: 1fr; }
  .l-steps { gap: 40px; }
  .l-step { display: block; }
  .l-step__n { margin-top: 20px; }
  .l-pgrid { grid-template-columns: 1fr; }
  .l-notify__form { flex-direction: column; }
  .l-qa__a { padding-right: 0; }
}
@media (max-width: 420px) {
  .l-hero__actions .btn { width: 100%; }
  .l-hero__price .l-hero__soon { display: block; }
  .l-hero__price span[aria-hidden] { display: none; }
}
