/* Pignon website. Tokens from brand/README.md. */
:root {
  --accent: #0b5d55;
  --accent-deep: #08453f;
  --accent-soft: #e3f2ee;
  --gold: #c8a24a;
  --paper: #f7f3ea;
  --surface: #fffdf8;
  --ink: #1c2421;
  --muted: #5f6b66;
  --line: #e4ddcd;
  --chain: #d9480f;
  --indep: #1c3d5a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 36, 33, 0.06), 0 12px 40px rgba(28, 36, 33, 0.1);
  --display: Fraunces, Georgia, 'Times New Roman', serif;
  --text: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.note { font-size: 0.85rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-bottom: 0.8em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.btn:hover { background: var(--accent-deep); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(247, 243, 234, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.45rem; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a, .lang { color: var(--ink); text-decoration: none; font-size: 0.93rem; }
.nav a:hover, .lang:hover { color: var(--accent); }
.lang { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 0.85rem; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang:hover { border-color: var(--accent); }
.lang-foot { display: inline-flex; align-items: center; gap: 7px; }
.flag { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); flex: none; object-fit: cover; }

/* Sections */
section { padding: 88px 0; }
.hero { padding: 64px 0 80px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-shot { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface); }

.problem { background: var(--surface); border-block: 1px solid var(--line); }
.cards { display: grid; gap: 20px; margin-top: 36px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.principles .card { background: var(--surface); }
.card p { color: var(--muted); margin: 0; }
.card-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 1.3rem; margin-bottom: 14px; }
.card-icon.chain { background: #fdebe2; color: var(--chain); font-size: 0.9rem; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 32px 0 16px; }
.stat { border-top: 3px solid var(--gold); padding-top: 14px; }
.stat b { display: block; font-family: var(--display); font-size: 2.6rem; font-weight: 600; color: var(--accent); line-height: 1.1; }
.stat p { color: var(--muted); margin: 6px 0 0; font-size: 0.95rem; }
.how-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 22px 56px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 600; font-family: var(--display); }
.steps h3 { font-family: var(--text); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.25em; padding-top: 6px; }
.steps p { color: var(--muted); margin: 0; }
.demo { margin: 0; position: sticky; top: 90px; }
.demo video { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface); width: 100%; }
.demo figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

.report { background: var(--accent); color: #f2f7f5; }
.report h2 { color: #fff; }
.report .lead, .report .note { color: #cfe3dd; }
.report-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
.report-cover { margin: 0; transform: rotate(-2deg); }
.report-cover img { border-radius: 6px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); background: #fff; }
.report .checks li::before { color: var(--gold); }
.report .btn { background: var(--gold); color: var(--ink); margin-top: 8px; }
.report .btn:hover { background: #d8b45c; }

.checks { list-style: none; padding: 0; margin: 20px 0 24px; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.checks li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.source-list { list-style: none; padding: 0; margin: 36px 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.source-list li { background: var(--surface); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.source-list b { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.source-list span { color: var(--muted); font-size: 0.92rem; }

.principles { background: var(--accent-soft); }

.family { margin-top: 26px; }
.family h3 { font-family: var(--text); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 0.93rem; }

.pricing { background: var(--surface); border-block: 1px solid var(--line); }
.pricing h2 { text-align: center; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 24px; margin: 36px 0 16px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--paper); }
.plan-main { border: 2px solid var(--accent); background: #fff; }
.price { font-family: var(--display); font-size: 2.3rem; font-weight: 600; margin: 0; }
.price small { font-family: var(--text); font-size: 0.9rem; color: var(--muted); font-weight: 400; }

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

.signup { text-align: center; }
.signup-form { display: grid; gap: 14px; text-align: left; margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.signup-form label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 600; }
.signup-form input { font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.signup-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.signup-form .note { margin: 0; }
.form-status { margin: 0; font-weight: 600; color: var(--accent); min-height: 1.2em; }

.foot { background: var(--ink); color: #c9d1cd; padding: 56px 0; font-size: 0.88rem; }
.foot-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.foot a { color: #fff; }
.tagline { font-family: var(--display); font-style: italic; font-size: 1.1rem; color: #fff; margin-top: 14px; }

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

@media (max-width: 900px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  section { padding: 64px 0; }
  .hero-inner, .how-inner, .report-inner, .foot-inner { grid-template-columns: 1fr; gap: 36px; }
  .cards.three, .source-list { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .demo { position: static; }
  .report-cover { max-width: 320px; margin-inline: auto; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .top-inner { gap: 12px; }
  .btn-small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
