/* AI Holiday Portraits: evergreen and gold, like the framed card layout (static/card.js). Dark is the default theme
   (theme.js); the light theme is warm cream with the same gold. Shop styles are at the end of this file. */
/* Fonts are self-hosted (SIL OFL, from Google Fonts; latin + latin-ext subsets) so text paints without waiting on another origin. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/static/fonts/fraunces-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/static/fonts/fraunces-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 500 700; font-display: swap; src: url("/static/fonts/fraunces-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 500 700; font-display: swap; src: url("/static/fonts/fraunces-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/static/fonts/familjen-grotesk-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/static/fonts/familjen-grotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --ink: #0e1f17;      /* dark of buttons and text on the accent color */
  --ink-2: #163126;    /* panels (the framed card's evergreen) */
  --ink-3: #1d3d30;
  --line: #2d5545;
  --cream: #f7f0dd;
  --muted: #a8bdb1;
  --text-2: #e6e3f0;
  --bg: #0e1f17;
  --text: var(--cream);
  --accent-text: #e2c06e;
  --accent: #c9a24a;   /* gold: buttons, prices, highlights (navy text on it) */
  --accent-2: #f0a8a0; /* focus rings, small marks (holly berry) */
  --accent-3: #e2c06e;
  --blush: #24463a;
  --sky: #f0a8a0;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Familjen Grotesk", "Helvetica Neue", sans-serif;
  --r: 22px;
  --shadow: 0 1px 2px rgba(60, 30, 30, .05), 0 12px 32px rgba(60, 30, 30, .08);
  --wrap: min(1180px, 100% - 40px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* No grey flash over buttons and choices on tap (mobile browsers' default); a picked choice already shows it's picked. */
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* film grain */
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--accent-text); text-underline-offset: 3px; }
@media (hover: hover) { a:hover { color: var(--text); } }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.05; margin: 0 0 .5em; }
h2 { font: 600 clamp(34px, 5vw, 60px)/.95 var(--display); letter-spacing: .5px; }
h3 { font: 600 20px/1.2 var(--sans); }
em { font-family: var(--serif); font-style: italic; font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 200; background: var(--accent); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  width: var(--wrap); margin: 0 auto; padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: relative; z-index: 5;
}
/* Computers: the bar stays at the top while the page scrolls, and the page scrolls as one (no sticky hero column:
   on the AI vocals site the card sliding under a still headline looked broken, 10-30). Phones have their fixed bar. */
@media (min-width: 961px) {
  html { scroll-padding-top: 80px; }
  /* body's overflow-x: hidden (with html's clip below) makes body its own scroll box, which never scrolls, so the bar
     would never stick; clip hides the same overflow without that (found on photopatternmaker, 10-31). */
  body { overflow-x: clip; }
  .site-header { position: sticky; top: 0; z-index: 45; width: auto; padding: 12px max(20px, (100% - 1480px) / 2); background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .lang-banner { position: relative; }
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 35%, transparent)); }
/* A long site name gives way (…) before the button does. */
.brand-word { font: 600 24px/1 var(--display); letter-spacing: .5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-word em { color: var(--accent-text); text-transform: none; font-size: 26px; margin-left: 2px; }
.site-nav { display: flex; flex: none; align-items: center; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
@media (hover: hover) { .site-nav a:hover { color: var(--text); } }
.site-nav .nav-cta { color: var(--ink); background: var(--accent); padding: 9px 16px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
@media (hover: hover) { .site-nav .nav-cta:hover { color: var(--ink); background: var(--cream); } }
@media (max-width: 860px) { .site-nav .nav-link { display: none; } }
@media (max-width: 480px) {
  .site-header { gap: 10px; }
  .brand-word { font-size: 20px; } .brand-word em { font-size: 22px; }
  .site-nav .nav-cta { padding: 8px 12px; font-size: 14px; }
}

/* ---------- hero ---------- */
.hero {
  width: var(--wrap); margin: 0 auto; padding: 36px 0 70px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start;
  position: relative;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text);
  margin: 6px 0 18px;
}
/* Japanese: no line starts with a small kana or ー ("カフ|ェ" in the hero h1, fancy-cafe-ai ja check 11-04). */
:lang(ja) { line-break: strict; }
.hero h1 {
  font: 600 clamp(64px, 10.5vw, 148px)/.84 var(--display);
  letter-spacing: -.5px; margin: 0 0 22px;
}
.hero h1 em { display: block; text-transform: none; font-size: .5em; line-height: 1; color: var(--accent-2); margin-top: 6px; letter-spacing: 0; }

/* Chinese headings break at spaces and punctuation, not inside words (影片), unless a word can't fit. */
h1:lang(zh) { word-break: keep-all; overflow-wrap: anywhere; }
/* The display font only has Latin; Chinese, Japanese, Korean and Thai fall back to system fonts whose glyphs fill the
   whole em box (Thai adds marks above and below), so the .84–1 Latin leading made wrapped lines touch and the first
   line hit the header. These headings get real leading in those languages; Latin pages keep the tight look. */
html:is(:lang(zh), :lang(ja), :lang(ko)) :is(h1, h2, .doc.guide h1, .doc h2, .sub-h, .how-grid b, .effect-card b, .sample-cap b, .hd-cap b) { line-height: 1.15; }
html:lang(th) :is(h1, h2, .doc.guide h1, .doc h2, .sub-h, .how-grid b, .effect-card b, .sample-cap b, .hd-cap b) { line-height: 1.25; }
.lede { font-size: 20px; max-width: 34ch; color: var(--text-2); }
.lede em { color: var(--accent-text); font-size: 1.15em; }
.facts { margin: 14px 0 0; font-size: 15px; font-weight: 600; color: var(--text-2); }

.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) backwards; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
/* backwards, not both: a transform left on .hero-tool after the animation becomes the containing block of any
   position: fixed element inside it (remakethetrend 11-06: its sticky button sat thousands of px off screen). */
.hero-tool { animation: rise .8s .2s cubic-bezier(.2, .7, .2, 1) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 10px; }
  .lede { max-width: none; font-size: 18px; margin-bottom: 0; }
  .hero h1 { font-size: clamp(52px, 15vw, 96px); margin-bottom: 14px; }
  
}

/* No tilt: on the AI vocals site it read as crooked, on phones and then on computers (10-30 主人「电脑版怎么会歪的」). */

.drop {
  display: block; position: relative; cursor: pointer;
  border: 2px dashed rgba(13, 11, 18, .3); border-radius: 14px;
  min-height: 108px; overflow: hidden; background: #fffaf7;
  transition: border-color .2s, background .2s;
}

@media (hover: hover) { .drop:hover { border-color: var(--accent-2); background: #fff1ec; } }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

 /* touch screens have nothing to drag */
@media (min-width: 961px) { .drop { min-height: 88px; }  }

/* Once a photo is in, the box still says whose it is and that a tap swaps it. */

/* One box per photo slot; two or three sit side by side, labels stack inside. */
.drops { display: grid; grid-template-columns: repeat(var(--slots, 1), minmax(0, 1fr)); gap: 10px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin: 16px 0 12px; color: #4d3f45; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
/* Under the button in small print, last (AI vocals site and RapDuo; Turnly ba90cca): tapping the button is the consent.
   Before a photo the button only opens the photo picker, so this and how checkout goes wait for the photo. */

.btn-go {
  width: 100%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-radius: 14px;
  background: var(--ink); color: var(--cream);
  font: 600 24px/1 var(--display); letter-spacing: .5px;
  transition: transform .15s, background .15s;
}
@media (hover: hover) { .btn-go:hover { filter: brightness(1.08); transform: translateY(-1px); } }
.btn-go:disabled { opacity: .6; cursor: progress; transform: none; }

.btn-small { font-size: 18px; padding: 12px 16px; justify-content: center; }
.form-msg { min-height: 1.2em; margin: 10px 0 0; font-size: 14px; color: #b3261e; }

/* ---------- answer block ---------- */
.answer {
  width: var(--wrap); margin: 0 auto; padding: 70px 0;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 60px; align-items: center;
  border-top: 1px solid var(--line);
}

.answer-lead { font-size: 21px; color: var(--text-2); }

@media (max-width: 860px) { .answer { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .answer-lead { font-size: 18px; } }

/* The first real sample beside the answer and on question pages (parts.mjs phoneDemo): a straight card like the
   gallery's, the video on top and the photos it came from in a strip underneath (airaindance's example card). It sits
   level with the heading on computers rather than floating mid-column. No tilt, like the form (主人 11-03). */

.phone-screen { position: relative; aspect-ratio: 9 / 16; background: #000; }

/* ---------- sections ---------- */
.how, .pricing, .faq-wrap, .more, .effects-more { width: var(--wrap); margin: 0 auto; padding: 70px 0; border-top: 1px solid var(--line); }

.chip { display: inline-block; font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; align-self: flex-start; }

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

.price-card { position: relative; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font: 600 24px/1 var(--display); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--text-2); }

/* Links to the question pages as cards with an arrow, two or three to a row (rapduo's guide cards): big enough to tap. */

.crumbs { width: var(--wrap); margin: 0 auto; font-size: 14px; color: var(--muted); padding-top: 4px; }
.crumbs a { color: var(--muted); }

/* ---------- docs ---------- */
.doc { width: min(760px, 100% - 40px); margin: 0 auto; padding: 40px 0 80px; }
.doc h1 { font: 600 clamp(44px, 7vw, 76px)/.95 var(--display); }
.doc h2 { font: 600 30px/1 var(--display); margin-top: 1.6em; }
.doc li { margin: 6px 0; }

.vid { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.vid video, .vid .vid-wait { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 20px; padding: 46px 0 30px; }
.footer-grid { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font: 600 30px/1 var(--display); margin: 0 0 8px; }
.footer-brand em { color: var(--accent-text); text-transform: none; }
.footer-h { font-weight: 700; margin: 0 0 8px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-guides { grid-column: 1 / -1; }
.footer-guides .footer-links { columns: 280px 2; column-gap: 30px; }
.footer-guides .footer-links li { break-inside: avoid; margin: 0 0 12px; }
.footer-links li { margin: 6px 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
@media (hover: hover) { .footer-links a:hover { color: var(--text); } }
/* Languages: one pill under the links that opens the list upward (after the AI vocals site), not a column of names. */
.footer-language-nav { position: relative; display: flex; justify-content: flex-end; width: var(--wrap); margin: 28px auto 0; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-language-menu { position: relative; width: max-content; max-width: 100%; }
.footer-language-menu summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: transparent; font-size: 14px; line-height: 1.25; list-style: none; cursor: pointer; }
.footer-language-menu summary::-webkit-details-marker { display: none; }
.footer-language-menu summary svg { width: 16px; height: 16px; flex: none; }
.footer-language-menu summary span { flex: 1; }
.footer-language-menu[open] summary { border-color: var(--accent); background: var(--ink-2); }
@media (hover: hover) { .footer-language-menu summary:hover { border-color: var(--accent); background: var(--ink-2); } }
.footer-language-menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.footer-language-menu[open] summary svg:last-child { rotate: 180deg; }
.footer-language-menu ul { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 30; min-width: 100%; max-height: min(60vh, 360px); overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.footer-language-menu li a { display: block; min-height: 44px; padding: 12px 14px; border-radius: 8px; color: var(--text); text-decoration: none; white-space: nowrap; }
.footer-language-menu li a[aria-current] { background: var(--ink-3); }
@media (hover: hover) { .footer-language-menu li a:hover { background: var(--ink-3); } }
@media (max-width: 760px) { .footer-language-nav { justify-content: stretch; } .footer-language-menu { width: 100%; } }
:root[data-theme="light"] .footer-language-menu ul { box-shadow: 0 16px 40px rgba(40, 30, 10, .15); }

/* Taller than the screen: iPhone Safari leaves the strip under its toolbar uncovered otherwise. */

.pay { width: min(440px, calc(100vw - 32px)); }
.pay[open] { gap: 10px; }

/* Phones: each option on one row, the button on its right, so the whole window fits one screen (11-03, from
   firsttimeinafancycafe.com 4d87aa4: stacked with full-width buttons it was ~910px tall on an 844px iPhone, the last
   button and the links under it out of view). */

@media (min-width: 760px) {
  .pay { width: min(760px, calc(100vw - 48px)); padding: 24px 24px 18px; }
  
  
  
  
}

.footer-fine { width: var(--wrap); margin: 30px auto 0; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- account additions ---------- */
.btn-inline { display: inline-flex; width: auto; text-decoration: none; margin-top: 4px; }

.form-msg.ok { color: #1f7a3a; }
.doc .form-msg.ok { color: var(--accent-text); }

/* "What's new on this page" (catalog.js / guides.mjs changes) */
.changes { list-style: none; padding: 0; margin: .4em 0 0; }
.changes li { margin: 6px 0; }
.changes time { display: inline-block; min-width: 6.4em; color: var(--muted); font-variant-numeric: tabular-nums; }

/* The hero floor is wider than the screen on purpose (perspective). Clipping on <html> keeps the page
   exactly screen-wide, which body overflow alone does not guarantee on iOS Safari. */
html { overflow-x: clip; }

/* ---------- first-screen proof: the photo and the video it became ---------- */

.hd-video video { border: 2px solid var(--accent); }

.hd-video i { background: var(--accent); color: var(--ink); }

/* Photos, arrow and clip lay out as one row with the caption; phones turn this into a box (below). */

@media (max-width: 960px) {
  /* Home on phones: the clip sits beside the headline, the source photo tucked into its corner. */
  .hero:not(.hero-trend) .hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; }
  .hero:not(.hero-trend) .hero-copy > * { grid-column: 1 / -1; }
  .hero:not(.hero-trend) .hero-copy > h1 { grid-column: 1; grid-row: 2; align-self: center; }
  
  .hero:not(.hero-trend) .hd-video { width: 100%; }
  
  
  
  
}

/* Phones: the headline and the clip beside it say it (as on the AI vocals site): no kicker or facts line, so the upload
   box comes up; the headline and its clip take the first grid row (they were placed in row 2, under the kicker). */
@media (max-width: 960px) {
  .hero .eyebrow, .hero .facts { display: none; }
  .hero:not(.hero-trend) .hero-copy > h1, .hero:not(.hero-trend) .hero-demo { grid-row: 1; }
}

.drop-note { margin: 8px 2px 0; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.drop-note b { color: var(--text); }
.phone-page h1 { font: 600 clamp(32px, 7vw, 44px)/1.05 var(--display); }

/* What you get + the refund promise, right above the fine print: small print, not another box. */

/* The source photo in the corner of a sample video. */
.result-media { position: relative; display: block; }
.photo-inset { position: absolute; left: 10px; bottom: 12px; display: block; width: 27%; max-width: 72px; }
.photo-inset img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; border: 2px solid var(--cream); box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.photo-inset i { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); white-space: nowrap; font: 700 9px/1 var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; background: var(--cream); color: var(--ink); padding: 3px 5px; border-radius: 5px; }

.link-btn { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline; cursor: pointer; }
@media (hover: hover) { .link-btn:hover { color: #ff8a80; } }
.link-btn:disabled { opacity: .6; cursor: progress; }
.form-msg.hint { color: #7a5b00; }

/* At-a-glance facts on effect pages. */
.glance { margin: 18px 0 30px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.glance div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 14px; background: var(--ink-2); }
.glance dt { font: 600 16px/1.4 var(--display); letter-spacing: .5px; color: var(--accent-text); }
.glance dd { margin: 0; font-size: 15px; color: var(--text-2); }
@media (max-width: 520px) { .glance div { grid-template-columns: 1fr; gap: 2px; } }

/* Sound toggle on sample videos. */
.sound-btn {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 16px; line-height: 1;
  background: rgba(13, 11, 18, .72); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
}
.sound-btn[aria-pressed="true"] { background: var(--accent); }
/* A tap on the video turns its sound on too (app.js, 11-04). */
.result-media video, .hd-video video, .phone-video { cursor: pointer; }

/* Real results (parts.mjs sampleGallery): on the home page right under the generator, centered; phones show two side by
   side, and more than two scroll sideways with the next one peeking in. */
.gallery { width: var(--wrap); margin: 0 auto; padding: 10px 0 50px; }
.wrap .gallery { width: auto; } /* the examples page is already inside the page width */

.gallery-row { display: flex; flex-wrap: wrap; gap: 26px 18px; }

/* Phones only (the cards scroll sideways there): which card is in view, and the page with all of them (after the AI vocals site). */
.sample-pager { display: none; }
@media (max-width: 560px) {
  
  
  
  .gallery-row { flex-wrap: nowrap; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .gallery-row::-webkit-scrollbar { display: none; }
  
  
  
  
  
  /* The examples page lists every card in two columns: a sideways row there sat inside the page margin, cut off in the
     middle of the third card with nothing to show it scrolls (11-03; the AI vocals site lists them all too). */
  .gallery:not(.gallery-center) .gallery-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; overflow: visible; padding-bottom: 0; }
  .gallery:not(.gallery-center) .gallery-row[style*="--n:1;"] { grid-template-columns: minmax(0, 64%); }
  .sample-pager { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--muted); }
  .sample-count { flex: none; font-variant-numeric: tabular-nums; }
  .sample-dots { display: flex; gap: 5px; flex: 1; min-width: 0; }
  .sample-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
  .sample-dots i.on { background: var(--accent); }
  .sample-pager a { flex: none; display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-text); font-weight: 700; text-decoration: none; }
}

/* ---------- question pages ---------- */
.doc.guide h1 { font-size: clamp(34px, 5.4vw, 54px); line-height: 1; }
.doc.guide .answer-lead { margin: 18px 0 16px; }

.guide-cta { display: inline-block; background: var(--accent); color: var(--ink); padding: 14px 20px; border-radius: 14px; font: 600 20px/1.1 var(--display); letter-spacing: .5px; text-decoration: none; }
@media (hover: hover) { .guide-cta:hover { background: var(--cream); color: var(--ink); } }

/* ---------- header: language, theme, account ---------- */
.site-nav { gap: 18px; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--muted); }
.lang-menu[open] summary { color: var(--text); background: var(--ink-2); }
@media (hover: hover) { .lang-menu summary:hover { color: var(--text); background: var(--ink-2); } }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; list-style: none; margin: 0; padding: 6px; min-width: 150px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.lang-menu li a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); }
.lang-menu li a[aria-current] { background: var(--ink-3); }
@media (hover: hover) { .lang-menu li a:hover { background: var(--ink-3); } }
.theme-btn { border: 0; background: none; color: var(--muted); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; padding: 0; display: grid; place-items: center; flex: none; }
@media (hover: hover) { .theme-btn:hover { color: var(--text); background: var(--ink-2); } }
.site-nav > .lang-menu .menu-ico, .site-nav > .theme-btn .menu-ico { width: 20px; height: 20px; }
.site-nav .nav-account { color: var(--text); font-weight: 600; white-space: nowrap; }
.site-nav .nav-account.signed-in { color: var(--accent-text); }
@media (max-width: 560px) {
  .site-nav { gap: 10px; }
  .site-nav .nav-cta { display: none; }
  .theme-btn { width: 28px; height: 28px; font-size: 14px; }
  .lang-menu summary { padding: 5px 7px; font-size: 13px; }
}
/* Phones and tablets: the page links move into a menu, as on all three reference sites; on phones the theme switch
   goes in there too, so the header keeps the site name, language, sign-in and the menu. */
.nav-menu { position: relative; display: none; }
.nav-menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 18px; line-height: 1; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { background: var(--ink-3); }
.nav-menu ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; list-style: none; margin: 0; padding: 6px; min-width: 220px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.site-nav .nav-menu a, .nav-menu .menu-theme .theme-btn { display: block; width: 100%; height: auto; padding: 10px 12px; border: 0; border-radius: 8px; color: var(--text); font: inherit; font-size: 16px; text-align: left; text-decoration: none; }
@media (hover: hover) { .site-nav .nav-menu a:hover, .nav-menu .menu-theme .theme-btn:hover { background: var(--ink-3); } }
.site-nav .nav-menu li:first-child a { color: var(--accent-text); font-weight: 700; }
.menu-lang { display: none; }
.menu-theme { display: none; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .nav-menu { display: block; } .nav-menu summary { width: 44px; height: 44px; } }
@media (max-width: 560px) { .site-nav > .theme-btn { display: none; } .menu-theme { display: block; } }
.menu-who[hidden], .menu-signin[hidden] { display: none !important; }
.menu-who { padding: 10px 12px 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.menu-ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-sun, :root[data-theme="light"] .ico-moon { display: none; }
:root[data-theme="light"] .ico-sun { display: block; }
/* Phones: the menu is a full-width panel under the header with the burger turning into ×, links as big rows, and the
   theme switch beside Sign in / My videos at the bottom; who is signed in, or "Not signed in" for a guest, then a
   real Sign out or Sign in button (after the AI vocals site and RapDuo, 10-27/28). */
.nav-menu summary .menu-ico path { transition: transform .2s ease, opacity .2s ease; transform-box: fill-box; transform-origin: center; }
.nav-menu[open] > summary .menu-ico path:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-menu[open] > summary .menu-ico path:nth-child(2) { opacity: 0; }
.nav-menu[open] > summary .menu-ico path:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 860px) {
  .site-header .nav-menu { position: static; }
  .site-header .nav-menu > summary { width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 12px; background: none; }
  .site-header .nav-menu > ul { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: grid; grid-template-columns: auto auto 1fr; align-items: center; min-width: 0; max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; padding: 6px max(20px, (100% - 1180px) / 2) 14px; background: var(--alt-bg); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: 0 24px 40px rgba(0, 0, 0, .35); }
  .site-header .nav-menu > ul > li { grid-column: 1 / -1; }
  .site-nav .nav-menu > ul > li > a { display: flex; align-items: center; min-height: 50px; padding: 0; border-radius: 0; font-size: 17px; }
  @media (hover: hover) { .site-nav .nav-menu > ul > li > a:hover { background: none; } }
  /* The language switch sits as an icon left of the theme one on the panel's last line (Turnly, the AI vocals site);
     the header keeps only the site name, Upload and the menu, so a long name like COFFEE MAKING AI isn't cut. */
  .site-header .lang-menu { display: none; }
  .site-header .nav-menu > ul > .menu-lang, .site-header .nav-menu > ul > .menu-theme, .site-header .nav-menu > ul > .menu-account { display: block; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
  .site-header .nav-menu > ul > .menu-lang { grid-column: 1; position: relative; }
  .site-header .nav-menu > ul > .menu-theme { grid-column: 2; }
  .site-header .menu-lang summary { display: grid; place-items: center; width: 44px; height: 44px; margin-right: 6px; border-radius: 12px; color: var(--text); list-style: none; cursor: pointer; }
  .menu-lang summary::-webkit-details-marker { display: none; }
  .site-header .menu-lang details[open] summary { background: var(--ink-3); }
  .menu-lang .menu-ico { width: 22px; height: 22px; }
  .site-header .menu-lang ul { position: absolute; top: auto; right: auto; bottom: calc(100% + 6px); left: 0; min-width: 0; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; width: min(340px, calc(100vw - 40px)); margin: 0; padding: 6px; list-style: none; background: var(--ink-3); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
  .site-nav .nav-menu .menu-lang a { padding: 11px 10px; border-radius: 9px; font-size: 15px; }
  .site-nav .nav-menu .menu-lang a[aria-current] { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); font-weight: 700; }
  .site-header .nav-menu > ul > .menu-account { grid-column: 3; text-align: right; }
  .site-header .nav-menu .menu-theme .theme-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--text); }
  .menu-theme .menu-ico { width: 22px; height: 22px; }
  .site-nav .nav-menu .menu-account a { display: inline-flex; align-items: center; width: auto; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 600; }
  .site-nav .nav-menu .menu-account a.signed-in { color: var(--accent-text); }
  .site-header .menu-who { margin-top: 14px; padding: 0; font-size: 14px; }
  .site-header .menu-signout { margin: 0; padding: 8px 0 0; border: 0; }
  .site-nav .nav-menu .menu-signout [data-signout] { min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 16px; font-weight: 600; text-align: center; }
  .site-header .menu-signin { padding-top: 8px; }
  .site-nav .nav-menu .menu-signin a { justify-content: center; min-height: 48px; border-radius: 12px; background: var(--accent); color: var(--ink); font-size: 16px; font-weight: 700; }
}
@media (max-width: 560px) {
  .site-nav > .theme-btn { display: none; }
  .menu-theme { display: block; }
  /* Larger phone targets without moving the upload form further down the first screen. */
  .site-header { padding: 13px 0; }
  .lang-menu summary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
  .site-nav .nav-account { display: inline-flex; align-items: center; min-height: 44px; padding: 0 3px; }
  .nav-menu summary { width: 44px; height: 44px; }
  .site-nav .nav-menu a, .nav-menu .menu-theme .theme-btn { display: flex; align-items: center; min-height: 44px; }
  
  /* Close under the button as on the AI vocals site, still a comfortable tap (32px). */
  
  
  .footer-links a { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 0; }
}
.lang-banner {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 44px 10px 16px; background: var(--accent); color: var(--ink); font-size: 15px; font-weight: 600;
}
.lang-banner a { color: var(--ink); text-decoration: underline; }
/* A 44px tap target, centered on one or two lines (it was 25x24, 11-03). */
.lang-banner button { position: absolute; top: 50%; right: 0; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }

/* ---------- studio (generator) ---------- */

.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 12px; border-radius: 10px; border: 2px solid rgba(13, 11, 18, .14); background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; transition: border-color .15s, background .15s; }
.seg span i { font-style: normal; font-size: 12px; color: #1f7a3a; }
.seg input:checked + span { border-color: var(--ink); background: var(--accent); }
.seg input:focus-visible + span { outline: 3px solid var(--accent-2); outline-offset: 2px; }

 

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* The video options on one line with what's picked; a tap opens the choices. */

.opt { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 8px; }
.opt legend { float: left; padding: 0; font-size: 13px; font-weight: 700; color: #4d4558; }

.drop-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(13, 11, 18, .45); }

/* The Generate button says what it does, no price (主人 11-03「价格可以不写在 make 上」, as on the AI vocals site). */

.btn-go-label { min-width: 0; line-height: 1.05; text-wrap: balance; overflow-wrap: break-word; font-size: min(1em, 6.2vw); }
.btn-go-label:lang(ja) { word-break: auto-phrase; }
.studio.busy .btn-go, .studio.busy .btn-preview { opacity: .6; cursor: progress; }

.need { margin-top: 10px; padding: 12px; border-radius: 12px; background: #fff1ec; border: 1px solid rgba(13, 11, 18, .12); display: grid; gap: 8px; text-align: center; }

.need .btn-go { justify-content: space-between; }

.result { margin-top: 12px; display: grid; gap: 10px; }

.result video { width: 100%; max-height: 420px; border-radius: 14px; background: #000; }

@media (max-width: 400px) {  .opt { grid-template-columns: minmax(0, 1fr); } }

/* ---------- inner pages ---------- */
.wrap { width: var(--wrap); margin: 0 auto; padding: 30px 0 80px; }
.wrap.narrow { width: min(720px, 100% - 32px); }
.center { text-align: center; }

.page-head h1, .wrap > h1, .signin h1 { font: 600 clamp(44px, 7vw, 84px)/.92 var(--display); margin: 0 0 12px; }
.page-head .lede, .signin .lede { max-width: 60ch; }
.sub-h { font: 600 30px/1 var(--display); letter-spacing: .5px; margin: 40px 0 10px; }
.panel .sub-h { margin-top: 0; font-size: 24px; }
.wrap .form-msg { color: #ff8a80; }
.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 18px; }
.btn-inline { display: inline-flex; width: auto; text-decoration: none; }

/* pricing */

.price-card { display: flex; flex-direction: column; }
.express { margin-top: 8px; }
.express-note { margin: 6px 0 0; text-align: center; font-size: 12px; line-height: 1.4; opacity: .7; }

.price-card .btn-go { margin-top: auto; background: var(--accent); color: var(--ink); }
@media (hover: hover) { .price-card .btn-go:hover { background: var(--text); color: var(--bg); } }

/* "Just one video" above the packs (hotellobbyvideo's "Start with one video"), and the checkout promises under them. */

.trust { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--muted); }
.trust li::before { content: "✓ "; color: var(--accent-text); font-weight: 700; }

/* The last call on effect pages, as on all three reference sites. */
.final { width: var(--wrap); margin: 0 auto; padding: 70px 0 60px; border-top: 1px solid var(--line); text-align: center; }
.final p { max-width: 46ch; margin: 0 auto 22px; font-size: 18px; color: var(--text-2); }

/* Pricing page, wide screens: heading on the left, cards or questions on the right (the home page FAQ's layout),
   so two plan cards and the FAQ don't sit against the left edge with a third of the row empty. */
@media (min-width: 1100px) {
  .split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-auto-rows: min-content; column-gap: 56px; align-items: start; margin-top: 40px; }
  .split > * { grid-column: 1; }
  .split > .sub-h { margin-top: 0; }
  .split > .price-grid, .split > .faq { grid-column: 2; grid-row: 1 / span 4; max-width: none; }
}
/* A long list of questions on phones: the first four, then "Show N more" (guide.mjs guideList, app.js). */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; max-width: 620px; }

/* Guide tables (the apps compared page): wide, scrolls sideways on phones inside .table-wrap */

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 8.5em; }
.data-table thead th { background: var(--ink-2); font-weight: 700; white-space: nowrap; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
/* Phones: one card per row, each value under its column name (guide.mjs sets data-label) */
@media (max-width: 560px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; min-width: 0; }
  .data-table tr { padding: 6px 0; border-bottom: 1px solid var(--line); }
  .data-table tbody tr:last-child { border-bottom: 0; }
  .data-table th, .data-table td { padding: 4px 14px; border-bottom: 0; }
  .data-table th[scope="row"] { padding-top: 10px; font-size: 15px; }
  .data-table td { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 10px; }
  .data-table td::before { content: attr(data-label); color: var(--muted); }
}

/* sign-in */
.signin { max-width: 460px; margin: 20px auto; }
.signin form { display: grid; gap: 10px; }
.signin label { font-weight: 700; font-size: 14px; }
.signin input, .gift-form input { font: inherit; font-size: 17px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 16px; border-radius: 12px; background: #fff; color: #1f1f1f; font-weight: 700; text-decoration: none; border: 1px solid #dadce0; }
@media (hover: hover) { .btn-google:hover { color: #1f1f1f; background: #f4f4f4; } }
.btn-google span { font: 900 20px/1 var(--sans); color: #4285f4; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.signin .btn-go, .gift-form .btn-go, .panel .btn-go { background: var(--accent); color: var(--ink); }

/* account */
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.account-head h1 { font: 600 clamp(44px, 7vw, 84px)/.92 var(--display); margin: 0 0 6px; }
.account-head p { margin: 0; }

.notice { padding: 12px 16px; border-radius: 12px; background: var(--accent); color: var(--ink); font-weight: 600; }

.empty { padding: 30px; border: 1px dashed var(--line); border-radius: var(--r); text-align: center; }
.ledger, .gift-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.ledger li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; }
.ledger .plus { color: #4ccf7a; } 
.gift-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gift-link { width: 100%; font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }

/* gift */

.gift-badge { font-size: 64px; margin: 10px 0 0; }
#redeem .btn-go { background: var(--accent); color: var(--ink); }

/* mock checkout */
.mock .btn-go { max-width: 360px; background: var(--accent); color: var(--ink); }

/* ---------- light theme ---------- */
:root[data-theme="light"] {
  --bg: #f7f0dd;
  --text: #0e1f17;
  --ink-2: #fffaf0;
  --ink-3: #efe5cc;
  --line: #e0d3b0;
  --muted: #56685e;
  --text-2: #1f3329;
  --accent-text: #7a5c18; /* gold is too pale for text on parchment; 4.5:1 on the cards too */
  color-scheme: light;
}
:root[data-theme="light"] body::before { opacity: 0; }

:root[data-theme="light"] .site-header .menu-lang ul { background: #fff; }
:root[data-theme="light"] .lang-menu ul, :root[data-theme="light"] .nav-menu ul { box-shadow: 0 16px 40px rgba(40, 30, 10, .15); }
:root[data-theme="light"] .ledger .plus { color: #1f7a3a; }
:root[data-theme="light"] .wrap .form-msg { color: #b3261e; }

/* "Photo on your phone?" / "Get your videos on your phone" (computers): the button and the QR code dialog (app.js
   phoneQR), and /phone/, the page the code opens on the phone (phone.js). */

.phone-dialog { width: min(360px, 100% - 32px); padding: 22px; border: 0; border-radius: 18px; background: var(--cream); color: var(--ink); text-align: center; }
.phone-dialog::backdrop { background: rgba(11, 11, 12, .72); }
.phone-title { margin: 0 0 6px; font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1.05; }
.phone-how { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: #4d3f45; }
.phone-qr { width: 220px; height: 220px; margin: 0 auto; }
.phone-qr svg { display: block; width: 100%; height: 100%; }
.phone-wait { margin: 12px 0 10px; font-size: 13px; color: #75666c; }
.phone-wait:empty { display: none; }
.phone-dialog .phone-close { color: #4d3f45; }
.phone-pick { position: relative; justify-content: center; margin-top: 8px; }
.phone-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.phone-pick.is-busy { opacity: .6; pointer-events: none; }
.phone-preview { display: block; width: 100%; max-height: 300px; object-fit: contain; margin-top: 14px; border-radius: 12px; background: #1c1724; }
.form-msg.ok { color: #3f8f2a; font-weight: 600; }

/* Phones, after Turnly (d35ee85, 10-28) and the AI vocals site: the header stays pinned and opaque, with an Upload
   button that opens the photo picker and turns into the Make button once the photos are in (studio.js syncHeader);
   Sign in moves into the menu; the big button under the headline is gone; long FAQs show their first questions
   (app.js fold). --alt-bg is also the phone menu panel's background, which had none before 11-03. */
:root { --alt-bg: #13291f; }
:root[data-theme="light"] { --alt-bg: #f1e8cf; }
.faq-wrap.fold:not(.unfolded) .faq > details:nth-child(n+7) { display: none; }

.nav-cta-short { display: none; }
@media (max-width: 960px) {
  body { overflow-x: clip; padding-top: 65px; }
  html { scroll-padding-top: 76px; }
  body::before { top: 65px; }
  .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 45; width: auto; height: 65px; padding: 10px max(20px, (100% - 1180px) / 2); background: var(--alt-bg); border-bottom: 1px solid var(--line); }
  /* The language banner scrolls away with the page: sticky at top 0 it sat over this fixed bar and hid the name,
     Upload and the menu (seen on Turnly and Coffee Making AI with a Spanish browser, 11-03; AI vocals site fced058). */
  .lang-banner { position: relative; }
  .site-header .site-nav { gap: 8px; }
  .site-header .site-nav > .nav-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; font-size: 14px; }
  @media (hover: hover) { .site-header .site-nav > .nav-cta:hover { color: var(--ink); background: var(--accent); } } /* a tap leaves :hover stuck on phones */
  .site-nav > .nav-account { display: none; }
  .nav-cta .nav-cta-text { display: none; }
  .nav-cta .nav-cta-short { display: inline; }
  .site-nav .nav-menu > ul > li:first-child { display: none; } /* the same button is in the header */
}
/* Narrow phones (most Android phones are 360 to 412px wide): the name was cut to "FANCY CAF…" beside Upload and the
   language button, in English at 360px and with German "Hochladen" already at 390px (Fancy Cafe AI, 11-04). */
@media (max-width: 400px) {
  .brand-word { font-size: 16px; } .brand-word em { font-size: 18px; }
  .site-header .site-nav { gap: 6px; }
  .site-header .site-nav > .nav-cta { padding: 7px 10px; }
}

/* Touch (real-iPhone review 11-06, first on remakethetrend.com): phones don't hover, so a tapped card or button kept
   its hover look until the next tap (hover rules above now apply only where a pointer hovers). Instead, what you press dims a little as your finger goes down, as iPhone's own buttons do (it shrank until 主人 11-06: 「手机不用按着就变小的感觉吧」). iOS only runs :active with a touch listener on the page (app.js). */
@media (hover: none) {
  :is(.effect-card, .trend-card, .hs-card, .hp-card, .more-list a, .pay-card, .price-pick, .upsell-pack, .btn-go, .btn-line, .fold-btn, .sample-use, .guide-cta, .btn-preview, .phone-btn, .hero-start, .wall-filter button, .found-opts button, .price-choose, .pay-now, .btn-google, .site-nav .nav-cta) { transition: opacity .12s ease; }
  
  :is(.btn-go, .btn-line, .fold-btn, .sample-use, .guide-cta, .btn-preview, .phone-btn, .hero-start, .wall-filter button, .found-opts button, .price-choose, .pay-now, .btn-google, .site-nav .nav-cta):active { opacity: .75; }
}
/* Phone menu (11-06): the page behind dims, and a tap on it only closes the menu (it used to also press whatever was
   under the finger); the page behind doesn't scroll while it's open. */
@keyframes nav-dim { from { opacity: 0; } }
@media (max-width: 860px) {
  .site-header .nav-menu[open] > summary::before { content: ""; position: fixed; top: 65px; left: 0; right: 0; height: 100vh; background: rgba(8, 6, 12, .55); touch-action: none; animation: nav-dim .18s ease; cursor: default; }
  html:has(.site-header .nav-menu[open]) { overflow: hidden; }
}
/* Sample cards line up (11-06): a two-line title pushed that card's settings and "Make one like this" below its
   neighbours'. Computers: the button sits at the bottom of each card in the row. Phones: picture, title, words, note
   and button each on a row shared with the other cards (subgrid; the sideways row becomes a grid of the same widths). */

@media (max-width: 560px) {
  
  
  
  .gallery:not(.gallery-center) .gallery-row { row-gap: 0; }
  
  
  
   
  
  
  
  
}

/* Footer on phones (11-06 real-iPhone review, first on remakethetrend.com): the link lists sit side by side in two
   columns instead of one long column (the footer ran 1,600 to 2,000 px); the site blurb and the guides keep the full
   width. */
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 18px; }
  .footer-grid > div:first-child, .footer-grid > .footer-guides { grid-column: 1 / -1; }
  .footer-links a { overflow-wrap: anywhere; }
}

/* Sound buttons: a drawn speaker (parts.mjs SOUND_ICON), cross while muted, waves with sound (remakethetrend 11-06). */
.sound-btn { color: #fff; }
.sound-btn[aria-pressed="true"] { color: var(--ink); }

/* Touch screens: small text links get a finger-sized hit area without moving anything (remakethetrend 11-06 phone
   review found breadcrumbs and text buttons 17 to 22 px tall). */
@media (pointer: coarse) {
  .crumbs a, .link-btn, .lang-banner a, .origin-link a, .footer-fine a, p.muted a { position: relative; }
  .crumbs a::after, .link-btn::after, .lang-banner a::after, .origin-link a::after, .footer-fine a::after, p.muted a::after { content: ""; position: absolute; inset: -10px -4px; }
}

/* Long parts of the answer fold under their heading (home.mjs fold; remakethetrend 11-06 after jumponthetrend). */

.answer-inner .sec-fold > summary > :is(h2, h3) { margin: 0; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.25; }

/* ---------- baby generator (2026-11-09) ---------- */
/* Label above the chips at every width: the template's 70px label column squeezed every chip into that column in
   Safari (its <legend> isn't a grid item), on 401-960 px wide phones like the iPhone 18 Pro (402). */
.opt { display: block; border: 0; margin: 0 0 10px; padding: 0; min-width: 0; }
.opt legend { float: none; display: block; }
.opt legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: #4d3f45; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.drop-note { margin: 8px 0 0; }
.result { margin-top: 16px; }
/* The result in the form's place (studio.js showResult): the steps and the button step aside until "Change photos". */

.result .muted { margin: 0; color: #75666c; }

.samples { width: var(--wrap); margin: 0 auto; padding: 50px 0; }

.couple { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); }

.kid { flex: none; display: grid; gap: 4px; text-align: center; }
.kid img { width: 140px; height: 140px; border-radius: 12px; object-fit: cover; }
.kid small { font-size: 12px; color: var(--muted); }
.couple figcaption { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
@media (max-width: 700px) { .couple { grid-template-columns: 1fr; } .kid img { width: 116px; height: 116px; } }

.facts { color: var(--text); }

/* ---------- phone pass (2026-11-09): page edges, header, samples, prices, footer ---------- */

.price-card a.btn-go { text-decoration: none; justify-content: center; text-align: center; }
.price-card .btn-go.buy { margin-top: auto; margin-bottom: 18px; }
.price-card .btn-go.buy:last-child { margin-bottom: 0; }
@media (max-width: 480px) {
  /* the whole name in two lines instead of "WHAT WILL MY BABY LOOK …" */
  .brand-word { display: block; font-size: 16px; line-height: 1; white-space: normal; overflow: visible; max-width: 150px; }
  .brand-word em { display: inline; font-size: 17px; margin-left: 3px; }
}
@media (max-width: 700px) {
  /* three results to a row, all on screen (it scrolled sideways and cut the third one) */
  .couple { padding: 14px; gap: 10px; }
  
  .kid img { width: 100%; height: auto; aspect-ratio: 1; }
  
  .samples { padding: 36px 0; }
}
@media (max-width: 560px) {
  .answer, .how, .pricing, .faq-wrap, .more, .effects-more { padding: 40px 0; }
  
  
  .footer-guides .footer-links li { margin: 0 0 8px; font-size: 14px; line-height: 1.35; }
  .footer-links li { margin: 4px 0; }
}

/* ---------- home, phone first (2026-11-09 round 2, after OurBaby / Little Us / aibabygenerator) ----------
   The first screen shows what you get (two parents + their baby), three promises, then the upload boxes. */

@media (max-width: 560px) {
  h2 { font-size: clamp(28px, 8vw, 34px); line-height: 1; }
  
  /* the generator card: less chrome, bigger tap targets, the button on one line */
  
  
  
  
  .drop { min-height: 132px; }
  
  
  
  .btn-go { justify-content: center; font-size: 21px; padding: 17px 14px; }
  
  /* how it works: number beside the step, not three tall cards */
  
  
  
  
  
  .final { padding: 44px 0 40px; }
  .footer-brand { font-size: 22px; }
}

@media (max-width: 560px) {
  
  
  
  
  
  .answer-lead { font-size: 17px; }
  .samples > .muted, .section-head .muted { font-size: 14px; margin: 0; }
}
/* Phones: text links big enough to tap (they were 26-28 px tall) */
@media (hover: none) and (max-width: 760px) {
  .footer-links a, .section-head > a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; }
  .footer-links li, .footer-guides .footer-links li { margin: 0; }
}
/* Sample pictures load lazily: a warm placeholder instead of an empty white card while they come in (iOS Safari). */
.kid img, .couple-parents img, .hs-parent img, .hs-kid img { background: #f6ece6; }

/* ---------- warm nursery look (2026-11-09 round 3, after Little Us, babygenerator.com, MyBabyGenerator) ----------
   Soft serif headlines in sentence case, salmon pill buttons, white rounded cards with soft shadows; no hard black
   blocks, offset shadows or dashed tickets from the meme template. Tokens are at the top of this file. */
h1, h2, h3, .brand-word, .footer-brand, .price-name, .result-h, .ticket-kicker { letter-spacing: -.01em; }
h2 { font: 600 clamp(30px, 3.6vw, 46px)/1.1 var(--display); }
h2 em, h1 em { color: var(--accent-text); }
.hero h1 em { display: inline; font-size: 1em; color: var(--accent-text); margin: 0; }
.brand-word { font-size: 21px; font-weight: 600; }
.brand-word em { font-size: 1em; font-weight: 600; }

.eyebrow { letter-spacing: .1em; font-size: 12px; }
.lede { color: var(--text-2); font-size: 19px; line-height: 1.55; max-width: 40ch; }
.page-head h1, .wrap > h1, .signin h1, .account-head h1, .doc h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -.02em; }
.doc h2, .sub-h { font-size: 28px; line-height: 1.15; }

/* buttons: gold pill, dark text, sans */
.btn-go { background: var(--accent); color: var(--ink); border-radius: 999px; font: 700 19px/1.1 var(--sans); letter-spacing: 0; padding: 17px 24px; box-shadow: 0 10px 24px -8px rgba(201, 162, 74, .45); }
@media (hover: hover) { .btn-go:hover, a.btn-go:hover { background: var(--accent); color: var(--ink); filter: brightness(1.08); transform: translateY(-1px); } }

.guide-cta { border-radius: 999px; font: 700 18px/1.1 var(--sans); letter-spacing: 0; padding: 14px 24px; }
.site-nav .nav-cta { box-shadow: 0 6px 16px -8px rgba(232, 96, 78, .6); }

/* the generator card */

.drop { border: 1.5px dashed #ebc9bf; border-radius: 20px; background: #fffaf7; }

@media (hover: hover) { .drop:hover { border-color: var(--accent); background: #fff1ec; } }

.opt legend, .consent { color: #4d3f45; }

/* cards */
.price-card, .how-grid li, .faq details, .more-list a, .couple, .set-card, .effect-card, .pay-card { border-color: var(--line); box-shadow: var(--shadow); }
.faq details, .more-list a { border-radius: 18px; }

.kid img, .pic img { border-radius: 16px; }

.sec-fold > summary::after, .faq summary::after { font-family: var(--sans); font-weight: 400; }

/* dark theme: cards stay readable on cocoa */

@media (max-width: 560px) {
  h2 { font-size: clamp(27px, 7.6vw, 32px); line-height: 1.12; }
  
  .btn-go { font-size: 18px; padding: 17px 16px; }
  
  
  .brand-word { font-size: 16px; line-height: 1.05; }
  .brand-word em { font-size: 1em; }
}

/* samples on tablets and computers: cards side by side, results filling each card (one long row left the right half empty) */
@media (min-width: 701px) {
  
  .couple { grid-template-columns: minmax(0, 1fr); align-content: start; }
  
  .kid img { width: 100%; height: auto; aspect-ratio: 1; }
}

/* Who they take after (studio.js lookMeter) */
.look { margin: 12px 0 4px; padding: 14px 16px; background: var(--ink-2); border-radius: 16px; box-shadow: 0 1px 3px rgba(59, 42, 37, 0.08); }
.look p { margin: 4px 0 0; }

/* ---------- home layout (2026-11-10 round 4) ---------- */
/* Who the sample baby takes after (samples.mjs look, the site's own model): the share beside each parent photo in the
   first screen, under each parent photo in the sample cards, and a line above each card's caption. */

.cp { display: grid; justify-items: center; gap: 4px; }

/* Prices, laid out like the song site (owner 11-10): a small tag, the question, one line, three cards the same shape,
   then "See all prices" on the left. Phones: the home cards slide sideways instead of three full-width cards. */
.sec-tag { display: inline-block; margin: 0 0 14px; padding: 6px 11px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-text); font: 700 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
section#pricing > h2 { margin: 0 0 10px; }

@media (max-width: 560px) {
  
  
  section#pricing .price-card { scroll-snap-align: start; padding: 18px; box-shadow: 0 1px 2px rgba(60, 30, 30, .05), 0 4px 12px rgba(60, 30, 30, .07); }
  
  
  
  
}

/* Phones: a shorter footer (it ran 1,213 px at 402 wide): Product and Help each as one block of links three to a row,
   the twelve guides folded behind one button; links stay finger-sized. */
@media (max-width: 760px) {
  .site-footer { padding-top: 32px; }
  .footer-grid { gap: 18px; }
  .footer-grid > div:not(:first-child, .footer-guides) { grid-column: 1 / -1; }
  .footer-grid > div:not(:first-child, .footer-guides) > .footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; }
  .footer-grid > div:nth-child(2) > .footer-links > li:first-child { grid-column: span 2; } /* the site name on one line */
  .footer-guides.fold:not(.unfolded) > :is(.footer-h, .footer-links) { display: none; }
  
  .footer-fine { margin-top: 22px; }
}
@media (pointer: coarse) { .footer-fine a::after { inset: -12px -4px; } }

/* Breadcrumb inside a hero column (ultrasound page): line up with the h1, not the page wrap */
.hero-copy .crumbs { width: auto; margin: 0 0 8px; padding-top: 0; }

/* ================= The shop (templates/holiday.mjs) ================= */
.btn-go { background: var(--accent); color: var(--ink); justify-content: center; text-align: center; font-size: 21px; line-height: 1.15; }
.btn-inline { text-decoration: none; }
/* Desktop: a short headline, one line of what it is, and the cards in view next to the uploader (peers 11-17: tailscards
   and personalarcana lead with the cards; ours were below the fold under a 6-line paragraph on a 1000 px window). */
.hero { grid-template-columns: 1fr minmax(0, 470px); gap: 44px; padding-top: 28px; }
.hero h1 { font: 600 clamp(34px, 4vw, 58px)/1.04 var(--display); letter-spacing: -.3px; margin-bottom: 14px; }
.lede { max-width: 40ch; font-size: 19px; }
@media (min-width: 961px) and (max-width: 1180px) {
  .hero { grid-template-columns: 1fr minmax(0, 410px); gap: 32px; }
  .lede { font-size: 17px; }
}
.facts { color: var(--accent-text); font-size: 14px; letter-spacing: .02em; }
.crumbs { width: auto; padding: 0 0 10px; }

/* Studio extras: more photos, the photo tip, the gift line */

.studio { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 18px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent), 0 24px 60px rgba(0, 0, 0, .35); }
.st-step { display: grid; gap: 12px; }
.st-k { margin: 0; font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.drop { position: relative; display: grid; place-items: center; min-height: 170px; border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 16px; background: var(--ink-3); cursor: pointer; overflow: hidden; text-align: center; padding: 16px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-text { display: grid; gap: 6px; pointer-events: none; }
.drop-text b { font: 600 20px/1.2 var(--display); color: var(--text); }
.drop-text small { color: var(--muted); font-size: 13px; }

.drop-busy { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 75%, transparent); font-weight: 600; }
:is(.studio, .rd-form, .gift-pick, .card-maker) .chips, .gift-pick { display: flex; flex-wrap: wrap; gap: 8px; }
:is(.studio, .rd-form, .gift-pick, .card-maker) .chip { position: relative; padding: 0; border-radius: 999px; font: 600 15px/1 var(--sans); letter-spacing: 0; text-transform: none; align-self: auto; }
:is(.studio, .rd-form, .gift-pick, .card-maker) .chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
:is(.studio, .rd-form, .gift-pick, .card-maker) .chip span { display: block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); }
:is(.studio, .rd-form, .gift-pick, .card-maker) .chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--ink); }
:is(.studio, .rd-form, .gift-pick, .card-maker) .chip input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.field small { color: var(--muted); }
.field input, .field textarea { width: 100%; font: 16px/1.4 var(--sans); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; border-color: transparent; }

.fine { margin: 0; }
.st-msg { margin: 0; min-height: 0; font-size: 14px; color: var(--text-2); }
.st-msg.bad { color: #ff9a8f; }
:root[data-theme="light"] .st-msg.bad { color: #b3261e; }
.st-result { display: grid; grid-template-columns: minmax(0, 200px) 1fr; gap: 18px; align-items: start; border-top: 1px solid var(--line); padding-top: 18px; }
.st-card img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, .4); }
.st-painting { display: grid; place-items: center; aspect-ratio: 1024 / 1755; margin: 0; padding: 14px; text-align: center; border-radius: 10px; background: var(--ink-3); color: var(--muted); font-size: 14px; animation: glow 1.6s ease-in-out infinite alternate; }
@keyframes glow { to { background: var(--blush); } }

.price-card { background: var(--ink-3); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 18px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.price-card p { margin: 0; }
.pc-name { font: 600 20px/1.15 var(--display); }
.pc-ship { font-size: 13px; color: var(--accent-text); font-weight: 600; }
.pc-price { font: 600 44px/1 var(--display); color: var(--accent-text); }
.pc-price small { font: 500 15px var(--sans); color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 5px; font-size: 15px; }
.ticks li::before { content: "✦ "; color: var(--accent-text); }
.pc-pay { margin-top: -2px !important; }

.band { background: var(--alt-bg); border-block: 1px solid var(--line); padding: 64px 0; }
.band .wrap, .wrap.pricing, .wrap.answer, .wrap.faq-wrap { padding: 56px 0; }
.band .wrap { padding: 0; }
.lede-2 { font-size: 18px; color: var(--text-2); max-width: 62ch; }

.pricing-grid, .gift-buy { display: grid; grid-template-columns: 1fr minmax(0, 360px); gap: 32px; align-items: start; }
.gift-buy { grid-template-columns: minmax(0, 360px) 1fr; margin: 24px 0 36px; }
.answer-lead { font-size: 19px; color: var(--text); max-width: 70ch; }
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0 0; }
.glance div { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.glance dt { font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.glance dd { margin: 0; font-size: 15px; color: var(--text-2); }
.narrow { width: min(820px, 100% - 40px); }
.wrap.narrow { padding-bottom: 70px; }
.center { text-align: center; }

.guide-tool { margin: 22px 0 34px; }
.guide-fig { margin: 0 0 22px; }
.guide-fig img { display: block; width: 100%; max-width: 520px; height: auto; border-radius: 12px; }
.guide-fig figcaption { margin-top: 6px; }
.guide-list { list-style: none; padding: 0; display: grid; gap: 18px; }
.guide-list a { font: 600 22px/1.2 var(--display); }
.table-wrap { overflow-x: auto; }
.gift-badge { font-size: 46px; color: var(--accent-text); margin: 10px 0 0; }

/* account */
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.notice { background: var(--ink-3); color: var(--text); border: 1px solid var(--accent); border-radius: 14px; padding: 14px 16px; font-weight: 600; }
.deck-view { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 22px; }
.deck-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 6px; }
.bar { height: 8px; border-radius: 99px; background: var(--ink-3); overflow: hidden; margin: 10px 0 4px; }
.bar i { display: block; height: 100%; background: var(--accent); transition: width .6s; }
.dl-box { margin: 16px 0 6px; display: grid; gap: 6px; }
.dl-box p { margin: 0; font-size: 15px; }

.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.deck-card { margin: 0; display: grid; gap: 4px; justify-items: center; }
.deck-card img { width: 100%; height: auto; border-radius: 6px; }
.deck-slot { width: 100%; aspect-ratio: 1024 / 1755; border-radius: 6px; background: var(--ink-3); display: grid; place-items: center; font-size: 12px; color: var(--muted); animation: glow 1.6s ease-in-out infinite alternate; }
.deck-card.wishing { grid-column: 1 / -1; grid-template-columns: minmax(80px, 120px) 1fr; align-items: center; justify-items: stretch; gap: 12px; }
.redraw-form { display: grid; gap: 8px; }
.redraw-form input { font: 16px var(--sans); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); min-height: 44px; }
.redraw-form .btn-small { justify-self: start; }
.previews { display: grid; gap: 14px; }
.preview-view { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.preview-view img { width: 100%; height: auto; border-radius: 8px; }
.gift-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.gift-link { width: min(100%, 360px); font: 14px var(--sans); padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }

/* gift certificate */
.cert { width: min(720px, 100% - 40px); margin: 40px auto; padding: 48px 40px; text-align: center; border: 3px double var(--accent); border-radius: 18px; background: var(--ink-2); }
.cert h1 { font: 600 clamp(34px, 6vw, 54px)/1.05 var(--display); }
.cert-k { font: 700 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); }
.cert-how b { color: var(--accent-text); }
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; color: #0e1f17; }
  .cert { border-color: #c9a24a; background: #fff; color: #0e1f17; }
}

@media (max-width: 900px) {
  .hero, .pricing-grid, .gift-buy { grid-template-columns: 1fr; gap: 28px; }
  /* Phones: title, the facts line, photo -> cards, then the upload box in the first screen; the longer intro after it. */
  .hero { gap: 18px; }
  .hero:not(.hero-trend) .hero-copy { display: contents; }
  .hero-copy > .crumbs, .hero-copy > .eyebrow { order: 1; }
  .hero-copy > h1 { order: 2; margin-bottom: 0; }
  .hero .hero-copy > .facts { display: block; order: 3; margin: 0; font-size: 14px; }
  .hero-upload { display: flex; order: 3; }
  
  .hero-tool { order: 5; }
  .hero-copy > .lede { order: 6; }
  .hero-copy > .steps-line { order: 7; }
  .facts-more { display: none; }
}
@media (max-width: 560px) {
  .studio { padding: 16px; }
  .row2, .glance { grid-template-columns: 1fr; }
  .st-result { grid-template-columns: 1fr; }
  .st-card { max-width: 240px; margin: 0 auto; }
  
  .deck-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .preview-view { grid-template-columns: 90px 1fr; }
  .hero h1 { font-size: 38px; }
}

/* Seasonal line above the header (layout.mjs, app.js) */
.season { margin: 0; padding: 7px 16px; text-align: center; font: 500 13px/1.35 var(--sans); background: var(--accent); color: var(--ink); }
.season a { color: var(--ink); font-weight: 700; }

/* The deck choices under the free card and on /pricing/ (templates/tarot.mjs priceCard, TIERS, pricingPage) */
.ed-pick { display: grid; gap: 8px; margin: 6px 0 10px; }
.ed-opt { position: relative; display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.ed-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ed-opt:has(input:checked) { border-color: var(--accent); background: rgba(217, 179, 90, .08); box-shadow: inset 0 0 0 1px var(--accent); }
.ed-opt:has(input:focus-visible) { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.ed-top { display: flex; align-items: baseline; gap: 8px; }
.ed-top b { font: 600 17px/1.2 var(--display); color: var(--text); }
.ed-n { font-size: 13px; color: var(--muted); }
.ed-price { margin-left: auto; font: 600 20px/1 var(--display); color: var(--accent-text); }
.ed-what { font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.ed-what i { font-style: normal; font-weight: 700; color: var(--accent-text); white-space: nowrap; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 18px 0 10px; }
.tier { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); display: grid; gap: 6px; align-content: start; }
.tier p { margin: 0; }
.tier-main { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tier-tag { font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.tier .pc-price { font-size: 36px; }

.deck-upgrade, .credits-box, .deck-print { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--accent); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.deck-upgrade p, .credits-box p, .deck-print p { margin: 0; flex: 1 1 260px; }

/* Under the upload box: what the free card does and doesn't ask for. */
.st-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0; margin: 12px 0 0; color: var(--text-2); }
.st-trust li::before { content: "✓ "; color: var(--accent-text); }
@media (max-width: 480px) {
  .hero h1 { font-size: 34px; }
}
/* The landing answer (question, answer, four facts) reads top to bottom; as a grid its three blocks sat 60px apart. */
#answer.answer { display: block; }
#answer .answer-lead { margin: 0 0 22px; }

/* ---------- landing page v3 (11-17, peers + Fable review) ---------- */
.hero { align-items: start; }
.hero-upload { width: 100%; margin: 0; }
@media (min-width: 901px) { .hero-upload { display: none; } }
/* Their photo -> the free card and two more, side by side so nothing overlaps (uncards' rows). */

.steps-line { color: var(--muted); margin: 6px 0 0; }
/* The upload box reads as a button: an icon, a gold "Choose a photo", drop hint on desktop. */
.drop-text { justify-items: center; text-align: center; padding: 6px 14px; }
.drop-ico { color: var(--accent-text); }
.drop-btn { display: inline-block; margin: 4px 0 2px; padding: 10px 22px; border-radius: 999px; background: var(--accent); color: var(--ink); font: 700 16px/1.2 var(--sans); }
.drop:hover .drop-btn { filter: brightness(1.08); }
@media (hover: none) { .drop-or2 { display: none; } }

/* Section rhythm: one lighter band for the proof, the rest on the page color. */
.proof { padding-top: 64px; padding-bottom: 64px; }
.proof .lede-2 { margin-bottom: 26px; }

.sec-cta { margin: 26px 0 0; text-align: center; }
/* Three prices side by side (personalarcana), the full deck lifted; one button under them, not one per card. */
.pricing { padding-top: 56px; }
.tier-grid { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.tier { display: grid; align-content: start; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); }
.tier-top { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tier-name { font: 700 13px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.tier-price { font: 600 44px/1 var(--display); color: var(--text); }
.tier p { margin: 4px 0 0; color: var(--text-2); font-size: 15px; }

.promise { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; color: var(--text-2); }
.promise li::before { content: "✓ "; color: var(--accent-text); }
/* Gift and memorial, two cards with a real card each. */

@media (max-width: 900px) {
  
  
  
  .tier-grid { grid-template-columns: 1fr; gap: 10px; }
  .tier { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; padding: 16px 18px; }
  .tier-name { grid-column: 1; }
  .tier-price { grid-column: 2; grid-row: 1 / span 2; font-size: 32px; }
  .tier p { grid-column: 1 / -1; font-size: 14px; }
  .tier-top { order: -1; }
}
@media (max-width: 560px) {
  .proof { padding-top: 40px; padding-bottom: 40px; }
  
  
  
  
  
  .season-long { display: none; }
  
  
  
}

/* ================= Holiday studio, samples and the card maker (templates/holiday.mjs, static/studio.js, account.js) ================= */
.drop-small { min-height: 0; }
.drop-small .drop-text > small, .drop-small .drop-ico, .drop-small .drop-text > b { display: none; }
.drop-small .drop-text { padding: 10px 14px; }
.people { display: grid; gap: 8px; margin: 10px 0 4px; }
.person { display: grid; grid-template-columns: 56px 1fr 32px; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2); }
.person img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.person-f { display: grid; grid-template-columns: 1fr auto; gap: 6px; min-width: 0; }
.person-f input, .person-f select { min-width: 0; width: 100%; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 15px/1.2 var(--sans); }
.person-f select { width: auto; }
.p-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
@media (max-width: 420px) { .person-f { grid-template-columns: 1fr; } .person-f select { width: 100%; } }
.scene-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 8px; margin-bottom: 8px; }
.scene-opt { position: relative; cursor: pointer; }
.scene-opt input { position: absolute; opacity: 0; pointer-events: none; }
.scene-opt span { display: block; height: 100%; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--ink-2); }
.scene-opt b { display: block; font-size: 15px; }
.scene-opt small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.scene-opt input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.scene-opt input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.consent { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 10px; line-height: 1.35; }
.consent input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.fix { padding: 12px 14px; margin-bottom: 12px; border: 1px dashed var(--line); border-radius: 14px; }
.fix p { margin: 0 0 6px; }
.fix-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.fix-tag { min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--text-2); font: 600 13px/1.2 var(--sans); cursor: pointer; }
@media (hover: hover) { .fix-tag:hover { border-color: var(--accent); color: var(--text); } }
@media (pointer: coarse) { .fix-tag { min-height: 44px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sample-row { display: flex; align-items: center; gap: 14px; margin: 16px 0; }
.sr-faces { display: grid; grid-template-columns: repeat(3, 52px); gap: 6px; flex: none; }
.sr-faces img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
.sr-faces span { grid-column: 1 / -1; }
.sr-arrow { font-size: 26px; color: var(--accent-text); flex: none; }
.sr-pic { margin: 0; flex: 1; min-width: 0; }
.sr-pic img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
@media (max-width: 560px) { .sample-row { flex-direction: column; align-items: stretch; } .sr-arrow { transform: rotate(90deg); align-self: center; } .sr-faces { grid-template-columns: repeat(6, 1fr); } .sr-faces img { width: 100%; height: auto; aspect-ratio: 1; } }
.photo-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.photo-grid img { aspect-ratio: 2 / 3; object-fit: cover; }
.card-maker { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 20px; align-items: start; margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-2); }
.card-maker h3 { grid-column: 1 / -1; margin: 0; }
.cm-canvas { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 10px 28px rgba(0, 0, 0, .35); background: var(--ink-3); }
.cm-form .field input { width: 100%; }
.cm-form .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.cm-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 640px) { .card-maker { grid-template-columns: 1fr; } .cm-canvas { max-width: 300px; margin: 0 auto; } }
.sr-tall img { max-height: 520px; width: auto; max-width: 100%; }

/* Home samples grid (11-18): two per row on wide screens, the photos that went in above each picture. */
.sample-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; align-items: end; margin: 8px 0 26px; }
.sample-card { margin: 0; display: grid; gap: 10px; }
.sc-faces { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sc-faces img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.sc-faces span { margin-left: 4px; }
.sc-pic { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
@media (max-width: 760px) { .sample-grid { grid-template-columns: 1fr; gap: 26px; } .sc-faces img { width: 52px; height: 52px; } }
.sr-faces { grid-template-columns: repeat(3, 60px); }
.sr-faces img { width: 60px; height: 60px; }

/* The card section: copy left, the three layouts right; stacked on phones. */
.card-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px 44px; align-items: center; }
.card-show { margin: 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: start; }
.card-show img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.card-show .cs-1 { grid-row: 1 / 3; transform: rotate(-1.5deg); }
.card-show .cs-2 { transform: rotate(1.5deg); }
.card-show figcaption { grid-column: 1 / -1; margin-top: 6px; }
@media (max-width: 760px) { .card-sec { grid-template-columns: 1fr; } }
.sample-solo { grid-column: 1 / -1; justify-self: center; width: min(100%, 480px); }
