/* Shared styles for the Avklare company page and the AvklarePlan pages.
   Same family as AvklareDo's pages (parchment, ink, Fraunces and JetBrains
   Mono), so the products read as one company. Each product sets --accent on
   its <body> class; AvklareDo's own pages keep their inline styles. */

:root {
  --bg: #f5f0e8;
  --bg-warm: #ede8dc;
  --surface: #faf7f2;
  --border: #d9d0bc;
  --border-dark: #b8ad99;
  --ink: #1a1612;
  --ink-mid: #4a4035;
  --ink-faint: #8a8070;
  --accent: #c0392b;          /* Avklare red */
  --accent-soft: rgba(192, 57, 43, .09);
  --do: #c0392b;
  --plan: #1f5f6e;            /* AvklarePlan: deep teal */
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 2px 16px rgba(26, 22, 18, .10);
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

body.plan { --accent: var(--plan); --accent-soft: rgba(31, 95, 110, .09); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Nav */
.nav { border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 10; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.brand small { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--ink-faint); }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 13px; }
.nav-links a { text-decoration: none; color: var(--ink-mid); }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-block; padding: 11px 20px; border-radius: var(--radius); background: var(--accent); color: #fff; text-decoration: none; font-weight: 500; font-size: 14px; border: 1px solid var(--accent); }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--border-dark); }
.btn.small { padding: 7px 14px; font-size: 13px; }

/* Type */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 600; margin-bottom: 14px; }
h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
p { margin-bottom: 14px; color: var(--ink-mid); }
.lead { font-size: 17px; color: var(--ink-mid); max-width: 680px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; font-weight: 500; }
em.accent, .accent { color: var(--accent); font-style: normal; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-warm); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hero { padding: 96px 0 72px; }
.hero h1 { margin-bottom: 20px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .note { font-size: 12px; color: var(--ink-faint); margin-top: 12px; }

.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }

.product { border-top: 4px solid var(--accent); display: flex; flex-direction: column; }
.product.do { --accent: var(--do); --accent-soft: rgba(192, 57, 43, .09); }
.product.plan { --accent: var(--plan); --accent-soft: rgba(31, 95, 110, .09); }
.product h3 { font-size: 28px; }
.product .links { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }

.points { list-style: none; margin: 0 0 14px; }
.points li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--ink-mid); }
.points li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }

.steps { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 18px; color: var(--ink-mid); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.steps li strong { color: var(--ink); }

.quote { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(22px, 3vw, 30px); line-height: 1.35; color: var(--ink); max-width: 820px; }
.word { font-family: var(--font-display); }
.word .pron { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); }

/* Tables (pricing outline, legal) */
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 18px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { font-weight: 500; color: var(--ink); background: var(--surface); }
td { color: var(--ink-mid); }
.table-scroll { overflow-x: auto; }

/* Legal and long-form pages */
.doc { padding: 56px 0 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.doc .updated { font-size: 13px; color: var(--ink-faint); margin-bottom: 28px; }
.doc h2 { font-size: 24px; margin: 34px 0 10px; }
.doc h3 { font-size: 18px; margin: 22px 0 8px; }
.doc ul { margin: 0 0 14px 22px; color: var(--ink-mid); }
.doc li { margin-bottom: 6px; }
.doc .summary { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 26px; }
.doc .summary p:last-child { margin-bottom: 0; }
.doc a { color: var(--accent); }

/* CTA band */
.cta { text-align: center; }
.cta .lead { margin: 0 auto 24px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 0 48px; font-size: 13px; color: var(--ink-faint); }
footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 24px; }
footer h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mid); margin-bottom: 8px; font-weight: 500; }
footer a { display: block; text-decoration: none; color: var(--ink-faint); margin-bottom: 4px; }
footer a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 640px) {
  section { padding: 52px 0; }
  .hero { padding: 64px 0 52px; }
  .wrap { padding: 0 16px; }
  .nav-links .hide-sm { display: none; }
  .nav-links { gap: 12px; }
}
