/* moton landing v1 — tokens from design system v2 (artifact version 4) */
:root {
  --paper: #f6f5f2;
  --paper-2: #eceae5;
  --paper-3: #e2dfd9;
  --ink: #1f1c1b;
  --ink-soft: #66605c;
  --rose: #b3405b;
  --rose-press: #9c3550;
  --on-rose: #ffffff;
  --field-pink: #f2c4ce;
  --field-cream: #efe6d8;
  --focus: #1f1c1b;
  --font-sans: "Archivo", system-ui, "Segoe UI", sans-serif;
  --margin: 24px;
  --gap-section: clamp(120px, 14vw, 200px);
  --step-small: 14px;
  --step-body: 18px;
  --step-lead: 24px;
  --step-head: clamp(34px, 1.3rem + 3vw, 56px);
  --step-name: clamp(120px, 15vw, 240px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, dl, figure { margin: 0; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* the split: a still stage on the left, the reading column on the right */
.split { display: grid; grid-template-columns: 47% 1fr; position: relative; }
.stage { position: sticky; top: var(--margin); height: calc(100svh - 2 * var(--margin)); margin: var(--margin) 0 var(--margin) var(--margin); background: var(--paper-2); }
.stage model-viewer { width: 100%; height: 100%; --poster-color: transparent; background: transparent; }
.stage__fallback { position: absolute; inset: 72px 24px auto; display: none; }
model-viewer:not(:defined) + .stage__fallback { display: block; }
.stage__label { position: absolute; left: 24px; top: 20px; font-size: var(--step-lead); transition: opacity .25s var(--ease); }
.stage__caption { position: absolute; left: 24px; bottom: 18px; right: 24px; font-size: var(--step-small); color: var(--ink-soft); }
.stage__caption .cap-short { display: none; }
.stage.is-swapping .stage__label { animation: label-in .35s var(--ease); }
@keyframes label-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.column { padding: 0 var(--margin) 0 64px; min-width: 0; }

/* first screen */
.hero { min-height: 100svh; display: flex; flex-direction: column; padding-top: 32px; position: relative; }
.nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 24px; font-size: var(--step-small); }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav__action { font-weight: 600; }
.hero__body { margin-top: 8svh; max-width: 36rem; }
.hero h1 { font-size: var(--step-head); line-height: 1; letter-spacing: -.02em; font-weight: 400; }
.lead { font-size: var(--step-lead); line-height: 1.3; margin-top: 32px; max-width: 26ch; }
.picker { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; }
.picker button { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-size: var(--step-body); color: var(--ink-soft); cursor: pointer; transition: color .15s var(--ease); }
.picker button:hover { color: var(--ink); }
.picker button[aria-selected="true"] { color: var(--ink); font-weight: 600; }

.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 40px; }
.cell { display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 0 24px; background: var(--paper-2); color: var(--ink); font-weight: 600; font-size: var(--step-body); text-decoration: none; text-align: center; transition: background-color .15s var(--ease), transform .12s var(--ease); }
.cell:hover { background: var(--paper-3); }
.cell:active { transform: translateY(1px) scale(.99); }
.cell--rose { background: var(--rose); color: var(--on-rose); }
.cell--rose:hover { background: var(--rose-press); }
.cell--ink { background: var(--ink); color: var(--paper); }
.cell--ink:hover { background: #3a3533; }

/* products */
.products { padding-bottom: 40px; }
.section-title { font-size: var(--step-head); line-height: 1; letter-spacing: -.02em; font-weight: 400; }
.products .section-title { margin-top: 120px; }
.product { min-height: 86svh; display: flex; flex-direction: column; justify-content: center; max-width: 30rem; padding: 64px 0; }
.product h3 { font-size: var(--step-head); line-height: 1; letter-spacing: -.02em; font-weight: 400; }
.product__line { margin-top: 24px; max-width: 34ch; }
.facts { margin-top: 32px; display: flex; flex-direction: column; gap: 8px; }
.facts div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 18px; background: var(--paper-2); }
.facts dt { color: var(--ink-soft); flex: none; }
.facts dd { margin: 0; text-align: right; }
.product__foot { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.product__price { font-size: var(--step-lead); }
.product__view { min-height: 44px; padding: 0 20px; border: 0; background: var(--paper-2); font: 600 var(--step-body)/1 var(--font-sans); color: var(--ink); cursor: pointer; transition: background-color .15s var(--ease); }
.product__view:hover { background: var(--paper-3); }

/* anti-ant: full width, breaks the split */
.moat { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; padding: var(--gap-section) var(--margin) 0; }
.moat__text { max-width: 34rem; }
.moat__text p { margin-top: 24px; max-width: 46ch; }
.moat__figure { background: var(--paper-2); padding: 48px; }
.moat__figure svg { display: block; width: 100%; height: auto; }
figcaption { margin-top: 16px; font-size: var(--step-small); color: var(--ink-soft); }

/* order: a full field of the top's pink, the steps on a slip */
.order { margin-top: var(--gap-section); background: var(--field-pink); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 120px var(--margin); align-items: start; }
.order__text { grid-column: 1 / 6; }
.order__text p { margin-top: 24px; max-width: 34ch; }
.slip { grid-column: 7 / 12; background: var(--paper); padding: 32px 32px 56px; font-size: var(--step-body); font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 95% 100%, 90% calc(100% - 12px), 85% 100%, 80% calc(100% - 12px), 75% 100%, 70% calc(100% - 12px), 65% 100%, 60% calc(100% - 12px), 55% 100%, 50% calc(100% - 12px), 45% 100%, 40% calc(100% - 12px), 35% 100%, 30% calc(100% - 12px), 25% 100%, 20% calc(100% - 12px), 15% 100%, 10% calc(100% - 12px), 5% 100%, 0 calc(100% - 12px)); }
.slip h3 { font-size: var(--step-body); font-weight: 600; margin: 28px 0 8px; }
.slip h3:first-child { margin-top: 0; }
.slip__row { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; }
.slip__row span:first-child { flex: none; max-width: 70%; }
.slip__row::after { content: ""; order: 1; flex: 1; min-width: 16px; height: 0; border-bottom: 4px dotted var(--ink-soft); align-self: center; }
.slip__row span:last-child { order: 2; }
.slip__total { display: flex; justify-content: space-between; align-items: center; margin: 28px -32px 0; padding: 0 32px; min-height: 44px; background: var(--ink); color: var(--paper); font-weight: 600; }

/* prices like a menu */
.prices { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: var(--gap-section) var(--margin) 0; }
.prices .section-title { grid-column: 1 / 4; }
.prices__list { grid-column: 5 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.prices h3 { font-size: var(--step-lead); font-weight: 600; margin-top: 48px; }
.prices h3:first-child { margin-top: 0; }
.prices ul { list-style: none; padding: 0; margin-top: 16px; display: flex; flex-direction: column; gap: 22px; }
.prices li { display: flex; justify-content: space-between; gap: 24px; font-size: var(--step-body); }
.prices small { display: block; font-size: var(--step-small); color: var(--ink-soft); max-width: 36ch; }
.prices__note { grid-column: 5 / 13; font-size: var(--step-small); color: var(--ink-soft); }

/* questions beside the parts */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; padding: var(--gap-section) var(--margin) 0; align-items: start; }
.faq__facts { list-style: none; padding: 0; margin-top: 32px; display: flex; flex-direction: column; gap: 6px; }
.faq__list { margin-top: 40px; }
.faq details + details { margin-top: 20px; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; font-size: var(--step-lead); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin-top: 8px; color: var(--ink-soft); max-width: 46ch; }
.faq__figure { background: var(--paper-2); padding: 64px 80px; }
.faq__figure svg { display: block; width: 100%; max-height: 72svh; height: auto; }

/* contact, then the name at full width */
.contact { padding: 120px var(--margin) 0; overflow: hidden; }
.contact .section-title { max-width: 14ch; }
.contact__cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 40px; }
.cell--block { min-height: 96px; flex-direction: column; gap: 2px; font-size: var(--step-lead); }
.cell__small { font-size: var(--step-small); font-weight: 400; color: var(--ink-soft); }
.contact__small { margin-top: 16px; font-size: var(--step-small); color: var(--ink-soft); }
.name { font-size: var(--step-name); line-height: .9; letter-spacing: -.04em; margin: 64px 0 0 -0.04em; padding-bottom: 24px; transform-origin: left bottom; }
/* the name crosses from the stage into the column along the foot of the first screen */
.hero__name { position: absolute; bottom: 32px; right: 0; z-index: 2; margin: 0; font-size: clamp(150px, 17vw, 280px); line-height: .8; letter-spacing: -.04em; white-space: nowrap; pointer-events: none; transform-origin: right bottom; }
@supports (animation-timeline: scroll()) {
  .hero__name { animation: name-settle linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
  @keyframes name-settle { from { scale: 1; } to { scale: .93; } }
}

/* motion: entrances (content stays visible without script) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  .name { animation: name-grow linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  @keyframes name-grow { from { scale: .94; } to { scale: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .name, .hero__name, .stage.is-swapping .stage__label { animation: none; }
}

/* phone: the stage rides on top, the column scrolls under it */
@media (max-width: 860px) {
  :root { --margin: 16px; }
  .split { grid-template-columns: 1fr; }
  .stage { position: relative; top: 0; height: 56svh; margin: 0; }
  .stage__label { left: 16px; top: 12px; }
  .stage__caption { left: 16px; bottom: 10px; font-size: 12px; }
  .stage__caption .cap-long { display: none; }
  .stage__caption .cap-short { display: inline; }
  .column { padding: 0 16px; }
  .hero { min-height: auto; padding-top: 0; }
  .nav { position: absolute; top: 60px; right: 16px; z-index: 3; gap: 16px; } /* below the picker bar */
  .nav a:not(.nav__action) { display: none; }
  /* hero__body dissolves so the picker can sit right under the stage (order) while the rest keeps its place */
  .hero__body { display: contents; }
  .hero h1 { margin-top: 32px; }
  .lead { margin-top: 20px; }
  .hero__name { position: static; order: -1; font-size: 25vw; margin: 12px 0 0 -0.04em; }
  .picker { order: -2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 0 -16px; }
  .picker button { min-height: 48px; padding: 0 4px; background: var(--paper-2); font-size: 16px; }
  .picker button:hover { background: var(--paper-3); }
  .picker button[aria-selected="true"], .picker button[aria-selected="true"]:hover { background: var(--ink); color: var(--paper); }
  .picker button:focus-visible { outline-offset: -4px; }
  .cells { grid-template-columns: 1fr; }
  .cell { min-height: 56px; }
  .product { min-height: 54svh; padding: 48px 0; }
  .products .section-title { margin-top: 120px; }
  .moat, .faq { grid-template-columns: 1fr; gap: 32px; }
  .moat__text, .faq__text, .order__text, .prices .section-title, .contact .section-title { padding-left: 0; }
  .moat__figure { padding: 24px; }
  .order { grid-template-columns: 1fr; padding: 80px 16px; }
  .order__text, .slip { grid-column: 1; }
  .prices { grid-template-columns: 1fr; }
  .prices .section-title, .prices__list, .prices__note { grid-column: 1; }
  .prices__list { grid-template-columns: 1fr; gap: 40px; }
  .faq__figure { margin-top: 0; padding: 32px; }
  .contact__cells { grid-template-columns: 1fr; }
  .cell--block { min-height: 64px; }
  .name { font-size: 27vw; }
}
