/* Magic. A resort-town website for shopkeepers: one big photograph up top,
   a postcard for the letter, then a white page, slate ink, one turquoise,
   one pool blue and a roll of 35mm film.
   Type: Noto Serif Display for the masthead (condensed) and headlines,
   Libre Caslon Text for everything you read or tap, Mr Dafoe for signatures. */

:root {
  --text-xs: 0.875rem;    /* 14 */
  --text-sm: 0.9375rem;   /* 15 */
  --text-base: 1.0625rem; /* 17 */
  --text-lg: 1.1875rem;   /* 19 */
  --text-h3: 1.625rem;    /* 26 */
  --text-h2: clamp(1.875rem, 0.6rem + 6.5vw, 3.375rem); /* 30 to 54 */
  --text-h1: clamp(2.75rem, 1.35rem + 5.6vw, 5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --color-bg: #ffffff;
  --color-ivory: #faf9f6;
  --color-surface: #ffffff;
  --color-surface-offset: #f3f1eb;
  --color-surface-deep: #14202a;
  --color-text: #1b2630;
  --color-text-muted: #55606b;
  --color-text-inverse: #ffffff;
  --color-line: rgba(27, 38, 48, 0.14);
  --color-line-strong: rgba(27, 38, 48, 0.3);
  --color-primary: #00b8a9;
  --color-primary-hover: #00a598;
  --color-primary-soft: #dff5f2;
  --color-primary-type: #00a396; /* the same turquoise, a touch deeper, for the big masthead letters on white */
  --color-on-primary: #0e1c24;
  --color-accent-text: #00766c;
  --color-pool: #1e88e5;
  --color-pool-soft: #dcecfb;
  --color-film: #16181a;
  --color-film-print: #f2a33a;
  --color-error: #b3261e;

  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 3px;
  --radius-xl: 4px;
  --radius-full: 9999px;
  --radius-btn: 10px;     /* buttons are softer than the cards and photographs */
  --radius-box: 14px;     /* the box a button sits inside */

  --shadow-sm: 0 1px 2px rgba(20, 32, 42, 0.1);
  --shadow-md: 0 1px 2px rgba(20, 32, 42, 0.06), 0 6px 18px rgba(20, 32, 42, 0.07);
  --shadow-lg: 0 2px 4px rgba(20, 32, 42, 0.06), 0 18px 44px -14px rgba(20, 32, 42, 0.2);

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-display: 'Noto Serif Display', 'Bodoni 72', Didot, Georgia, serif;
  --font-body: 'Libre Caslon Text', 'Iowan Old Style', Palatino, Georgia, serif;
  --font-script: 'Mr Dafoe', 'Snell Roundhand', 'Brush Script MT', cursive;
  --font-plain: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --wide: 1200px;
  --gutter: clamp(var(--space-5), 5vw, var(--space-12));
  --bar: 68px;
  --band: clamp(var(--space-16), 9vw, 7.5rem);
}
@media (max-width: 520px) { :root { --text-h3: 1.375rem; } }

body { line-height: 1.7; font-feature-settings: 'lnum' 1; }
body[data-route]:not([data-route='home']) { --color-bg: var(--color-ivory); }
a { color: inherit; }
:focus-visible { outline-color: var(--color-text); }

.wrap { width: 100%; max-width: calc(var(--wide) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: var(--space-2); background: var(--color-text); color: var(--color-text-inverse); padding: var(--space-2) var(--space-4); z-index: 100; border-radius: var(--radius-sm); }
.skip:focus { left: var(--space-2); }

h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.012em; line-height: 1.08; }
h1 { font-size: var(--text-h2); }
h2 { font-size: var(--text-h2); }
h3 { font-family: var(--font-display); font-size: var(--text-h3); font-weight: 500; letter-spacing: -0.005em; line-height: 1.2; }
h1:focus { outline: none; }
.nw { white-space: nowrap; }

/* ---------- Button ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 56px; padding: 0 var(--space-6);
  border-radius: var(--radius-btn);
  background: var(--color-primary); color: var(--color-on-primary);
  font-weight: 700; font-size: var(--text-base); line-height: 1.2; white-space: nowrap; text-decoration: none;
  transition: background var(--transition-interactive), transform var(--transition-interactive);
}
.btn:hover { background: var(--color-primary-hover); }
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; transition: transform var(--transition-interactive); }
.btn:hover svg { transform: translateX(3px); }
.btn--small { min-height: 44px; padding: 0 var(--space-5); font-size: var(--text-sm); border-radius: 8px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: default; }

.link { color: var(--color-accent-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.link:hover { color: var(--color-text); }

/* ---------- Top bar ---------- */
.bar { position: sticky; top: 0; z-index: 30; background: var(--color-bg); border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.bar.is-stuck { border-bottom-color: var(--color-line); } /* taste-skill-ignore: the sticky bar needs an edge over white */
.bar__in { display: flex; align-items: center; gap: var(--space-8); height: var(--bar); }
.wordmark { font-family: var(--font-script); font-size: 2.25rem; line-height: 1; color: var(--color-pool); text-decoration: none; padding: 0.1em 0.2em 0.1em 0; }
.bar__links { display: none; gap: var(--space-8); margin-left: auto; }
.bar__links a { font-size: var(--text-sm); text-decoration: none; padding: var(--space-3) 0; color: var(--color-text); }
.bar__links a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--color-primary); text-decoration-thickness: 2px; }
.bar .btn { margin-left: auto; }
@media (min-width: 900px) { .bar__links { display: flex; } .bar__links + .btn { margin-left: 0; } }

.trail { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; font-size: var(--text-sm); color: var(--color-text-muted); }
.trail li { display: flex; align-items: center; gap: var(--space-3); max-width: none; }
.trail li + li::before { content: ''; width: 18px; height: 1px; background: var(--color-line-strong); }
.trail li.is-on { color: var(--color-text); font-weight: 700; }
body[data-route='status'] .trail { display: none; } /* an owner's status page is not a step in signing up */
.trail li.is-past { color: var(--color-accent-text); }
@media (max-width: 520px) { .trail li:not(.is-on) { display: none; } .trail li.is-on::before { display: none; } }

/* ---------- The ask: one box, one button ---------- */
.ask { width: 100%; max-width: 580px; }
.ask__box {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 5px 5px 5px var(--space-5);
  background: var(--color-surface);
  border: 2px solid var(--color-text);
  border-radius: var(--radius-box);
  transition: box-shadow var(--transition-interactive);
}
.ask__box:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(0, 184, 169, 0.35); }
.ask__box input { flex: 1; min-width: 0; height: 50px; border: 0; background: transparent; color: var(--color-text); caret-color: var(--color-text); font-size: 1.0625rem; outline: none; text-overflow: ellipsis; cursor: text; }
.ask__box input::placeholder { color: #6b7680; opacity: 1; }
.ask__box .btn { min-height: 50px; padding: 0 var(--space-5); border-radius: 8px; }
.ask__note { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); max-width: none; }
.ask__note.is-error { color: var(--color-error); font-weight: 700; }
@media (max-width: 620px) {
  .ask__box { flex-direction: column; align-items: stretch; gap: 0; padding: 5px; }
  .ask__box input { flex: none; height: 46px; padding: 0 var(--space-3); }
  .ask__box .btn { min-height: 50px; }
}

/* ---------- 35mm film: the frame every photograph sits in ---------- */
.film { margin: 0; }
.film__strip, .reel {
  position: relative; background: var(--color-film);
  --holes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='14'%3E%3Crect x='7' width='12' height='14' rx='2.5' fill='%23fff'/%3E%3C/svg%3E");
}
.film__strip { padding: 46px 16px; }
.film__strip::before, .film__strip::after, .reel::before, .reel::after { content: ''; position: absolute; left: 0; right: 0; height: 14px; background: var(--holes) 0 0 / 26px 14px repeat-x; }
.film__strip::before, .reel::before { top: 8px; }
.film__strip::after, .reel::after { bottom: 8px; }
.film__frame { position: relative; display: block; }
.film__frame img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.film__frame::before, .film__frame::after { position: absolute; font-family: var(--font-plain); font-weight: 600; font-size: 10px; line-height: 1; letter-spacing: 0.24em; color: var(--color-film-print); white-space: nowrap; }
.film__frame::before { content: attr(data-stock); content: attr(data-stock) / ''; left: 10px; top: -18px; }
.film__frame::after { content: '\25B8\00a0' attr(data-no); content: '\25B8\00a0' attr(data-no) / ''; right: 18%; bottom: -18px; }
.film figcaption { margin-top: var(--space-5); font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); max-width: none; }

/* ---------- Hero: one photograph, edge to edge, white type on top ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; min-height: clamp(680px, 100svh, 940px); margin-top: calc(var(--bar) * -1); padding-block: calc(var(--bar) + clamp(var(--space-8), 6.5vh, var(--space-16))) var(--space-16); background: #24505c; color: #fff; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg picture { display: block; width: 100%; height: 100%; }
.hero__bg img, .hero__vid { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
/* The same photograph, moving: steam, water and the ribbon on the hat. It fades in over the still once it can play. */
.hero__vid { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.hero__vid.is-on { opacity: 1; }
.hero__motion { position: absolute; right: var(--space-4); bottom: var(--space-4); z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(8, 26, 36, 0.42); color: #fff; opacity: 0.8; transition: opacity var(--transition-interactive), background var(--transition-interactive); }
.hero__motion:hover, .hero__motion:focus-visible { opacity: 1; background: rgba(8, 26, 36, 0.7); }
.hero__motion[hidden] { display: none; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 30, 44, 0.7) 0%, rgba(4, 34, 48, 0.52) 34%, rgba(4, 38, 52, 0.34) 58%, rgba(4, 38, 52, 0.06) 78%, rgba(4, 38, 52, 0) 100%); }
.hero__in { container-type: inline-size; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mast { font-stretch: 62.5%; font-variation-settings: 'wdth' 62.5; font-weight: 700; text-transform: uppercase; color: #fff; font-size: min(11.3cqw, 148px); line-height: 0.92; letter-spacing: 0; white-space: nowrap; }
.mast span { display: inline-block; overflow: hidden; padding: 0.04em 0 0.14em; margin-bottom: -0.14em; vertical-align: top; }
.mast b { display: inline-block; font-weight: inherit; }
.hero__lead { margin-top: var(--space-5); font-size: clamp(1.125rem, 1rem + 0.55vw, 1.375rem); line-height: 1.6; max-width: 33em; text-shadow: 0 1px 14px rgba(8, 26, 36, 0.55); }
.hero .ask { margin-top: var(--space-8); }
.hero .ask__box { border-color: #fff; box-shadow: 0 18px 44px -14px rgba(8, 26, 36, 0.55); text-align: left; }
.hero .ask__box:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55), 0 18px 44px -14px rgba(8, 26, 36, 0.55); }
.hero .ask__note { color: #fff; font-weight: 700; text-shadow: 0 1px 10px rgba(8, 26, 36, 0.7); }
.hero .ask__note.is-error { color: #fff; background: var(--color-error); display: inline-block; padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm); text-shadow: none; }
@media (max-width: 699px) {
  .hero { min-height: max(100svh, 760px); }
  .hero__bg img, .hero__vid { object-position: 43% 100%; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(8, 26, 36, 0.76) 0%, rgba(8, 26, 36, 0.6) 45%, rgba(8, 26, 36, 0.4) 64%, rgba(8, 26, 36, 0.04) 82%, rgba(8, 26, 36, 0) 100%); }
  .mast { font-size: 21cqw; line-height: 0.9; }
  .mast span { display: block; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .mast b { transform: translateY(108%); animation: mastUp 0.95s cubic-bezier(0.2, 0.7, 0.1, 1) 0.08s forwards; }
  .js .mast span + span b { animation-delay: 0.2s; }
  .js .hero__lead, .js .hero .ask { opacity: 0; animation: letterIn 0.9s var(--ease) 0.55s forwards; }
  .js .hero .ask { animation-delay: 0.7s; }
}
@keyframes mastUp { to { transform: none; } }
@keyframes letterIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Over the photograph the top bar is clear with white type; it turns white once you scroll. */
.bar { transition: background-color 0.25s, border-color 0.25s; }
.bar .wordmark, .bar__links a, .bar__menu { transition: color 0.25s; }
.js body:not([data-route]) .bar:not(.is-stuck), body[data-route='home'] .bar:not(.is-stuck) { background: transparent; }
.js body:not([data-route]) .bar:not(.is-stuck):not(.is-open) :is(.wordmark, .bar__links a, .bar__menu), body[data-route='home'] .bar:not(.is-stuck):not(.is-open) :is(.wordmark, .bar__links a, .bar__menu) { color: #fff; }

/* ---------- The letter: a postcard, picture side and written side ---------- */
.post { padding-block: var(--band); overflow: hidden; }
.post__in { display: grid; gap: var(--space-8); }
.post__front { margin: 0; min-width: 0; }
.post__front img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: clamp(8px, 1vw, 12px) solid #fff; box-shadow: var(--shadow-lg); rotate: 1.2deg; }
.post__front figcaption { margin-top: var(--space-5); font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); max-width: none; text-align: center; }
.pcard { position: relative; z-index: 1; display: grid; gap: var(--space-5); min-width: 0; padding: var(--space-6); background: #fffdf8; box-shadow: var(--shadow-lg); rotate: -0.8deg; }
.dear { font-family: var(--font-script); font-weight: 400; font-size: min(2.625rem, 12.3cqw); line-height: 1.1; letter-spacing: 0; color: var(--color-pool); padding: 0.1em 0.1em 0.1em 0; white-space: nowrap; }
.pcard__msg { container-type: inline-size; min-width: 0; }
.pcard__msg p { margin-top: var(--space-4); line-height: 1.7; max-width: 30em; }
.pcard__msg .pcard__sign { margin-top: var(--space-5); }
.pcard__sign span { display: inline-block; margin-left: 0.15em; font-family: var(--font-script); font-size: 2.75rem; line-height: 1; color: var(--color-pool); rotate: -4deg; vertical-align: -0.12em; padding: 0.05em 0.15em; }
.pcard__side { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-8); order: -1; }
.pcard__post { position: relative; display: flex; justify-content: flex-end; }
.pcard__stamp { position: relative; display: block; width: 90px; height: 108px; padding: 9px; background: #fff; filter: none;
  -webkit-mask: linear-gradient(#000 0 0) center / calc(100% - 9px) calc(100% - 9px) no-repeat, radial-gradient(circle at center, transparent 0 2.9px, #000 3.3px) -4.5px -4.5px / 9px 9px;
  mask: linear-gradient(#000 0 0) center / calc(100% - 9px) calc(100% - 9px) no-repeat, radial-gradient(circle at center, transparent 0 2.9px, #000 3.3px) -4.5px -4.5px / 9px 9px; }
.pcard__post { filter: drop-shadow(0 1px 2px rgba(20, 32, 42, 0.28)); }
.pcard__stamp img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.pcard__stamp b { position: absolute; left: 14px; bottom: 11px; font-family: var(--font-script); font-weight: 400; font-size: 1.125rem; line-height: 1; color: #fff; text-shadow: 0 1px 4px rgba(8, 26, 36, 0.6); }
.pcard__mark { position: absolute; right: 50px; top: 6px; z-index: 1; color: var(--color-text); opacity: 0.62; rotate: -9deg; font-family: var(--font-plain); font-weight: 600; }
.pcard__to { display: none; max-width: none; }
.pcard__to span { display: block; padding: var(--space-3) 0 var(--space-1); border-bottom: 1px solid var(--color-line-strong); font-size: 1rem; line-height: 1.4; }
@media (min-width: 700px) {
  .pcard { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0; padding: clamp(var(--space-8), 3vw, var(--space-10)); }
  .pcard__msg { padding-right: clamp(var(--space-6), 2.4vw, var(--space-8)); }
  .pcard__side { order: 0; padding-left: clamp(var(--space-6), 2.4vw, var(--space-8)); border-left: 1px solid var(--color-line-strong); }
  .pcard__to { display: block; }
}
@media (min-width: 1000px) {
  .post__in { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; align-items: start; }
  .post__front { grid-column: 6 / 13; grid-row: 1; }
  .post__front figcaption { text-align: right; }
  .pcard { grid-column: 1 / 8; grid-row: 1; margin-top: clamp(7rem, 12vw, 10.5rem); }
}

/* ---------- Why sell online: one photograph, one number, three reasons ---------- */
.why { padding-block: var(--band); background: var(--color-ivory); }
.why__top { display: grid; gap: var(--space-10); align-items: center; }
.why__n { margin-top: var(--space-8); font-family: var(--font-display); font-stretch: 62.5%; font-variation-settings: 'wdth' 62.5; font-weight: 500; font-size: clamp(5.5rem, 3.5rem + 7vw, 9rem); line-height: 0.85; color: var(--color-primary-type); }
.why__t { margin-top: var(--space-4); font-size: var(--text-lg); line-height: 1.6; max-width: 22em; }
.why__src { margin-top: var(--space-3); font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); }
.why__src a { color: var(--color-accent-text); font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
.why__photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-md); }
.reasons { display: grid; gap: var(--space-8); margin-top: clamp(var(--space-12), 6vw, var(--space-20)); }
.reasons li { max-width: none; padding-top: var(--space-5); border-top: 2px solid var(--color-text); }
.reasons p { margin-top: var(--space-3); max-width: 30em; }
@media (min-width: 900px) {
  .why__top { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-16); }
  .reasons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-10); }
}

/* The small order card used over the example store. */
.eg__row { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3); padding-right: var(--space-5); background: var(--color-ivory); border-radius: var(--radius-md); line-height: 1.45; }
.eg__row p { max-width: none; }
.eg__row img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius-sm); flex: none; background: var(--color-surface-offset); }
.eg__site { font-size: var(--text-xs); color: var(--color-text-muted); }
.eg__row--order .eg__site { color: var(--color-accent-text); font-weight: 700; }
.eg__title { font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; line-height: 1.2; }
.eg__meta { display: flex; flex-wrap: wrap; gap: 2px var(--space-3); margin-top: 2px; font-size: var(--text-sm); color: var(--color-text-muted); }
.eg__meta b { font-weight: 700; color: var(--color-text); }

/* ---------- Before and after ---------- */
.ba { padding-block: var(--band); }
.ba h2 { font-size: clamp(1.125rem, 5.9vw, 3.375rem); }
.ba h2 span { display: block; }
.ba__grid { display: grid; gap: var(--space-12); margin-top: clamp(var(--space-8), 4vw, var(--space-12)); }
.ba__col { display: grid; grid-template-rows: auto 1fr; gap: var(--space-4); min-width: 0; width: 100%; }
.ba__col figcaption { max-width: none; }
.ba__col figcaption b { display: block; font-family: var(--font-display); font-size: var(--text-h3); font-weight: 500; line-height: 1.2; }
.ba__card { position: relative; container-type: inline-size; min-width: 0; }
.ba__fascia { position: absolute; left: 53.4%; top: 10.6%; transform: translate(-50%, -50%); font-family: var(--font-display); font-weight: 600; font-size: 5cqw; letter-spacing: 0.05em; line-height: 1; color: #2c5f66; white-space: nowrap; opacity: 0.88; }
.ba__hours, .ba__order { position: absolute; right: var(--space-4); bottom: var(--space-4); }
.ba__card--shop .ba__hours { right: calc(16px + var(--space-4)); bottom: calc(46px + var(--space-4)); }
.ba__hours { display: grid; gap: 2px; min-width: min(272px, calc(100% - var(--space-16))); padding: var(--space-4) var(--space-5); background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-md); font-size: var(--text-sm); line-height: 1.5; }
.ba__hours p { display: flex; justify-content: space-between; gap: var(--space-5); max-width: none; color: var(--color-text-muted); }
.ba__hours .ba__hours-name { display: block; margin-bottom: var(--space-1); font-weight: 700; color: var(--color-text); }
.ba__hours .ba__closed { color: var(--color-text); font-weight: 700; }
.ba__card--store { aspect-ratio: 4 / 3; overflow: hidden; border: 2px solid var(--color-text); border-radius: var(--radius-md); background: var(--color-surface); }
.frame--ba { position: absolute; inset: 0; border: 0; border-radius: 0; box-shadow: none; }
.frame--ba .store__hero { min-height: 82cqw; align-items: start; }
.frame--ba .store__sec, .frame--ba .store__foot { display: none; }
.ba__order { z-index: 2; max-width: calc(100% - var(--space-8)); background: var(--color-surface); box-shadow: var(--shadow-lg); }
.ba__order p { max-width: none; }
.ba__order img { width: 72px; height: 72px; }
@media (prefers-reduced-motion: no-preference) {
  .js .ba__order { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease) 0.5s, transform 0.5s var(--ease) 0.5s; }
  .js .ba__grid.is-in .ba__order { opacity: 1; transform: none; }
}
@media (min-width: 860px) {
  .ba__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .ba__card--store { aspect-ratio: auto; }
}
@media (max-width: 520px) {
  .film__strip { padding-inline: 10px; }
  .ba__card--store { aspect-ratio: 10 / 11; }
  .ba__card--shop .ba__hours { position: static; margin-top: var(--space-2); border: 2px solid var(--color-text); box-shadow: none; }
  .ba__order { right: var(--space-3); bottom: var(--space-3); }
  .ba__hours { min-width: 0; padding: var(--space-3) var(--space-4); font-size: var(--text-xs); }
  .frame--ba .store__hero p, .frame--ba .store__cta { display: none; }
  .ba__order { max-width: calc(100% - var(--space-6)); gap: var(--space-3); padding-right: var(--space-4); }
  .ba__order img { width: 60px; height: 60px; }
}

/* ---------- How it works ---------- */
.how { padding-block: var(--band); background: var(--color-ivory); }
.how__top { display: grid; gap: var(--space-12); align-items: center; }
.how h2 span, .founder h2 span, .close h2 span { display: block; }
.how__lead { margin-top: var(--space-6); font-size: var(--text-lg); line-height: 1.75; max-width: 31em; }
.how__visual { display: grid; gap: var(--space-3); max-width: 440px; width: 100%; }
.how__cap { margin-top: var(--space-1); font-size: var(--text-sm); color: var(--color-text-muted); }
.chat { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); background: var(--color-surface); border: 2px solid var(--color-text); border-radius: var(--radius-md); }
.chat__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: var(--space-2); margin-bottom: var(--space-2); font-size: var(--text-xs); color: var(--color-text-muted); max-width: none; }
.chat__head span:first-child { font-family: var(--font-script); font-size: var(--text-h3); line-height: 1; color: var(--color-pool); }
.chat__b { max-width: 84%; padding: var(--space-3) var(--space-4); border-radius: 16px; font-size: var(--text-sm); line-height: 1.45; }
.chat__b--out { align-self: flex-end; background: var(--color-primary); color: var(--color-on-primary); border-bottom-right-radius: 3px; }
.chat__b--in { align-self: flex-start; background: var(--color-surface-offset); border-bottom-left-radius: 3px; }
.result { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3); padding-right: var(--space-5); background: var(--color-surface); border-radius: var(--radius-md); line-height: 1.45; }
.result img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius-sm); flex: none; }
.result__k { font-size: var(--text-xs); font-weight: 700; color: var(--color-accent-text); }
.result__v { font-weight: 700; }
.result__v span { font-weight: 400; color: var(--color-text-muted); margin-left: var(--space-2); }
@media (min-width: 940px) {
  .how__top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-16); }
  .how__visual { justify-self: end; }
}

/* Three plain steps under the lead. */
.steps { margin-top: var(--space-10); max-width: 31em; }
.steps li { max-width: none; padding-block: var(--space-5); border-top: 1px solid var(--color-line-strong); }
.steps li:last-child { padding-bottom: 0; }
.steps h3 { font-size: 1.375rem; }
.steps p { margin-top: var(--space-1); color: var(--color-text-muted); }

/* ---------- Pricing: three plans, the first one in turquoise ---------- */
.pricing { padding-block: var(--band); }
.pricing h2 span { display: block; }
.plans { display: grid; gap: var(--space-5); margin-top: clamp(var(--space-8), 4vw, var(--space-12)); }
.plan { display: flex; flex-direction: column; min-width: 0; padding: clamp(var(--space-6), 2.6vw, var(--space-10)); background: var(--color-surface); border: 2px solid var(--color-text); border-radius: var(--radius-md); }
.plan--free { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.plan h3 { font-size: var(--text-h3); }
.plan__price { margin-top: var(--space-5); font-size: var(--text-lg); line-height: 1; max-width: none; }
.plan__price b { font-family: var(--font-display); font-stretch: 62.5%; font-variation-settings: 'wdth' 62.5; font-weight: 500; font-size: clamp(4rem, 3rem + 2.6vw, 5.25rem); line-height: 0.9; letter-spacing: -0.01em; margin-right: 0.06em; }
.plan__pct { margin-top: var(--space-3); font-weight: 700; font-size: var(--text-lg); max-width: none; }
.plan__for { margin-top: var(--space-4); max-width: 24em; }
.plan ul { display: grid; gap: var(--space-3); margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--color-line-strong); }
.plan--free ul { border-top-color: rgba(14, 28, 36, 0.35); }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: var(--space-3); align-items: start; line-height: 1.45; max-width: none; }
.plan li svg { margin-top: 0.22em; color: var(--color-accent-text); }
.plan--free li svg { color: var(--color-on-primary); }
.plan__go { margin-top: auto; }
.plan ul { margin-bottom: var(--space-8); }
.plan--free .plan__go { background: var(--color-text); color: var(--color-text-inverse); }
.plan--free .plan__go:hover { background: #0d151b; }
.plans__note { margin-top: var(--space-8); font-size: var(--text-sm); color: var(--color-text-muted); max-width: 64ch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } .plan__for { min-height: 3.4em; } }

/* ---------- Founder ---------- */
.founder { padding-block: var(--band); }
.founder__in { display: grid; gap: var(--space-8); align-items: start; }
.founder__say { font-size: clamp(1.25rem, 1rem + 0.9vw, 1.625rem); line-height: 1.6; max-width: 31em; }
.founder__photo { float: left; width: clamp(96px, 12vw, 148px); height: auto; aspect-ratio: 1; object-fit: cover; margin: 0.35em var(--space-6) var(--space-2) 0; border-radius: var(--radius-md); }
.founder__regards { clear: both; margin-top: var(--space-8); }
.founder__script { font-family: var(--font-script); font-size: clamp(3.5rem, 2.6rem + 3vw, 5rem); line-height: 1; color: var(--color-pool); transform: rotate(-4deg); transform-origin: left bottom; margin-top: var(--space-2); padding: 0.1em 0.1em 0.15em 0; width: max-content; max-width: none; }
.founder__sig { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); align-items: baseline; }
.founder__sig strong { font-weight: 700; }
.founder__sig a { color: var(--color-accent-text); font-weight: 700; text-underline-offset: 3px; padding-block: var(--space-2); }
@media (min-width: 1100px) { .founder__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-12); } }

/* ---------- Questions: set as reading text, nothing to open ---------- */
.faq { padding-block: var(--band); background: var(--color-ivory); }
.qa { margin-top: clamp(var(--space-8), 4vw, var(--space-12)); columns: 2 340px; column-gap: clamp(var(--space-10), 6vw, var(--space-24)); }
.qa p { break-inside: avoid; max-width: 34em; padding-bottom: var(--space-10); }
.qa strong { display: block; margin-bottom: var(--space-2); font-family: var(--font-display); font-weight: 500; font-size: var(--text-h3); line-height: 1.2; text-wrap: balance; }

/* ---------- Close: the rest of the roll, then the box again ---------- */
.close { padding-bottom: var(--band); }
.reel { overflow: hidden; padding-block: 46px; }
.reel__track { display: flex; gap: 14px; width: max-content; }
.reel__track .film__frame { flex: none; width: clamp(210px, 25vw, 340px); }
@media (prefers-reduced-motion: no-preference) {
  .reel__track { animation: drift 70s linear infinite; }
}
@keyframes drift { to { transform: translateX(calc((-100% - 14px) / 3)); } }
.close__in { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: var(--band); }
.close__lead { margin-top: var(--space-4); font-size: var(--text-lg); }
.close .ask { margin-top: var(--space-8); text-align: left; }
.close .ask__note { text-align: center; }

/* ---------- Footer ---------- */
.foot { padding-block: var(--space-16) var(--space-10); background: var(--color-bg); }
.foot__in { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); text-align: center; }
.foot__name { font-family: var(--font-script); font-size: 3.5rem; line-height: 1; color: var(--color-pool); text-decoration: none; padding: 0.1em 0.2em; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--space-6); font-size: var(--text-sm); }
.foot__links a { text-decoration: none; padding-block: var(--space-3); }
.foot__links a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--color-primary); text-decoration-thickness: 2px; }
.foot__legal { font-size: var(--text-sm); color: var(--color-text-muted); max-width: none; }
body[data-route]:not([data-route='home']):not([data-route='legal']) .foot__links a[href^='#'] { display: none; }
body[data-route]:not([data-route='home']) .foot { padding-block: var(--space-8); }
body[data-route]:not([data-route='home']) .foot__name { font-size: 2.5rem; }

/* ---------- Phone menu ---------- */
.bar__menu { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-2); font-size: var(--text-sm); font-weight: 700; color: var(--color-text); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--color-primary); }
.bar .btn + .bar__menu { margin-left: calc(var(--space-4) * -1); }
.menu { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: var(--space-2) var(--gutter) var(--space-4); background: var(--color-bg); border-bottom: 1px solid var(--color-line); box-shadow: 0 18px 30px -18px rgba(20, 32, 42, 0.35); }
.menu a { display: flex; align-items: center; min-height: 56px; font-size: var(--text-lg); text-decoration: none; border-top: 1px solid var(--color-line); }
.menu a:first-child { border-top: 0; }
.bar.is-open { background: var(--color-bg) !important; }
@media (min-width: 900px) { .bar__menu, .menu { display: none; } }
@media (max-width: 899px) { .bar__in { gap: var(--space-4); } }
@media (max-width: 370px) { .wordmark { font-size: 1.875rem; } .bar .btn--small { padding-inline: var(--space-3); } }

/* ---------- Privacy, terms and the wrong-address page ---------- */
.legal { padding-block: clamp(var(--space-10), 6vw, var(--space-20)) var(--band); }
.legal__in { max-width: 44rem; }
.legal h1 { font-size: var(--text-h2); }
.legal__date { margin-top: var(--space-3); color: var(--color-text-muted); }
.legal h2 { margin-top: var(--space-12); font-size: var(--text-h3); line-height: 1.2; }
.legal p, .legal ul { margin-top: var(--space-4); }
.legal ul { padding-left: 1.2em; display: grid; gap: var(--space-2); }
.legal a { color: var(--color-accent-text); font-weight: 700; text-underline-offset: 3px; }
.legal .btn { margin-top: var(--space-8); color: var(--color-on-primary); }
.sign__fine a { color: var(--color-accent-text); font-weight: 700; text-underline-offset: 3px; }

/* ---------- Scroll reveal: content is never hidden without JS ---------- */
.js .rise { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .rise.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rise { transform: none; } }

/* ---------- View changes ---------- */
[data-view] { animation: viewIn 0.35s var(--ease); }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }

/* =====================================================================
   YOUR STORE: working, picking, building
   ===================================================================== */
.build, .pick { padding-block: clamp(var(--space-10), 6vw, var(--space-20)); }
.build__in, .pick__in { max-width: 760px; }
.build__for { margin-top: var(--space-2); color: var(--color-text-muted); font-size: var(--text-lg); overflow-wrap: anywhere; }
.ticks { margin-block: var(--space-8); display: grid; gap: var(--space-3); }
.ticks li { display: flex; align-items: center; gap: var(--space-3); color: var(--color-text-muted); transition: color 0.3s; }
.ticks__mark { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--color-line-strong); flex: none; transition: border-color 0.3s, background 0.3s; }
.ticks li.is-doing { color: var(--color-text); font-weight: 600; }
.ticks li.is-doing .ticks__mark { border-color: var(--color-primary); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.ticks li.is-done { color: var(--color-text); }
.ticks li.is-done .ticks__mark { background: var(--color-primary); border-color: var(--color-primary); }
.ticks li.is-done .ticks__mark::after { content: ''; position: absolute; left: 4px; top: 5px; width: 10px; height: 5px; border-left: 2px solid var(--color-on-primary); border-bottom: 2px solid var(--color-on-primary); transform: rotate(-45deg); }
@keyframes spin { to { transform: rotate(360deg); } }

.pick__lead { margin-top: var(--space-3); font-size: var(--text-lg); color: var(--color-text-muted); overflow-wrap: anywhere; }
.pick__list { margin-top: var(--space-8); display: grid; gap: var(--space-3); }
.pick__list li { max-width: none; }
.pick__item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-1) var(--space-5); width: 100%; padding: var(--space-5) var(--space-6); text-align: left; background: var(--color-surface); border: 1px solid var(--color-line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive); }
.pick__item:hover { border-color: var(--color-text); box-shadow: var(--shadow-md); }
.pick__name { font-size: var(--text-h3); font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; overflow-wrap: anywhere; }
.pick__where { grid-column: 1; color: var(--color-text-muted); }
.pick__site { grid-column: 1; font-size: var(--text-sm); color: var(--color-text-muted); overflow-wrap: anywhere; }
.pick__site.is-found { color: var(--color-accent-text); font-weight: 600; }
.pick__go { grid-column: 2; grid-row: 1 / span 3; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-5); border-radius: 8px; background: var(--color-primary); color: var(--color-on-primary); font-weight: 600; font-size: var(--text-sm); white-space: nowrap; }
.pick__item:hover .pick__go { background: var(--color-primary-hover); }
@media (max-width: 560px) { .pick__item { grid-template-columns: 1fr; padding: var(--space-5); } .pick__go { grid-column: 1; grid-row: auto; justify-content: center; margin-top: var(--space-3); min-height: 48px; } }
.pick__none { margin-top: var(--space-5); min-height: 48px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--color-line-strong); text-align: left; }
.pick__none:hover { text-decoration-color: currentColor; }
.pick__credit { margin-top: var(--space-8); font-size: var(--text-xs); color: var(--color-text-muted); }

.frame { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--color-line); margin-inline: auto; width: 100%; transition: max-width 0.45s var(--ease); }
.frame[data-size='phone'] { max-width: 400px; }
.frame__bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: var(--color-surface-offset); color: var(--color-text-muted); border-bottom: 1px solid var(--color-line); }
.frame__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgb(27 38 48 / 0.2); flex: none; }
.frame__bar span { margin-left: 10px; font-size: var(--text-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame__tag { margin-left: auto; font-size: 0.75rem; font-weight: 600; padding: 2px 10px; border-radius: var(--radius-full); background: var(--color-primary-soft); color: var(--color-accent-text); flex: none; }

.skel { background: linear-gradient(90deg, var(--color-surface-offset) 25%, #faf9f6 50%, var(--color-surface-offset) 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.ghost { padding: var(--space-5); display: grid; gap: var(--space-5); }
.ghost__hero { aspect-ratio: 16 / 6; }
.ghost__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.ghost__grid .skel { aspect-ratio: 1; }

/* ---------- The builder: controls on the left, live store on the right ---------- */
.ready { padding-block: clamp(var(--space-6), 3vw, var(--space-10)) var(--space-24); }
.ready__in { display: grid; align-items: start; }
.panel h1 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); }
.panel h2 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0; line-height: 1.3; color: var(--color-text-muted); }
.panel__lead { margin-top: var(--space-3); color: var(--color-text-muted); }

.report { margin-top: var(--space-6); padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); }
.found { margin-top: var(--space-3); display: grid; gap: var(--space-2); }
.found li { position: relative; padding-left: var(--space-8); line-height: 1.4; }
.found li::before { content: ''; position: absolute; left: 4px; top: 0.42em; width: 13px; height: 7px; border-left: 2px solid var(--color-accent-text); border-bottom: 2px solid var(--color-accent-text); transform: rotate(-45deg); }
.found li.is-todo { color: var(--color-text-muted); }
.found li.is-todo::before { left: 3px; top: 0.36em; width: 12px; height: 12px; border: 1.5px solid var(--color-line-strong); border-radius: 50%; transform: none; }
.report__why { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-line); font-weight: 600; line-height: 1.4; }

.ctl { margin-top: var(--space-8); display: grid; gap: var(--space-6); }
.ctl__set { border: 0; min-width: 0; }
.ctl__set legend, .field label, .tell label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-2); padding: 0; }
.ctl__set legend span { font-weight: 400; color: var(--color-text-muted); margin-left: var(--space-2); }

.field input, .tell input { width: 100%; height: 52px; padding: 0 var(--space-4); background: var(--color-surface); border: 1px solid var(--color-line-strong); border-radius: var(--radius-md); font-size: var(--text-base); }
.field input:focus, .tell input:focus { outline: none; border-color: var(--color-text); box-shadow: 0 0 0 4px rgb(27 38 48 / 0.1); }
.field input[aria-invalid='true'] { border-color: var(--color-error); }
.field__hint { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.field__opt { font-weight: 400; color: var(--color-text-muted); margin-left: var(--space-1); }
.field__err { margin-top: var(--space-2); font-size: var(--text-sm); font-weight: 600; color: var(--color-error); }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--color-surface-offset); border-radius: var(--radius-md); }
.seg button { min-height: 44px; border-radius: calc(var(--radius-md) - 3px); font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); }
.seg button:hover { color: var(--color-text); }
.seg button[aria-pressed='true'] { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-sm); }

.swatches { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.swatches button { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.12); }
.swatches button[aria-pressed='true'] { box-shadow: 0 0 0 3px var(--color-bg), 0 0 0 5px var(--color-text); }
.swatches button[aria-pressed='true']::after { content: ''; position: absolute; left: 14px; top: 15px; width: 15px; height: 8px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); }

.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.thumbs button { position: relative; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface-offset); border: 1px solid var(--color-line); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s, filter 0.2s; }
.thumbs button[aria-pressed='false'] img { opacity: 0.28; filter: grayscale(1); }
.thumbs button[aria-pressed='false']::after { content: 'Hidden'; position: absolute; inset: auto 0 0 0; padding: 3px 0; background: var(--color-text); color: #fff; font-size: 0.6875rem; font-weight: 600; text-align: center; }
.thumbs button:hover { border-color: var(--color-text); }

.opt { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; cursor: pointer; }
.opt input { width: 22px; height: 22px; accent-color: var(--color-accent-text); cursor: pointer; flex: none; }

.tell__row { display: flex; gap: var(--space-2); }
.tell__row input { flex: 1; min-width: 0; }
.tell__send { flex: none; min-height: 52px; padding: 0 var(--space-5); border-radius: var(--radius-btn); background: var(--color-text); color: var(--color-text-inverse); font-weight: 600; font-size: var(--text-sm); }
.tell__send:hover { background: #000; }
.tell__list { display: grid; gap: var(--space-2); }
.tell__list:not(:empty) { margin-top: var(--space-3); }
.tell__list li { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--space-3); padding: var(--space-3) var(--space-4); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); font-size: var(--text-sm); line-height: 1.4; max-width: none; }
.tell__said { overflow-wrap: anywhere; }
.tell__reply { grid-column: 1; color: var(--color-text-muted); }
.tell__reply.is-done { color: var(--color-accent-text); font-weight: 600; }
.tell__x { grid-column: 2; grid-row: 1 / span 2; align-self: start; min-width: 44px; min-height: 32px; font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted); text-decoration: underline; text-underline-offset: 3px; }
.tell__x:hover { color: var(--color-text); }

.panel > .btn { margin-top: var(--space-8); }
.panel__fine { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); }
.panel__back { display: inline-block; margin-top: var(--space-3); padding-block: var(--space-3); font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); text-underline-offset: 3px; }
.panel__back:hover { color: var(--color-text); }

.stagebox { min-width: 0; }
.toggle { display: inline-flex; padding: 4px; background: var(--color-surface-offset); border-radius: var(--radius-md); margin-bottom: var(--space-4); }
.toggle button { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4); border-radius: calc(var(--radius-md) - 3px); font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); }
.toggle button[aria-pressed='true'] { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-sm); }
.frame--live { display: flex; flex-direction: column; }
.frame--live .store { overflow-y: auto; overscroll-behavior: auto; }

/* Phones and tablets: the store stays in view at the top while you change things below it. */
@media (max-width: 999px) {
  .panel { display: contents; }
  .panel > * { order: 3; }
  .panel h1, .panel__lead { order: 1; }
  .stagebox { order: 2; position: sticky; top: var(--bar); z-index: 6; margin: var(--space-5) calc(var(--gutter) * -1) 0; padding: var(--space-3) var(--gutter); background: var(--color-bg); border-bottom: 1px solid var(--color-line); }
  .toggle { display: none; }
  .frame--live { box-shadow: var(--shadow-md); }
  .frame--live .store { max-height: 34dvh; }
  .ready .panel__back { justify-self: start; }
  .panel input, .panel textarea, .panel button { scroll-margin-top: calc(34dvh + 150px); scroll-margin-bottom: 110px; }
  .dock .btn { min-height: 50px; }
}
/* On phones the header scrolls away in the builder so the store gets the room. */
@supports selector(:has(a)) {
  @media (max-width: 999px) {
    body:has(.ready:not([hidden])) .bar { position: static; }
    body:has(.ready:not([hidden])) .stagebox { top: 0; }
  }
}
@media (min-width: 1000px) {
  .ready__in { grid-template-columns: 380px minmax(0, 1fr); gap: var(--space-12); }
  .stagebox { position: sticky; top: calc(var(--bar) + var(--space-5)); }
  .frame--live .store { max-height: calc(100dvh - var(--bar) - 160px); min-height: 420px; }
  .ready { padding-bottom: var(--space-16); }
}

.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--color-bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--color-line); transform: translateY(110%); transition: transform 0.3s var(--ease); }
.dock.is-up { transform: none; }
@media (min-width: 1000px) { .dock { display: none; } }

/* ---------- The store draft itself. Sized by its frame, not the window. ---------- */
.store { font-family: var(--font-plain); --s-accent: #1d1b19; --s-head: var(--font-display); --s-head-w: 500; --s-r: 4px; container-type: inline-size; background: #fff; color: #1d1b19; font-size: 15px; line-height: 1.45; }
.store:focus-visible { outline-offset: -3px; }
.store p { max-width: none; }
.store__note { background: var(--s-accent); color: #fff; text-align: center; font-size: 12.5px; padding: 8px 12px; letter-spacing: 0.02em; transition: background 0.25s; }
.store__head { display: flex; align-items: center; gap: 28px; padding: 16px 28px; border-bottom: 1px solid #ebe8e4; }
.store__brand { font-family: var(--s-head); font-weight: 600; font-size: 24px; letter-spacing: -0.015em; line-height: 1.1; margin-right: auto; overflow-wrap: anywhere; }
.store__brand img { max-height: 46px; max-width: 200px; width: auto; object-fit: contain; }
.store__nav { display: flex; gap: 24px; font-size: 14px; color: #55504b; }
.store__nav span { white-space: nowrap; }
.store__icons { display: flex; align-items: center; gap: 16px; }
.store__cart { position: relative; display: flex; }
.store__count { position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--s-accent); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; transform: scale(0); transition: transform 0.25s var(--ease); }
.store__count.is-on { transform: scale(1); }
.store__hero { position: relative; display: grid; align-items: end; min-height: 340px; padding: 36px 28px; background: #efebe6; overflow: hidden; transition: background 0.25s; }
.store__hero:not(.has-img) { min-height: 230px; align-items: center; }
.store__hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.store__hero.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 17, 14, 0.8), rgba(20, 17, 14, 0.34)); }
.store__hero-text { position: relative; z-index: 1; max-width: 560px; }
.store__hero.has-img .store__hero-text { color: #fff; }
.store__hero h2 { font-family: var(--s-head); font-weight: var(--s-head-w); font-size: 40px; letter-spacing: -0.02em; line-height: 1.05; overflow-wrap: anywhere; }
.store__hero p { margin-top: 10px; font-size: 16px; opacity: 0.92; overflow-wrap: anywhere; }
.store__cta { display: inline-block; margin-top: 18px; padding: 12px 24px; background: var(--s-accent); color: #fff; font-weight: 600; font-size: 14px; border-radius: var(--s-r); transition: background 0.25s; }
.store__hero.has-img .store__cta { background: #fff; color: var(--s-accent); }
.store__sec { padding: 36px 28px 44px; }
.store__sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.store__sec h3 { font-family: var(--s-head); font-weight: var(--s-head-w); font-size: 26px; letter-spacing: -0.015em; }
.store__sample { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #f3e9d2; color: #6b4e0f; white-space: nowrap; }
.store__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.store__grid[data-cols='3'] { grid-template-columns: repeat(3, 1fr); }
.store__empty { grid-column: 1 / -1; color: #8a8580; }
.card { display: flex; flex-direction: column; }
.card__img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f4f1ed; border-radius: var(--s-r); }
.card__t { margin-top: 10px; font-size: 14.5px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__p { margin-top: 3px; margin-bottom: 10px; font-size: 14px; color: #55504b; }
.card__p.is-open { color: #8a8580; }
.card__add { margin-top: auto; width: 100%; min-height: 40px; border: 1px solid var(--s-accent); border-radius: var(--s-r); font-size: 13.5px; font-weight: 600; color: var(--s-accent); transition: background 0.18s, color 0.18s, border-color 0.25s; }
.card__add:hover, .card__add.is-added { background: var(--s-accent); color: #fff; }
.store__foot { padding: 28px; background: #f7f5f2; border-top: 1px solid #ebe8e4; display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 13.5px; color: #55504b; }
.store__foot b { color: #1d1b19; font-weight: 600; }

/* Look: Modern. Plain type, round buttons, more air. */
.store[data-look='modern'] { --s-head: var(--font-plain); --s-head-w: 600; --s-r: 12px; }
.store[data-look='modern'] .store__hero h2, .store[data-look='modern'] .store__sec h3, .store[data-look='modern'] .store__brand { letter-spacing: -0.03em; }
.store[data-look='modern'] .store__hero:not(.has-img) { background: #f3f3f1; }
.store[data-look='modern'] .store__cta, .store[data-look='modern'] .card__add { border-radius: 999px; }
.store[data-look='modern'] .card__add { background: var(--s-accent); color: #fff; }
.store[data-look='modern'] .card__add:hover { opacity: 0.86; }

/* Look: Bold. Your color fills the top of the page. */
.store[data-look='bold'] { --s-head: var(--font-plain); --s-head-w: 600; --s-r: 0px; }
.store[data-look='bold'] .store__hero { background: var(--s-accent); color: #fff; }
.store[data-look='bold'] .store__hero.has-img::after { background: color-mix(in oklab, var(--s-accent) 78%, transparent); }
.store[data-look='bold'] .store__hero h2 { font-size: 52px; letter-spacing: -0.035em; line-height: 0.98; }
.store[data-look='bold'] .store__cta, .store[data-look='bold'] .store__hero.has-img .store__cta { background: #fff; color: var(--s-accent); }
.store[data-look='bold'] .store__sec h3 { font-size: 30px; letter-spacing: -0.03em; }
.store[data-look='bold'] .card__add { background: var(--s-accent); color: #fff; }
.store[data-look='bold'] .card__add:hover { opacity: 0.86; }
.store[data-look='bold'] .store__foot { background: #1d1b19; color: rgba(255, 255, 255, 0.72); border-top: 0; }
.store[data-look='bold'] .store__foot b { color: #fff; }

@container (max-width: 640px) {
  .store__head { padding: 14px 16px; gap: 14px; }
  .store__nav { display: none; }
  .store__brand { font-size: 20px; }
  .store__brand img { max-height: 36px; max-width: 150px; }
  .store__hero { min-height: 260px; padding: 24px 16px; }
  .store__hero:not(.has-img) { min-height: 190px; }
  .store__hero h2 { font-size: 30px; }
  .store[data-look='bold'] .store__hero h2 { font-size: 36px; }
  .store__sec { padding: 28px 16px 32px; }
  .store__grid, .store__grid[data-cols='3'] { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .store__foot { padding: 22px 16px; }
}

/* =====================================================================
   AGREEMENT + DONE
   ===================================================================== */
.agree { padding-block: clamp(var(--space-8), 5vw, var(--space-16)) clamp(var(--space-16), 8vw, var(--space-24)); }
.agree__in { display: grid; gap: var(--space-12); align-items: start; }
.terms__lead { margin-top: var(--space-3); font-size: var(--text-lg); color: var(--color-text-muted); }
.price { margin-top: var(--space-8); padding: var(--space-6) var(--space-8); background: var(--color-primary-soft); border-radius: var(--radius-lg); }
.price__big { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); letter-spacing: -0.02em; line-height: 1.1; color: var(--color-on-primary); }
.price p + p { margin-top: var(--space-2); color: var(--color-on-primary); }
.price__more { font-weight: 600; }
@media (max-width: 520px) { .price { padding: var(--space-5); } .planopt { padding: var(--space-4); } }
.price__more .link { min-height: 0; padding-block: var(--space-2); font: inherit; font-weight: 700; color: var(--color-on-primary); text-decoration: underline; text-underline-offset: 3px; }
.price__more .link:hover { color: var(--color-accent-text); }
.planpick { display: grid; gap: var(--space-3); margin-top: var(--space-4); border: 0; min-width: 0; }
.planpick[hidden] { display: none; }
.planopt { display: grid; grid-template-columns: 24px 1fr; gap: 2px var(--space-3); align-items: start; padding: var(--space-4) var(--space-5); background: var(--color-surface); border: 2px solid transparent; border-radius: var(--radius-btn); cursor: pointer; line-height: 1.45; color: var(--color-text); }
.planopt:hover { border-color: var(--color-line-strong); }
.planopt:has(input:checked) { border-color: var(--color-text); }
.planopt:has(input:focus-visible) { outline: 3px solid var(--color-pool); outline-offset: 2px; }
.planopt input { grid-row: 1 / span 3; width: 22px; height: 22px; margin-top: 3px; accent-color: var(--color-accent-text); cursor: pointer; }
.planopt__name { font-weight: 700; font-size: var(--text-lg); }
.planopt__price { font-weight: 600; }
.planopt__what { color: var(--color-text-muted); font-size: var(--text-sm); }
.terms__list { margin-top: var(--space-8); }
.terms__list > div { display: grid; gap: var(--space-1); padding-block: var(--space-5); border-top: 1px solid var(--color-line-strong); }
.terms__list > div:last-child { border-bottom: 1px solid var(--color-line-strong); }
.terms__list dt { font-weight: 600; }
.terms__list dd { color: var(--color-text-muted); max-width: 60ch; }
@media (min-width: 720px) { .terms__list > div { grid-template-columns: 12rem 1fr; gap: var(--space-8); } }

.sign { background: var(--color-surface); border-radius: var(--radius-xl); padding: clamp(var(--space-6), 3vw, var(--space-8)); box-shadow: var(--shadow-md); display: grid; gap: var(--space-5); }
.sign h2 { font-size: 1.625rem; overflow-wrap: anywhere; }
.sign .field input { height: 56px; }
.check { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-3); align-items: start; padding: var(--space-4); background: var(--color-bg); border-radius: var(--radius-md); cursor: pointer; font-weight: 500; line-height: 1.4; }
.check input { width: 24px; height: 24px; margin-top: 1px; accent-color: var(--color-accent-text); cursor: pointer; }
.field--sig input { height: 64px; padding-top: 4px; font-family: var(--font-script); font-size: 1.875rem; line-height: 1; color: var(--color-pool); background: var(--color-ivory); border-radius: var(--radius-md); }
.sign__fine { text-align: center; font-size: var(--text-sm); color: var(--color-text-muted); max-width: none; margin-top: calc(var(--space-2) * -1); }
.sign .panel__back { margin-top: calc(var(--space-4) * -1); justify-self: center; }
.sign .field__err { margin-top: calc(var(--space-3) * -1); }
.sign .field .field__err { margin-top: var(--space-2); }
@media (min-width: 1000px) {
  .agree__in { grid-template-columns: minmax(0, 1fr) 400px; gap: var(--space-16); }
  .sign { position: sticky; top: calc(var(--bar) + var(--space-6)); }
}

.done { padding-block: clamp(var(--space-10), 6vw, var(--space-20)) clamp(var(--space-16), 8vw, var(--space-24)); }
.done__in { max-width: 720px; }
.done h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); }
.done__lead { margin-block: var(--space-5) var(--space-8); font-size: var(--text-lg); color: var(--color-text-muted); max-width: 44ch; }
.done__fallback { margin-top: var(--space-10); padding: var(--space-6); background: var(--color-surface-offset); border-radius: var(--radius-lg); }
.done__fallback a { color: var(--color-accent-text); font-weight: 600; text-underline-offset: 3px; }
.done__fallback pre { margin-block: var(--space-4) var(--space-2); padding: var(--space-4); background: var(--color-surface); border-radius: var(--radius-md); font-family: var(--font-body); font-size: var(--text-sm); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.done__copied { margin-left: var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); }
.next { margin-top: var(--space-12); }
.next h2 { font-size: 1.625rem; }
.next ul { margin-top: var(--space-5); }
.next li { padding-block: var(--space-4); border-top: 1px solid var(--color-line-strong); color: var(--color-text-muted); max-width: none; }
.next li:last-child { border-bottom: 1px solid var(--color-line-strong); }
.next li strong { color: var(--color-text); font-weight: 600; margin-right: var(--space-1); }
.done .panel__back { margin-top: var(--space-8); }
.done__track { margin-top: var(--space-8); color: var(--color-text-muted); max-width: 52ch; }
.done__track a, .st__meta a, .st__help a { color: var(--color-accent-text); font-weight: 700; text-underline-offset: 3px; }
.done .btn[hidden] { display: none; }

/* An owner's private page: where their store is, in four plain steps. */
.st__note { display: grid; gap: var(--space-4); justify-items: start; margin-bottom: var(--space-8); padding: var(--space-5) var(--space-6); background: var(--color-primary-soft); border-radius: var(--radius-btn); color: var(--color-on-primary); }
.st__note.is-warn { background: #fdecea; }
.st__note[hidden] { display: none; }
.st__note p { font-weight: 600; max-width: 52ch; }
.st__steps { margin-top: var(--space-10); }
.st__steps[hidden] { display: none; }
.st__steps li { position: relative; display: grid; gap: 2px; padding: var(--space-4) 0 var(--space-4) 44px; border-top: 1px solid var(--color-line-strong); color: var(--color-text-muted); max-width: none; }
.st__steps li:last-child { border-bottom: 1px solid var(--color-line-strong); }
.st__steps li::before { content: ''; position: absolute; left: 2px; top: calc(var(--space-4) + 2px); width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--color-line-strong); }
.st__steps strong { font-weight: 600; color: var(--color-text-muted); }
.st__steps li.is-done strong, .st__steps li.is-now strong { color: var(--color-text); }
.st__steps li.is-done::before { background: var(--color-primary); border-color: var(--color-primary); }
.st__steps li.is-done::after { content: ''; position: absolute; left: 9px; top: calc(var(--space-4) + 10px); width: 11px; height: 6px; border-left: 2px solid var(--color-on-primary); border-bottom: 2px solid var(--color-on-primary); transform: rotate(-45deg); }
.st__steps li.is-now::before { border-color: var(--color-text); box-shadow: inset 0 0 0 5px var(--color-surface), inset 0 0 0 12px var(--color-text); }
.st__steps li.is-now { color: var(--color-text); }
.st__meta { margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); color: var(--color-text-muted); max-width: none; }
.st__meta[hidden], .st__help[hidden] { display: none; }
.st__help { margin-top: var(--space-3); color: var(--color-text-muted); }

/* Short screens keep the footer at the bottom of the window. */
main { flex: 1 0 auto; }

.card__demo { margin: -8px 0 10px; font-size: 12px; word-spacing: 0.2em; color: #55504b; }
