/* Lion on the Line (有獅找你) website. Clay look: a night sky (indigo to blue-violet) with warm gold,
   thick rounded "clay" cards with a soft inner highlight and a deep shadow. Light mode keeps the same accents
   on a warm cream page; the hero stays a night-sky panel in both modes, like the app's child screens.
   Font sizes in rem, unitless line heights (spec: 官網SEO/網站現代化規格.md). No JavaScript. */

:root {
  --bg: #FBF5EA;
  --bg-alt: #F3EAD8;
  --card: #FFFCF6;
  --ink: #2A2452;
  --mute: #5B5478;
  --line: rgba(42, 36, 82, .13);
  --accent: #865500;          /* gold, darkened for text on cream */
  --gold: #F2B640;
  --gold-hi: #FAD27A;
  --on-gold: #2A1C00;
  --sky-1: #1B1A5C;
  --sky-2: #2B2378;
  --sky-3: #4A2F86;
  --sky-ink: #F6EFDC;
  --sky-mute: #D2CBEA;
  --clay: inset 0 2px 0 rgba(255, 255, 255, .95), inset 0 -5px 0 rgba(140, 100, 40, .10),
          0 22px 40px -22px rgba(80, 56, 20, .38), 0 2px 5px rgba(80, 56, 20, .07);
  --clay-sm: inset 0 2px 0 rgba(255, 255, 255, .95), inset 0 -3px 0 rgba(140, 100, 40, .10),
             0 10px 22px -14px rgba(80, 56, 20, .35);
  --stars: radial-gradient(1.5px 1.5px at 12% 18%, #FFE7A3 60%, transparent 62%),
           radial-gradient(1px 1px at 33% 72%, #DCD6FF 60%, transparent 62%),
           radial-gradient(2px 2px at 58% 30%, #FFE29A 60%, transparent 62%),
           radial-gradient(1px 1px at 76% 84%, #DCD6FF 60%, transparent 62%),
           radial-gradient(1.5px 1.5px at 88% 12%, #FFE7A3 60%, transparent 62%),
           radial-gradient(1px 1px at 47% 52%, #DCD6FF 60%, transparent 62%),
           radial-gradient(1px 1px at 6% 90%, #FFE7A3 60%, transparent 62%);
  --round: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold";
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15133A;
    --bg-alt: #1B1848;
    --card: #241F58;
    --ink: #F3EDDC;
    --mute: #BFB8DC;
    --line: rgba(255, 255, 255, .12);
    --accent: #F6C453;
    --sky-1: #1A1858;
    --sky-2: #2A2276;
    --sky-3: #4A2F86;
    --clay: inset 0 2px 0 rgba(255, 255, 255, .08), inset 0 -5px 0 rgba(0, 0, 0, .28),
            0 24px 44px -22px rgba(0, 0, 0, .75);
    --clay-sm: inset 0 2px 0 rgba(255, 255, 255, .07), inset 0 -3px 0 rgba(0, 0, 0, .25),
               0 12px 24px -14px rgba(0, 0, 0, .7);
  }
}
:lang(zh-Hant) {
  --round: ui-rounded, "SF Pro Rounded", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei";
  --sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}
:lang(zh-Hans) {
  --round: ui-rounded, "SF Pro Rounded", "PingFang SC", "Noto Sans SC", "Microsoft YaHei";
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
:lang(ja) {
  --round: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic";
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
}
:lang(ko) {
  --round: ui-rounded, "SF Pro Rounded", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic";
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
@media (prefers-color-scheme: dark) {
  body { background: var(--stars), linear-gradient(180deg, #15133A 0%, #1C1750 45%, #15133A 100%); background-size: 560px 560px, 100% 100%; }
}
:lang(zh-Hant), :lang(zh-Hans), :lang(ja) { line-break: strict; }
:lang(ko) { word-break: keep-all; }
:lang(de) h1, :lang(de) h2, :lang(de) h3 { hyphens: auto; }

h1, h2, h3 { text-wrap: balance; margin: 0; font-family: var(--round), var(--sans); font-weight: 800; line-height: 1.25; }
p, li { text-wrap: pretty; }
p { margin: 0; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: .5rem; z-index: 9; background: var(--card); padding: .5rem .875rem; border-radius: 999px; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding-inline: 1.5rem; }
@media (max-width: 30rem) { .wrap { padding-inline: 1rem; } }

/* ---- header ---------------------------------------------------------------- */
.top-bar { display: flex; align-items: center; gap: .75rem 1.25rem; padding-block: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; font-family: var(--round), var(--sans);
  font-weight: 800; font-size: 1.125rem; white-space: nowrap; }
.brand img { border-radius: 10px; box-shadow: var(--clay-sm); }
.top-nav { display: flex; flex-wrap: wrap; gap: .25rem; margin-left: auto; }
.top-nav a, .top-lang summary { text-decoration: none; padding: .375rem .875rem; border-radius: 999px; font-size: .9375rem; font-weight: 600; color: var(--mute); }
.top-nav a:hover, .top-lang summary:hover { background: var(--bg-alt); color: var(--ink); }
.top-nav a[aria-current="page"] { color: var(--ink); background: var(--bg-alt); }
/* language menu: a <details> pill that opens a small clay card listing every language (no JavaScript) */
.top-lang { position: relative; }
.top-lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem;
  border: 1.5px solid var(--line); white-space: nowrap; }
.top-lang summary::-webkit-details-marker { display: none; }
.top-lang summary::after { content: ""; width: .4rem; height: .4rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.1rem) rotate(45deg); margin-left: .1rem; }
.top-lang[open] summary { color: var(--ink); background: var(--bg-alt); }
.globe { width: .95rem; height: .95rem; border: 1.5px solid currentColor; border-radius: 50%; position: relative; flex: none; }
.globe::before { content: ""; position: absolute; inset: -1.5px 25%; border: 1.5px solid currentColor; border-radius: 50%; }
.globe::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid currentColor; }
.top-lang nav { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 20; display: grid; min-width: 12rem;
  padding: .5rem; background: var(--card); border-radius: 1.25rem; box-shadow: var(--clay); border: 1px solid var(--line); }
.top-lang nav a { display: block; padding: .5rem .875rem; border-radius: .75rem; text-decoration: none; font-weight: 600;
  font-size: .9375rem; color: var(--ink); white-space: nowrap; }
.top-lang nav a:hover { background: var(--bg-alt); }
.top-lang nav a[aria-current] { color: var(--accent); font-weight: 800; }
@media (prefers-color-scheme: dark) {
  .top-nav a:hover, .top-lang summary:hover, .top-nav a[aria-current="page"], .top-lang[open] summary,
  .top-lang nav a:hover { background: rgba(255, 255, 255, .08); }
}
@media (max-width: 47.99rem) {
  .top-nav .nav-in { display: none; }
  .top-nav { margin-left: auto; }
  .top-nav a, .top-lang summary { padding: .375rem .625rem; font-size: .875rem; }
  .brand { font-size: 1rem; }
}
@media (max-width: 30rem) {
  .top-bar { flex-wrap: nowrap; gap: .5rem; }
  .top-lang .lang-cur { display: none; }
  .brand span { overflow: hidden; text-overflow: ellipsis; }
  .brand { min-width: 0; }
  .top-nav .nav-pv:not([aria-current]) { display: none; }
  .brand { font-size: .9375rem; gap: .5rem; }
  .brand img { width: 32px; height: 32px; }
  .hero h1 .ln { display: inline; }
}

/* ---- clay surfaces ------------------------------------------------------- */
.clay { background: var(--card); border-radius: 2rem; box-shadow: var(--clay); }
.frame { padding: .875rem; border-radius: 2.75rem;
  background: linear-gradient(150deg, var(--gold-hi), var(--gold) 55%, #E39E2B);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), inset 0 -7px 0 rgba(150, 90, 0, .35), 0 34px 60px -26px rgba(6, 4, 34, .85); }
.frame img { display: block; width: 100%; border-radius: 2rem; }

/* ---- hero: a night-sky clay panel ---------------------------------------- */
.hero { padding: .25rem 0 0; }
.hero-grid { position: relative; display: grid; gap: 2.5rem; align-items: center;
  background: var(--stars), linear-gradient(160deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%);
  background-size: 420px 420px, 100% 100%;
  color: var(--sky-ink); border-radius: 3rem; padding: 4rem 4rem 4.5rem;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .10), inset 0 -8px 0 rgba(0, 0, 0, .25), 0 40px 70px -40px rgba(20, 14, 70, .7); }
@media (min-width: 56.25rem) { .hero-grid { grid-template-columns: minmax(0, 1fr) 25rem; gap: 3.5rem; } }
@media (prefers-color-scheme: dark) { .hero-grid { box-shadow: inset 0 3px 0 rgba(255, 255, 255, .10), inset 0 -8px 0 rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 70px -40px rgba(0, 0, 0, .8); } }
.hero .wrap.hero-grid { max-width: calc(72rem - 3rem); width: calc(100% - 2rem); }
.eyebrow { font-family: var(--round), var(--sans); font-weight: 700; font-size: .9375rem; letter-spacing: .04em; color: var(--gold-hi); margin-bottom: .875rem; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.125rem); line-height: 1.15; }
.hero h1 .ln { display: block; }
.lead { margin-top: 1.25rem; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--sky-ink); max-width: 34em; }
.lang-note { margin-top: .875rem; color: var(--sky-mute); font-size: .9375rem; }
.cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .875rem 1.5rem; }
.soon { display: inline-flex; align-items: center; gap: .625rem; padding: .75rem 1.25rem; border-radius: 999px;
  font-family: var(--round), var(--sans); font-weight: 800; font-size: 1.0625rem;
  background: rgba(255, 255, 255, .08); border: 2px solid rgba(246, 196, 83, .6); color: var(--sky-ink); }
.soon-dot { width: .625rem; height: .625rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(246, 196, 83, .22); }
.badge img { display: block; }
.more { font-weight: 700; color: var(--gold-hi); text-decoration: none; }
.more:hover { text-decoration: underline; }
.hero-pic { justify-self: center; width: min(100%, 25rem); }
@media (max-width: 56.24rem) {
  .hero-grid { padding: 2.5rem 1.75rem 2.25rem; border-radius: 2.25rem; text-align: left; }
  .hero-pic { width: min(78vw, 22rem); }
}
@media (max-width: 30rem) {
  .hero .wrap.hero-grid { padding: 2rem 1.25rem 1.75rem; border-radius: 2rem; }
  .hero-pic { padding: .625rem; border-radius: 2.25rem; }
  .hero-pic img { border-radius: 1.625rem; }
}

/* ---- bands --------------------------------------------------------------- */
.band { padding: 4.5rem 0; }
.band-alt { background: var(--bg-alt); border-radius: 3rem; margin-inline: .75rem; }
@media (prefers-color-scheme: dark) { .band-alt { background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); } }
.band h2 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); margin-bottom: 1.75rem; }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; margin-bottom: 1.75rem; }
.band-head h2 { margin: 0; }
.band-head p { color: var(--mute); font-size: 1.0625rem; }
@media (max-width: 30rem) { .band { padding: 3.25rem 0; } .band-alt { margin-inline: .375rem; border-radius: 2rem; } }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 51.25rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.step { padding: 1.75rem 1.75rem 2rem; }
.step h3 { font-size: 1.25rem; margin: 1rem 0 .5rem; }
.step p { color: var(--mute); }
/* demo video under the steps */
.demo { margin: 2.25rem 0 0; }
.demo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 2rem;
  background: var(--sky-1); box-shadow: var(--clay); }
.demo figcaption { margin-top: .875rem; color: var(--mute); font-size: .9375rem; text-align: center; text-wrap: balance; }
.num { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  font-family: var(--round), var(--sans); font-weight: 800; font-size: 1.375rem; color: var(--on-gold);
  background: linear-gradient(150deg, var(--gold-hi), var(--gold));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -4px 0 rgba(150, 90, 0, .3), 0 8px 16px -8px rgba(150, 90, 0, .6); }

/* cast */
.cast { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40rem) { .cast { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 62.5rem) { .cast { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.cast-card { position: relative; background: var(--card); border-radius: 1.75rem; box-shadow: var(--clay-sm); padding: .75rem .75rem 1.125rem; display: flex; flex-direction: column; }
.cast-card:not(.has-pic) { padding-top: 1.375rem; }
.cast-card:not(.has-pic)::before { content: ""; position: absolute; left: 1rem; right: 1rem; top: .625rem; height: .375rem; border-radius: 999px; background: var(--c); }
.cast-pic { display: block; width: 100%; aspect-ratio: 1; border-radius: 1.25rem; box-shadow: 0 0 0 3px var(--c); margin-bottom: .875rem; }
.cast-text { padding-inline: .375rem; }
.cast-card h3 { font-size: 1.0625rem; line-height: 1.3; }
.cast-who { font-size: .875rem; color: var(--mute); margin-top: .25rem; line-height: 1.45; }
.tasks { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .375rem; }
.tasks li { font-size: .875rem; font-weight: 700; padding: .25rem .625rem; border-radius: 999px; line-height: 1.4;
  background: var(--bg-alt); background: color-mix(in srgb, var(--c) 20%, var(--card)); }

/* one phone or two, booth */
.modes { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 51.25rem) { .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
.mode { padding: 2rem; }
.mode h3, .booth h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.mode p + p, .booth p + p { margin-top: .75rem; }
.mode p:last-child { color: var(--mute); }
.booth { margin-top: 1.5rem; padding: 2rem; display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 51.25rem) { .booth.has-pic { grid-template-columns: minmax(0, 1fr) 15rem; gap: 2.5rem; padding: 2rem 2.5rem; } }
.booth-pic { width: min(100%, 15rem); justify-self: center; padding: .625rem; border-radius: 2rem; }
.booth-pic img { border-radius: 1.5rem; }

/* what it does not do + requirements */
.two { display: grid; gap: 3rem; }
@media (min-width: 53.75rem) { .two { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 3.5rem; } }
.nots { list-style: none; margin: 0; padding: 0; display: grid; gap: .875rem; }
.nots li { position: relative; padding-left: 2rem; }
.nots li::before { content: ""; position: absolute; left: .125rem; top: .45em; width: 1.125rem; height: 1.125rem; border-radius: 50%;
  border: 2px solid var(--mute); background: linear-gradient(135deg, transparent 44%, var(--mute) 45%, var(--mute) 55%, transparent 56%); opacity: .7; }
.info { margin: 0; padding: .5rem 1.75rem; }
.info div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: .875rem 0; border-bottom: 1px solid var(--line); }
.info div:last-child { border-bottom: 0; }
.info dt { color: var(--mute); font-size: .9375rem; }
.info dd { margin: 0; font-weight: 700; }

/* faq */
.narrow { max-width: 52rem; }
.faq { display: grid; gap: .75rem; }
.qa { background: var(--card); border-radius: 1.5rem; box-shadow: var(--clay-sm); }
.qa summary { cursor: pointer; list-style: none; padding: 1.125rem 3.25rem 1.125rem 1.5rem; position: relative;
  font-family: var(--round), var(--sans); font-weight: 800; font-size: 1.0625rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; translate: 0 -50%; width: 1.75rem; height: 1.75rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--bg-alt); color: var(--accent); font-size: 1.25rem; line-height: 1;
  transition: rotate .2s ease; }
.qa[open] summary::after { rotate: 45deg; }
.qa p { padding: 0 1.5rem 1.375rem; color: var(--mute); }
.qa summary:hover { color: var(--accent); }

/* end */
.end { text-align: center; }
.end-card { display: grid; justify-items: center; gap: 1.25rem; }
.end-icon { border-radius: 1.5rem; box-shadow: var(--clay); }
.end h2 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.625rem); max-width: 30em; margin: 0; }
.end .cta { justify-content: center; margin-top: .25rem; }
.end .soon { color: var(--ink); background: var(--card); border-color: var(--gold); box-shadow: var(--clay-sm); }
.end .more { color: var(--accent); }

/* ---- privacy / support -------------------------------------------------- */
.doc { max-width: 52rem; margin: 1.5rem auto 4rem; padding: 3rem 3.5rem; }
@media (max-width: 40rem) { .doc { padding: 2rem 1.375rem; margin-top: .5rem; border-radius: 1.75rem; } }
.doc h1 { font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.5rem); }
.doc h2 { font-size: 1.25rem; margin: 2.25rem 0 .625rem; }
.doc p + p { margin-top: .75rem; }
.updated { color: var(--mute); font-size: .9375rem; margin-top: .375rem; }
.intro { margin-top: 1.25rem; font-size: 1.0625rem; }
.doc a { color: var(--accent); font-weight: 600; }
.doc ol, .doc ul { margin: 0; padding-left: 1.5rem; display: grid; gap: .5rem; }
.doc li::marker { color: var(--accent); font-weight: 800; }
.contact { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: 1rem 1.25rem;
  border-radius: 1.25rem; background: var(--bg-alt); }
@media (prefers-color-scheme: dark) { .contact { background: rgba(255, 255, 255, .06); } }
.contact span { color: var(--mute); font-weight: 600; }
.nf + .nf { margin-top: 1.75rem; }
.nf h2 { margin-top: 1.25rem; }

/* ---- footer ------------------------------------------------------------- */
.foot { margin-top: 2rem; padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--mute); }
.foot .wrap { display: grid; gap: 1rem; }
.foot-brand { display: flex; align-items: center; gap: .75rem; font-family: var(--round), var(--sans); font-weight: 800; color: var(--ink); line-height: 1.3; }
.foot-brand img { border-radius: 10px; }
.foot-brand .en { font-weight: 600; color: var(--mute); font-size: .875rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot-links a, .foot-langs a { color: var(--ink); text-decoration: none; }
.foot-links a:hover, .foot-langs a:hover { text-decoration: underline; }
.foot-langs { display: flex; flex-wrap: wrap; gap: .375rem 1rem; }
.foot-langs a[aria-current] { font-weight: 800; color: var(--accent); }
@media (min-width: 51.25rem) {
  .foot .wrap { grid-template-columns: auto 1fr; align-items: center; gap: 1rem 2.5rem; }
  .foot-links { justify-content: flex-end; }
  .foot-langs { grid-column: 1 / -1; }
  .rights { grid-column: 1 / -1; }
}

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