/* ============================================================
   TG2 Study — 特定技能2号 飲食料品製造業 学習室
   Dark navy · sakura red accent · mobile-first
   ============================================================ */

:root {
  --bg: #0E1526;
  --bg2: #121B32;
  --surface: #17203A;
  --surface2: #1F2A4A;
  --border: #2A3757;
  --border-soft: #22304F;
  --accent: #F43F5E;
  --accent-dark: #E11D48;
  --accent-soft: rgba(244, 63, 94, 0.12);
  --cyan: #38BDF8;
  --cyan-soft: rgba(56, 189, 248, 0.12);
  --gold: #FBBF24;
  --green: #34D399;
  --text: #EEF2FF;
  --muted: #8FA3C8;
  --faint: #5C6E96;
  --jp: "Noto Serif JP", "Yu Mincho", serif;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --shadow: 0 4px 24px rgba(2, 6, 23, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 21, 38, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #FB7185);
  display: grid; place-items: center;
  font-size: 0.95rem; font-weight: 800; color: #fff;
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.35);
}
.logo small { display: block; font-size: 0.68rem; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  padding: 7px 12px; border-radius: 8px;
}
.nav-links a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav-links a.active { color: var(--text); background: var(--accent-soft); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 7px 11px; font-size: 1.05rem; cursor: pointer;
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    padding: 10px 16px 14px;
  }
  .nav-links.open { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 60px;
  background:
    radial-gradient(700px 340px at 82% -10%, rgba(244, 63, 94, 0.14), transparent 60%),
    radial-gradient(600px 300px at 8% 110%, rgba(56, 189, 248, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg));
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(42, 55, 87, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 55, 87, 0.25) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(600px 400px at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; }
.jp-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); border: 1px solid rgba(244, 63, 94, 0.3);
  color: #FDA4AF; border-radius: 999px; padding: 6px 14px;
  font-size: 0.82rem; font-weight: 600; margin-bottom: 22px;
}
.jp-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.22; font-weight: 800; letter-spacing: -0.01em; max-width: 720px; }
.hero h1 .grad { background: linear-gradient(120deg, #FDA4AF, var(--accent) 55%, #FB923C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { color: var(--muted); font-size: 1.06rem; max-width: 620px; margin: 18px 0 30px; }
.hero .sub .jp-term { color: #CBD5F5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-weight: 700; font-size: 0.95rem;
  padding: 13px 24px; border-radius: 10px; font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #FB7185); color: #fff; box-shadow: 0 4px 18px rgba(244, 63, 94, 0.35); }
.btn-primary:hover { box-shadow: 0 6px 24px rgba(244, 63, 94, 0.5); text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface2); text-decoration: none; }
.btn-sm { padding: 8px 16px; font-size: 0.86rem; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------- stats strip ---------- */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 46px; }
@media (max-width: 640px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: rgba(23, 32, 58, 0.75); border: 1px solid var(--border-soft);
  border-radius: var(--r-m); padding: 16px 18px;
}
.stat b { display: block; font-size: 1.55rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.stat b .u { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.stat span { font-size: 0.8rem; color: var(--muted); }
.stat.accent b { color: #FDA4AF; }
.stat.cyan b { color: var(--cyan); }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg2); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 12px; }
.section .lead { color: var(--muted); max-width: 680px; margin-bottom: 34px; }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--r-l); padding: 22px;
  transition: transform 0.15s, border-color 0.15s;
}
.card:hover { transform: translateY(-3px); border-color: var(--border); }
.card .ico { font-size: 1.5rem; margin-bottom: 12px; }
.card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--muted); }

/* ---------- chapter cards ---------- */
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
a.chapter-card {
  display: block; background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--r-l); padding: 20px; color: var(--text); position: relative;
  transition: transform 0.15s, border-color 0.15s;
}
a.chapter-card:hover { transform: translateY(-3px); border-color: rgba(244, 63, 94, 0.45); text-decoration: none; }
.chapter-card .ch-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-soft); color: #FDA4AF; font-weight: 800; font-size: 0.95rem;
  margin-bottom: 14px;
}
.chapter-card.done .ch-num { background: rgba(52, 211, 153, 0.15); color: var(--green); }
.chapter-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.chapter-card .jp { font-family: var(--jp); font-size: 0.88rem; color: #C7D2FE; }
.chapter-card p { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.chapter-card .ch-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 0.78rem; color: var(--faint); }
.done-pill { position: absolute; top: 14px; right: 14px; background: rgba(52, 211, 153, 0.15); color: var(--green); font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

/* ---------- progress ---------- */
.progress { height: 8px; background: var(--surface2); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--cyan)); border-radius: 999px; transition: width 0.4s; }
.progress-lg { height: 12px; }

/* ---------- jp term / ruby ---------- */
.jp-term { font-family: var(--jp); }
ruby { ruby-position: over; }
ruby rt { font-size: 0.52em; color: var(--faint); font-family: inherit; letter-spacing: 0.02em; }
.jp-line { font-family: var(--jp); font-size: 1.02rem; color: #CBD5F5; }

/* ---------- key point / tip boxes ---------- */
.kp {
  background: var(--cyan-soft); border: 1px solid rgba(56, 189, 248, 0.28);
  border-left: 4px solid var(--cyan);
  border-radius: var(--r-m); padding: 16px 18px; margin: 20px 0;
}
.kp .lbl { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); display: block; margin-bottom: 8px; }
.kp ul { margin: 0; padding-left: 20px; }
.kp li { font-size: 0.92rem; margin-bottom: 4px; }
.tip {
  background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.25);
  border-left: 4px solid var(--gold);
  border-radius: var(--r-m); padding: 14px 18px; margin: 20px 0; font-size: 0.92rem;
}
.tip .lbl { font-weight: 800; color: var(--gold); margin-right: 6px; }
.warn {
  background: rgba(244, 63, 94, 0.07); border: 1px solid rgba(244, 63, 94, 0.25);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-m); padding: 14px 18px; margin: 20px 0; font-size: 0.92rem;
}
.warn .lbl { font-weight: 800; color: #FDA4AF; margin-right: 6px; }

/* ---------- page header ---------- */
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -0.01em; }
.page-head .jp-sub { font-family: var(--jp); color: #93C5FD; font-size: 0.95rem; margin-top: 6px; }
.page-head .desc { color: var(--muted); margin-top: 10px; max-width: 680px; }

/* ---------- bab content ---------- */
.bab-layout { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .bab-layout { grid-template-columns: 1fr; } }
.bab-toc {
  position: sticky; top: 84px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--r-m); padding: 16px; font-size: 0.86rem;
}
@media (max-width: 900px) { .bab-toc { position: static; } }
.bab-toc h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 10px; }
.bab-toc a { display: block; color: var(--muted); padding: 6px 8px; border-radius: 6px; }
.bab-toc a:hover { color: var(--text); background: var(--surface2); text-decoration: none; }
.bab-body h2 { font-size: 1.3rem; font-weight: 800; margin: 40px 0 14px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.bab-body h2:first-child { margin-top: 8px; padding-top: 0; border-top: none; }
.bab-body h3 { font-size: 1.05rem; font-weight: 700; margin: 26px 0 10px; color: #E0E7FF; }
.bab-body p { margin-bottom: 14px; color: #C9D4F0; font-size: 0.97rem; }
.bab-body p .jp-term { color: #E0E7FF; }
.bab-body ul, .bab-body ol { margin: 0 0 16px 0; padding-left: 24px; }
.bab-body li { margin-bottom: 7px; color: #C9D4F0; font-size: 0.95rem; }
.term-row {
  display: grid; grid-template-columns: 190px 1fr; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.93rem;
}
@media (max-width: 640px) { .term-row { grid-template-columns: 1fr; gap: 2px; } }
.term-row .t-jp { font-family: var(--jp); color: #E0E7FF; font-weight: 600; }
.term-row .t-id { color: var(--muted); }
.mark-done-wrap { margin: 44px 0 20px; padding: 22px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-l); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.mark-done-wrap p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* ---------- soal / quiz ---------- */
.mode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.mode-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-l); padding: 24px; display: flex; flex-direction: column; }
.mode-card .ico { font-size: 1.7rem; margin-bottom: 12px; }
.mode-card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 6px; }
.mode-card p { font-size: 0.88rem; color: var(--muted); margin-bottom: 16px; flex: 1; }
.bab-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.chip {
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  border-radius: 999px; padding: 6px 14px; font-size: 0.83rem; cursor: pointer; font-family: inherit;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.quiz-topbar {
  position: sticky; top: 60px; z-index: 50;
  background: rgba(14, 21, 38, 0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
  padding: 12px 0; margin-bottom: 26px;
}
.quiz-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.timer {
  font-family: "SF Mono", Consolas, monospace; font-size: 1.25rem; font-weight: 700;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 6px 16px; color: var(--text); letter-spacing: 0.05em;
}
.timer.danger { color: var(--accent); border-color: var(--accent); animation: pulse 1s infinite; }
.quiz-progress-txt { font-size: 0.88rem; color: var(--muted); }
.quiz-layout { display: grid; grid-template-columns: 1fr 210px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .quiz-layout { grid-template-columns: 1fr; } }
.q-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-l); padding: 26px; }
.q-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag { font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface2); color: var(--muted); border: 1px solid var(--border-soft); }
.tag.lv1 { color: var(--green); border-color: rgba(52,211,153,0.3); }
.tag.lv2 { color: var(--gold); border-color: rgba(251,191,36,0.3); }
.tag.lv3 { color: #FDA4AF; border-color: rgba(244,63,94,0.3); }
.q-text { font-family: var(--jp); font-size: 1.08rem; line-height: 1.9; margin-bottom: 22px; color: var(--text); }
.q-options { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface2); border: 2px solid transparent;
  border-radius: 10px; padding: 13px 16px; cursor: pointer; font-family: var(--jp);
  font-size: 0.97rem; transition: all 0.12s; text-align: left; color: var(--text); width: 100%;
}
.opt:hover { border-color: var(--border); }
.opt .n {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg2); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; color: var(--muted);
}
.opt.picked { border-color: var(--cyan); background: var(--cyan-soft); }
.opt.correct { border-color: var(--green); background: rgba(52, 211, 153, 0.12); }
.opt.correct .n { background: var(--green); color: #052e1b; border-color: var(--green); }
.opt.wrong { border-color: var(--accent); background: var(--accent-soft); }
.opt.wrong .n { background: var(--accent); color: #fff; border-color: var(--accent); }
.opt.locked { cursor: default; }
.explain {
  display: none; margin-top: 20px; padding: 18px;
  background: var(--bg2); border: 1px solid var(--border); border-left: 4px solid var(--green);
  border-radius: 10px; font-size: 0.93rem;
}
.explain.show { display: block; }
.explain .verdict { font-weight: 800; margin-bottom: 8px; }
.explain .verdict.ok { color: var(--green); }
.explain .verdict.no { color: var(--accent); }
.explain .verdict.no { color: #FDA4AF; }
.explain .jp-exp { font-family: var(--jp); color: #C7D2FE; margin-bottom: 10px; line-height: 1.9; }
.explain .ref { font-size: 0.8rem; color: var(--faint); margin-top: 8px; }
.q-nav-bar { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.q-nav-bar .spacer { flex: 1; }
.navigator { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-m); padding: 14px; }
.navigator h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); margin-bottom: 10px; }
.nav-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 14px; }
.nav-btn {
  aspect-ratio: 1; border: 1px solid var(--border); background: var(--surface2);
  border-radius: 7px; font-size: 0.72rem; font-weight: 700; color: var(--muted); cursor: pointer;
  font-family: inherit; display: grid; place-items: center;
}
.nav-btn.answered { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav-btn.flagged::after { content: "⚑"; position: absolute; }
.nav-btn.flagwrap { position: relative; }
.nav-btn.current { outline: 2px solid var(--cyan); outline-offset: 1px; color: var(--cyan); }
.nav-legend { font-size: 0.72rem; color: var(--faint); display: flex; flex-direction: column; gap: 4px; }
.nav-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* results */
.result-hero { text-align: center; padding: 40px 0 10px; }
.score-ring {
  width: 170px; height: 170px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
}
.score-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.score-ring .num { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.score-ring .num small { font-size: 1rem; color: var(--muted); }
.verdict-banner { display: inline-block; padding: 10px 26px; border-radius: 999px; font-weight: 800; font-size: 1.05rem; margin-bottom: 12px; }
.verdict-banner.pass { background: rgba(52, 211, 153, 0.15); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.4); }
.verdict-banner.fail { background: var(--accent-soft); color: #FDA4AF; border: 1px solid rgba(244, 63, 94, 0.4); }
.result-breakdown { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 28px 0; }
.bd-row { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 10px; padding: 14px 16px; }
.bd-row .b { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 8px; }
.bd-row .b .v { font-weight: 700; }
.wrong-list { margin-top: 30px; }
.wrong-item { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-m); padding: 18px; margin-bottom: 12px; }
.wrong-item .q-text { font-size: 0.98rem; margin-bottom: 12px; }
.wrong-item .ans-line { font-size: 0.88rem; padding: 8px 12px; border-radius: 8px; margin-bottom: 6px; font-family: var(--jp); }
.wrong-item .ans-line.ok { background: rgba(52, 211, 153, 0.1); color: #6EE7B7; }
.wrong-item .ans-line.no { background: var(--accent-soft); color: #FDA4AF; }

/* ---------- kamus ---------- */
.kamus-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 22px; }
.search-input {
  flex: 1; min-width: 220px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 16px; color: var(--text); font-size: 0.95rem; font-family: inherit;
}
.search-input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.gloss-row {
  display: grid; grid-template-columns: 230px 1fr; gap: 16px;
  padding: 15px 4px; border-bottom: 1px solid var(--border-soft);
}
@media (max-width: 640px) { .gloss-row { grid-template-columns: 1fr; gap: 2px; padding: 12px 4px; } }
.gloss-row .g-jp { font-family: var(--jp); font-size: 1.02rem; color: #E0E7FF; font-weight: 600; }
.gloss-row .g-cat { font-size: 0.72rem; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.gloss-row .g-id { color: #C9D4F0; font-size: 0.93rem; }
.gloss-row .g-ex { color: var(--faint); font-size: 0.83rem; margin-top: 4px; }
.kamus-count { font-size: 0.85rem; color: var(--faint); margin-bottom: 6px; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; padding: 11px 14px; background: var(--surface2); color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); }
td { padding: 11px 14px; border-bottom: 1px solid var(--border-soft); color: #C9D4F0; }
tr:last-child td { border-bottom: none; }
td .jp-term { color: #E0E7FF; }

/* ---------- steps ---------- */
.steps { counter-reset: step; margin: 24px 0; }
.step { display: flex; gap: 16px; margin-bottom: 18px; }
.step::before {
  counter-increment: step; content: counter(step);
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: #FDA4AF; font-weight: 800;
  display: grid; place-items: center; font-size: 0.9rem;
}
.step .s-b h4 { font-size: 0.97rem; font-weight: 700; margin-bottom: 3px; }
.step .s-b p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- faq ---------- */
.faq-item { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-m); margin-bottom: 10px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  padding: 16px 18px; font-size: 0.97rem; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; gap: 12px; font-family: inherit;
}
.faq-q .fx { color: var(--accent); font-weight: 800; flex: none; }
.faq-a { display: none; padding: 0 18px 16px; color: var(--muted); font-size: 0.92rem; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .fx { transform: rotate(45deg); }

/* ---------- cta banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.14), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: var(--r-l); padding: 40px 32px; text-align: center; margin: 20px 0;
}
.cta-banner h2 { margin-bottom: 10px; }
.cta-banner p { color: var(--muted); max-width: 560px; margin: 0 auto 24px; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border-soft); padding: 40px 0 28px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 28px; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; gap: 20px; } }
.foot-grid h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); margin-bottom: 12px; }
.foot-grid a, .foot-grid p { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 7px; }
.foot-grid a:hover { color: var(--text); }
.foot-bottom { border-top: 1px solid var(--border-soft); padding-top: 20px; font-size: 0.8rem; color: var(--faint); display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.disclaimer { font-size: 0.78rem; color: var(--faint); background: var(--surface); border: 1px dashed var(--border); border-radius: 10px; padding: 12px 16px; margin: 24px 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--surface2); border: 1px solid var(--accent); color: var(--text);
  padding: 12px 22px; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  opacity: 0; transition: all 0.3s; z-index: 200; pointer-events: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s, transform 0.5s; }
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
