/* Frendivo marketing site. Light and dark themes come from the tokens below. */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #1d2321;
  --muted: #58625e;
  --line: #e4dfd5;
  --brand: #1f5c4a;
  --brand-2: #174637;
  --on-brand: #ffffff;
  --accent: #c2661a;
  --soft: #e9f1ec;
  --warm: #fbefe1;
  --deep: #17312a;
  --on-deep: #f4f1ea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 10px 28px rgba(20, 30, 25, .09);
  --head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "Crimson Text", Georgia, "Times New Roman", serif;
}
/* dark: follows the device unless the visitor has chosen with the switch (data-theme on <html>,
   set by /js/theme.js before the page paints). Keep the two token blocks identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101412;
    --surface: #171d1a;
    --ink: #e8ede9;
    --muted: #a0aaa5;
    --line: #29312d;
    --brand: #6cc19f;
    --brand-2: #8ad3b5;
    --on-brand: #0c1310;
    --accent: #eda563;
    --soft: #1a2620;
    --warm: #2a2117;
    --deep: #0c1a15;
    --on-deep: #eef1ec;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  --bg: #101412;
  --surface: #171d1a;
  --ink: #e8ede9;
  --muted: #a0aaa5;
  --line: #29312d;
  --brand: #6cc19f;
  --brand-2: #8ad3b5;
  --on-brand: #0c1310;
  --accent: #eda563;
  --soft: #1a2620;
  --warm: #2a2117;
  --deep: #0c1a15;
  --on-deep: #eef1ec;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .4);
}
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }

/* the light/dark switch in the header */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer; }
.theme-toggle:hover { color: var(--ink); border-color: var(--brand); }
.theme-toggle .sun, :root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: inline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .moon { display: none; } :root:not([data-theme="light"]) .theme-toggle .sun { display: inline; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 19px/1.6 var(--body); }
img, svg { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.center.narrow { margin-inline: auto; }
section { padding: 76px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow { font: 700 .78rem/1 var(--body); letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: 1.18rem; color: var(--muted); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } section { padding: 56px 0; } }

/* header */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 600 1.35rem var(--head); color: var(--ink); text-decoration: none; }
.logo svg { width: 30px; height: 30px; color: var(--brand); }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--brand); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-block; padding: 12px 22px; border: 2px solid var(--brand); border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 700; line-height: 1.2; text-decoration: none; }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--soft); }
.btn.small { padding: 8px 16px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .actions { justify-content: center; }

/* hero */
.hero { padding: 60px 0 76px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }
.hero .wrap.narrow { display: block; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.trust li::before { content: "✓ "; color: var(--brand); font-weight: 700; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* group mock-up */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; font-size: .9rem; }
.mock-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.mock-avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font: 600 1.1rem var(--head); }
.mock-top strong { display: block; line-height: 1.3; }
.mock-top span { color: var(--muted); font-size: .8rem; }
.lock { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--brand); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.mock-body { display: grid; grid-template-columns: 150px 1fr; }
.mock-boards { margin: 0; padding: 10px 0; list-style: none; border-right: 1px solid var(--line); }
.mock-boards li { padding: 7px 16px; color: var(--muted); }
.mock-boards li.on { background: var(--soft); color: var(--ink); font-weight: 700; }
.mock-posts { padding: 4px 16px; }
.post { padding: 11px 0; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post b { display: block; font-weight: 600; }
.post small { color: var(--muted); }
.tag { display: inline-block; margin-bottom: 3px; padding: 2px 8px; border-radius: 6px; background: var(--warm); color: var(--accent); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 520px) { .mock-body { grid-template-columns: 1fr; } .mock-boards { display: none; } }

/* cards */
.grid { display: grid; gap: 18px; }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.cols-types { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .icon { margin-bottom: 12px; font-size: 1.8rem; line-height: 1; }
a.card { display: block; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow); }
a.card .go { display: inline-block; margin-top: 14px; color: var(--brand); font-size: .92rem; font-weight: 700; }
.alt .card { background: var(--bg); }

/* the free-speech band */
.deep { background: var(--deep); color: var(--on-deep); }
.deep a { color: inherit; }
.deep .lead { color: inherit; opacity: .82; }
.deep .eyebrow { color: var(--accent); }
.pull-quote { margin: 34px 0; padding: 0 0 0 22px; border-left: 4px solid var(--accent); font: 600 clamp(1.5rem, 3.6vw, 2.1rem)/1.25 var(--head); letter-spacing: -.01em; }
.callout { margin: 30px 0; padding: 22px 26px; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: rgba(255, 255, 255, .07); font-size: 1.12rem; }
.callout strong { font-family: var(--head); font-size: 1.2rem; }
.deep .btn { background: var(--on-deep); border-color: var(--on-deep); color: var(--deep); }
.deep .btn:hover { opacity: .9; }

/* steps */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 50%; background: var(--soft); color: var(--brand); font: 600 1.15rem var(--head); }
.steps p { margin: 0; color: var(--muted); }

/* checklist */
.checks { display: grid; gap: 18px 32px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 34px; color: var(--muted); }
.checks li strong { display: block; color: var(--ink); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); color: var(--brand); font-size: .8rem; font-weight: 700; }

/* comparison table */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
thead th.us { color: var(--brand); }
tbody th { font-weight: 600; }
td.us { background: var(--soft); color: var(--brand); font-weight: 700; }
tr:last-child > * { border-bottom: 0; }

/* pricing */
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); }
.price { margin: 6px 0 4px; font: 600 2.4rem/1.1 var(--head); }
.price small { color: var(--muted); font: 400 1rem var(--body); }
.plan ul { margin: 14px 0 0; padding-left: 1.1em; color: var(--muted); }
.plan li { margin-bottom: 4px; }
.note { margin-top: 22px; color: var(--muted); text-align: center; }

/* FAQ */
.faq details { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; font-size: 1.05rem; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* type pages */
.boards { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.boards li { padding: 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; font-weight: 600; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* long-form pages */
.prose h2 { margin-top: 1.7em; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.prose li { margin-bottom: .7em; }
.prose ol li::marker { color: var(--accent); font-weight: 700; }

.soon { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--warm); color: var(--accent); font: 700 .68rem var(--body); letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.facts { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 8px; } }

/* site-wide notices (set in /admin/notices) */
.site-notice { border-bottom: 1px solid var(--line); background: var(--soft); color: var(--ink); }
.site-notice.warning { background: var(--warm); }
.site-notice.urgent { background: #b3261e; color: #fff; }
.site-notice.urgent a { color: #fff; }
.site-notice .wrap { display: flex; align-items: flex-start; gap: 12px; padding-block: 10px; }
.site-notice p { flex: 1; margin: 0; font-weight: 600; font-size: .95rem; }
.notice-x { flex: none; background: none; border: 0; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .7; }
.notice-x:hover { opacity: 1; }

/* footer */
.site-foot { padding: 52px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.site-foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-foot p { max-width: 360px; margin-top: 12px; }
.site-foot .fine { font-size: .82rem; }
.site-foot h4 { margin: 0 0 12px; color: var(--ink); font: 700 .78rem var(--body); letter-spacing: .1em; text-transform: uppercase; }
.site-foot ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-foot a:not(.logo) { color: var(--muted); text-decoration: none; }
.site-foot a:not(.logo):hover { color: var(--ink); }
@media (max-width: 720px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .wrap > div:first-child { grid-column: 1 / -1; } }

/* buttons, labels, tabs and the other short bold bits use the headline face; bold inside
   running text stays in the body face */
.btn, button, .nav a, .tag, .lock, .eyebrow, .soon, .badge, .go, td.us, .faq summary, .boards li,
.site-notice p, .site-foot h4, label, legend, .type-pick, .group-tabs a, .board-list a, .price-tag,
.mock-boards li.on, .stat-v, .price { font-family: var(--head); }
label input, label textarea, label select { font-weight: 400; }
