/* Bonfidel site. Tokens match the app (app/lib/src/ui/theme.dart): text >= 4.5:1, field borders >= 3:1. */
@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url("fonts/geist-400.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap; src: url("fonts/geist-500.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-display: swap; src: url("fonts/geist-600.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-display: swap; src: url("fonts/geist-mono-400.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-display: swap; src: url("fonts/geist-mono-500.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #F3F5F4; --surface: #FFFFFF; --surface2: #EBEFED; --panel: #EBEFED; --frame: #0E1412;
  --line: #E1E6E4; --field: #808B86; --text: #0E1412; --muted: #535E59; --faint: #616C67;
  --accent: #0B6B5C; --on-accent: #FFFFFF; --accent-soft: #DDEFEA; --accent-ink: #0A5A4D; --warn: #9A5300; --error: #B42318;
  --band: #0B6B5C; --on-band: #FFFFFF; --band-muted: #D3EAE4; --band-field: #FFFFFF; --band-button: #0E1412; --band-button-text: #FFFFFF;
  --shadow: 0 1px 2px rgba(14, 20, 18, .05), 0 12px 32px rgba(14, 20, 18, .07);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0F0E; --surface: #131917; --surface2: #1B2220; --panel: #131917; --frame: #29322F;
  --line: #29322F; --field: #5F6B66; --text: #E6ECE9; --muted: #9AA6A1; --faint: #86928D;
  --accent: #5CC6AF; --on-accent: #052019; --accent-soft: #12302A; --accent-ink: #86D9C6; --warn: #F0B05A; --error: #F49B8F;
  --band: #12302A; --on-band: #E6ECE9; --band-muted: #A9CFC5; --band-field: #0B0F0E; --band-button: #5CC6AF; --band-button-text: #052019;
  --shadow: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B0F0E; --surface: #131917; --surface2: #1B2220; --panel: #131917; --frame: #29322F;
    --line: #29322F; --field: #5F6B66; --text: #E6ECE9; --muted: #9AA6A1; --faint: #86928D;
    --accent: #5CC6AF; --on-accent: #052019; --accent-soft: #12302A; --accent-ink: #86D9C6; --warn: #F0B05A; --error: #F49B8F;
    --band: #12302A; --on-band: #E6ECE9; --band-muted: #A9CFC5; --band-field: #0B0F0E; --band-button: #5CC6AF; --band-button-text: #052019;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word;
}
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 24px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; min-height: 76px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.brand svg { flex: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 15px; padding: 12px 10px; }
.nav-link:hover { color: var(--text); }
.langs { display: flex; font-family: var(--mono); font-size: 13px; }
.langs a { color: var(--muted); text-decoration: none; padding: 12px 6px; }
.langs a[aria-current="page"] { color: var(--text); font-weight: 600; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--text); cursor: pointer; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}
/* The page links only where the whole bar still fits on one line in every language (measured: from 1020 px; with the Plans link, from 1100 px). */
@media (max-width: 1019px) { .nav-link { display: none; } }
@media (max-width: 1099px) { .nav-link[href$="#planuri"] { display: none; } }
/* On a phone the bar takes two rows, not three: the waitlist button beside the brand, the language links and the theme button under it. */
@media (max-width: 470px) {
  .nav { display: contents; }
  .site-header .btn-sm { order: 1; }
  .langs { order: 2; }
  .icon-btn { order: 3; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 14px; border: 1px solid transparent; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; }
.btn-sm { min-height: 44px; padding: 0 18px; border-radius: 12px; font-size: 15px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { border-color: var(--line); color: var(--text); font-weight: 500; background: transparent; }
.btn-secondary:hover { border-color: var(--field); }
.btn-strong { background: var(--text); color: var(--bg); width: 100%; }
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill.muted { background: var(--surface2); color: var(--muted); }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 104px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.02; font-weight: 600; letter-spacing: -.04em; overflow-wrap: anywhere; }
.lead { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 30ch; }
.hero .lead { max-width: 38ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.actions .btn { max-width: 100%; padding-block: 12px; text-align: center; overflow-wrap: anywhere; line-height: 1.2; }
.fact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: 15px; color: var(--muted); }
.fact .pill { white-space: normal; }

/* Calculator */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.calc { display: flex; flex-direction: column; gap: 20px; }
.calc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.calc-head h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.calc-head span { font-size: 13px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field > legend { font-size: 13px; font-weight: 500; color: var(--muted); padding: 0; }
.fields-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 16px 12px; }
.input, .select { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--field); background: var(--surface); color: var(--text); font: 400 15px var(--sans); }
.input[type="date"] { font-family: var(--mono); }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238A9590' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface2); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
[hidden] { display: none !important; }

.result { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.result:empty { display: none; }
.result-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.result-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.result-date { font-family: var(--mono); font-size: 40px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.timeline { position: relative; display: flex; gap: 3px; height: 10px; margin-top: 6px; }
.timeline .seg-proof { background: var(--accent); border-radius: 5px 0 0 5px; }
.timeline .seg-rest { background: var(--accent-soft); border-radius: 0 5px 5px 0; }
.timeline .seg-only { background: var(--accent); border-radius: 5px; }
.timeline .today { position: absolute; top: -5px; width: 3px; height: 20px; border-radius: 2px; background: var(--text); }
.timeline-dates { position: relative; height: 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.timeline-dates span { position: absolute; top: 0; white-space: nowrap; }
.legend { display: flex; flex-direction: column; gap: 8px; }
.legend div { display: grid; grid-template-columns: 10px 1fr; gap: 2px 10px; font-size: 14px; }
.legend i { width: 10px; height: 10px; margin-top: 6px; border-radius: 3px; background: var(--accent); }
.legend i.rest { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.legend small { grid-column: 2; font-size: 13px; color: var(--muted); }
.note { font-size: 14px; line-height: 1.5; }
.fine { font-size: 12px; color: var(--faint); }
.error-text { font-size: 14px; color: var(--error); }

/* Sections */
.section { padding-top: 96px; padding-bottom: 96px; }
.bordered { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 16px; }
.h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.06; font-weight: 600; letter-spacing: -.035em; max-width: 18ch; hyphens: auto; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid var(--text); }
.steps .num { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.steps h3 { font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.steps p { font-size: 16px; line-height: 1.55; color: var(--muted); }

.panel { background: var(--panel); border-radius: 32px; padding: clamp(24px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 56px; align-items: center; }
.panel-copy { display: flex; flex-direction: column; gap: 20px; }
.panel-copy p { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 40ch; }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.ticks svg { flex: none; margin-top: 1px; }

/* The phone: a drawing of the app's home screen, at 0.8 scale (0.62 on narrow screens). */
.phone { --s: .8; margin: 0 auto; padding: 8px; border-radius: 52px; background: var(--frame); width: max-content; }
.phone-screen { width: calc(390px * var(--s)); height: calc(760px * var(--s)); border-radius: 44px; overflow: hidden; background: var(--bg); }
.phone-ui { width: 390px; height: 760px; transform: scale(var(--s)); transform-origin: top left; padding: 40px 20px 0; position: relative; }
@media (max-width: 480px) { .phone { --s: .64; border-radius: 42px; } .phone-screen { border-radius: 36px; } }
.p-head { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; height: 44px; }
.p-title { margin-top: 20px; font-size: 32px; line-height: 1.05; font-weight: 600; letter-spacing: -.035em; }
.p-sum { margin-top: 6px; font-size: 15px; color: var(--muted); }
.p-group { margin: 22px 4px 10px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.p-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.p-row { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }
.p-row + .p-row { border-top: 1px solid var(--line); }
.p-top { display: flex; align-items: center; gap: 12px; }
.p-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.p-name b { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-name span, .p-days span { font-size: 13px; color: var(--muted); }
.p-days { display: flex; flex-direction: column; align-items: flex-end; }
.p-days b { font-family: var(--mono); font-size: 20px; font-weight: 500; color: var(--accent); }
.p-days.warn b { color: var(--warn); }
.p-bar { height: 4px; border-radius: 2px; background: var(--surface2); overflow: hidden; }
.p-bar i { display: block; height: 100%; background: var(--accent); }
.p-bar.warn i { background: var(--warn); }
.p-add { position: absolute; left: 20px; right: 20px; bottom: 24px; height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 16px; background: var(--accent); color: var(--on-accent); font-size: 17px; font-weight: 600; }

.privacy { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px; }
.privacy .copy { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.6; color: var(--muted); }

.band { background: var(--band); color: var(--on-band); border-radius: 32px; padding: clamp(32px, 6vw, 72px); display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.band p { font-size: 17px; line-height: 1.55; color: var(--band-muted); }
.band .small { font-size: 14px; }
.band .small:empty { display: none; }
.signup { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; max-width: 560px; margin-top: 8px; }
.signup .input { flex: 1 1 260px; height: 52px; border: 1px solid var(--band-muted); border-radius: 14px; background: var(--band-field); font-size: 16px; }
.signup .input::placeholder { color: var(--faint); }
.signup .btn { background: var(--band-button); color: var(--band-button-text); }
.band :focus-visible { outline-color: var(--on-band); }

.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 48px; padding-bottom: 56px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-footer a { color: var(--muted); text-decoration: none; padding: 12px 8px; }
.site-footer a:hover { color: var(--text); }
.site-footer .fine { font-size: 13px; }
@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
  .card { padding: 20px; }
  .result-date { font-size: 34px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
}

/* How it works (how.html) */
.nav-link[aria-current="page"] { color: var(--text); font-weight: 500; }
.how-hero { display: flex; flex-direction: column; gap: 20px; padding-top: 56px; padding-bottom: 80px; }
.how-hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; font-weight: 600; letter-spacing: -.04em; max-width: 17ch; }
.how-hero .lead { max-width: 46ch; }
.section-lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 52ch; }
.steps-4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.tiles { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tile svg { color: var(--accent); margin-bottom: 4px; }
.tile h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.tile p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.ticks b { font-weight: 600; color: var(--text); }
.ticks li > span { color: var(--muted); }
.note-muted { font-size: 15px; line-height: 1.55; color: var(--muted); }
/* Plans (index.html): two .tile cards; the privacy row sits at the foot of each, quiet. */
.plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.plan-head .pill { white-space: normal; }
.tile .plan-sub { font-size: 15px; font-weight: 500; color: var(--text); }
.tile .plan-sub:empty { display: none; }
/* The planned price is a quiet line under the plan's description, not a second heading. */
.tile #price { font-size: 14px; font-weight: 400; color: var(--muted); }
.tile .plan-priv { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--muted); }
.ticks li > span { min-width: 0; overflow-wrap: anywhere; }
.band p { overflow-wrap: anywhere; }
.compare-wrap { margin-top: 40px; }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 0; }
.compare tbody th { width: 24%; font-weight: 600; }
.compare td { color: var(--muted); }
@media (max-width: 640px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .compare tbody th, .compare td { width: auto; padding: 4px 0; border: 0; }
  .compare td::before { content: attr(data-label); display: block; margin-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
}
.faq-list { margin-top: 40px; max-width: 760px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font-family: var(--mono); font-size: 22px; font-weight: 400; color: var(--accent); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 0 22px; max-width: 62ch; font-size: 16px; line-height: 1.6; color: var(--muted); }
.band .actions { margin-top: 4px; }
.btn-band { background: var(--band-button); color: var(--band-button-text); }
.btn-band-outline { border-color: var(--band-muted); color: var(--on-band); background: transparent; font-weight: 500; }
.more-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 32px; font-weight: 600; text-decoration: none; }
.more-link:hover { text-decoration: underline; }
