/* =========================================================
   tcm.ai — section layouts + mockups
   ========================================================= */

/* ---------------- NAV ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 90%, transparent); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--green); }
.brand-mark { display: inline-flex; color: var(--green); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.brand-dot { color: var(--clay); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 15px; color: var(--ink-soft); font-weight: 500; transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 6px 12px; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint);
  transition: border-color .2s;
}
.lang-toggle:hover { border-color: var(--ink); }
.lang-opt { transition: color .2s; }
.lang-opt.is-on { color: var(--ink); font-weight: 500; }
.lang-sep { opacity: .4; }

@media (max-width: 900px) { .nav-links { display: none; } }

/* ---------------- HERO ---------------- */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 0%, transparent 75%);
  opacity: .6; pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { max-width: 620px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--green); background: var(--green-tint);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 26px;
}
.hero-h1 { font-size: clamp(38px, 5.2vw, 62px); margin-bottom: 24px; }
:root[data-lang="zh"] .hero-h1 { font-size: clamp(32px, 4.6vw, 54px); }
.hero-sub { max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.hstat { display: flex; flex-direction: column; gap: 3px; }
.hstat-n { font-size: 22px; font-weight: 500; color: var(--green); letter-spacing: -0.01em; }
.hstat-l { font-size: 13px; color: var(--ink-faint); max-width: 130px; line-height: 1.35; }

/* CGM hero card */
.hero-visual { position: relative; }
.cgm-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-lg);
}
.cgm-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.cgm-title { font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.cgm-sub { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); margin-top: 3px; letter-spacing: .02em; }
.cgm-tir-n { font-family: var(--font-display); font-size: 34px; font-weight: 500; color: var(--green-bright); line-height: 1; }
.cgm-tir-n small { font-size: 16px; opacity: .7; }
.cgm-chart { height: 168px; width: 100%; }
.cgm-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cgm-range { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }
.cgm-legend { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-faint); }
.cgm-legend .dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.dot-band { background: var(--green-tint); border: 1px solid var(--sage); }
.dot-line { background: var(--green-bright); border-radius: 999px; }

.hero-chip {
  position: absolute; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 14px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px; font-size: 12.5px; line-height: 1.25;
}
.hero-chip b { font-weight: 600; }
.chip-ico { font-size: 17px; color: var(--green-bright); }
.chip-a { top: -18px; right: 28px; animation: float1 6s ease-in-out infinite; }
.chip-b { bottom: -22px; left: -16px; animation: float2 7s ease-in-out infinite; }
.chip-b .chip-ico { color: var(--clay); }
@keyframes float1 { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-8px);} }
@keyframes float2 { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(7px);} }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-top: 12px; }
}

/* ---------------- Section heads ---------------- */
.sec-head { max-width: 760px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 18px 0 18px; }
.sec-head .eyebrow { margin-bottom: 0; }

.band-problem { padding: clamp(72px, 9vw, 120px) 0; background: var(--paper); }
.band-solution { padding: clamp(72px, 9vw, 120px) 0; background: var(--paper-3); }
.band-preview { padding: clamp(72px, 9vw, 120px) 0; background: var(--green-deep); color: #E8ECE5; }
.band-clinicians { padding: clamp(72px, 9vw, 120px) 0; }
.band-patients { padding: clamp(72px, 9vw, 120px) 0; background: var(--paper-3); }
.band-evidence { padding: clamp(72px, 9vw, 120px) 0; }
.band-safety { padding: clamp(64px, 8vw, 104px) 0; background: var(--green); color: #E6ECE5; }
.band-final { padding: clamp(72px, 9vw, 120px) 0; background: var(--paper-3); }

/* ---------------- PROBLEM grid ---------------- */
.prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prob-cell { background: var(--paper-2); padding: 32px 28px 36px; }
.prob-ix { font-family: var(--font-mono); font-size: 12px; color: var(--clay); margin-bottom: 22px; }
.prob-cell h3 { font-size: 21px; margin-bottom: 10px; }
.prob-cell p { color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 820px) { .prob-grid { grid-template-columns: 1fr; } }

/* ---------------- SOLUTION flow ---------------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.flow-step { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 30px; position: relative; transition: transform .3s var(--ease), box-shadow .3s; }
.flow-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.flow-num { font-family: var(--font-mono); font-size: 12px; color: var(--green-bright); border: 1px solid var(--sage); width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 22px; }
.flow-step h3 { font-size: 19px; margin-bottom: 9px; }
.flow-step p { font-size: 14.5px; color: var(--ink-soft); }
.flow-step::after { content: "→"; position: absolute; right: -16px; top: 40px; color: var(--sage); font-size: 16px; }
.flow-step:last-child::after { display: none; }
@media (max-width: 940px) { .flow { grid-template-columns: repeat(2, 1fr); } .flow-step::after { display: none; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

/* ---------------- PRODUCT PREVIEW (dark) ---------------- */
.band-preview .eyebrow { color: var(--sage); }
.band-preview .eyebrow::before { background: var(--sage); }
.band-preview .eyebrow .num { color: rgba(232,236,229,.5); }
.band-preview h2 { color: #F2F0E9; }
.band-preview .lead { color: rgba(232,236,229,.78); }
.preview-stage { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: end; }
@media (max-width: 880px) { .preview-stage { grid-template-columns: 1fr; justify-items: center; } }

/* Clinician console mockup */
.mock-clin { background: var(--paper-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(0,0,0,.1); color: var(--ink); }
.mc-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--paper-3); }
.mc-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--line-strong); }
.mc-bar .mc-tab { margin-left: 14px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }
.mc-bar .mc-tab b { color: var(--green); }
.mc-body { display: grid; grid-template-columns: 168px 1fr; min-height: 360px; }
.mc-side { border-right: 1px solid var(--line); padding: 16px 12px; background: var(--paper); }
.mc-side .mc-pname { font-weight: 600; font-size: 13.5px; padding: 9px 10px; border-radius: 8px; display: flex; align-items: center; gap: 9px; }
.mc-side .mc-pname.on { background: var(--green-tint); color: var(--green-deep); }
.mc-side .mc-pname.off { color: var(--ink-faint); font-weight: 500; }
.mc-av { width: 22px; height: 22px; border-radius: 999px; background: var(--sage); display: grid; place-items: center; font-size: 10px; color: #fff; font-weight: 700; flex: none; }
.mc-pname.off .mc-av { background: var(--line-strong); }
.mc-main { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.mc-h { display: flex; align-items: baseline; justify-content: space-between; }
.mc-h .mc-name { font-family: var(--font-display); font-size: 18px; font-weight: 500; }
.mc-h .mc-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }
.mc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mc-kpi { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.mc-kpi .k { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; }
.mc-kpi .v { font-family: var(--font-display); font-size: 22px; color: var(--green-bright); margin-top: 4px; }
.mc-kpi .v small { font-size: 12px; color: var(--ink-faint); }
.mc-mini { height: 64px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 6px; }
.mc-mini .ml { font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); margin-bottom: 2px; }
.mc-rows { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mc-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.mc-row:last-child { border-bottom: 0; }
.mc-row .rtag { font-family: var(--font-mono); font-size: 10px; padding: 2px 7px; border-radius: 5px; background: var(--green-tint); color: var(--green-deep); }
.mc-row .rtag.clay { background: var(--clay-soft); color: var(--clay); }
.mc-row .rdate { margin-left: auto; color: var(--ink-faint); font-family: var(--font-mono); font-size: 10.5px; }
@media (max-width: 560px) { .mc-body { grid-template-columns: 1fr; } .mc-side { display: none; } }

/* Patient phone mockup */
.mock-phone { width: 268px; border-radius: 34px; background: var(--green-deep); padding: 11px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08); }
.mp-screen { background: var(--paper); border-radius: 25px; overflow: hidden; height: 520px; display: flex; flex-direction: column; }
.mp-status { display: flex; justify-content: space-between; padding: 12px 18px 6px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-soft); }
.mp-hd { padding: 6px 18px 14px; }
.mp-hd .mp-hi { font-size: 12px; color: var(--ink-faint); }
.mp-hd .mp-name { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.mp-glu { margin: 0 16px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.mp-glu .gnow { display: flex; align-items: baseline; gap: 8px; }
.mp-glu .gval { font-family: var(--font-display); font-size: 34px; color: var(--green-bright); line-height: 1; }
.mp-glu .gunit { font-size: 12px; color: var(--ink-faint); }
.mp-glu .gtrend { margin-left: auto; font-size: 12px; color: var(--green-bright); background: var(--green-tint); padding: 3px 9px; border-radius: 999px; }
.mp-spark { height: 46px; margin-top: 8px; }
.mp-list { padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.mp-item { display: flex; align-items: center; gap: 11px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 13px; }
.mp-item .mi-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--green-tint); display: grid; place-items: center; color: var(--green); font-size: 14px; flex: none; }
.mp-item .mi-ic.clay { background: var(--clay-soft); color: var(--clay); }
.mp-item .mi-sub { color: var(--ink-faint); font-size: 11px; }
.mp-item .mi-chk { margin-left: auto; color: var(--green-bright); }
.mp-tab { margin-top: auto; display: flex; justify-content: space-around; padding: 12px 0 16px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 17px; }
.mp-tab .on { color: var(--green); }

/* ---------------- SPLIT (clinicians / patients) ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split.reverse .split-copy { order: 2; }
.split-copy .eyebrow { margin-bottom: 18px; }
.split-copy h2 { font-size: clamp(26px, 3.2vw, 40px); margin-bottom: 18px; }
.split-copy .lead { margin-bottom: 30px; }
.split-copy .btn { margin-top: 4px; }
.eyebrow-clay { color: var(--clay); }
.eyebrow-clay::before { background: var(--clay); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.reverse .split-copy { order: 0; } }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.check-list li { display: flex; align-items: center; gap: 14px; background: var(--paper-2); padding: 18px 22px; font-size: 16px; font-weight: 500; }
.check-list .ck { width: 26px; height: 26px; border-radius: 999px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; font-size: 13px; flex: none; }

.pat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pat-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 24px; }
.pat-card .pc-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--clay-soft); color: var(--clay); display: grid; place-items: center; font-size: 17px; margin-bottom: 16px; }
.pat-card h3 { font-size: 17px; margin-bottom: 7px; }
.pat-card p { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 480px) { .pat-cards { grid-template-columns: 1fr; } }

/* ---------------- EVIDENCE path ---------------- */
.evi-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 980px; margin-inline: auto; position: relative; }
.evi-node { padding: 30px 26px; text-align: center; position: relative; }
.evi-dot { width: 52px; height: 52px; border-radius: 999px; border: 1px solid var(--sage); background: var(--green-tint); color: var(--green); display: grid; place-items: center; margin: 0 auto 20px; font-family: var(--font-mono); font-weight: 500; font-size: 15px; position: relative; z-index: 2; }
.evi-node h3 { font-size: 19px; margin-bottom: 9px; }
.evi-node p { font-size: 14.5px; color: var(--ink-soft); max-width: 240px; margin-inline: auto; }
.evi-node:not(:last-child)::after { content: ""; position: absolute; top: 56px; left: 50%; width: 100%; height: 1px; background: repeating-linear-gradient(to right, var(--sage) 0 6px, transparent 6px 12px); z-index: 1; }
@media (max-width: 720px) { .evi-path { grid-template-columns: 1fr; gap: 12px; } .evi-node::after { display: none !important; } }

/* ---------------- SAFETY (dark green) ---------------- */
.safety-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.eyebrow-light { color: var(--sage); }
.eyebrow-light::before { background: var(--sage); }
.eyebrow-light .num { color: rgba(230,236,229,.5); }
.band-safety h2 { color: #F1F0E8; font-size: clamp(26px, 3.4vw, 42px); margin: 18px 0 18px; }
.band-safety .lead { color: rgba(230,236,229,.82); }
.safety-pills { display: flex; flex-direction: column; gap: 12px; }
.safety-pill { display: flex; align-items: center; gap: 13px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 16px 18px; font-weight: 500; font-size: 15.5px; }
.safety-pill .sp-ic { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: var(--sage); flex: none; }
@media (max-width: 760px) { .safety-inner { grid-template-columns: 1fr; } }

/* ---------------- FINAL CTA + FORM ---------------- */
.final-head { text-align: center; margin-bottom: 48px; }
.final-head h2 { font-size: clamp(30px, 4vw, 48px); }
.final-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: start; max-width: 1000px; margin-inline: auto; }
.entry-cards { display: flex; flex-direction: column; gap: 14px; }
.entry-card { text-align: left; cursor: pointer; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, box-shadow .2s, transform .2s; font-family: inherit; }
.entry-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.entry-card.is-active { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.entry-pat.is-active { border-color: var(--clay); box-shadow: 0 0 0 1px var(--clay); }
.entry-tag { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--green-bright); }
.entry-pat .entry-tag { color: var(--clay); }
.entry-body { font-size: 14.5px; color: var(--ink-soft); }
.entry-cta { font-weight: 600; font-size: 15px; color: var(--ink); margin-top: 2px; }
.entry-cta::after { content: " →"; }

.lead-form { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px clamp(22px, 3vw, 34px) 34px; box-shadow: var(--shadow-sm); position: relative; }
.form-title { font-size: 22px; margin-bottom: 22px; }
.field { position: relative; margin-bottom: 16px; }
.field > label:not(.flabel) { display: block; font-size: 13px; color: var(--ink-faint); margin-bottom: 9px; font-weight: 500; }
.seg { display: inline-flex; background: var(--paper-3); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg-opt { font-family: inherit; font-size: 13.5px; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; color: var(--ink-soft); transition: background .2s, color .2s; }
.seg-opt.is-on { background: var(--green); color: #F2F0E9; }
.lead-form input, .lead-form textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 15px 14px 8px; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.lead-form input:focus, .lead-form textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.flabel { position: absolute; left: 14px; top: 14px; font-size: 15px; color: var(--ink-faint); pointer-events: none; transition: .18s var(--ease); }
.lead-form input:focus + .flabel, .lead-form input:not(:placeholder-shown) + .flabel,
.lead-form textarea:focus + .flabel, .lead-form textarea:not(:placeholder-shown) + .flabel {
  top: 6px; font-size: 10.5px; color: var(--green-bright); font-family: var(--font-mono);
}
.field.invalid input { border-color: var(--clay); }
.form-submit { width: 100%; justify-content: center; margin-top: 6px; }
.form-done { display: flex; align-items: center; gap: 14px; background: var(--green-tint); border: 1px solid var(--sage); border-radius: 12px; padding: 18px; margin-top: 16px; }
.done-ico { width: 36px; height: 36px; border-radius: 999px; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 18px; flex: none; }
.done-t { font-weight: 600; }
.done-s { font-size: 13px; color: var(--ink-soft); }
[data-role-show].hide { display: none; }
@media (max-width: 760px) { .final-grid { grid-template-columns: 1fr; } }

/* ---------------- FOOTER ---------------- */
.footer { background: var(--green-deep); color: rgba(232,236,229,.72); padding: clamp(48px, 6vw, 72px) 0 36px; }
.footer .brand-name { color: #F2F0E9; }
.footer .brand-mark, .footer .brand { color: var(--sage); }
.foot-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-tag { margin-top: 16px; font-size: 14px; max-width: 280px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--sage); margin-bottom: 14px; font-weight: 500; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.foot-col a { font-size: 14px; color: rgba(232,236,229,.7); transition: color .2s; }
.foot-col a:hover { color: #F2F0E9; }
.foot-disclaimer { padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-disclaimer p { font-size: 12.5px; line-height: 1.6; color: rgba(232,236,229,.55); max-width: 880px; }
.foot-bottom { padding-top: 24px; font-size: 12.5px; color: rgba(232,236,229,.5); font-family: var(--font-mono); }
@media (max-width: 720px) { .foot-top { grid-template-columns: 1fr; } .foot-cols { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- form error state ---------- */
.form-err { display: flex; align-items: center; gap: 10px; background: #fdf0ec; border: 1px solid var(--clay); border-radius: 12px; padding: 12px 14px; margin-top: 12px; font-size: 14px; color: #8a3b22; }
.form-err .err-ico { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--clay); color: #fff; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.form-submit[disabled] { opacity: 0.6; cursor: wait; }

/* fix: 恢复 hidden 属性语义——author CSS 的 display:flex 会覆盖 [hidden]，必须显式声明 */
.form-err[hidden], .form-done[hidden] { display: none; }
