/* FormoMama public beta components, layered on site.css (the shared landing-page base). */
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--green); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 16px; top: 12px; border-radius: 8px; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  font-family: inherit; font-size: 0.88rem; font-weight: 500; cursor: pointer;
  background: #fff; color: var(--ink-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; min-width: 64px;
}
.lang-toggle:hover { border-color: var(--green); color: var(--green); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.lockup .tier.beta { color: var(--coral); }

/* Landing: Formo AI preview */
.chat-preview { background: #fff; border-radius: var(--radius-lg); padding: 26px; box-shadow: 0 12px 40px rgba(17,26,22,0.08); }
.chat-preview .cp-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.chat-preview .cp-head b { font-weight: 500; display: block; }
.chat-preview .cp-head span { font-size: 0.8rem; color: var(--ink-faint); display: block; }
.cp-bubble { border-radius: 16px; padding: 12px 15px; font-size: 0.92rem; line-height: 1.55; margin-bottom: 10px; max-width: 92%; }
.cp-bubble.me { background: var(--green); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.cp-bubble.bot { background: var(--surface); color: var(--ink); border-bottom-left-radius: 4px; }
.cp-bubble ol { margin: 6px 0 0; padding-left: 18px; }
.cp-bubble .cp-link { color: var(--green); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.ai-orb {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 30% 30%, #f59a8d, var(--coral) 55%, #c9483a);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
}

.visibility.single { grid-template-columns: 1fr; padding: 28px 30px; margin-bottom: 18px; }
.cta.tinted { background: var(--surface); }
.faq.spaced { padding-top: 104px; }

/* ── Check page (Modern Redesign) ───────────── */
#form-section, #results-section { background: #f8faf9; min-height: calc(100vh - 72px); }
.page-head { padding-top: 56px; padding-bottom: 32px; }
.page-head .lede { margin-top: 12px; max-width: 620px; }
.check-section { padding: 0 0 88px; }
.check-section .wrap { max-width: 860px; }

/* Main Elevated Form Card */
.panel {
  background: #ffffff;
  border: 1px solid #dde8e2;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  padding: 40px 44px;
}
@media (max-width: 640px) {
  .panel { padding: 26px 20px; border-radius: 16px; }
  .page-head { padding-top: 36px; padding-bottom: 24px; }
}

/* Logical Section Dividers inside Form */
.form-section-label {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 16px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.form-section-label:first-child { margin-top: 0; padding-top: 0; border-top: none; }

/* Grid & Fields */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field.full { grid-column: 1 / -1; }
.field[hidden] { display: none; }
.field > label, .field > legend { font-size: 0.98rem; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 2px; }
.field .hint { font-size: 0.85rem; color: var(--ink-faint); line-height: 1.45; margin: -2px 0 4px; }

/* Modernized Segmented Pills (Sleek card toggles) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; margin: 0; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line);
  font-size: 0.93rem; font-weight: 500; color: var(--ink-soft);
  transition: all 0.16s ease; user-select: none;
}
.pill span:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.pill input:checked + span {
  background: var(--green); border-color: var(--green); color: #ffffff;
  font-weight: 600; box-shadow: 0 2px 8px rgba(29, 107, 82, 0.22);
}
.pill input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

/* Modern Number Input for Mother's Age */
.age-input-row { display: flex; align-items: center; gap: 12px; }
.age-input {
  width: 105px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 16px;
  transition: all 0.15s;
  -moz-appearance: textfield;
}
.age-input::-webkit-outer-spin-button,
.age-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.age-input:focus { background: #fff; border-color: var(--green); outline: 3px solid var(--green-soft); }
.age-unit { font-size: 0.95rem; color: var(--ink-soft); font-weight: 500; }

/* Modern Select Menus with Clean Chevron */
.field select {
  appearance: none; font-family: inherit; font-size: 0.98rem; font-weight: 500; color: var(--ink); width: 100%;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23474b49' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1.5px solid #d1d5db; border-radius: 12px; padding: 12px 44px 12px 16px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.field select:hover { border-color: #9ca3af; background-color: #f9fafb; }
.field select:focus { background-color: #ffffff; border-color: var(--green); outline: none; box-shadow: 0 0 0 3px var(--green-soft); }
.field select option[value=""] { color: var(--ink-faint); }

/* Field Validation States */
.field.invalid > label, .field.invalid > legend { color: #c0392b; }
.field.invalid select, .field.invalid .age-input { border-color: #e08b7f; background-color: #fdf5f4; }
.field.invalid .pills .pill span { border-color: #e08b7f; }
.field-error { font-size: 0.82rem; color: #c0392b; display: none; margin: 2px 0 0; }
.field.invalid .field-error { display: block; }

/* Form Submit Bar */
.form-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line);
}
.form-note { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-faint); margin: 0; }
.form-note i { color: var(--green); font-size: 1.05rem; }
.btn[disabled] { opacity: 0.6; cursor: default; }
button.btn { font-family: inherit; }

/* ── Results Section ────────────────────────── */
.results-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 28px;
}
.results-head .lede { margin-top: 12px; max-width: 660px; }
.results-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.profile-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.profile-chips li {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 999px;
  padding: 6px 14px; font-size: 0.86rem; font-weight: 500; color: var(--ink-soft);
}

/* Polished Result Cards */
.result-group { margin-top: 40px; }
.result-group:first-of-type { margin-top: 0; }
.result-group > h2 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

.result-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px 20px;
  display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.result-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); }

.result-card .rc-icon {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 14px; background: var(--green-soft); color: var(--green);
}
.result-card[data-color="pink"] .rc-icon { background: var(--coral-soft); color: var(--coral); }
.result-card[data-color="purple"] .rc-icon { background: #ecebf6; color: #5f5aa8; }
.result-card h3 { font-size: 1.02rem; font-weight: 600; line-height: 1.4; color: var(--ink); margin-bottom: 6px; letter-spacing: 0; }
.result-card .rc-value { font-size: 1.45rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: var(--green); margin-bottom: 12px; }

/* Description text & paragraph lines */
.result-card .rc-desc { font-size: 0.91rem; line-height: 1.6; color: var(--ink-soft); }
.result-card .rc-line { margin: 0 0 10px 0; line-height: 1.55; }
.result-card .rc-line:last-of-type { margin-bottom: 0; }
.result-card .rc-desc br { display: block; height: 10px; content: ""; }

/* Dedicated Source & Verified Metadata Block */
.result-card .rc-source {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.82rem;
  color: var(--ink-faint);
  line-height: 1.5;
}
.result-card .rc-source a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.result-card .rc-source a:hover { color: var(--green-dark); }
.result-card .rc-desc a {
  color: var(--green); font-weight: 500; text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.15s;
}
.result-card .rc-desc a:hover { color: var(--green-dark); }
.result-card .rc-desc em { color: var(--ink-faint); }

.result-card.muted { background: #fafbfa; }
.result-card.muted .rc-value, .result-card.muted h3 { color: var(--ink-faint); }
.result-card.muted .rc-icon { filter: grayscale(1); opacity: 0.6; }
.result-card .rc-flag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: #fdf0dc; color: #9a5b12; border-radius: 6px; padding: 3px 8px; margin-bottom: 12px;
}

.notes { margin-top: 36px; display: grid; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.notes[hidden] { display: none; }
.notes > h2 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.note { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); }
.note i { color: var(--green); font-size: 1.15rem; margin-top: 2px; flex-shrink: 0; }
.note a { color: var(--green); font-weight: 500; }
.disclaimer { margin-top: 30px; font-size: 0.82rem; color: var(--ink-faint); line-height: 1.6; max-width: 820px; }
.next-band {
  margin-top: 40px; background: var(--green); color: #fff; border-radius: 16px;
  padding: 30px 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.next-band h3 { font-size: 1.25rem; color: #fff; margin: 0 0 6px; font-weight: 600; }
.next-band p { margin: 0; color: rgba(255, 255, 255, 0.88); font-size: 0.95rem; max-width: 540px; }
.next-band .btn-primary { background: #ffffff; color: var(--green); border-color: transparent; }
.next-band .btn-primary:hover { background: var(--green-soft); color: var(--green-dark); }
/* ── Formo AI ──────────────────────────────── */
.ai-fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 90;
  width: 64px; height: 64px; border-radius: 50%; border: none; cursor: pointer;
  background: radial-gradient(circle at 30% 30%, #f59a8d, var(--coral) 55%, #c9483a);
  color: #fff; font-size: 1.7rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(239,109,93,0.4); transition: transform 0.2s;
  animation: fab-in 0.45s ease both;
}
.ai-fab[hidden] { display: none; }
.ai-fab:hover { transform: scale(1.06); }
.ai-fab .fab-tip {
  position: absolute; right: 76px; white-space: nowrap; background: var(--night); color: #fff;
  font-size: 0.85rem; padding: 8px 12px; border-radius: 10px; pointer-events: none;
  opacity: 0; transition: opacity 0.2s;
}
.ai-fab:hover .fab-tip, .ai-fab.intro .fab-tip { opacity: 1; }
.ai-fab .fab-dot { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
@keyframes fab-in { from { opacity: 0; transform: scale(0.6) translateY(20px); } to { opacity: 1; transform: none; } }

.ai-panel {
  position: fixed; right: 28px; bottom: 108px; z-index: 95; width: 420px;
  height: min(640px, calc(100vh - 140px)); background: #fff; border-radius: 22px;
  box-shadow: 0 24px 70px rgba(17,26,22,0.22); display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line);
}
.ai-panel[hidden] { display: none; }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ai-head .t { font-weight: 500; }
.ai-head .s { font-size: 0.8rem; color: var(--ink-faint); }
.ai-close { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 1.3rem; color: var(--ink-faint); padding: 6px; border-radius: 8px; }
.ai-close:hover { background: var(--surface); color: var(--ink); }
.ai-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ai-msg { max-width: 90%; border-radius: 16px; padding: 12px 15px; font-size: 0.92rem; line-height: 1.6; overflow-wrap: anywhere; }
.ai-msg.me { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.ai-msg.bot { align-self: flex-start; background: var(--surface); color: var(--ink); border-bottom-left-radius: 4px; }
.ai-msg.bot p { margin: 0 0 8px; }
.ai-msg.bot p:last-child { margin-bottom: 0; }
.ai-msg.bot ol, .ai-msg.bot ul { margin: 4px 0 8px; padding-left: 20px; }
.ai-msg.bot li { margin-bottom: 4px; }
.ai-msg.bot a { color: var(--green); font-weight: 500; text-underline-offset: 3px; }
.ai-msg.bot table { border-collapse: collapse; font-size: 0.82rem; margin: 6px 0; display: block; overflow-x: auto; }
.ai-msg.bot th, .ai-msg.bot td { border: 1px solid var(--line); padding: 5px 8px; text-align: left; }
.ai-msg.notice { align-self: stretch; max-width: none; background: #fdf0dc; color: #7a4a10; font-size: 0.86rem; }
.ai-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ai-links a {
  display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; font-weight: 500;
  background: #fff; color: var(--green); border: 1px solid #cfe0d8; border-radius: 999px; padding: 5px 10px; text-decoration: none;
}
.ai-links a:hover { background: var(--green-soft); }
.ai-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); animation: blink 1.2s infinite; }
.ai-typing i:nth-child(2) { animation-delay: 0.2s; }
.ai-typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 12px; }
.ai-chips[hidden] { display: none; }
.ai-chips button {
  font-family: inherit; font-size: 0.82rem; cursor: pointer; background: #fff; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; text-align: left;
}
.ai-chips button:hover { border-color: var(--green); color: var(--green); }
.ai-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ai-form textarea {
  flex: 1; resize: none; height: 46px; font-family: inherit; font-size: 0.93rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
.ai-form textarea:focus { border-color: var(--green); outline: none; }
.ai-form textarea[disabled] { background: var(--surface); }
.ai-form button {
  width: 46px; height: 46px; border-radius: 14px; border: none; cursor: pointer;
  background: var(--green); color: #fff; font-size: 1.15rem; flex-shrink: 0;
}
.ai-form button[disabled] { opacity: 0.45; cursor: default; }
.ai-foot { display: flex; justify-content: space-between; gap: 10px; padding: 0 16px 12px; font-size: 0.76rem; color: var(--ink-faint); }

/* ── About ─────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.about-card { background: var(--surface); border-radius: var(--radius-md); padding: 30px 32px; }
.about-card i { font-size: 1.5rem; color: var(--green); }
.about-card h3 { font-size: 1.3rem; margin: 14px 0 10px; }
.about-card p { margin: 0; color: var(--ink-soft); line-height: 1.65; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; gap: 12px; margin-bottom: 18px; color: var(--ink-soft); line-height: 1.55; }
.contact-list li[hidden] { display: none; }
.form-note.plain { display: block; }
.form-note.plain a { color: var(--green); font-weight: 500; }
.contact-list i { color: var(--green); font-size: 1.2rem; margin-top: 2px; }
.contact-list a { color: var(--green); font-weight: 500; }
.contact-form .form-grid { gap: 20px; }
.contact-form .field input, .contact-form .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; width: 100%;
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
}
.contact-form .field textarea { min-height: 150px; resize: vertical; }
.contact-form .field input:focus, .contact-form .field textarea:focus { border-color: var(--green); outline: 2px solid var(--green-soft); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.93rem; margin: 0; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #b4382b; }

/* ── Prose (privacy) ───────────────────────── */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 44px 0 14px; }
.prose p, .prose li { color: var(--ink-soft); line-height: 1.7; font-size: 1.02rem; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--green); font-weight: 500; }
.updated { font-size: 0.9rem; color: var(--ink-faint); }

.tight-top { padding-top: 24px; }
.flush-top { padding-top: 0; }
.panel.white { background: #fff; }
.nf-lede { margin: 18px 0 32px; }

/* ── 404 ───────────────────────────────────── */
.not-found { min-height: 60vh; display: flex; align-items: center; }

/* ── Responsive (public) ───────────────────── */
@media (max-width: 1080px) { .result-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .form-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .panel { padding: 28px 22px; }
  .page-head { padding-top: 44px; padding-bottom: 22px; }
}
@media (max-width: 600px) {
  .result-grid { grid-template-columns: 1fr; }
  .header-row { height: 64px; gap: 10px; }
  .header-actions .btn-small { padding: 9px 14px; font-size: 0.86rem; }
  .lang-toggle { min-width: 0; padding: 8px 10px; }
  .lockup .tier { display: none; }
  .ai-panel { right: 0; left: 0; bottom: 0; width: auto; height: 100dvh; border-radius: 0; border: none; }
  .ai-fab { right: 18px; bottom: 18px; }
  .ai-fab .fab-tip { display: none; }
  .next-band { padding: 26px 22px; }
}

/* ── Print: results only ───────────────────── */
@media print {
  .site-header, .site-footer, .announce, .ai-fab, .ai-panel, .results-actions, .next-band, #form-section, .skip-link { display: none !important; }
  .result-card { break-inside: avoid; border-color: #ccc; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .check-section { padding: 0; }
}


/* ── Feedback: band under the results, a thumb on each card, a thumb under each Formo AI answer ── */
.feedback { background: var(--surface); border-radius: var(--radius-md); padding: 28px 30px; margin-top: 28px; }
.feedback h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 4px; }
.feedback .fb-sub { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 16px; }
.fb-rates { display: flex; flex-wrap: wrap; gap: 10px; }
.fb-rate {
  display: inline-flex; align-items: center; gap: 9px; font: inherit; font-size: 0.98rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.fb-rate i { font-size: 1.3rem; color: var(--green); }
.fb-rate:hover { border-color: var(--green); }
.fb-rate[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.fb-rate[aria-pressed="true"] i { color: #fff; }
#fb-detail { margin-top: 20px; max-width: 640px; }
#fb-detail[hidden], #fb-step1[hidden], .fb-thanks[hidden], .fb-error[hidden] { display: none; }
.fb-why { font-weight: 500; margin-bottom: 10px; }
.fb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#fb-chips { margin-bottom: 16px; }
.fb-chip {
  font: inherit; font-size: 0.9rem; color: var(--ink-soft); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.fb-chip:hover { border-color: var(--green); }
.fb-chip[aria-pressed="true"] { background: var(--green-soft); border-color: var(--green); color: var(--green-dark); font-weight: 500; }
.fb-label { display: block; font-size: 0.9rem; font-weight: 500; margin: 14px 0 6px; }
#fb-comment, #fb-email {
  width: 100%; font: inherit; font-size: 0.97rem; color: var(--ink); background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px;
}
#fb-comment { resize: vertical; min-height: 84px; }
#fb-comment:focus, #fb-email:focus { border-color: var(--green); outline: 2px solid var(--green-soft); }
.fb-actions { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.fb-skip { font: inherit; font-size: 0.92rem; color: var(--ink-faint); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.fb-skip:hover { color: var(--ink); }
.fb-error { color: #b3392b; font-size: 0.9rem; margin-top: 12px; }
.fb-thanks { margin-top: 4px; font-weight: 500; color: var(--green-dark); display: flex; align-items: center; gap: 10px; }
.fb-thanks i { font-size: 1.4rem; color: var(--green); }
.fb-privacy { margin-top: 18px; font-size: 0.82rem; color: var(--ink-faint); }

.card-fb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-faint); }
.result-card .rc-desc { margin-bottom: 16px; }
.card-fb .fb-q { margin-right: 4px; }
.fb-thumb {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; font-size: 1.05rem;
  color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.fb-thumb:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.fb-done { display: inline-flex; align-items: center; gap: 6px; color: var(--green-dark); font-weight: 500; }
.card-fb .fb-chip { font-size: 0.8rem; padding: 6px 11px; }

.ai-fb { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.82rem; color: var(--ink-faint); }
.ai-fb .fb-thumb { width: 28px; height: 28px; font-size: 0.9rem; }
.ai-feedback-prompt { text-align: center; }

@media (max-width: 640px) {
  .feedback { padding: 22px 18px; }
  .fb-rate { flex: 1 1 100%; justify-content: center; }
}
@media print {
  .feedback, .card-fb, #btn-fb-jump { display: none !important; }
}

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fb-rate[aria-pressed="true"] span { color: #fff; }

.data-updated { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.88rem; color: var(--ink-faint); }
.data-updated[hidden] { display: none; }
.data-updated i { color: var(--green); font-size: 1.05rem; }

/* ── Motion: hero demo, chat typing, step lights. All of it stops for visitors who prefer reduced motion. ── */
.demo { position: relative; display: grid; place-items: center; padding: 28px; aspect-ratio: auto; min-height: 470px; background: linear-gradient(160deg, var(--green-soft), var(--surface) 70%); }
.demo-window { width: 100%; max-width: 430px; background: #fff; border-radius: 22px; box-shadow: 0 18px 50px rgba(17,26,22,0.12); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.demo-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.demo-tag { margin-left: auto; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.demo-stage { position: relative; height: 336px; }
.demo-form, .demo-results { position: absolute; inset: 0; padding: 20px 22px; }
.demo-q { font-size: 0.8rem; font-weight: 500; color: var(--ink); margin: 0 0 8px; }
.demo-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.demo-pill { font-size: 0.8rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: #fff; }
.demo-select { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; margin-bottom: 22px; color: var(--ink); }
.demo-go { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; font-size: 0.85rem; font-weight: 500; border-radius: 999px; padding: 10px 18px; }
.demo-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; margin-bottom: 10px; background: #fff; }
.demo-card > i { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--coral-soft); color: var(--coral); font-size: 1.1rem; }
.demo-card.c3 > i { background: #ecebf6; color: #5f5aa8; }
.demo-card b { display: block; font-size: 0.78rem; font-weight: 400; color: var(--ink-soft); }
.demo-card span { font-size: 1.05rem; color: var(--ink); }
.demo-ai { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; background: var(--green); color: #fff; font-size: 0.82rem; border-radius: 999px; padding: 9px 16px; }
.demo-toggle { position: absolute; right: 16px; bottom: 16px; width: 34px; height: 34px; display: grid; place-items: center; font-size: 1rem; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.demo-toggle:hover { border-color: var(--green); color: var(--green); }

/* One 12-second loop. Each element waits for its moment; nothing runs until the demo is on screen. */
.demo * { animation-play-state: paused; }
.demo.play * { animation-play-state: running; }
.demo.paused * { animation-play-state: paused !important; }
.demo-form, .demo-results, .demo-pill, .demo-select, .demo-go, .demo-card, .demo-ai { animation-duration: 12s; animation-iteration-count: infinite; animation-timing-function: ease; }
.demo-form { animation-name: demoForm; }
.demo-results { animation-name: demoResults; opacity: 0; }
.demo-pill.pick-a { animation-name: pickA; }
.demo-pill.pick-b { animation-name: pickB; }
.demo-select.pick-c { animation-name: pickC; }
.demo-go { animation-name: pressGo; }
.demo-card { opacity: 0; }
.demo-card.c1 { animation-name: cardIn1; }
.demo-card.c2 { animation-name: cardIn2; }
.demo-card.c3 { animation-name: cardIn3; }
.demo-ai { animation-name: cardIn4; opacity: 0; }
@keyframes demoForm { 0%, 40% { opacity: 1; } 44%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes demoResults { 0%, 44% { opacity: 0; } 46%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes pickA { 0%, 6% { background: #fff; color: var(--ink-soft); border-color: var(--line); transform: none; } 8% { transform: scale(1.06); } 10%, 94% { background: var(--green); color: #fff; border-color: var(--green); transform: none; } 100% { background: #fff; color: var(--ink-soft); border-color: var(--line); } }
@keyframes pickB { 0%, 16% { background: #fff; color: var(--ink-soft); border-color: var(--line); transform: none; } 18% { transform: scale(1.06); } 20%, 94% { background: var(--green); color: #fff; border-color: var(--green); transform: none; } 100% { background: #fff; color: var(--ink-soft); border-color: var(--line); } }
@keyframes pickC { 0%, 26% { border-color: var(--line); box-shadow: none; } 28%, 34% { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); } 36%, 100% { border-color: var(--line); box-shadow: none; } }
@keyframes pressGo { 0%, 36% { transform: none; filter: none; } 38% { transform: scale(0.94); filter: brightness(0.9); } 41%, 100% { transform: none; filter: none; } }
@keyframes cardIn1 { 0%, 47% { opacity: 0; transform: translateY(12px); } 51%, 94% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes cardIn2 { 0%, 53% { opacity: 0; transform: translateY(12px); } 57%, 94% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes cardIn3 { 0%, 59% { opacity: 0; transform: translateY(12px); } 63%, 94% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes cardIn4 { 0%, 67% { opacity: 0; transform: translateY(8px); } 71%, 94% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }

/* Formo AI preview: question, typing dots, then the answer line by line (runs once). */
.cp-stack { display: grid; }
.cp-stack > .cp-bubble { grid-area: 1 / 1; }
.cp-typing { display: flex; gap: 5px; align-items: center; align-self: start; width: 62px; }
.cp-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); animation: dot 1s infinite ease-in-out; animation-play-state: paused; }
.cp-typing i:nth-child(2) { animation-delay: 0.15s; }
.cp-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.js .chat-preview[data-play] .cp-bubble.me, .js .chat-preview[data-play] .cp-typing, .js .chat-preview[data-play] .cp-answer { opacity: 0; }
.js .chat-preview[data-play] .cp-answer li, .js .chat-preview[data-play] .cp-link { opacity: 0; }
.chat-preview.play .cp-bubble.me { animation: fadeUp 0.5s 0.2s ease forwards; }
.chat-preview.play .cp-typing { animation: typingShow 1.5s 0.9s ease forwards; }
.chat-preview.play .cp-typing i { animation-play-state: running; }
.chat-preview.play .cp-answer { animation: fadeUp 0.5s 2.3s ease forwards; }
.chat-preview.play .cp-answer li:nth-child(1) { animation: fadeUp 0.4s 2.9s ease forwards; }
.chat-preview.play .cp-answer li:nth-child(2) { animation: fadeUp 0.4s 3.4s ease forwards; }
.chat-preview.play .cp-answer li:nth-child(3) { animation: fadeUp 0.4s 3.9s ease forwards; }
.chat-preview.play .cp-link { animation: fadeUp 0.4s 4.5s ease forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes typingShow { 0% { opacity: 0; } 15%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* How it works: the step numbers light up one after another. */
.steps[data-steps] .step-num { transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease; }
.steps.lit .step-num { background: var(--green); border-color: var(--green); color: #fff; }
.steps.lit .step:nth-child(2) .step-num { transition-delay: 0.6s; }
.steps.lit .step:nth-child(3) .step-num { transition-delay: 1.2s; }

@media (max-width: 760px) {
  .demo { min-height: 480px; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-toggle { display: none; }
  .demo * { animation: none !important; }
  .demo-form { display: none; }
  .demo-results, .demo-card, .demo-ai { opacity: 1 !important; transform: none !important; }
  .js .chat-preview[data-play] .cp-bubble.me, .js .chat-preview[data-play] .cp-answer,
  .js .chat-preview[data-play] .cp-answer li, .js .chat-preview[data-play] .cp-link { opacity: 1; }
  .cp-typing { display: none; }
  .steps[data-steps] .step-num { transition: none; }
}
@media print {
  .demo-toggle { display: none; }
}

/* ── Results Summary Hero Banner ─────────────── */
.results-summary-hero {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 26px 30px;
  margin-bottom: 34px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.rsh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.rsh-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.rsh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .rsh-grid { grid-template-columns: 1fr; gap: 16px; }
  .results-summary-hero { padding: 20px; }
}
.rsh-col { display: flex; flex-direction: column; gap: 4px; }
.rsh-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2px;
}
.rsh-val {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.rsh-val.green { color: var(--green); }
.rsh-val.blue { color: #0284c7; }
.rsh-val.purple { color: #7c3aed; }
.rsh-desc {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.4;
  margin: 0;
}

/* ── Landing Page Polish (index.html) ────────── */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--ink-faint);
  flex-wrap: wrap;
}
.hero-trust .ht-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--ink-soft);
}
.hero-trust .ht-item i {
  color: var(--green);
  font-size: 1.05rem;
}
.hero-trust .ht-sep {
  color: var(--line);
}

/* Demo window age number box */
.demo-age-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.demo-age-box {
  width: 58px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}
.demo-age-unit {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Modern 5-feature cards grid */
.feature-row-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.feature-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
.feature-card .fc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.35rem;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--ink);
}
.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Modern Benefit Teaser CTA Band */
.cta-band {
  padding: 88px 0;
}
.cta-band-inner {
  background: linear-gradient(135deg, #f4f8f6 0%, #edf4f0 100%);
  border: 1px solid #dde7e1;
  border-radius: 24px;
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .cta-band-inner {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 30px;
  }
}
.cta-band-copy .eyebrow {
  margin-bottom: 12px;
}
.cta-band-copy .h-section {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.2;
}
.cta-hl {
  color: var(--green);
  font-weight: 700;
}
.cta-band-copy .lede {
  margin: 14px 0 28px;
  font-size: 1.05rem;
}
.cta-band-stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cbs-pill {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.cbs-pill i {
  color: var(--green);
  font-size: 1.2rem;
}

/* ── Executive Dashboard Layout (check.html) ──── */
.results-wrap {
  padding-top: 48px;
  padding-bottom: 96px;
}

/* 1. Top Header Split (Title/Actions Left + Situation Right) */
.results-top-header {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .results-top-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.results-header-left .lede {
  margin-top: 10px;
  max-width: 620px;
}
.results-header-left .results-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.results-situation-panel .situation-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.situation-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--ink-faint);
}
.situation-card-head i {
  font-size: 1.25rem;
  color: var(--green);
}
.situation-card-head h4 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.situation-card .profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.situation-card .profile-chips li {
  background: var(--surface);
  border: 1px solid #dde3df;
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* 2. Top-Sticky "Your Benefits At a Glance" Hero */
.results-summary-sticky {
  position: sticky;
  top: 72px;
  z-index: 25;
  padding: 10px 0 16px;
  background: rgba(248, 250, 249, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 28px;
}
.results-summary-sticky .results-summary-hero {
  margin-bottom: 0;
  border: 1.5px solid #d8e5de;
  box-shadow: 0 8px 30px rgba(17, 26, 22, 0.06);
}
.results-summary-sticky .rsh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .results-summary-sticky {
    position: static;
    background: transparent;
    padding: 0;
  }
  .results-summary-sticky .rsh-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* 3. Benefit Cards Stream (3 Dense, Highly-Readable Columns) */
.results-cards-stream {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.results-cards-stream .result-group {
  margin-top: 0;
}
.results-cards-stream .result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1080px) {
  .results-cards-stream .result-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .results-cards-stream .result-grid {
    grid-template-columns: 1fr;
  }
}

/* 4. FormoAI Mascot Avatar & Chatbot Styling */
.ai-orb-mascot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(17, 26, 22, 0.08);
  flex-shrink: 0;
}
.ai-orb-mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 4b. Landing Page Section Progress Sidebar Nav */
.landing-section-nav {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.landing-section-nav.nav-visible {
  opacity: 1;
  pointer-events: auto;
}
.lsn-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
.lsn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
  border: 1.5px solid transparent;
  transition: background 0.22s, transform 0.22s;
}
.lsn-item.active .lsn-dot {
  background: var(--green);
  transform: scale(1.3);
  border-color: rgba(29, 107, 82, 0.25);
}
.lsn-label {
  position: absolute;
  right: 18px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s, transform 0.2s;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(17, 26, 22, 0.08);
  pointer-events: none;
}
.lsn-item.active .lsn-label,
.lsn-item:hover .lsn-label {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
@media (max-width: 1024px) {
  .landing-section-nav { display: none; }
}

/* 5. Section Progress Sidebar (right-side reading progress dots) */
.results-section-nav {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.results-section-nav.nav-visible {
  opacity: 1;
  pointer-events: auto;
}
.rsn-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
.rsn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
  border: 1.5px solid transparent;
  transition: background 0.22s, transform 0.22s;
}
.rsn-item.active .rsn-dot {
  background: var(--green);
  transform: scale(1.3);
  border-color: rgba(29,107,82,0.2);
}
.rsn-label {
  position: absolute;
  right: 18px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s, transform 0.2s;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(17,26,22,0.08);
  pointer-events: none;
}
.rsn-item.active .rsn-label,
.rsn-item:hover .rsn-label {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
@media (max-width: 1024px) {
  .results-section-nav { display: none; }
}

/* 6. Section Groups & Prominent Section Dividers */
.results-cards-stream .result-group {
  margin-top: 0;
  scroll-margin-top: 260px; /* scrolls cleanly below header + sticky hero */
}
.results-cards-stream .result-group-local {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 2px dashed #dde5e0;
}
.result-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.result-group-header .rgh-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--green-soft);
  color: var(--green);
  flex-shrink: 0;
}
.result-group-local .result-group-header .rgh-badge {
  background: var(--coral-soft);
  color: var(--coral);
}
.result-group-header h2 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  flex: 1;
}
.result-group-header .rgh-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-faint);
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* 7. Section anchors — scroll-margin prevents sticky header (72px) from clipping section eyebrow/heading */
.section-faq, #faq,
.section-how, #how,
.section-data, #data,
.section-ai, #formo-ai {
  scroll-margin-top: 96px;
}


/* ── Landing Page Overhaul (index.html) ──────── */
.hero-modern {
  padding: 80px 0 56px;
  background: radial-gradient(circle at 85% 15%, rgba(29, 107, 82, 0.05) 0%, transparent 60%);
}
.hero-modern-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-modern-text .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-modern-text .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.btn-lg {
  padding: 16px 32px;
  font-size: 1.02rem;
}
.hero-modern-media .demo {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(17, 26, 22, 0.08);
  border: 1px solid var(--line);
}

/* ── 2. How It Works (Connected Stepper Track) ── */
.section-how {
  padding: 72px 0 80px;
  border-top: 1px solid var(--line);
}
.how-header {
  margin-bottom: 36px;
}
.how-stepper-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 4px 20px rgba(17, 26, 22, 0.03);
}
.how-step-node {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.node-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.node-indicator .step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.node-indicator .node-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.node-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.node-content p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.stepper-connector {
  color: var(--line);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
@media (max-width: 960px) {
  .how-stepper-track {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 22px;
  }
  .stepper-connector {
    display: none;
  }
}

/* ── 3. Taiwan Public Data (Compact Metrics Ribbon) ── */
.section-data {
  padding: 80px 0;
  background: var(--surface);
}
.metrics-ribbon {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 4px 16px rgba(17, 26, 22, 0.03);
  margin-bottom: 24px;
}
.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-val {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.metric-val .stat-num {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.03em;
}
.metric-val .metric-unit {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.metric-desc {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 6px 0 4px;
  line-height: 1.4;
}
.metric-source {
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.metric-sep {
  width: 1px;
  height: 64px;
  background: var(--line);
}
@media (max-width: 880px) {
  .metrics-ribbon {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
  }
  .metric-sep {
    display: none;
  }
}

/* Compact Capabilities Bar */
.capabilities-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.cap-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(17, 26, 22, 0.02);
  transition: transform 0.15s ease;
}
.cap-item:hover {
  transform: translateY(-2px);
}
.cap-item i {
  color: var(--green);
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.cap-item b {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.cap-item span {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* ── 4. Formo AI Showcase ── */
.section-ai {
  padding: 88px 0;
}
.ai-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.ai-checklist ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.ai-checklist li i {
  color: var(--green);
  font-size: 1.25rem;
}

/* ── 5. Privacy Modern Grid ── */
.section-privacy {
  padding: 80px 0 48px;
  background: var(--surface);
}
.privacy-modern-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.privacy-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.privacy-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}
.pc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.pc-header i {
  font-size: 1.3rem;
  color: var(--green);
}
.pc-header h4 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}
.privacy-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.privacy-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.privacy-card li:last-child {
  margin-bottom: 0;
}
.privacy-card li i {
  color: var(--green);
  font-size: 1.05rem;
}

/* ── 6. Modern FAQ Accordion (Crisp white background, distinct from Privacy) ── */
.section-faq {
  padding: 80px 0 96px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}
.faq-modern-grid {
  display: grid;
  grid-template-columns: 0.85fr 2fr;
  gap: 64px;
}
.faq-accordion details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 24px;
  margin-bottom: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.faq-accordion details:hover {
  border-color: #cbd5e1;
  background: #edf3f0;
}
.faq-accordion details[open] {
  border-color: var(--green);
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(29, 107, 82, 0.06);
}
.faq-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 36px 22px 0;
  position: relative;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}
.faq-accordion summary::-webkit-details-marker {
  display: none;
}
.faq-accordion summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.45rem;
  font-weight: 300;
  color: var(--green);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.18s ease;
}
.faq-accordion details[open] summary::after {
  content: '+';
  transform: translateY(-50%) rotate(45deg);
  color: var(--ink-faint);
}
.faq-accordion details p {
  margin: 0 0 22px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.faq-accordion details p a {
  color: var(--green);
  font-weight: 500;
}

/* Responsive Overhauls */
@media (max-width: 980px) {
  .hero-modern-grid,
  .ai-showcase-grid,
  .privacy-modern-grid,
  .faq-modern-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 640px) {
  .privacy-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Feedback that stays out of the way: left-edge tab, slide-in panel, one-tap prompt, quiet card thumbs ── */
.fb-tab {
  position: fixed; left: 0; top: 50%; z-index: 60; display: flex; align-items: center; gap: 8px;
  transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
  font: inherit; font-size: 0.82rem; font-weight: 500; color: var(--ink-soft); background: #fff;
  border: 1px solid var(--line); border-left: 0; border-radius: 0 12px 12px 0; padding: 14px 8px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(17, 26, 22, 0.08); opacity: 0.85; transition: opacity 0.15s, color 0.15s, box-shadow 0.15s;
}
.fb-tab:hover, .fb-tab:focus-visible, .fb-tab[aria-expanded="true"] { opacity: 1; color: var(--green); }
.fb-tab i { font-size: 1rem; transform: rotate(90deg); }
#results-section[hidden] ~ .fb-tab, #results-section[hidden] ~ .fb-scrim { display: none; }
.fb-panel {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 110; width: 400px; max-width: 92vw; overflow-y: auto;
  background: #fff; box-shadow: 8px 0 40px rgba(17, 26, 22, 0.16); padding: 56px 24px 28px;
  transform: translateX(-102%); transition: transform 0.22s ease;
}
.fb-panel.open { transform: none; }
.fb-panel[hidden] { display: none; }
.fb-panel .feedback { margin-top: 0; padding: 0; background: transparent; border-radius: 0; }
.fb-panel .fb-rate { flex: 1 1 100%; justify-content: center; }
.fb-panel-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; font-size: 1.1rem;
  color: var(--ink-soft); background: var(--surface); border: 0; border-radius: 50%; cursor: pointer;
}
.fb-panel-close:hover { color: var(--ink); }
/* Quiet thumbs on each card: icon only, faint until the card is hovered or focused. */
.card-fb { border-top: 0; padding-top: 10px; justify-content: flex-end; gap: 6px; opacity: 0.4; transition: opacity 0.15s; }
.result-card:hover .card-fb, .card-fb:focus-within, .card-fb:has(.fb-chips) { opacity: 1; }
.card-fb .fb-q:not(.why) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card-fb .fb-thumb { width: 28px; height: 28px; font-size: 0.9rem; }
@media (hover: none) { .card-fb { opacity: 0.7; } }

@media (max-width: 1100px) { .fb-tab { display: none; } }
@media (max-width: 640px) {
  .fb-panel { width: 100%; max-width: 100vw; }
}
@media (prefers-reduced-motion: reduce) {
  .fb-panel { transition: none; }
}
@media print {
  .fb-tab, .fb-panel, #btn-fb-open { display: none !important; }
}


/* ── The pop-up: the same feedback form, centred, asked once after the visitor has spent a while on the results ── */
.fb-scrim { position: fixed; inset: 0; z-index: 105; background: rgba(17, 26, 22, 0.4); opacity: 0; transition: opacity 0.22s ease; }
.fb-scrim.show { opacity: 1; }
.fb-scrim[hidden] { display: none; }
.fb-panel.as-dialog {
  left: 50%; top: 50%; bottom: auto; right: auto; width: 480px; max-width: calc(100vw - 32px); max-height: calc(100vh - 40px);
  border-radius: 26px; padding: 44px 34px 28px; box-shadow: 0 24px 80px rgba(17, 26, 22, 0.28);
  opacity: 0; transform: translate(-50%, -46%) scale(0.97); transition: transform 0.22s ease, opacity 0.22s ease;
}
.fb-panel.as-dialog.open { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.fb-panel.as-dialog .feedback h3 { font-size: 1.5rem; }
.fb-panel.as-dialog .fb-rates { flex-wrap: nowrap; gap: 10px; }
.fb-panel.as-dialog .fb-rate { flex: 1 1 0; flex-direction: column; gap: 6px; padding: 18px 8px; border-radius: 20px; font-size: 0.95rem; }
.fb-panel.as-dialog .fb-rate i { font-size: 2rem; }
.fb-later { display: block; margin: 14px auto 0; font: inherit; font-size: 0.9rem; color: var(--ink-faint); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 10px; }
.fb-later:hover { color: var(--ink); }
.fb-later[hidden] { display: none; }
@media (max-width: 640px) {
  .fb-panel.as-dialog { padding: 40px 20px 22px; }
  .fb-panel.as-dialog .fb-rate { padding: 14px 4px; font-size: 0.85rem; }
  .fb-panel.as-dialog .fb-rate i { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) { .fb-scrim, .fb-panel.as-dialog { transition: none; } }
@media print { .fb-scrim { display: none !important; } }
