/* Yuika public site — washi paper, sumi ink, indigo. Matches the app's 結
   design system (app/lib/theme.dart). Mobile-first; every font is served from
   this origin so the page paints without a third-party round trip. */

/* ---------- fonts (self-hosted subsets, OFL) ---------- */

@font-face {
  font-family: "Shippori Mincho";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/shippori-mincho-600-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;
}
/* Only the brand mark 結 — one glyph's worth of the Japanese subset. */
@font-face {
  font-family: "Shippori Mincho";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/shippori-mincho-600-jp114.woff2) format("woff2");
  unicode-range: U+7D50;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/zen-kaku-gothic-new-400-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: "Zen Kaku Gothic New";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/zen-kaku-gothic-new-500-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: "Zen Kaku Gothic New";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/zen-kaku-gothic-new-700-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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/ibm-plex-mono-500-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;
}

/* ---------- tokens ---------- */

:root {
  --paper: #f4efe4;
  --paper-deep: #ece4d2;
  --card: #fcfaf3;
  --ink: #211d17;
  --ink2: #3f3930;
  --sub: #6c6456;
  --line: #e2d9c6;
  --line-soft: #ece3d0;
  --indigo: #223a5e;
  --indigo-deep: #16263f;
  --indigo-soft: #e5e9f0;
  --mist: #b9c6d8;
  --shu: #b8371f;
  --shu-soft: #f5e4de;
  --gold: #b08d34;

  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --jp: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Yu Gothic", "Meiryo", serif;

  --wrap: 1080px;
  --gut: 20px;
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* older iOS Safari ignores clip */
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  overflow-wrap: break-word;
  overflow-x: hidden; /* older iOS Safari ignores clip */
  overflow-x: clip;
  max-width: 100%;
  background-image:
    radial-gradient(1200px 520px at 82% -12%, rgba(34, 58, 94, 0.07), transparent 70%),
    radial-gradient(760px 420px at -10% 22%, rgba(184, 55, 31, 0.045), transparent 70%);
}
/* iOS Safari treats background-attachment:fixed as a layout-sized layer and
   expands the page past the viewport (asymmetric clip on the right). Keep the
   wash attached only where that bug does not apply. */
@media (min-width: 62rem) {
  body { background-attachment: fixed; }
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--shu); }

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
  border-radius: 3px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  max-width: min(var(--wrap), 100%);
  margin: 0 auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
  min-width: 0;
}
.wrap.narrow { max-width: min(46rem, 100%); }
.center { text-align: center; }

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  clip-path: none;
  white-space: normal;
  left: 12px;
  top: 12px;
  z-index: 40;
  background: var(--card);
  border: 1px solid var(--indigo);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--indigo);
  font-weight: 700;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 239, 228, 0.88);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  max-width: min(var(--wrap), 100%);
  margin: 0 auto;
  padding: 11px max(var(--gut), env(safe-area-inset-right, 0px)) 11px max(var(--gut), env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}
.brand .mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--indigo);
}
.brand .word {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--ink); }
.bar-end {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.lang-switch {
  display: inline-flex;
  flex-shrink: 0;
  align-items: stretch;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  padding: 0 10px;
  color: var(--sub);
  text-decoration: none;
  line-height: 1;
}
.lang-switch a:hover { color: var(--ink); background: rgba(34, 58, 94, 0.06); }
.lang-switch a[aria-current="true"] {
  background: var(--indigo);
  color: var(--paper);
}
.lang-switch a:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: -3px;
  border-radius: 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav a {
  color: var(--sub);
  text-decoration: none;
  padding: 7px 9px;
  border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: rgba(34, 58, 94, 0.06); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .nav-cta {
  background: var(--indigo);
  color: var(--paper);
  padding: 8px 14px;
  font-weight: 700;
}
.nav .nav-cta:hover { background: var(--indigo-deep); color: #fff; }

@media (max-width: 27rem) {
  .nav a:not(.nav-cta) { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--indigo);
  color: var(--paper);
  box-shadow: 0 8px 20px -12px rgba(22, 38, 63, 0.85);
}
.btn-primary:hover { background: var(--indigo-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--indigo);
  border-color: var(--indigo);
}
.btn-ghost:hover { background: var(--indigo-soft); color: var(--indigo-deep); }
.btn-sm { padding: 11px 16px; font-size: 0.92rem; border-radius: 9px; }

/* Google's badge is the expected affordance and their brand guidelines
   require the supplied artwork, so it stays an image rather than a styled
   button. The negative margin trims the transparent padding baked into it. */
.play-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  max-width: 100%;
}
.play-badge img {
  height: 58px;
  width: auto;
  max-width: calc(100% + 22px);
  margin: -7px -11px;
}
.cta-primary .play-badge img { height: 68px; margin: -9px -13px; }

/* ---------- email capture ---------- */

.notify { margin: 0; position: relative; }
.notify-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 9px;
}
.notify-row {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.notify-input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 11px;
}
.notify-input::placeholder { color: var(--sub); }
.notify-input:focus { border-color: var(--indigo); }
.notify .btn { white-space: nowrap; }
.notify-note {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--sub);
}
.notify-status {
  margin: 8px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--indigo);
}
.notify-status:empty { display: none; }
.notify-status.is-error { color: var(--shu); }
.notify-hp {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}
.notify-hp input {
  width: 1px;
  max-width: 1px;
  min-width: 0;
  border: 0;
  padding: 0;
}
.notify[data-busy] .btn { opacity: 0.6; pointer-events: none; }

.notify-input, .notify .btn { min-height: 48px; }

@media (min-width: 34rem) {
  .notify-row { flex-direction: row; align-items: stretch; }
}

.flash {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 11px;
  font-weight: 700;
}
.flash-ok { background: #e6efe6; color: #23502f; border: 1px solid #bcd5be; }
.flash-bad { background: var(--shu-soft); color: #7d2314; border: 1px solid #e0b6ab; }

/* ---------- hero ---------- */

.hero {
  padding: 34px 0 44px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; gap: 34px; min-width: 0; }
.hero-copy, .hero-cta, .hero-demo { min-width: 0; max-width: 100%; }
.eyebrow {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sub);
  margin: 0 0 16px;
  padding: 6px 12px 6px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.dotpulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--shu);
  vertical-align: 0.05em;
  margin-right: 8px;
}
.hero h1 {
  font-size: clamp(1.75rem, 7.6vw, 3.35rem);
  line-height: 1.1;
  margin: 0 0 18px;
  max-width: 100%;
}
@media (max-width: 27rem) {
  .eyebrow { letter-spacing: 0.08em; font-size: 0.64rem; }
}
.lede {
  font-size: 1.13rem;
  color: var(--ink2);
  max-width: 34rem;
  margin: 0 0 28px;
}
.lede strong { color: var(--ink); font-weight: 700; }

.hero-cta {
  display: grid;
  gap: 20px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 46px -34px rgba(33, 29, 23, 0.5);
  max-width: 100%;
  min-width: 0;
}
.cta-primary .btn { width: 100%; }
.cta-primary > .play-badge { display: block; }
.cta-primary > .play-badge img { margin-inline: auto; }
.cta-secondary {
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.cta-secondary .btn { width: 100%; }
.cta-sub {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--sub);
}
.cta-primary .cta-sub { margin: 12px 0 0; text-align: center; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  font-size: 0.86rem;
  color: var(--sub);
}
.hero-trust li { display: flex; align-items: center; gap: 7px; }
.hero-trust li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-demo { display: grid; justify-items: center; gap: 6px; }
.hero-arrow {
  display: grid;
  place-items: center;
  width: 22px;
  height: 16px;
  margin: 2px auto 0;
  color: var(--shu);
}
.hero-arrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

@media (min-width: 62rem) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr); gap: 54px; align-items: center; }
  .hero-cta { padding: 24px; }
  .cta-primary .btn, .cta-secondary .btn { width: auto; }
  .cta-primary .notify .btn { width: auto; }
}

/* ---------- the letter / the answer ---------- */

.letter {
  position: relative;
  width: 100%;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.014) 0 1px, transparent 1px 5px),
    #fbf7ee;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 18px 20px;
  font-family: var(--jp);
  color: #2b2620;
  box-shadow: 0 14px 30px -22px rgba(33, 29, 23, 0.7);
  transform: rotate(-0.5deg);
}
/* Keep the body text clear of the stamp in the bottom-right corner. */
.letter:has(.letter-stamp) { padding-bottom: 58px; }
.letter-office {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: #6e6558;
  letter-spacing: 0.06em;
}
.letter-title {
  margin: 0 0 12px;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #ded4c0;
  padding-bottom: 9px;
}
.letter-line {
  margin: 0 0 5px;
  font-size: 0.94rem;
  letter-spacing: 0.04em;
}
.letter-fine {
  margin: 12px 0 0;
  font-size: 0.72rem;
  line-height: 1.75;
  color: #7a7164;
  letter-spacing: 0.02em;
}
.letter-stamp {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--shu);
  border-radius: 6px;
  color: var(--shu);
  font-family: var(--jp);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0.72;
  transform: rotate(-9deg);
}
.letter-mini { max-width: 21rem; }
.letter-mini .letter-fine {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.answer {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: 0 18px 38px -30px rgba(33, 29, 23, 0.8);
}
.answer-kicker {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--indigo);
  margin: 0 0 10px;
}
.answer h3 {
  font-size: 1.3rem;
  margin: 0 0 10px;
}
.answer-title {
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.25;
  text-wrap: pretty;
}
.nowrap { white-space: nowrap; }
.answer-facts-inline { margin: 0; color: var(--ink2); font-size: 0.98rem; }
.answer-sum { color: var(--ink2); margin: 0 0 16px; }
.answer-mini { max-width: 21rem; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.chip {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--indigo);
  color: var(--paper);
}
.chip.ghost {
  background: transparent;
  color: var(--sub);
  border: 1px solid var(--line);
}

.answer-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 18px;
}
.answer-facts > div {
  background: var(--paper);
  padding: 11px 13px;
}
.answer-facts span {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 3px;
}
.answer-facts strong {
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 600;
}

.answer-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sub);
  margin: 0 0 9px;
}
.answer-do {
  margin: 0 0 18px;
  padding-left: 1.15rem;
  color: var(--ink2);
  font-size: 0.97rem;
}
.answer-do li { margin-bottom: 7px; }
.answer-do li::marker { color: var(--shu); font-weight: 700; }

.gloss {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.gloss li {
  font-size: 0.83rem;
  color: var(--ink2);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 5px 12px;
}
.gloss b {
  font-family: var(--jp);
  font-weight: 600;
  color: var(--ink);
  margin-right: 5px;
}

/* ---------- bands ---------- */

.band { padding: 58px 0; }
.band-paper { background: var(--paper-deep); border-block: 1px solid var(--line); }
.band-proof { background: var(--paper-deep); border-bottom: 1px solid var(--line); }
.band-contrast { background: var(--card); border-block: 1px solid var(--line); }

.kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--shu);
  margin: 0 0 12px;
}
.kicker.light { color: var(--gold); }
.band h2 {
  font-size: clamp(1.7rem, 5.2vw, 2.4rem);
  margin: 0 0 14px;
  max-width: 22ch;
}
.band .intro {
  color: var(--ink2);
  max-width: 40rem;
  margin: 0 0 30px;
}

/* ---------- proof switcher (CSS-only tabs) ---------- */

.proof-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.proof {
  min-width: 0;
  max-width: 100%;
}
.proof-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 12px;
  margin: 0 calc(var(--gut) * -1) 4px;
  padding-inline: var(--gut);
  scrollbar-width: thin;
  /* Fade the right edge so the off-screen tabs read as scrollable. */
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 34px), transparent 100%);
}
@media (min-width: 60rem) {
  .proof-tabs { mask-image: none; flex-wrap: wrap; overflow: visible; }
}
.proof-tabs label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--sub);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.proof-tabs label span { font-family: var(--jp); font-size: 0.95rem; color: var(--ink); }
.proof-tabs label:hover { border-color: var(--indigo); color: var(--ink); }

.proof-panels { display: block; min-width: 0; max-width: 100%; }
.proof-panel {
  display: none;
  gap: 22px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}
#proof-tax:checked    ~ .proof-panels > .proof-panel:nth-of-type(1),
#proof-hoken:checked  ~ .proof-panels > .proof-panel:nth-of-type(2),
#proof-denki:checked  ~ .proof-panels > .proof-panel:nth-of-type(3),
#proof-nenkin:checked ~ .proof-panels > .proof-panel:nth-of-type(4) { display: grid; }

#proof-tax:checked    ~ .proof-tabs label[for="proof-tax"],
#proof-hoken:checked  ~ .proof-tabs label[for="proof-hoken"],
#proof-denki:checked  ~ .proof-tabs label[for="proof-denki"],
#proof-nenkin:checked ~ .proof-tabs label[for="proof-nenkin"] {
  background: var(--indigo);
  border-color: var(--indigo);
  color: var(--paper);
}
#proof-tax:checked    ~ .proof-tabs label[for="proof-tax"] span,
#proof-hoken:checked  ~ .proof-tabs label[for="proof-hoken"] span,
#proof-denki:checked  ~ .proof-tabs label[for="proof-denki"] span,
#proof-nenkin:checked ~ .proof-tabs label[for="proof-nenkin"] span { color: var(--paper); }

.proof-radio:focus-visible ~ .proof-tabs label[for="proof-tax"],
.proof-radio:focus-visible ~ .proof-tabs label[for="proof-hoken"],
.proof-radio:focus-visible ~ .proof-tabs label[for="proof-denki"],
.proof-radio:focus-visible ~ .proof-tabs label[for="proof-nenkin"] { border-color: var(--indigo); }
#proof-tax:focus-visible    ~ .proof-tabs label[for="proof-tax"],
#proof-hoken:focus-visible  ~ .proof-tabs label[for="proof-hoken"],
#proof-denki:focus-visible  ~ .proof-tabs label[for="proof-denki"],
#proof-nenkin:focus-visible ~ .proof-tabs label[for="proof-nenkin"] {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
}

.proof-note {
  margin: 22px 0 0;
  font-size: 0.85rem;
  color: var(--sub);
  max-width: 46rem;
}

@media (min-width: 54rem) {
  .proof-panel { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 28px; }
  .letter { position: sticky; top: 92px; }
}

/* ---------- versus ---------- */

.versus { display: grid; gap: 16px; margin-top: 26px; }
.versus-col {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
}
.versus-win { border-color: var(--indigo); background: var(--indigo-soft); }
.versus-head {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--sub);
  margin: 0 0 12px;
}
.versus-win .versus-head { color: var(--indigo); }
.versus-quote {
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--ink2);
  margin: 0 0 14px;
}
.versus-win .versus-quote { color: var(--ink); }
.versus-verdict {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sub);
}
.versus-win .versus-verdict { color: var(--indigo); }

@media (min-width: 46rem) {
  .versus { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
}
.step-n {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--shu);
  margin: 0 0 10px;
}
.step h3 { font-size: 1.25rem; margin: 0 0 8px; }
.step p { margin: 0; color: var(--ink2); font-size: 0.98rem; }

@media (min-width: 52rem) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* ---------- split (copy + screenshots) ---------- */

.split { display: grid; gap: 34px; min-width: 0; }
.split-copy p { color: var(--ink2); }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--ink2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23223a5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/></svg>") center / 16px 16px no-repeat;
}
.split-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.split-shots figure { margin: 0; }
.split-shots img {
  border-radius: 22px;
  box-shadow: 0 22px 44px -26px rgba(33, 29, 23, 0.55);
}
.split-shots figcaption {
  margin-top: 9px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sub);
}

@media (min-width: 58rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
}

/* ---------- CTA band ---------- */

.band-cta {
  background: var(--indigo);
  color: var(--paper);
  border-block: 1px solid var(--indigo-deep);
  background-image: radial-gradient(720px 320px at 88% 0%, rgba(255, 255, 255, 0.08), transparent 70%);
}
.band-cta h2 { color: var(--paper); }
.band-cta .cta-lede {
  color: var(--mist);
  font-size: 1.06rem;
  max-width: 34rem;
  margin: 0 0 26px;
}
.band-cta .notify-label { color: var(--mist); }
.band-cta .notify-input {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.5);
}
.band-cta .notify .btn-primary {
  background: var(--shu);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.9);
}
.band-cta .notify .btn-primary:hover { background: #cf3f22; color: #fff; }
.band-cta .notify-note { color: #a3b3c9; }
.band-cta .notify-status { color: #ffdf9e; }
.band-cta .notify-status.is-error { color: #ffb4a4; }
.cta-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 18px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #93a5bd;
}
.cta-or::before, .cta-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(244, 239, 228, 0.22);
}
.band-cta .flash-ok { background: #f0f6ec; }

/* ---------- cards ---------- */

.cards { display: grid; gap: 16px; margin-top: 26px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
}
.card h3 { font-size: 1.18rem; margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink2); font-size: 0.97rem; }

@media (min-width: 46rem) { .cards { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 72rem) { .cards { grid-template-columns: repeat(4, 1fr); } }

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

.prices { display: grid; gap: 16px; margin-top: 26px; }
.price {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
}
.price-pro { border-color: var(--indigo); box-shadow: inset 0 0 0 1px var(--indigo); }
.price h3 { font-size: 1.3rem; margin: 0 0 4px; }
.price-amount {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--indigo);
  margin: 0 0 12px;
}
.price-body { margin: 0; color: var(--ink2); font-size: 0.97rem; }
.fineprint { margin: 20px 0 0; font-size: 0.85rem; color: var(--sub); }

@media (min-width: 46rem) { .prices { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* ---------- FAQ ---------- */

.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: block;
  cursor: pointer;
  list-style: none;
  padding: 17px 36px 17px 0;
  position: relative;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--indigo);
  border-radius: 1px;
  transform: translateY(-50%);
  transform-origin: center;
  transition: transform 0.18s ease;
}
.faq summary::after {
  transform: translateY(-50%) rotate(90deg);
}
.faq details[open] summary::after {
  transform: translateY(-50%) rotate(0deg);
}
.faq details p {
  margin: 0 0 18px;
  color: var(--ink2);
  max-width: 44rem;
}

/* ---------- closer ---------- */

.band-closer { padding: 62px 0 76px; }
.closer-mark {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--indigo);
  opacity: 0.55;
  margin: 0 0 10px;
  line-height: 1;
}
.band-closer h2 { margin-inline: auto; }
.band-closer .cta-lede { color: var(--ink2); margin: 0 0 26px; }
.closer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* ---------- sticky mobile CTA ---------- */

.stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px max(var(--gut), env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(var(--gut), env(safe-area-inset-left, 0px));
  background: rgba(252, 250, 243, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -22px rgba(33, 29, 23, 0.9);
  transform: translateY(110%);
  transition: transform 0.22s ease;
}
.stickybar[hidden] { display: none; }
.stickybar.is-on { transform: translateY(0); }
/* Keep the footer clear of the bar once JavaScript has enabled it. */
body:has(.stickybar:not([hidden])) .site-footer { padding-bottom: 100px; }
.sticky-text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}
@media (min-width: 46rem) { .stickybar { display: none !important; } }

/* ---------- legal pages ---------- */

.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 40px max(var(--gut), env(safe-area-inset-right, 0px)) 72px max(var(--gut), env(safe-area-inset-left, 0px));
}
.legal h1 {
  font-size: clamp(1.8rem, 5vw, 2.3rem);
  margin: 0 0 18px;
}
.legal h2 { font-size: 1.2rem; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--ink2); }
.legal .lead { font-size: 1.1rem; color: var(--ink); }
.legal .muted { color: var(--sub); font-size: 0.94rem; }
.legal ul, .legal ol { padding-left: 1.2rem; }
.legal li { margin: 7px 0; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--indigo-deep);
  color: var(--mist);
  padding: 38px 0 44px;
}
.site-footer .inner {
  max-width: min(var(--wrap), 100%);
  margin: 0 auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
  min-width: 0;
}
.foot-brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--paper);
  margin: 0 0 14px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.disclaimer {
  margin: 0 0 8px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #8ea0b8;
  max-width: 46rem;
}

/* ---------- motion / print ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .letter { transform: none; }
}

@media print {
  .site-header, .stickybar, .band-cta, .notify { display: none !important; }
  body { background: #fff; }
}
