/* レイアウト: 12カラムの厳格なグリッドと 1px の罫線で区切る、タイポグラフィ主導のエディトリアル構成 */
:root {
  --paper: transparent;
  --surface: rgba(255, 255, 255, 0.8);
  --ink: #111111;
  --mute: #676763;
  --line: #111111;
  --line-soft: #d4d4cf;
  --accent: #1f3bff;
  --accent-ink: #ffffff;
  --alert: #d7341c;
  --ok: #1d7a46;

  --font-display: "Instrument Sans", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f0f0e;
    --surface: #171716;
    --ink: #ededea;
    --mute: #9a9a95;
    --line: #ededea;
    --line-soft: #2e2e2b;
    --accent: #8b9bff;
    --accent-ink: #0f0f0e;
    --alert: #ff7a63;
    --ok: #6fd39a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f0f0e;
  --surface: #171716;
  --ink: #ededea;
  --mute: #9a9a95;
  --line: #ededea;
  --line-soft: #2e2e2b;
  --accent: #8b9bff;
  --accent-ink: #0f0f0e;
  --alert: #ff7a63;
  --ok: #6fd39a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  padding-top: 56px;
  background: #FAF7F0;
  color: #1F2A44;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  font-feature-settings: "palt" 1;
}
/* 日本語の見出しを文節で改行する（対応ブラウザのみ） */
h1, h2, h3, .lead { word-break: auto-phrase; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* 小見出し（等幅・大文字） */
.label, .num, .edition, .count, .examples-label, .req, .opt, .meta-line, .badge, .hint-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.label { margin: 0; color: var(--mute); text-transform: uppercase; }

/* ── ヘッダー ── */
.topbar { border-bottom: 1px solid var(--line); position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 999; background: var(--paper); }
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 56px; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  gap: 0.28em;
}
.wordmark span { font-weight: 400; }
.topnav { display: flex; gap: 20px; margin-left: auto; font-size: 0.88rem; }
.topnav a { text-decoration: none; }
.topnav a:hover { text-decoration: underline; }
.edition { color: var(--mute); }
@media (max-width: 640px) { .edition { display: none; } .topnav { gap: 14px; } }

/* ── ヒーロー ── */
.hero {
  padding-block: clamp(40px, 8vw, 96px) clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
  position: relative;
}
.hero-intro { display: grid; gap: 10px; transition: opacity 0.5s ease; }
.hero-intro.leaving { opacity: 0; }
.hero-intro video { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; background: #f2f2ef; }
.intro-controls { display: flex; justify-content: space-between; gap: 16px; font-size: 0.85rem; }
.intro-controls .text-button { color: #2F8C83; }
.intro-controls .text-button:hover { color: #E8735A; }
.hero-content { display: grid; gap: clamp(20px, 3vw, 32px); }
.hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.replay { font-size: 0.8rem; color: #2F8C83; }

/* 初回アクセス時の紹介動画 */
.hero-intro { display: grid; gap: 10px; transition: opacity 0.5s ease; }
.hero-intro.leaving { opacity: 0; }
.hero-intro video { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; background: #f2f2ef; }
.intro-controls { display: flex; justify-content: space-between; gap: 16px; font-size: 0.85rem; }
.intro-controls .text-button { color: var(--mute); }
.intro-controls .text-button:hover { color: var(--accent); }

/* 動画のあと、見出しを文字が下からせり上がる動きで見せる */
.display .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.display .line > span { display: inline-block; }
.hero-content.reveal .display .line > span { animation: hero-rise 0.95s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-content.reveal .display .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-content.reveal .hero-top, .hero-content.reveal .hero-foot { animation: hero-fade 0.7s 0.35s ease both; }
@keyframes hero-rise { from { transform: translateY(105%) rotate(4deg); } to { transform: none; } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-content.reveal .display .line > span, .hero-content.reveal .hero-top, .hero-content.reveal .hero-foot { animation: none; }
}
.display {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 7.5rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero-foot {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
  padding-top: 20px;
}
.hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: #F3E4C4;
  opacity: 0.6;
  border-radius: 50%;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
}
.hero > :last-child {
  position: relative;
  text-align: center;
}
.hero > :last-child img {
  width: 340px;
  max-width: 100%;
  height: auto;
  opacity: 0.8;
}
.lead { margin: 0; max-width: 34em; font-size: clamp(0.98rem, 1.4vw, 1.1rem); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts div { border-left: 1px solid var(--line-soft); padding-left: 14px; display: grid; gap: 2px; }
.facts dt { font-family: var(--font-mono); font-size: 0.72rem; color: var(--mute); }
.facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.facts small { font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; letter-spacing: 0; margin-left: 4px; color: var(--mute); }
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero > :last-child img {
    width: 240px;
  }
  .hero::after {
    width: 200px;
    height: 200px;
    right: -30px;
  }
}
@media (max-width: 760px) { .hero-foot { grid-template-columns: 1fr; } }

/* ── フォーム ── */
.form { background: white; border: 1.5px solid #1F2A44; border-radius: 12px; padding-block: 32px; padding-inline: 32px; margin-block: -40px 32px; position: relative; z-index: 10; }
.form-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 16px clamp(16px, 3vw, 48px);
  padding-block: 22px;
  border: 0;
  border-bottom: 1px solid #e8e8e8;
  margin: 0;
  min-width: 0;
}
fieldset.form-row { padding-inline: 0; }
legend.row-label { float: left; width: 100%; padding: 0; }
fieldset.form-row > .row-body { clear: none; }
.row-label { display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: 1.02rem; }
.num { color: var(--mute); font-weight: 400; }
.req, .opt { font-weight: 500; padding: 1px 6px; border: 1px solid currentColor; line-height: 1.4; }
.req { color: var(--accent); }
.opt { color: var(--mute); }
.row-body { display: grid; gap: 12px; min-width: 0; }
@media (max-width: 760px) { .form-row { grid-template-columns: 1fr; } }

textarea, input:not([type="checkbox"]), select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 0 10px;
  font-size: 1.08rem;
}
textarea { resize: vertical; min-height: 5.5em; line-height: 1.7; }
textarea::placeholder, input::placeholder { color: var(--mute); opacity: 0.8; }
textarea:focus, input:focus, select:focus { outline: none; border-bottom: 2px solid var(--accent); padding-bottom: 9px; }
select {
  appearance: none;
  cursor: pointer;
  max-width: 360px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.place { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 32px; }
.place .zip-field input { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .place { grid-template-columns: 1fr; } }
.sub-label { font-size: 0.85rem; font-weight: 700; }
.city-field { display: grid; gap: 4px; }
.hint { margin: 0; color: var(--mute); font-size: 0.84rem; }
.hint.ok { color: var(--ink); font-weight: 500; }
.hint.warn { color: var(--alert); }

.examples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.examples-label { color: var(--mute); margin-right: 4px; }
.pill {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pill:hover, .pill[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle { position: relative; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 6px 14px;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}
.toggle span::before { content: "+"; font-family: var(--font-mono); }
.toggle input:checked + span { background: var(--ink); color: var(--paper); }
.toggle input:checked + span::before { content: "✓"; }
.toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-submit { padding-block: 28px 8px; display: grid; gap: 12px; background: white; margin-bottom: 32px; padding-bottom: 24px; }
.error { margin: 0; color: var(--alert); font-weight: 700; }
.primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 0;
  background: #E8735A;
  color: white;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.primary .arrow { font-family: var(--font-display); font-weight: 400; transition: transform 0.2s; }
.primary:hover { background: #d95e47; }
.primary:hover .arrow { transform: translateX(6px); }
.primary:disabled { opacity: 0.6; cursor: progress; }

/* ── 共通の見出し ── */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; border-bottom: 2px solid var(--line); padding-bottom: 10px; }
.section-head h2 { margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.6rem); letter-spacing: -0.02em; }
.text-button {
  border: 0;
  background: none;
  padding: 0;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.text-button:hover { color: var(--accent); }

/* ── 保存した制度 ── */
.saved { margin-top: 56px; display: grid; gap: 8px; }
.saved-list { list-style: none; margin: 0; padding: 0; }
.saved-list li { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding-block: 12px; border-bottom: 1px solid var(--line-soft); }
.saved-list a { font-weight: 700; text-decoration: none; }
.saved-list a:hover { text-decoration: underline; }
.saved-list .meta { color: var(--mute); font-size: 0.85rem; }
.saved-list .remove { margin-left: auto; }
.link-button { border: 0; background: none; padding: 0; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--mute); }
.link-button:hover { color: var(--accent); }

/* ── 検索結果 ── */
#results { margin-top: 72px; scroll-margin-top: 72px; }
.summary { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(24px, 4vw, 64px); border-top: 2px solid var(--line); padding-top: 20px; }
.summary-count { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.big-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4.5rem, 14vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.big-unit { font-size: 1.2rem; font-weight: 700; }
.summary-body { display: grid; gap: 12px; align-content: start; }
.summary-body h2 { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.4; letter-spacing: -0.02em; text-wrap: balance; }
.summary-body p { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.8rem; border: 1px solid var(--line-soft); padding: 1px 10px; }
.notice { font-size: 0.86rem; color: var(--alert); }
.share-row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 0.84rem; color: var(--mute); }
@media (max-width: 760px) { .summary { grid-template-columns: 1fr; } }

.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 40px 0 0; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.filter {
  border: 0;
  background: none;
  padding: 2px 0;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--mute);
  border-bottom: 2px solid transparent;
}
.filter sup { font-family: var(--font-mono); font-size: 0.68rem; margin-left: 2px; }
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }
.count { color: var(--mute); }

.list { display: grid; }
.program {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 18rem);
  gap: 8px clamp(16px, 3vw, 40px);
  padding-block: 26px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.15s;
}
.program:hover { background: var(--surface); }
.p-index { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; color: var(--mute); font-variant-numeric: tabular-nums; padding-top: 2px; }
.p-main { display: grid; gap: 8px; min-width: 0; }
.p-side { display: grid; gap: 8px; align-content: start; min-width: 0; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--mute); }
.program h3 { margin: 0; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.45; letter-spacing: -0.015em; text-wrap: balance; }
.program h3 a { text-decoration: none; }
.program h3 a:hover { text-decoration: underline; color: var(--ink); }
.provider { margin: 0; color: var(--mute); font-size: 0.85rem; }
.summary-text { margin: 0; max-width: 46em; }
.amount { margin: 0; font-weight: 700; font-size: 1.02rem; line-height: 1.5; }
.period { margin: 0; font-size: 0.82rem; color: var(--mute); }
@media (max-width: 900px) {
  .program { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .p-side { grid-column: 2; }
}

.badge { padding: 1px 7px; border: 1px solid currentColor; line-height: 1.5; white-space: nowrap; }
.badge.level { color: var(--ink); }
.badge.live { color: var(--accent); }
.badge.type { border-color: transparent; padding-inline: 0; color: var(--ink); }
.badge.open { color: var(--ok); }
.badge.closing { background: var(--alert); border-color: var(--alert); color: var(--ink); }
.badge.closed { color: var(--mute); text-decoration: line-through; }

.meter { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--mute); }
.meter-bars { display: inline-flex; gap: 3px; }
.meter-bars i { width: 14px; height: 6px; background: var(--line-soft); }
.meter-bars i.on { background: var(--ink); }

details { font-size: 0.9rem; }
summary { cursor: pointer; font-weight: 700; width: fit-content; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+ "; font-family: var(--font-mono); }
details[open] summary::before { content: "− "; }
details ul { margin: 8px 0 0; padding-left: 1.2em; }
.reasons { margin: 0; padding-left: 1.2em; font-size: 0.86rem; color: var(--mute); }
.link-row { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 0.88rem; }
.save-btn { border: 1px solid var(--line); background: transparent; padding: 3px 12px; font-size: 0.84rem; cursor: pointer; }
.save-btn:hover { background: var(--ink); color: var(--paper); }
.save-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.live-head { margin-top: 72px; }
.empty { padding-block: 24px; color: var(--mute); margin: 0; border-bottom: 1px solid var(--line-soft); }

/* ── 注意事項・フッター ── */
.about { margin-top: 80px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px clamp(16px, 3vw, 48px); border-top: 1px solid var(--line); padding-top: 16px; scroll-margin-top: 72px; }
.about p { margin: 0; font-size: 0.88rem; color: var(--mute); max-width: 48em; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

.footer { margin-top: 96px; background: #1F2A44; color: white; overflow: hidden; padding-block: 32px; }
.footer-mark {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 13.5vw, 11.5rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  white-space: nowrap;
  color: white;
}
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-block: 16px 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); border-top: none; margin-top: 12px; }
.footer-meta p { margin: 0; }
.footer-meta a { color: white; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 18px; font-size: 0.88rem; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 利用者の声 ── */
.testimonials { margin: 80px 0 60px; }
.testimonials .section-head { margin-bottom: 2rem; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial-card { background: var(--paper-raised); border: 1px solid var(--line-soft); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow 0.2s; }
.testimonial-card:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.testimonial-text { margin: 0; font-size: 0.95rem; line-height: 1.7; color: var(--text); }
.testimonial-meta { margin: 0; font-size: 0.8rem; color: var(--mute); font-weight: 500; }
@media (max-width: 760px) { .testimonials-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .testimonial-card { padding: 18px; } .testimonial-text { font-size: 0.9rem; } }

.data-freshness { margin: 12px 0 0; padding: 8px 0; font-size: 0.8rem; color: var(--mute); border-top: 1px solid var(--line-soft); }
.checked-at { margin: 8px 0 0; font-size: 0.75rem; color: var(--mute); }
details { display: block; }
details > summary { cursor: pointer; color: var(--mute); font-size: 0.9rem; margin-bottom: 8px; user-select: none; }
details > summary:hover { color: var(--ink); }
details ul { margin: 8px 0; padding-left: 1.5em; }

.weak-match-warning { background: #fef3c7; border: 1px solid #fcd34d; border-radius: 4px; padding: 16px; margin: 12px 0 0; }
.weak-match-warning p { margin: 0 0 8px; font-size: 0.95rem; }
.weak-match-warning p:first-child { margin-bottom: 12px; }
.weak-match-warning strong { color: var(--ink); }
.weak-match-warning ul { margin: 8px 0 0; padding-left: 1.5em; }
.weak-match-warning li { margin-bottom: 6px; font-size: 0.9rem; }
.weak-match-warning a { color: var(--accent); text-decoration: underline; }

.roadmap { margin-top: 80px; padding-top: 40px; padding-bottom: 32px; border-top: 2px solid var(--line-soft); }
.roadmap h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 0 0 24px; letter-spacing: -0.02em; }
.roadmap-intro { font-size: 0.95rem; color: var(--mute); margin-bottom: 40px; line-height: 1.7; max-width: 50em; }
.roadmap-steps { display: grid; gap: 40px; }
.roadmap-preview-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.roadmap-preview-item { background: var(--surface); padding: 20px 24px; border-radius: 8px; border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 12px; transition: box-shadow 0.2s; }
.roadmap-preview-item:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.roadmap-preview-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: linear-gradient(135deg, var(--accent), #5463ff); color: white; border-radius: 50%; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.roadmap-preview-item h3 { margin: 0; font-size: 1.05rem; letter-spacing: -0.01em; }
.roadmap-preview-item p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--mute); }
.roadmap-preview-item a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
.roadmap-preview-item a:hover { color: var(--ink); }
.step { display: grid; grid-template-columns: 4rem 1fr; gap: 24px; align-items: start; }
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--accent), #5463ff);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.4rem;
  flex-shrink: 0;
  grid-row: 1 / -1;
  box-shadow: 0 2px 8px rgba(31, 59, 255, 0.2);
}
.step h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  font-weight: 700;
  grid-column: 2;
}
.step p {
  margin: 0 0 12px;
  line-height: 1.7;
  color: var(--ink);
  grid-column: 2;
}
.step p:last-child { margin-bottom: 0; }
.step strong { font-weight: 700; color: var(--ink); }
.step a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s;
}
.step a:hover { color: var(--ink); }
.roadmap-note {
  margin-top: 40px;
  padding: 20px 24px;
  background: rgba(31, 59, 255, 0.06);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.7;
}
.roadmap-note strong { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) {
  .step { grid-template-columns: 3rem 1fr; gap: 16px; }
  .step-number { width: 3rem; height: 3rem; font-size: 1.1rem; }
  .roadmap h2 { font-size: 1.3rem; }
}

/* ── Google Sign-In Modal ── */
.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal[hidden] { display: none; }
.modal-content { background: var(--paper); border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); max-width: 420px; width: 90%; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 1.2rem; }
.modal-close { background: transparent; border: none; font-size: 1.5rem; cursor: pointer; color: var(--mute); }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 24px; }
.modal-body p { margin: 0 0 16px; font-size: 0.95rem; line-height: 1.6; }
.modal-body p:last-child { margin-bottom: 0; }
#google-signin-button { display: flex; justify-content: center; margin: 24px 0; }
.privacy-note { color: var(--mute); text-align: center; }
