/* =====================================================================
   Roxheiris marketing site: layout + components (served at /app/assets/site/brand.css)
   Design system v2 ("Dawn" kit: poster type, sticker cards, dot grid, diagonal panels).

   Tokens come from the shared files. Every page loads, in this order:
     /app/assets/site/fonts.css   (self-hosted Dela Gothic One, M PLUS 2, DM Mono + Lucide)
     /app/assets/site/roxheiris.css   (palettes, light/dark, base element rules)
     /app/assets/site/brand.css   (this file: site layout only)
   Nothing here redefines a palette colour. The few site-only tokens are the
   --band-* set and --gutter / --nav-h below, plus the --pop-* helpers.

   Theme: <html data-theme="light|dark" data-palette="..."> is set by an inline
   <head> script from localStorage (saki.web.theme / saki.web.palette). Absent =
   follows the OS (roxheiris.css handles that).
   Components are prefixed z-. Only the .z-page body opts into the base reset.
   ===================================================================== */

:root {
  --gutter: 16px;
  --nav-h: 68px;
  /* promo band: pink poster in light, calm night panel in dark (never a big neon fill) */
  --band-bg: var(--brand-primary);
  --band-fg: var(--fg-on-brand);
  --band-stripes: repeating-linear-gradient(-45deg, rgba(255,255,255,.14) 0 14px, transparent 14px 28px);
  --band-edge: transparent;
  --on-night: #FFFFFF;
}
@media (min-width: 760px) { :root { --gutter: 24px; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --band-bg: var(--surface-night-2); --band-fg: #FFFFFF;
    --band-stripes: repeating-linear-gradient(-45deg, rgba(255,46,136,.10) 0 14px, transparent 14px 28px);
    --band-edge: var(--brand-primary);
  }
}
:root[data-theme="dark"], :root[data-palette="night"] {
  --band-bg: var(--surface-night-2); --band-fg: #FFFFFF;
  --band-stripes: repeating-linear-gradient(-45deg, rgba(255,46,136,.10) 0 14px, transparent 14px 28px);
  --band-edge: var(--brand-primary);
}

/* ---- page base (opt-in) ---- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
.z-page {
  min-height: 100dvh; overflow-x: clip;
  font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body);
  color: var(--fg-1); background: var(--surface-page); -webkit-font-smoothing: antialiased;
}
:where(.z-page) :where(h1, h2, h3, p) { margin: 0; }
:where(.z-page) :where(h1, h2) { font-family: var(--font-display); font-weight: 400; text-wrap: balance; letter-spacing: var(--tracking-display); }
:where(.z-page) [hidden] { display: none !important; }
.z-container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }
.z-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.z-skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 100; padding: 10px 18px; background: var(--brand-primary); color: var(--fg-on-brand); border-radius: var(--radius-pill); font-weight: 800; transition: top var(--dur-fast) var(--ease-out); }
.z-skip:focus { top: 10px; text-decoration: none; }
.z-page a.z-link { color: var(--fg-link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.z-page a.z-link:hover { color: var(--fg-link); text-decoration-thickness: 2px; }

/* mono eyebrow (✦ ENGLISH · 日本語) */
.z-eyebrow { display: block; font: 500 12px/1.4 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-link); margin-bottom: 14px; }
.z-eyebrow--light { color: var(--sky-300); }

/* ---- buttons (pill, sticker squish) ---- */
.z-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap-min); padding: 0 22px; border-radius: var(--radius-pill);
  border: 2px solid transparent; font: 800 15px/1 var(--font-sans); letter-spacing: .01em;
  white-space: nowrap; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-base) var(--ease-spring), background-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-spring), color var(--dur-fast) var(--ease-out);
}
.z-btn:hover { text-decoration: none; }
.z-btn [class^="icon-"] { font-size: 18px; }
.z-btn--primary { background: var(--brand-primary); color: var(--fg-on-brand); box-shadow: var(--btn-glow); }
.z-btn--secondary { background: var(--surface-card); color: var(--fg-1); border-color: var(--border-strong); box-shadow: var(--shadow-pop-sm); }
.z-btn--ghost { background: transparent; color: var(--fg-link); }
.z-btn--night { background: var(--surface-night); color: var(--on-night); border-color: rgba(255,255,255,.35); }
.z-btn--lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.z-btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.z-btn--block { display: flex; width: 100%; }
.z-btn:disabled, .z-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.z-page a.z-btn--primary, .z-page a.z-btn--primary:hover { color: var(--fg-on-brand); }
.z-page a.z-btn--secondary, .z-page a.z-btn--secondary:hover { color: var(--fg-1); }
.z-page a.z-btn--ghost, .z-page a.z-btn--ghost:hover { color: var(--fg-link); }
.z-page a.z-btn--night, .z-page a.z-btn--night:hover { color: var(--on-night); }
@media (hover: hover) and (pointer: fine) {
  .z-btn--primary:hover:not(:disabled) { background: var(--brand-primary-press); transform: translateY(-1px); box-shadow: var(--shadow-glow-dawn); }
  .z-btn--secondary:hover:not(:disabled) { box-shadow: var(--shadow-pop); transform: translateY(-1px); }
  .z-btn--ghost:hover:not(:disabled) { background: var(--surface-primary-tint); }
  .z-btn--night:hover:not(:disabled) { background: var(--surface-night-2); transform: translateY(-1px); }
}
.z-btn:active:not(:disabled) { transform: translate(2px, 2px) scale(.98); }
.z-btn--secondary:active:not(:disabled) { box-shadow: none; }
.z-btn:focus-visible, .z-iconbtn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

.z-iconbtn {
  display: inline-grid; place-items: center; width: var(--tap-min); height: var(--tap-min); padding: 0;
  border-radius: var(--radius-pill); border: 2px solid transparent; background: transparent; color: var(--fg-1);
  font-size: 20px; cursor: pointer; transition: transform var(--dur-base) var(--ease-spring), background-color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) { .z-iconbtn:hover { background: var(--surface-primary-tint); } }
.z-iconbtn:active { transform: scale(.92); }

/* ---- site nav (glass) ---- */
.z-nav { position: sticky; top: 0; z-index: 50; background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-bottom: 1px solid var(--border-1); }
.z-nav .z-container { height: var(--nav-h); display: flex; align-items: center; gap: 8px; }
.z-mark { font: 400 24px/1 var(--font-display); color: var(--fg-1); letter-spacing: var(--tracking-display); display: inline-flex; align-items: baseline; padding: 8px 0; }
.z-page a.z-mark, .z-page a.z-mark:hover { color: var(--fg-1); text-decoration: none; font-weight: 400; }
.z-mark i { font-style: normal; color: var(--brand-text); text-shadow: var(--glow-text); margin-left: 1px; }
.z-nav__links { display: none; gap: 4px; margin-left: 20px; flex: 1; }
.z-nav__links a { font: 800 14px/1 var(--font-sans); color: var(--fg-2); padding: 14px 12px; border-radius: var(--radius-pill); }
.z-page .z-nav__links a:hover { color: var(--fg-1); background: var(--surface-primary-tint); text-decoration: none; }
.z-nav__end { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.z-nav__end .z-signin { display: none; }
@media (min-width: 560px) { .z-nav__end .z-signin { display: inline-flex; } }
@media (min-width: 900px) { .z-nav__links { display: flex; } .z-nav__end { margin-left: 0; } }
/* mobile menu: button + disclosure panel (no framework) */
.z-menubtn { width: 44px; margin-right: -6px; }
.z-burger, .z-burger::before, .z-burger::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.z-burger { position: relative; }
.z-burger::before, .z-burger::after { content: ""; position: absolute; left: 0; }
.z-burger::before { top: -6px; } .z-burger::after { top: 6px; }
.z-menubtn[aria-expanded="true"] .z-burger { background: transparent; }
.z-menubtn[aria-expanded="true"] .z-burger::before { transform: translateY(6px) rotate(45deg); }
.z-menubtn[aria-expanded="true"] .z-burger::after { transform: translateY(-6px) rotate(-45deg); }
.z-menupanel { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 8px var(--gutter) 16px; background: var(--surface-card); border-bottom: 1px solid var(--border-2); box-shadow: var(--shadow-2, 0 12px 24px rgba(0,0,0,.12)); animation: z-fade var(--dur-base) var(--ease-out); }
.z-menupanel[hidden] { display: none; }
.z-menupanel a { font: 800 17px/1 var(--font-sans); color: var(--fg-1); padding: 16px 4px; min-height: 52px; display: flex; align-items: center; border-bottom: 1px solid var(--border-1); }
.z-menupanel a:last-child { border-bottom: 0; color: var(--fg-link); }
.z-page .z-menupanel a:hover { text-decoration: none; background: var(--surface-primary-tint); }
@media (min-width: 900px) { .z-menubtn, .z-menupanel { display: none !important; } }
.z-nav__back { font: 800 14px/1 var(--font-sans); color: var(--fg-2); padding: 14px 12px; }

/* ---- hero ---- */
.z-hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--surface-card) 0%, var(--surface-primary-tint) 70%, var(--surface-secondary-tint) 100%); }
.z-hero__dots { position: absolute; inset: 0; background: var(--pattern-dots); opacity: .55; z-index: -2; }
.z-hero__panel { position: absolute; right: -8%; top: 0; bottom: 0; width: 58%; z-index: -1;
  background: color-mix(in srgb, var(--brand-primary) 16%, var(--surface-card)); clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
.z-hero__grid { display: grid; gap: 8px; padding-top: 40px; align-items: end; }
.z-hero__copy { padding-bottom: 8px; }
.z-hero h1 { font-size: clamp(46px, 13.2vw, 92px); line-height: .98; color: var(--fg-1); }
.z-hero h1 em { font-style: normal; color: var(--brand-text); text-shadow: var(--glow-text); }
/* big glow smears neighbouring letters at phone sizes: tighten it */
@media (max-width: 600px) {
  :root[data-theme="dark"] .z-hero h1 em, :root[data-palette="night"] .z-hero h1 em { text-shadow: 0 0 10px color-mix(in srgb, var(--brand-primary) 60%, transparent); }
}
@media (max-width: 600px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .z-hero h1 em { text-shadow: 0 0 10px color-mix(in srgb, var(--brand-primary) 60%, transparent); }
}
.z-hero .z-lede { font-size: 18px; line-height: 1.6; color: var(--fg-2); max-width: 31em; margin: 22px 0 28px; text-wrap: pretty; }
.z-cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.z-hero__art { position: relative; height: 430px; display: flex; justify-content: center; align-items: flex-end; }
.z-hero__art img { position: relative; z-index: 1; height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; display: block; }
.z-hero__kana { position: absolute; right: 2%; top: 4px; font: 400 84px/1 var(--font-display); color: var(--kana-fill); -webkit-text-stroke: var(--kana-stroke);
  text-shadow: var(--glow-text-cyan); writing-mode: vertical-rl; letter-spacing: .05em; opacity: .9; user-select: none; }
@media (min-width: 900px) {
  .z-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; padding-top: 56px; }
  .z-hero__copy { align-self: center; padding-bottom: 96px; }
  .z-hero h1 { font-size: clamp(64px, 7.4vw, 100px); }
  .z-hero__art { height: 620px; }
  .z-hero__kana { font-size: 120px; top: 10px; }
}

/* ticker band (diagonal, the single marquee on the page) */
.z-ticker { position: relative; z-index: 3; margin: -46px -40px 0; padding: 14px 0; transform: rotate(-2deg); overflow: hidden;
  background: var(--surface-night); color: var(--on-night); box-shadow: var(--ticker-glow); }
.z-ticker__run { display: flex; gap: 36px; width: max-content; white-space: nowrap; margin-left: 88px; animation: z-tick 34s linear infinite; }
/* soft edge fade: the marquee never shows a hard-cropped word at the band edges (the band bleeds past the viewport by 40px each side). */
.z-ticker { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 240px, #000 calc(100% - 240px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 240px, #000 calc(100% - 240px), transparent 100%); }
@media (max-width: 600px) { .z-ticker { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 110px, #000 calc(100% - 110px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 110px, #000 calc(100% - 110px), transparent 100%); } .z-ticker__run { margin-left: 56px; } }
.z-ticker__run span { font: 400 20px/1 var(--font-display); display: flex; gap: 36px; align-items: center; }
.z-ticker__run b { font-weight: 400; color: var(--sun-400); }
.z-ticker__run span:nth-child(even) b { color: var(--sky-300); }
@keyframes z-tick { to { transform: translateX(-33.333%); } }
.z-hero__after { height: 40px; }

/* subscription note strip */
.z-note { background: var(--surface-sunken); border-bottom: 1px solid var(--border-1); }
.z-note .z-container { display: flex; gap: 14px; align-items: flex-start; padding-block: 22px; }
.z-note i { flex: none; font-size: 24px; color: var(--fg-link); margin-top: 2px; }
.z-note p { color: var(--fg-2); max-width: 72ch; }
.z-note strong { color: var(--fg-1); font-weight: 800; }

/* ---- sections ---- */
.z-section { padding-block: 72px; position: relative; }
@media (min-width: 900px) { .z-section { padding-block: 100px; } }
.z-head { margin-bottom: 36px; }
.z-h2 { font-size: clamp(32px, 6.2vw, 56px); line-height: 1.05; color: var(--fg-1); }
.z-h2--light { color: #fff; }
.z-sub { margin-top: 16px; color: var(--fg-2); font-size: 17px; max-width: 46ch; text-wrap: pretty; }

/* sticker cards */
.z-card { background: var(--surface-card); border: 2px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); padding: 24px; }
.z-card--plain { border: 1px solid var(--border-1); box-shadow: var(--shadow-1); }
.z-card--dawn { background: var(--surface-dawn); }
.z-card--sky { background: var(--surface-sky); }
@media (hover: hover) and (pointer: fine) {
  .z-card--lift { transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base) var(--ease-spring); }
  .z-card--lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop-lg); }
}
.z-tile { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; border: 2px solid var(--border-strong); font-size: 26px; color: var(--fg-on-brand); flex: none; }
.z-tile--pink { background: var(--brand-primary); }
.z-tile--sky { background: var(--brand-secondary); color: var(--fg-on-secondary); }
.z-tile--sun { background: var(--brand-highlight); color: #05020C; }
.z-card { display: flex; flex-direction: column; }
.z-card h3 { font: 900 22px/1.2 var(--font-sans); margin: 22px 0 10px; }
.z-bento .z-card p { color: var(--fg-2); font-size: 15px; max-width: 46ch; }

/* features: bento with exact cell count */
.z-bento { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .z-bento { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .z-bento > :nth-child(1) { grid-column: span 7; }
  .z-bento > :nth-child(2) { grid-column: span 5; }
  .z-bento > :nth-child(3) { grid-column: span 5; }
  .z-bento > :nth-child(4) { grid-column: span 7; }
}
.z-greets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 22px; }
.z-greet { background: var(--surface-page); border: 2px solid var(--border-strong); border-radius: 22px 22px 22px 6px; padding: 10px 18px; font: 400 26px/1.1 var(--font-display); color: var(--fg-1); }
.z-greet:nth-child(2) { color: var(--fg-link); border-radius: 22px 22px 6px 22px; }
.z-faces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; padding-top: 22px; }
.z-face { aspect-ratio: 1; border-radius: 18px; overflow: hidden; position: relative; background: color-mix(in srgb, var(--brand-secondary) 22%, var(--surface-card)); border: 2px solid var(--border-strong); }
.z-face img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; display: block; }
.z-card--wide { display: grid; gap: 20px; align-content: start; }
.z-where { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 22px; }
.z-tag { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--surface-sunken); border: 1px solid var(--border-2); color: var(--fg-1); font: 700 13px/1 var(--font-sans); }
.z-tag i { font-size: 16px; color: var(--fg-link); }
.z-tag--soon { background: var(--brand-highlight); border-color: transparent; color: #05020C; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }

/* mao profile (dark stage) */
.z-profile { background: var(--surface-night); color: var(--on-night); overflow: hidden; isolation: isolate; }
.z-profile::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.12) 1.2px, transparent 1.4px); background-size: 14px 14px; }
.z-profile__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .z-profile__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.z-portrait { position: relative; height: 400px; border-radius: var(--radius-xl); background: var(--surface-night-2); box-shadow: var(--shadow-pop-dawn); overflow: hidden; }
.z-portrait img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 84%; max-width: 470px; height: auto; display: block; }
.z-portrait__tab { position: absolute; left: 20px; top: 20px; background: var(--brand-primary); color: var(--fg-on-brand); font: 400 16px/1 var(--font-display); padding: 10px 24px 10px 14px; clip-path: var(--clip-tab); }
@media (min-width: 900px) { .z-portrait { height: 560px; } }
.z-facts { margin: 0 0 28px; display: grid; }
.z-facts div { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--night-line); }
.z-facts dt { flex: 0 0 112px; font: 500 12px/1.7 var(--font-mono); letter-spacing: .14em; color: var(--sky-300); }
.z-facts dd { margin: 0; font: 700 16px/1.5 var(--font-sans); }
.z-tabs-label { margin-bottom: 12px; font: 500 12px/1 var(--font-mono); letter-spacing: .14em; color: var(--night-muted); text-transform: uppercase; }
.z-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--surface-night-2); border: 1px solid var(--night-line); }
.z-tabs button { min-height: 40px; padding: 0 18px; border-radius: var(--radius-pill); border: 0; background: transparent; color: #fff; font: 800 14px/1 var(--font-sans); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.z-tabs button[aria-selected="true"] { background: var(--brand-primary); color: var(--fg-on-brand); }
.z-tabs button:focus-visible { outline: 3px solid var(--sky-300); outline-offset: 2px; }
.z-quote { margin-top: 20px; max-width: 470px; padding: 20px 22px; background: var(--surface-card); color: var(--fg-1); border-radius: 22px 22px 22px 6px; font: 500 18px/1.5 var(--font-sans); }
.z-quote small { display: block; font: 500 10.5px/1 var(--font-mono); letter-spacing: .14em; color: var(--fg-link); margin-bottom: 9px; text-transform: uppercase; }
.z-quote-note { margin-top: 10px; font-size: 13px; color: var(--night-muted); }

/* steps */
.z-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 28px; position: relative; }
.z-steps li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; position: relative; }
.z-steps .z-tile { width: 64px; height: 64px; border-radius: 50%; font-size: 28px; box-shadow: var(--shadow-pop-sm); }
.z-steps h3 { font: 900 21px/1.2 var(--font-sans); margin-top: 4px; }
.z-steps p { color: var(--fg-2); margin-top: 6px; max-width: 38ch; }
.z-steps li:not(:last-child)::before { content: ""; position: absolute; left: 31px; top: 70px; bottom: -22px; border-left: 2px dashed var(--border-strong); opacity: .5; }
@media (min-width: 900px) {
  .z-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .z-steps li { grid-template-columns: 1fr; gap: 20px; }
  .z-steps li:not(:last-child)::before { left: 80px; right: -20px; top: 31px; bottom: auto; border-left: 0; border-top: 2px dashed var(--border-strong); }
}

/* pricing */
.z-pricing { background: var(--surface-dawn); isolation: isolate; overflow: hidden; }
.z-pricing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pattern-dots); opacity: .5; }
.z-price-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .z-price-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.z-plan { display: grid; gap: 20px; padding: 28px; }
@media (min-width: 640px) { .z-plan { padding: 36px; } }
.z-plan__name { font: 400 15px/1 var(--font-display); letter-spacing: .02em; display: inline-block; justify-self: start; background: var(--brand-primary); color: var(--fg-on-brand); padding: 9px 22px 9px 14px; clip-path: var(--clip-tab); text-transform: uppercase; }
.z-amount { font-family: var(--font-display); font-weight: 400; font-size: clamp(46px, 11vw, 68px); line-height: 1; font-variant-numeric: tabular-nums; color: var(--fg-1); }
.z-amount small { font: 500 16px/1 var(--font-sans); color: var(--fg-2); }
.z-amount .fallback { font: 800 22px/1.2 var(--font-sans); }
.z-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.z-checks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; color: var(--fg-2); font-size: 15px; }
.z-checks i { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-secondary); color: var(--fg-on-secondary); display: grid; place-items: center; font-size: 14px; margin-top: 1px; }
.z-fine { font-size: 13px; color: var(--fg-3); line-height: 1.5; }
.z-soon { padding: 12px 16px; border-radius: var(--radius-md); background: var(--surface-card); border: 2px solid var(--border-strong); font-size: 14px; }

/* faq */
.z-faq { background: var(--alt-bg-2); }
.z-faq__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .z-faq__grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
@media (min-width: 1024px) { .z-faq__grid > :first-child { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; } }
.z-faq details { background: var(--surface-card); border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 0 20px; margin-bottom: 12px; box-shadow: var(--shadow-1); transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.z-faq details[open] { border: 2px solid var(--border-strong); padding-inline: 19px; box-shadow: var(--shadow-pop-sm); }
.z-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 58px; padding: 12px 0; font: 800 16px/1.35 var(--font-sans); }
.z-faq summary::-webkit-details-marker { display: none; }
:root { interpolate-size: allow-keywords; }
@supports (selector(::details-content)) {
  .z-faq details::details-content { block-size: 0; overflow: clip; transition: block-size 200ms var(--ease-out), content-visibility 200ms allow-discrete; }
  .z-faq details[open]::details-content { block-size: auto; }
  .z-faq .a { animation: none; }
}
.z-faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--fg-link); border-bottom: 2.5px solid var(--fg-link); transform: rotate(45deg) translateY(-2px); transition: transform var(--dur-base) var(--ease-spring); }
.z-faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.z-faq .a { padding: 0 0 18px; color: var(--fg-2); max-width: 60ch; animation: z-fade var(--dur-base) var(--ease-out); }
@keyframes z-fade { from { opacity: 0; transform: translateY(-4px); } }

/* closing band */
.z-band { position: relative; overflow: hidden; isolation: isolate; background: var(--band-bg); color: var(--band-fg); padding-block: 72px; border-block: 2px solid var(--band-edge); }
.z-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--band-stripes); }
.z-band__in { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.z-band h2 { font-size: clamp(34px, 7vw, 64px); line-height: 1.02; color: var(--band-fg); }
.z-band__kana { display: block; font: 400 clamp(24px, 4vw, 34px)/1 var(--font-display); letter-spacing: .06em; color: var(--band-fg); opacity: .8; margin-bottom: 12px; }
.z-band .z-eyebrow { color: var(--band-fg); opacity: .85; }

/* footer */
.z-footer { background: var(--surface-night); color: var(--on-night); padding: 56px 0 28px; }
.z-footer__grid { display: flex; gap: 40px 56px; flex-wrap: wrap; }
.z-footer__brand { flex: 1 1 260px; }
.z-footer__brand .z-mark { font-size: 32px; color: #fff; }
.z-page .z-footer a.z-mark { color: #fff; }
.z-footer__brand i { color: var(--sun-400); text-shadow: var(--glow-text-cyan); }
.z-footer__brand p { color: var(--night-muted); font-size: 14px; margin-top: 12px; max-width: 30ch; }
.z-footer__col { display: grid; gap: 4px; align-content: start; min-width: 130px; }
.z-footer__col h2 { font: 500 11px/1 var(--font-mono); letter-spacing: .16em; color: var(--sky-300); margin-bottom: 8px; text-transform: uppercase; }
.z-page .z-footer :is(.z-footer__col, .z-footer__row) a { color: #fff; font: 500 14px/1.2 var(--font-sans); padding: 8px 0; display: inline-block; }
.z-page .z-footer :is(.z-footer__col, .z-footer__row) a:hover { color: var(--sun-400); }
.z-footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--night-line); display: grid; gap: 10px; }
.z-footer__legal p { font-size: 12.5px; line-height: 1.6; color: var(--night-muted); max-width: 92ch; }
.z-footer--slim { padding: 24px 0 28px; }
.z-footer--slim .z-footer__legal { margin-top: 0; border-top: 0; padding-top: 0; }
.z-footer--slim .z-footer__row { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 8px; }
.z-page .z-footer--slim .z-footer__row a { padding: 6px 0; font-size: 13px; }

/* reveal on scroll (content stays visible without JS) */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: 70ms; } .js .rv.d2 { transition-delay: 140ms; }

/* ---- forms ---- */
.z-field { display: grid; gap: 8px; }
.z-label { font: 800 13px/1.2 var(--font-sans); color: var(--fg-1); }
.z-label small { font-weight: 500; color: var(--fg-3); font-size: inherit; }
.z-input { width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--radius-md); border: 2px solid var(--ink-400); background: var(--surface-card); color: var(--fg-1); font: 500 16px/1.2 var(--font-sans); transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.z-input:hover { border-color: var(--fg-2); }
.z-input:focus-visible { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary) 28%, transparent); }
.z-input[aria-invalid="true"] { border-color: var(--danger-500); }
.z-hint { font-size: 13px; line-height: 1.5; color: var(--fg-3); }
.z-error { font-size: 14px; line-height: 1.45; color: var(--fg-1); }
.z-error:empty { display: none; }
.z-error:not(:empty) { padding: 12px 14px; border-radius: var(--radius-md); background: var(--danger-100); border: 2px solid var(--danger-500); }

/* ---- auth ---- */
.z-auth { min-height: calc(100dvh - var(--nav-h)); display: grid; align-items: center; padding-block: 28px 56px; position: relative; isolation: isolate; overflow: hidden; }
.z-auth::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, var(--surface-card) 0%, var(--surface-primary-tint) 100%); }
.z-auth::after { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--pattern-dots); opacity: .5; }
.z-auth__panel { position: absolute; right: -8%; top: 0; bottom: 0; width: 50%; z-index: -1; display: none; background: color-mix(in srgb, var(--brand-primary) 16%, var(--surface-card)); clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
.z-auth__wrap { display: grid; gap: 40px; align-items: center; }
.z-auth__side { display: none; }
@media (min-width: 900px) {
  .z-auth__panel { display: block; }
  .z-auth__wrap { grid-template-columns: 1fr 27rem; gap: 72px; }
  .z-auth__side { display: block; }
  .z-auth__side h2 { font-size: clamp(40px, 4.4vw, 60px); line-height: 1.04; max-width: 11ch; }
  .z-auth__side p { margin-top: 16px; color: var(--fg-2); max-width: 32ch; font-size: 17px; }
  .z-auth__art { position: relative; margin-top: 28px; width: 280px; height: 280px; border-radius: var(--radius-xl); border: 2px solid var(--border-strong); box-shadow: var(--shadow-pop); overflow: hidden; background: color-mix(in srgb, var(--brand-secondary) 22%, var(--surface-card)); }
  .z-auth__art img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; display: block; }
}
.z-authcard { width: 100%; max-width: 27rem; margin-inline: auto; padding: 28px 24px; animation: z-rise var(--dur-slow) var(--ease-out) backwards; }
@media (min-width: 640px) { .z-authcard { padding: 36px; } }
@keyframes z-rise { from { opacity: 0; transform: translateY(12px); } }
.z-authcard h1 { font-size: 32px; line-height: 1.1; }
.z-authcard .lead { margin-top: 8px; color: var(--fg-2); font-size: 15px; }
.z-authcard form { display: grid; gap: 18px; margin-top: 24px; }
.z-authcard .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.z-authcard .row a { font-size: 13px; }
.z-authcard .pw { position: relative; }
.z-authcard .pw .z-input { padding-right: 76px; }
.z-authcard .pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 40px; padding: 0 12px; border: 0; background: none; color: var(--fg-link); font: 800 14px/1 var(--font-sans); cursor: pointer; border-radius: var(--radius-pill); }
.z-authcard .pw button:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 1px; }
.z-authcard .swap { margin-top: 22px; text-align: center; color: var(--fg-2); font-size: 15px; }
.z-authcard .fine { margin-top: 14px; text-align: center; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: z-sp .7s linear infinite; display: none; }
.busy .spin { display: inline-block; }
@keyframes z-sp { to { transform: rotate(360deg); } }

/* ---- subscribe ---- */
.z-subscribe { position: relative; isolation: isolate; overflow: hidden; padding-block: 32px 64px; }
.z-subscribe::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, var(--surface-card) 0%, var(--surface-primary-tint) 100%); }
.z-subscribe::after { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--pattern-dots); opacity: .5; }
.z-sub__grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .z-sub__grid { grid-template-columns: minmax(0, 1fr) 27rem; gap: 64px; } .z-sub__card { position: sticky; top: calc(var(--nav-h) + 24px); } }
.z-pitch h1 { font-size: clamp(36px, 8vw, 60px); line-height: 1.04; max-width: 12ch; }
.z-pitch > p { margin-top: 16px; color: var(--fg-2); font-size: 17px; max-width: 40ch; }
.z-peek { margin: 28px 0 0; max-width: 31em; display: grid; gap: 8px; padding: 18px 16px 14px; background: var(--surface-card); border: 2px solid var(--border-strong); border-radius: var(--radius-xl); box-shadow: var(--shadow-pop); }
.z-peek .b { max-width: 90%; padding: 10px 14px; border-radius: 20px; font: 500 15px/1.5 var(--font-sans); }
.z-peek .me { justify-self: end; background: var(--brand-secondary); color: var(--fg-on-secondary); border-bottom-right-radius: 6px; }
.z-peek .mao { justify-self: start; background: var(--surface-sunken); color: var(--fg-1); border-bottom-left-radius: 6px; }
.z-peek .who { font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-link); margin: 2px 0 0 4px; justify-self: start; }
.z-peek figcaption { padding-top: 10px; border-top: 1px solid var(--border-1); font-size: 13px; color: var(--fg-3); }
.z-perks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; max-width: 34em; }
.z-perks li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.z-perks .z-tile { width: 44px; height: 44px; border-radius: 14px; font-size: 20px; }
.z-perks b { display: block; font-weight: 900; }
.z-perks span span { color: var(--fg-2); font-size: 15px; }
.z-sub__card { padding: 28px 24px; }
@media (min-width: 640px) { .z-sub__card { padding: 32px; } }
.z-sub__card h2 { font-size: 30px; line-height: 1.1; }
.z-sub__card .stack { display: grid; gap: 12px; }
.z-sub__card .sub { color: var(--fg-2); font-size: 15px; }
.z-sub__card .name { font: 400 15px/1 var(--font-display); letter-spacing: .02em; justify-self: start; background: var(--brand-primary); color: var(--fg-on-brand); padding: 9px 22px 9px 14px; clip-path: var(--clip-tab); text-transform: uppercase; }
.z-sub__card .list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.z-sub__card .list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: var(--fg-2); font-size: 15px; }
.z-sub__card .list i { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-secondary); color: var(--fg-on-secondary); display: grid; place-items: center; font-size: 14px; margin-top: 1px; }
.z-sub__card .notice { padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-sunken); border: 2px solid var(--border-strong); font-size: 14px; }
.z-sub__card .ok { font-weight: 700; }
.z-sub__card .fine { font-size: 13px; color: var(--fg-3); }
.skel { display: grid; gap: 12px; }
.skel i { display: block; height: 1.1rem; border-radius: 8px; background: linear-gradient(90deg, var(--surface-sunken), var(--border-1), var(--surface-sunken)); background-size: 200% 100%; animation: z-sh 1.4s linear infinite; }
.skel i:nth-child(1) { width: 40%; height: 2.6rem; } .skel i:nth-child(2) { width: 80%; } .skel i:nth-child(3) { width: 65%; } .skel i:nth-child(4) { height: 3.4rem; border-radius: var(--radius-pill); }
@keyframes z-sh { to { background-position: -200% 0; } }
.z-sub__card .spin.big { display: block; justify-self: start; width: 28px; height: 28px; border-width: 3px; border-color: var(--border-2); border-top-color: var(--brand-primary); animation: z-sp .8s linear infinite; }
.z-who { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--fg-2); min-width: 0; }
.z-who span { display: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 36vw; }
.z-who button { white-space: nowrap; min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--fg-link); font: 800 14px/1 var(--font-sans); cursor: pointer; }
.z-who button:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 1px; }
@media (hover: hover) { .z-who button:hover { background: var(--surface-primary-tint); } }
@media (min-width: 640px) { .z-who span { display: block; } }
.z-subfaq { padding-block: 56px 64px; }
.z-subfaq .z-container { max-width: 760px; }

/* ---- legal / long text ---- */
.z-legal { padding-block: 40px 72px; }
.z-legal article { max-width: min(760px, calc(68ch + 2 * var(--gutter))); margin-inline: auto; padding-inline: var(--gutter); }
.z-legal h1 { font-size: clamp(34px, 7vw, 52px); line-height: 1.05; margin-bottom: 8px; }
.z-legal h2 { font: 900 22px/1.25 var(--font-sans); margin: 40px 0 10px; letter-spacing: 0; text-wrap: pretty; }
.z-legal .updated { font: 500 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 28px; }
.z-legal p, .z-legal li { color: var(--fg-2); font-size: 16px; }
.z-legal p { margin-bottom: 14px; }
.z-legal strong { color: var(--fg-1); }
.z-legal ul, .z-legal ol { padding-left: 22px; margin: 0 0 14px; }
.z-legal li { margin: 6px 0; }
.z-legal .box { background: var(--surface-dawn); border: 2px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop-sm); padding: 16px 20px; margin: 24px 0; }
.z-legal .box p { color: var(--fg-1); margin: 0; }
.z-legal a { color: var(--fg-link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---- simple centred page (landing.html fallback) ---- */
.z-simple { min-height: calc(100dvh - var(--nav-h)); display: grid; align-items: center; padding-block: 48px; position: relative; isolation: isolate; overflow: hidden; }
.z-simple::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, var(--surface-card), var(--surface-primary-tint)); }
.z-simple::after { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--pattern-dots); opacity: .5; }
.z-simple h1 { font-size: clamp(40px, 9vw, 80px); line-height: 1; }
.z-simple h1 em { font-style: normal; color: var(--brand-text); text-shadow: var(--glow-text); }
.z-simple p { margin: 20px 0 28px; max-width: 34em; color: var(--fg-2); font-size: 18px; }

/* ---- motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .z-ticker { -webkit-mask-image: none; mask-image: none; }
  .z-ticker__run { animation: none; margin-left: 0; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 8px; padding-inline: 16px; }
  .z-ticker__run [aria-hidden="true"] { display: none; }
  .js .rv { transform: none; transition: opacity .2s; }
  .z-btn, .z-iconbtn, .z-card--lift { transition-duration: .01ms; }
  .z-btn:active:not(:disabled), .z-btn:hover:not(:disabled), .z-card--lift:hover { transform: none; }
  .z-authcard, .z-faq .a { animation: none; }
  .skel i { animation: none; }
  .spin { animation-duration: 2s; }
}

/* 2026-10-04 Roxheiris rename: the 9-letter wordmark is wider than ZARYA, so on phones
   shrink it and drop the header "Create account" (the hero and menu still have it). */
@media (max-width: 479px) {
  .z-nav .z-mark { font-size: 19px; }
  .z-nav__end .z-btn--primary { display: none; }
}
