/* The front page and the customization page, video-first on a light cream page (user, 2026-11-02): a hero trailer with one
   sentence and one button, a row of short clips swiped left and right (tap: full screen with sound), a short screen
   recording of how easy ordering is, the FAQ. The price appears only on the customization page (/yarat/). */

:root {
  --c-night: #150B0A;
  --c-night-2: #24120F;
  --c-night-3: #301915;
  --c-night-line: rgba(248, 239, 226, .16);
  --c-on-night: #F8EFE2;
  --c-on-night-muted: #D9C7B5;
  --font-ui: var(--font-body);
  --font-head: var(--font-body);
}

.page-body { background: var(--c-cream); color: var(--c-ink); font-family: var(--font-ui); }
.page-body { line-height: 1.6; letter-spacing: .005em; }
.page-body h1, .page-body h2, .page-body h3 { font-family: var(--font-head); color: var(--c-ink); font-weight: 700; letter-spacing: 0; line-height: 1.18; }
.site-top .lang-btn { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(21, 11, 10, .35); }
.hero :focus-visible, .viewer :focus-visible { outline-color: var(--c-gold); }
.btn-cta { min-height: 56px; padding: 12px 28px; font-size: 17px; font-weight: 600; letter-spacing: .01em; }

/* ---------- top bar over the hero ---------- */
.site-top {
  position: absolute; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
}
.site-top .logo img { height: 28px; width: auto; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--c-night-2); isolation: isolate; }
.hero::before { content: none; }   /* site.css's star dots belong to the old landing, not over the video */
.hero-poster img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-poster { position: absolute; inset: 0; z-index: -3; }
.hero-video { z-index: -2; opacity: 0; transition: opacity .4s; }
.hero-video.on { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(21, 11, 10, .45), rgba(21, 11, 10, 0) 22%, rgba(21, 11, 10, 0) 45%, rgba(21, 11, 10, .88) 92%);
}
/* the title, the button and the note in the middle (user, 2026-11-04: "center the hero section") */
.hero-ui {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 14px; justify-items: center; text-align: center;
  padding: 0 max(16px, env(safe-area-inset-right)) 30px max(16px, env(safe-area-inset-left));
}
/* the title on two lines (user, 2026-11-04: "2 lines not three"): no width cap, and the font never larger than the
   longer line allows: --hero-fit is that line's width in em, plus 2% (measured in Roboto 700: az "Şaxta baba uşağınızı"
   9.29, ru "вашего ребёнка по имени" 12.19; measure again if the title changes) */
.hero-ui { container-type: inline-size; }
.hero h1 { color: #fff; font-size: clamp(31px, 8.4vw, 64px); line-height: 1.16; text-wrap: balance; --hero-fit: 9.5; }
:lang(ru) .hero h1 { --hero-fit: 12.45; }
@supports (font-size: 1cqi) { .hero h1 { font-size: min(clamp(31px, 8.4vw, 64px), 100cqi / var(--hero-fit)); } }
.hero .btn-cta { width: 100%; max-width: 380px; }
.hero-note { font-size: 14px; color: var(--c-on-night-muted); }

.sound-btn {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 12px;
  border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, .5); background: rgba(21, 11, 10, .5);
  color: #fff; font: 700 14px var(--font-ui); cursor: pointer;
}
.sound-btn svg { width: 22px; height: 22px; }
.sound-btn[aria-pressed="true"] .sound-label { display: none; }
.hero-sound { right: max(16px, env(safe-area-inset-right)); top: calc(66px + env(safe-area-inset-top)); }

/* ---------- the row of shorts ---------- */
.shorts { padding: 36px 0 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 max(16px, env(safe-area-inset-left)); margin-bottom: 16px; }
.section-head h2, .how h2, .faq-wrap h2 { font-size: clamp(25px, 6.4vw, 38px); line-height: 1.18; }
.row-arrows { display: none; gap: 8px; }
.arrow-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-paper); color: var(--c-ink); font-size: 26px; line-height: 1; cursor: pointer; }
.row {
  list-style: none; margin: 0; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 0 max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); scroll-padding-inline: 16px; scrollbar-width: none;
}
.row::-webkit-scrollbar { display: none; }
.card { flex: 0 0 auto; width: 42vw; max-width: 240px; scroll-snap-align: start; }
.card-btn {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 18px; overflow: hidden;
  background: var(--c-night-2); cursor: pointer; color: #fff; text-align: left; isolation: isolate;
}
.card-btn img, .card-btn video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-btn video { opacity: 0; transition: opacity .3s; }
.card-btn video.on { opacity: 1; }
.card-btn::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(rgba(21, 11, 10, 0), rgba(21, 11, 10, .88)); z-index: 1; }
.card-cap { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; font: 600 15px/1.35 var(--font-ui); }

/* ---------- how it's made: the title on top, two ways (user, 2026-11-02, after Kling's "MCP / CLI" and "Canvas"
   sections): on a phone two pills above the recording, on a computer a list with a rail beside it ---------- */
.how { display: grid; gap: 18px; justify-items: center; text-align: center; padding: 44px max(16px, env(safe-area-inset-right)) 20px max(16px, env(safe-area-inset-left)); }
.how-body { display: grid; gap: 16px; justify-items: center; width: 100%; }
.how-side { display: grid; gap: 12px; justify-items: center; width: 100%; max-width: 440px; }
.how-side .btn-cta { display: none; }
.how-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%; padding: 4px; border: 1px solid var(--c-line); border-radius: var(--radius-pill); background: var(--c-paper); }
.how-opt {
  min-height: 48px; padding: 6px 10px; border: 0; border-radius: var(--radius-pill); background: none; cursor: pointer;
  color: var(--c-muted); font: 600 15px/1.2 var(--font-ui);
}
.how-opt b { font-weight: inherit; }
.how-opt span { display: none; }
.how-opt[aria-selected="true"] { background: var(--c-ink); color: #fff; }
.how-desc { min-height: 4.5em; font-size: 16px; line-height: 1.5; color: var(--c-muted); }
.how-screen {
  width: min(72vw, 300px); aspect-ratio: 390 / 844; border-radius: 40px; border: 10px solid #000; background: var(--c-night-2);
  overflow: hidden; box-shadow: 0 30px 60px rgba(42, 26, 23, .28);
}
.how-screen video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- FAQ and footer ---------- */
.faq-wrap { padding: 36px max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left)); max-width: 760px; margin: 0 auto; }
.faq-wrap .faq { margin-top: 18px; gap: 10px; }
.faq-wrap .faq summary { padding-block: 16px; }
/* the footer: dark like the hero, so the page opens and closes on the night scene */
.site-foot { background: var(--c-night); color: var(--c-on-night-muted); font-size: 16px; margin-top: 24px; }
.foot-inner {
  display: grid; gap: 40px; max-width: 1180px; margin: 0 auto;
  padding: 56px max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left));
}
.foot-brand { display: grid; gap: 18px; justify-items: start; }
.foot-logo img { height: 40px; width: auto; display: block; }
.foot-line { color: var(--c-on-night); font: 700 clamp(22px, 5.6vw, 30px)/1.25 var(--font-head); max-width: 20ch; text-wrap: balance; }
.foot-brand .btn-cta { width: 100%; max-width: 380px; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.foot-col:last-child { grid-column: 1 / -1; }
.page-body .foot-col h2 { color: var(--c-gold); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col a, .foot-lang { display: inline-block; padding-block: 9px; color: var(--c-on-night); text-decoration: none; }
.foot-lang { background: none; border: 0; padding-inline: 0; font: inherit; cursor: pointer; text-align: left; }
.foot-col a:hover, .foot-lang:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-foot :focus-visible { outline-color: var(--c-gold); }
.foot-bottom { border-top: 1px solid var(--c-night-line); }
.foot-bottom .copy {
  max-width: 1180px; margin: 0 auto; font-size: 14px;
  padding: 20px max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

/* ---------- full-screen viewer (a tapped short) ---------- */
.viewer { position: fixed; inset: 0; z-index: 80; background: #000; }
.viewer-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; }
.viewer-slide video { width: 100%; height: 100%; object-fit: contain; background: #000; }
@media (max-aspect-ratio: 10 / 16) { .viewer-slide video { object-fit: cover; } }
.viewer-ui {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 12px; justify-items: center; text-align: center;
  padding: 60px max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .75)); pointer-events: none;
}
.viewer-ui > * { pointer-events: auto; }
.viewer-ui p { font: 700 18px/1.25 var(--font-ui); color: #fff; max-width: 28ch; }
.viewer-ui .btn-cta { width: 100%; max-width: 380px; }
.viewer-close { position: absolute; z-index: 3; left: max(14px, env(safe-area-inset-left)); top: max(14px, env(safe-area-inset-top)); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .45); color: #fff; font-size: 22px; cursor: pointer; }
.viewer .sound-btn { right: max(14px, env(safe-area-inset-right)); top: max(14px, env(safe-area-inset-top)); }
.viewer-nav { display: none; }

/* ---------- wide screens ---------- */
@media (min-width: 900px) {
  .site-top { padding: 22px 32px; }
  .site-top .logo img { height: 32px; }
  /* dark at the top (the bar) and under the centred text, the scene clear between */
  .hero::after { background: linear-gradient(rgba(21, 11, 10, .4), rgba(21, 11, 10, 0) 22%, rgba(21, 11, 10, 0) 42%, rgba(21, 11, 10, .55) 70%, rgba(21, 11, 10, .88)); }
  .hero-ui { left: 0; right: 0; bottom: 80px; max-width: 760px; margin: 0 auto; padding: 0 32px; gap: 18px; }
  .hero .btn-cta { width: auto; }
  .hero-sound { top: auto; bottom: 84px; right: 32px; }
  .shorts, .how, .faq-wrap { max-width: 1180px; margin: 0 auto; }
  .section-head { padding: 0 32px; }
  .row-arrows { display: flex; }
  .row { padding: 0 32px 12px; scroll-padding-inline: 32px; }
  .card { width: 220px; }
  /* the two ways as a list with a rail, the browser window with the computer view beside them */
  .how { gap: 40px; padding: 72px 32px 40px; }
  .how-body { grid-template-columns: minmax(260px, 340px) auto; justify-content: center; align-items: center; gap: 56px; text-align: left; }
  .how-side { justify-items: start; gap: 28px; max-width: none; }
  .how-side .btn-cta { display: inline-flex; }
  .how-opts { grid-template-columns: none; gap: 0; padding: 0; border: 0; border-left: 2px solid var(--c-line); border-radius: 0; background: none; }
  .how-opt { display: grid; gap: 8px; margin-left: -2px; padding: 16px 0 16px 24px; border-left: 2px solid transparent; border-radius: 0; text-align: left; color: var(--c-muted); }
  .how-opt b { font: 700 21px/1.25 var(--font-head); opacity: .6; transition: opacity .2s; }
  .how-opt:hover b { opacity: 1; }
  .how-opt span { font: 400 16px/1.5 var(--font-ui); }
  .how-opt[aria-selected="true"] { background: none; color: var(--c-ink); border-left-color: var(--c-brand); }
  .how-opt[aria-selected="true"] b { opacity: 1; }
  .how-opt[aria-selected="true"] span { display: block; color: var(--c-muted); }
  .how-desc { display: none; }
  .how-screen { width: min(720px, 60vw); aspect-ratio: auto; border: 1px solid var(--c-line); border-radius: 14px; background: var(--c-paper); padding-top: 30px; position: relative; }
  .how-screen::before { content: ""; position: absolute; left: 14px; top: 11px; width: 9px; height: 9px; border-radius: 50%; background: #E0857C; box-shadow: 15px 0 0 #E8C36A, 30px 0 0 #8FC79A; }
  .how-screen video { height: auto; aspect-ratio: 1280 / 800; object-fit: cover; }
  .foot-inner { grid-template-columns: 1.3fr 2fr; gap: 64px; padding: 80px 32px 56px; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
  .foot-col:last-child { grid-column: auto; }
  .foot-brand .btn-cta { width: auto; }
  .foot-bottom .copy { padding: 22px 32px 28px; }
  .viewer-nav { display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(0, 0, 0, .45); color: #fff; font-size: 30px; cursor: pointer; }
  .viewer-nav[data-dir="-1"] { left: 24px; }
  .viewer-nav[data-dir="1"] { right: 24px; }
}

/* ---------- the customization page (/yarat/) ---------- */
.make-page { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(130px + env(safe-area-inset-bottom)); }
.make-top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: rgba(246, 238, 227, .94); border-bottom: 1px solid var(--c-line); backdrop-filter: blur(8px);
}
.make-top .logo img { height: 26px; width: auto; }
.back-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--c-ink); text-decoration: none; font-size: 26px; border: 1px solid var(--c-line); background: var(--c-paper); }
.make-layout { max-width: 1080px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); display: grid; gap: 18px; }
.make-form h1 { font-size: clamp(24px, 6.4vw, 32px); line-height: 1.18; margin-bottom: 4px; }

.make-child { display: grid; gap: 12px; padding: 16px 0; border-top: 1px solid var(--c-line); }
.make-child:first-of-type { border-top: 0; padding-top: 6px; }
.make-child-head { display: flex; justify-content: space-between; align-items: center; }
.make-child-head b { font: 700 19px var(--font-head); color: var(--c-ink); }
.make-name { font-size: 18px; min-height: 50px; padding-block: 10px; }
.make-gender .seg { padding: 4px; }
.make-gender .seg span { min-height: 42px; }
.make-label { display: block; font-weight: 700; font-size: 15px; color: var(--c-ink); }
.make-ages { display: grid; gap: 8px; }
/* all eight ages in one row (was two rows of large boxes, user 2026-11-02: "why ... so big?") */
.make-ages .chips { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.make-ages .chips span { min-height: 44px; font-size: 16px; border-radius: 12px; }
.make-ages .soon span { opacity: .4; border-style: dashed; }
.make-ages .soon input:checked + span { opacity: 1; }
.make-ages .hint { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.make-ages .hint .link-btn { min-height: 0; padding: 0; font-size: 14px; }
.make-photos { display: grid; gap: 8px; }
.make-photos .add { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; font-size: 15px; }
.make-photos .thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.make-photos .thumb .rm { width: 32px; height: 32px; right: 4px; top: 4px; font-size: 18px; }
.make-photos .thumb .extra { position: absolute; left: 4px; bottom: 4px; background: var(--c-brand); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-pill); }
.make-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin: 6px 0 2px; font-size: 15px; color: var(--c-muted); }
.make-lang .link-btn { min-height: 40px; }
.make-lang .hint { flex-basis: 100%; }
.make-add-child { justify-self: start; font-size: 16px; }
/* maximum personalization: one card under the children; open, it holds each child's letter, praise and wish, then
   the city and Santa's advice */
.make-extra { display: grid; gap: 14px; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: 16px; background: var(--c-paper); }
.make-extra-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; }
.make-extra-head > div { flex: 1 1 240px; }
.make-extra-head h2 { font-size: 19px; line-height: 1.25; margin: 0 0 2px; }
.make-extra-head .hint { margin: 0; }
.make-extra-head .btn { flex: none; }
.make-extra-body { display: grid; gap: 16px; }
.make-extra-child { display: grid; gap: 14px; padding-top: 14px; border-top: 1px solid var(--c-line); }
.make-extra-name { font: 700 17px var(--font-head); color: var(--c-ink); }
.make-letter, .make-ach, .make-wish, .make-city, .make-enc { display: grid; gap: 8px; }
.make-letter .seg span { min-height: 42px; font-size: 14px; padding-inline: 6px; }
.make-letter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.make-letter-ready { grid-template-columns: 56px 1fr; flex-basis: 100%; gap: 10px; }
.make-letter-ready img { width: 56px; height: 74px; }
.make-letter-ready .msg { margin: 0; }
.make-select { font-size: 15px; min-height: 48px; }
.make-extra .hint, .make-steps .make-ach .hint, .make-steps .make-city .hint { font-size: 14px; }
/* a dropdown that shows its whole line (praise, advice): the native list underneath, invisible */
.pick-field { display: grid; gap: 6px; }
.pick-label { font-size: 14px; font-weight: 600; color: var(--c-muted); }
.pick { position: relative; display: flex; align-items: center; min-height: 48px; padding: 10px 40px 10px 12px; border: 1.5px solid var(--c-line-strong); border-radius: 12px; background: #fff; }
.pick::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--c-ink); border-bottom: 2px solid var(--c-ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.pick-text { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--c-ink); }
.pick select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; font-size: 16px; cursor: pointer; }
.pick:focus-within { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.pick-quote { margin: 0; font-size: 14px; line-height: 1.4; color: var(--c-muted); }
/* short choices as pills (the wish, the city), long ones as lines (achievements, advice) */
.make-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.make-pills label { position: relative; }
.make-pills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.make-pills span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--c-line-strong); border-radius: var(--radius-pill); background: #fff; font-weight: 600; font-size: 15px; line-height: 1.2; color: var(--c-ink); text-align: center; }
.make-pills input:checked + span { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-brand); }
.make-pills input:focus-visible + span { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.make-lines { display: grid; gap: 8px; }
.make-line { position: relative; display: block; width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--c-line-strong); border-radius: 14px; background: #fff; color: var(--c-ink); font-size: 16px; line-height: 1.4; text-align: left; cursor: pointer; }
.make-line input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.make-line.on, .make-line:has(input:checked) { border-color: var(--c-brand); border-width: 2.5px; padding: 10px 13px; background: #fff7f2; }
.make-line:disabled { opacity: .45; cursor: not-allowed; }
.make-line:focus-visible, .make-line:has(input:focus-visible) { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.make-consent { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 14px 0 2px; border-top: 1px solid var(--c-line); cursor: pointer; font-size: 15px; }
.make-consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--c-brand); }
.make-legal { font-size: 14px; color: var(--c-muted); padding-left: 36px; display: flex; gap: 14px; }
.make-legal a { color: inherit; padding-block: 6px; }
#make-turnstile { margin-top: 8px; }
.make-more { display: inline-block; font-size: 14px; color: var(--c-muted); padding-block: 10px; }
.buybar .make-error { margin: 0 0 10px; font-size: 14px; padding: 10px 12px; }

/* the price summary: a bar fixed to the bottom on a phone, a card beside the form on a wide screen */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--c-paper); border-top: 1px solid var(--c-line);
  padding: 10px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-shadow: 0 -10px 30px rgba(42, 26, 23, .12);
}
.buy-row { display: flex; align-items: center; gap: 12px; }
.sum-toggle { flex: none; display: grid; text-align: left; background: none; border: 0; color: var(--c-ink); padding: 4px 6px 4px 0; cursor: pointer; min-height: 48px; }
.sum-toggle small { font-size: 13px; color: var(--c-muted); display: flex; align-items: center; gap: 4px; }
.sum-toggle b { font: 700 24px var(--font-head); }
.sum-toggle .chev { transition: transform .2s; display: inline-block; }
.sum-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.buy-row .btn { flex: 1; min-height: 54px; font-size: 17px; font-weight: 700; }
.sum-lines { display: none; gap: 6px; padding: 4px 0 12px; font-size: 15px; color: var(--c-muted); }
.sum-lines.open { display: grid; }
.sum-lines div { display: flex; justify-content: space-between; gap: 12px; }
.sum-note { font-size: 13px; color: var(--c-muted); margin-top: 8px; text-align: center; }
@media (min-width: 900px) {
  .make-page { padding-bottom: 48px; }
  .make-layout { grid-template-columns: minmax(0, 520px) 340px; justify-content: center; gap: 48px; align-items: start; padding-top: 28px; }
  .make-clip { grid-column: 1 / -1; }
  .buybar { position: sticky; top: 90px; left: auto; right: auto; bottom: auto; border: 1px solid var(--c-line); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); display: grid; gap: 12px; }
  .buy-row { flex-direction: column; align-items: stretch; }
  .sum-toggle { pointer-events: none; }
  .sum-toggle .chev { display: none; }
  .sum-lines { display: grid; padding: 0 0 4px; }
}

/* ---------- the customization page, one question per screen (?flow=steps) ---------- */
.make-steps .make-form { display: grid; gap: 14px; align-content: start; }
.make-progress { height: 4px; border-radius: 2px; background: var(--c-line); overflow: hidden; margin: 2px 0 8px; }
.make-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c-brand); transition: width .3s ease; }
.make-eyebrow { font-size: 14px; font-weight: 700; color: var(--c-muted); }
.page-body .make-q { font-size: clamp(26px, 7vw, 34px); line-height: 1.2; margin-bottom: 6px; outline: none; }
.make-steps .make-name { font-size: 20px; min-height: 56px; }
.make-steps .make-gender .seg { gap: 10px; padding: 0; background: none; }
.make-steps .make-gender .seg span { min-height: 64px; font-size: 18px; border: 1.5px solid var(--c-line-strong); border-radius: 16px; background: #fff; }
.make-steps .make-gender .seg input:checked + span { border-color: var(--c-brand); }
.make-steps .make-ages > .make-label { display: none; }
.make-steps .make-ages .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.make-steps .make-ages .chips span { min-height: 56px; font-size: 20px; border-radius: 14px; }
.make-steps .make-photos .add { min-height: 52px; font-size: 16px; }
.make-review { display: grid; gap: 14px; }
.rev-child { display: grid; padding: 4px 16px; border: 1px solid var(--c-line); border-radius: 16px; background: var(--c-paper); }
.rev-child .make-child-head { padding-top: 10px; }
.rev-row { display: grid; grid-template-columns: minmax(6.5em, auto) 1fr auto; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid var(--c-line); }
.rev-child > .rev-row:first-child, .rev-child > .make-child-head + .rev-row { border-top: 0; }
.rev-k { font-size: 15px; color: var(--c-muted); }
.rev-v { font-size: 16px; color: var(--c-ink); overflow-wrap: anywhere; white-space: pre-line; }
.rev-row .link-btn { min-height: 40px; font-size: 14px; }
.make-steps .make-consent { border-top: 0; padding-top: 4px; }
@media (min-width: 900px) {
  /* one column; the total and the button sit right under the question instead of in a card beside it */
  .make-steps.make-layout { grid-template-columns: minmax(0, 560px); }
  .make-steps .buybar { position: static; display: grid; gap: 8px; padding: 8px 0 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
  .make-steps .buy-row { flex-direction: row; align-items: center; }
  .make-steps .sum-toggle { pointer-events: auto; }
  .make-steps .sum-toggle .chev { display: inline-block; }
  .make-steps .sum-lines { display: none; }
  .make-steps .sum-lines.open { display: grid; }
}

/* the brand switcher's room on a phone, under the buttons fixed at the bottom (the chat, the forms' price bar) */
@media (max-width: 899px) {
  .has-brand-bar .chat-bottom { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
  .has-brand-bar .buybar { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .has-brand-bar.make-page:not(:has(.make-chat)) { padding-bottom: calc(180px + env(safe-area-inset-bottom)); }
  .has-brand-bar .hero-ui { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
/* ---------- /brands/ (the preview): the logo options side by side, as on the site ---------- */
.brands-main { max-width: 1180px; margin: 0 auto; padding: 20px max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left)); }
.brands-main h1 { font-size: clamp(26px, 6vw, 34px); margin-bottom: 6px; }
.brands-main > .hint { max-width: 60ch; margin-bottom: 18px; }
.brands-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .brands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .brands-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bc { display: grid; overflow: hidden; border: 1px solid var(--c-line); border-radius: 16px; background: var(--c-paper); }
.bc.on { border: 2px solid var(--c-brand); }
.bc h2 { display: flex; align-items: baseline; gap: 6px; margin: 0; padding: 12px 14px; font-size: 17px; }
.bc h2 small { margin-left: auto; font-size: 13px; color: var(--c-brand); }
.bc img { display: block; width: auto; max-width: 70%; }
.bc-light { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 62px; padding: 8px 14px; border-block: 1px solid var(--c-line); background: rgba(246, 238, 227, .94); }
.bc-btn { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--c-line); border-radius: 50%; background: var(--c-paper); color: var(--c-ink); font-size: 13px; font-weight: 700; }
.bc-dark { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 180px; padding: 14px; color: var(--c-on-night);
  background: linear-gradient(rgba(21, 11, 10, .5), rgba(21, 11, 10, .15) 40%, rgba(21, 11, 10, .85)), var(--c-night-2) url(/media/feed/hero_wide.webp) center / cover; }
.bc-dark p { margin: 0; max-width: 16ch; font: 700 22px/1.2 var(--font-head); }
.bc-foot { padding: 18px 14px; background: var(--c-night); }
.bc .btn { justify-self: start; margin: 12px 14px 14px; }

/* "Back to your order" (an order made in this browser in the last 4 days) */
.resume {
  min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: var(--radius-pill);
  background: var(--c-gold); color: var(--c-on-gold); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
  margin-left: auto; margin-right: 10px;
}
@media (max-width: 420px) { .resume { padding: 0 12px; font-size: 13px; } }
