/* FiberTally landing — palette derived from app icon:
   deep teal field #0D5B54, mint arc #5EEAD4, leaf lime #A3E635,
   seed cream #F6FAF7, ink #081512 (splash colors from app.config.ts) */

:root {
  --teal-900: #081512;
  --teal-800: #0b3d37;
  --teal-700: #0d5b54;
  --teal-600: #12756c;
  --teal-100: #d7ece7;
  --mint: #5eead4;
  --lime: #a3e635;
  --lime-deep: #4d7c0f;
  --lime-wash: #ecfccb;
  --cream: #f6faf7;
  --paper: #fdfefd;
  --ink: #10201c;
  --ink-soft: #46605a;
  --line: #d9e6e1;
  --card: #ffffff;
  --accent: var(--teal-700);
  --focus: #2563eb;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #081512;
    --paper: #0b1d18;
    --ink: #e4f0ec;
    --ink-soft: #9db8b1;
    --line: #1d3a34;
    --card: #0e2620;
    --teal-100: #123029;
    --lime-wash: #16301f;
    --lime-deep: #b5e853;
    --accent: #5eead4;
    --teal-700: #6ee8d5;
    --teal-600: #48c4b0;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal-700);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .soon-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime-deep);
  background: var(--lime-wash);
  border: 1px solid var(--lime-deep);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}
.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--accent); text-decoration: underline; }
.nav-toggle { display: none; }

@media (max-width: 700px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
  }
  .site-nav { display: none; width: 100%; margin-left: 0; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.2rem; padding: 0.4rem 0 0.6rem; }
  .site-nav a { display: block; padding: 0.45rem 0.2rem; }
  .site-head .wrap { flex-wrap: wrap; }
  /* no-JS fallback: keep nav visible when toggle can't work */
  .no-js .site-nav { display: block; width: 100%; margin-left: 0; }
  .no-js .nav-toggle { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 3.2rem 0 3rem; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.8rem;
  align-items: center;
}
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}
.hero h1 .h1-strike {
  text-decoration: line-through;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 0.14em;
  color: var(--ink-soft);
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0 0 1.4rem;
}
.launch-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 650;
  margin: 0 0 1rem;
}
.launch-line .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px var(--lime-wash);
  flex: none;
}
.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.play-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.badge-note { font-size: 0.85rem; color: var(--ink-soft); max-width: 16em; }

.hero-visual { justify-self: center; width: 100%; max-width: 21rem; }
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { max-width: 17rem; }
}

/* ---------- shared sections ---------- */
section { padding: 3.2rem 0; }
section + section { border-top: 1px solid var(--line); }
h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
.section-intro { color: var(--ink-soft); max-width: 44em; margin: 0 0 2rem; }

/* tally divider motif */
.tally {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  margin: 0 0 0.6rem;
  user-select: none;
}

/* ---------- feature ledger (numbered rows, not a card grid) ---------- */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger > li {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.ledger > li:first-child { border-top: 0; }
.ledger .num {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.ledger h3 { margin: 0 0 0.35rem; font-size: 1.15rem; letter-spacing: -0.01em; }
.ledger p { margin: 0; color: var(--ink-soft); }
.ledger .fineprint { font-size: 0.85rem; margin-top: 0.4rem; }

/* ---------- privacy panel ---------- */
.privacy-panel {
  background: var(--teal-700);
  color: #eafaf6;
  border-radius: 18px;
  padding: 2.2rem clamp(1.2rem, 4vw, 2.6rem);
}
@media (prefers-color-scheme: dark) {
  .privacy-panel { background: var(--teal-800); color: #d7f0ea; }
}
.privacy-panel h2 { color: #fff; }
.privacy-panel .tally { color: var(--mint); }
.privacy-panel p { color: inherit; }
.privacy-panel a { color: var(--mint); }
.proof-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.9rem 2rem;
}
.proof-list li {
  padding-left: 1.7rem;
  position: relative;
}
.proof-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 0.95em; height: 0.55em;
  border-left: 3px solid var(--lime);
  border-bottom: 3px solid var(--lime);
  transform: rotate(-45deg);
}
.proof-list strong { color: #fff; }
@media (prefers-color-scheme: dark) {
  .proof-list strong { color: #ecfdf7; }
}

/* ---------- refuses list ---------- */
.refuse-list { list-style: none; margin: 1.2rem 0 0; padding: 0; max-width: 36em; }
.refuse-list li {
  padding: 0.55rem 0 0.55rem 1.9rem;
  position: relative;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.refuse-list li::before {
  content: "\00d7";
  position: absolute;
  left: 0.15rem;
  top: 0.35rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: #b4553f;
  line-height: 1.2;
}
@media (prefers-color-scheme: dark) {
  .refuse-list li::before { color: #e0876f; }
}
.refuse-list s { text-decoration-color: #b4553f66; }

/* ---------- guides ---------- */
.guide-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.guide-links a {
  display: block;
  height: 100%;
  padding: 1.25rem 1.3rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--lime);
  border-radius: 4px 14px 14px 4px;
  color: var(--ink);
  text-decoration: none;
}
.guide-links a:hover { border-left-color: var(--teal-600); }
.guide-links .g-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.guide-links .g-title { display: block; font-weight: 700; font-size: 1.06rem; margin-bottom: 0.3rem; letter-spacing: -0.01em; }
.guide-links .g-desc { display: block; color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- FAQ ---------- */
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 1.05rem 0.2rem;
  font-weight: 650;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
  flex: none;
  width: 1.1rem;
}
.faq details[open] summary::before { content: "\2212"; }
.faq .faq-a { padding: 0 0.2rem 1.2rem 1.9rem; color: var(--ink-soft); }
.faq .faq-a p { margin: 0 0 0.7rem; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 2.4rem 0 2.8rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  margin-bottom: 1.8rem;
}
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h3 {
  font-size: 0.8rem;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.7rem;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.45rem; }
.disclaimer {
  border-top: 1px dashed var(--line);
  padding-top: 1.2rem;
  font-size: 0.85rem;
  max-width: 60em;
}

/* ---------- guide article pages ---------- */
.crumbs { font-size: 0.88rem; color: var(--ink-soft); padding-top: 1.3rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "\203a"; margin-right: 0.45rem; color: var(--ink-soft); }
.article { padding: 1.4rem 0 3rem; }
.article .wrap { max-width: 46rem; }
.article h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.4rem 0 0.8rem;
}
.article .standfirst { font-size: 1.14rem; color: var(--ink-soft); margin: 0 0 1.6rem; }
.article h2 { font-size: 1.45rem; margin: 2.2rem 0 0.6rem; }
.article h3 { font-size: 1.12rem; margin: 1.6rem 0 0.4rem; }
.article ul, .article ol { padding-left: 1.4rem; }
.article li { margin-bottom: 0.4rem; }
.meta-line {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.table-scroll { overflow-x: auto; margin: 1.2rem 0; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 26rem; }
caption {
  text-align: left;
  font-weight: 650;
  padding: 0.8rem 0.9rem 0.3rem;
}
th, td { text-align: left; padding: 0.55rem 0.9rem; border-top: 1px solid var(--line); }
thead th {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 0;
}
td.n { font-family: var(--mono); font-size: 0.88rem; white-space: nowrap; }

.callout {
  border-left: 5px solid var(--mint);
  background: var(--teal-100);
  border-radius: 4px 12px 12px 4px;
  padding: 1rem 1.2rem;
  margin: 1.6rem 0;
}
.callout.caution { border-left-color: #d9a03f; background: var(--lime-wash); }
.callout p { margin: 0 0 0.6rem; }
.callout p:last-child { margin-bottom: 0; }

.app-assist {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  margin: 2.4rem 0 0;
}
.app-assist h2 { margin-top: 0; }
.app-assist .badge-row { margin-top: 1rem; }

.more-guides { padding-top: 2.4rem; }
.more-guides h2 { font-size: 1.3rem; }

.src-note { font-size: 0.85rem; color: var(--ink-soft); }
