/* /assets/inline-index.css — extracted ITER4-CSP from inline <style> in index.html.
   Verbatim copy; preserves cascade order (loaded after shared.css link). */

/* ----------------------------------------------------------
   Dual-tier tokens — swap via [data-tier]
   ---------------------------------------------------------- */
[data-tier="standard"] {
  --bg-page:       #FAFAFA;
  --bg-card:       #FFFFFF;
  --bg-logo:       #FFFFFF;
  --text-primary:  #1A1A1A;
  --text-secondary:#5F5F5F;
  --cta-bg:        #2E7D32;
  --cta-text:      #FFFFFF;
  --logo-mark:     #C9A961;
  --hairline:      rgba(0,0,0,0.08);
  --hairline-soft: rgba(0,0,0,0.05);
  --status-tint:   #1A1A1A;
}
[data-tier="premium"] {
  --bg-page:       #1A0F26;
  --bg-card:       #221432;
  --bg-logo:       #1A0F26;
  --text-primary:  #FAFAFA;
  --text-secondary:#C8C0D6;
  --cta-bg:        #C9A961;
  --cta-text:      #1A0F26;
  --logo-mark:     #C9A961;
  --hairline:      rgba(255,255,255,0.10);
  --hairline-soft: rgba(255,255,255,0.06);
  --status-tint:   #FAFAFA;
}

/* ----------------------------------------------------------
   Reset + page chrome
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Noto Sans TC", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "PingFang TC", sans-serif;
  background: var(--bg-page, #FAFAFA);
  color: var(--text-primary, #1A1A1A);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

/* Title strip above the stage */
/* .doc-head removed in production transform */

/* The stage: two phone screens side-by-side */
.stage { display: block; width: 100%; min-height: 100dvh; }

.screen-wrap { display: block; width: 100%; }

.screen { width: 100%; min-height: 100dvh; height: auto;
  background: var(--bg-page);
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* No outer rounded corners — full bleed artboard */
  box-shadow: none;
}

/* ----------------------------------------------------------
   Phone status bar (subtle, real)
   ---------------------------------------------------------- */
.status-bar {
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--status-tint);
  font-variant-numeric: tabular-nums;
}
.status-icons { display: flex; align-items: center; gap: 6px; }
.status-icons svg { display: block; }
.status-icons svg path,
.status-icons svg rect { fill: var(--status-tint); }

/* ----------------------------------------------------------
   Font-scale sticky row — top-right
   A- A A+ A++  (user-adjustable per spec)
   ---------------------------------------------------------- */
.font-scale {
  position: absolute;
  top: 64px;
  right: 16px;
  display: flex;
  gap: 4px;
  z-index: 10;
}
.font-scale button {
  /* WCAG 2.1 SC 2.5.5 tap target ≥ 44×44 px (lifted from 38). */
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
  line-height: 1;
}
.font-scale button:active { transform: translateY(2px); }
.font-scale button[aria-pressed="true"] {
  color: var(--text-primary);
  border-color: var(--text-primary);
  font-weight: 700;
  background: var(--hairline-soft);
}

/* ----------------------------------------------------------
   Hero column
   ---------------------------------------------------------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
  min-height: 0;
}

.logo-card {
  width: 200px;
  height: 200px;
  margin-top: 88px;        /* generous breathing space above logo */
  background: var(--bg-logo);
  display: flex;
  align-items: center;
  justify-content: center;
  /* NO rounded corners per spec — full bleed gold mark */
  flex-shrink: 0;
}
.logo-card svg {
  width: 100%;
  height: 100%;
  display: block;
  color: var(--logo-mark);
}

.h1-row {
  margin-top: 24px;       /* 24px gap below logo per spec */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
h1 {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  text-align: center;
  text-wrap: balance;
}
.voice-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.voice-btn:active { transform: translateY(2px); }
.voice-btn svg { width: 22px; height: 22px; display: block; }
.voice-btn svg path { fill: currentColor; }

.caption {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
  text-wrap: pretty;
}

/* ----------------------------------------------------------
   CTA zone — bottom, 32px from safe-area-bottom
   ---------------------------------------------------------- */
.cta-zone {
  padding: 0 24px 50px;     /* 50 ≈ 32px safe-bottom + home indicator */
  flex-shrink: 0;
}
.cta {
  width: 100%;
  height: 56px;
  border-radius: 9999px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  transition: transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.cta:active { transform: translateY(2px); }
.cta-icon {
  display: inline-flex;
  width: 22px; height: 22px;
  align-items: center; justify-content: center;
}
.cta-icon svg { width: 100%; height: 100%; }
.cta-icon svg path { stroke: var(--cta-text); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* iOS-style home indicator */
.home-indicator {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  border-radius: 999px;
  background: var(--text-primary);
  opacity: 0.45;
}

/* ----------------------------------------------------------
   Tier label below each screen
   ---------------------------------------------------------- */
.tier-label {
  width: 390px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}
.tier-label .name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1A1A1A;
}
.tier-label .swatches {
  display: flex;
  align-items: center;
  gap: 6px;
}
.swatch {
  width: 14px; height: 14px;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.swatch.s-bg-1   { background: #FAFAFA; }
.swatch.s-bg-2   { background: #FFFFFF; }
.swatch.s-text   { background: #1A1A1A; }
.swatch.s-cta    { background: #2E7D32; }
.swatch.s-accent { background: #C9A961; }
.swatch.p-bg-1   { background: #1A0F26; }
.swatch.p-bg-2   { background: #221432; }
.swatch.p-text   { background: #FAFAFA; }
.swatch.p-cta    { background: #C9A961; }
.swatch.p-accent { background: #FFC857; }

/* Footnote strip */
.doc-foot {
  width: 800px;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8A8A8A;
  font-size: 11px;
  letter-spacing: 0.03em;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.doc-foot code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: #DDD;
  color: #1A1A1A;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

/* Tablet width gate */
@media (max-width: 880px) {
  body { padding: 16px 8px 32px; }
  .stage { display: block; width: 100%; min-height: 100dvh; }
}

/* Production overrides — hide design preview chrome */
.doc-head, .tier-label, .screen-wrap > .tier-label { display: none !important; }
body {
  padding: 0 !important;
  gap: 0 !important;
  align-items: stretch !important;
  background: var(--bg-page, #FAFAFA) !important;
  min-height: 100dvh !important;
  -webkit-font-smoothing: antialiased;
}
