/* Punica — shared stylesheet for every page. */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/newsreader-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/public-sans-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/public-sans-latin-italic-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #FFFFFF;
  --mist: #EEF3F1;
  --rule: #D5DFDB;
  --rule-strong: #A9B9B4;
  --ink: #17211F;
  --slate: #4F5D59;
  --pine: #0B5D55;
  --pine-hover: #08463F;
  --on-pine: #FFFFFF;
  --deep: #0C2E2A;
  --on-deep: #E6EFEC;
  --on-deep-muted: #A7BCB6;
  --rule-deep: rgba(230, 239, 236, 0.18);
  --accent: #B23B4E;
  --ok: #1F6B3A;
  --error: #A3262A;

  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-text: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --radius: 6px;
  color-scheme: light;
}
[data-theme="dark"] {
  --paper: #0F1817;
  --mist: #152220;
  --rule: #283835;
  --rule-strong: #43554F;
  --ink: #E3EBE8;
  --slate: #A1B1AC;
  --pine: #6FC3B6;
  --pine-hover: #93D6CB;
  --on-pine: #0C1A18;
  --deep: #0A2320;
  --accent: #E58A9A;
  --ok: #7FD39B;
  --error: #F09A97;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: var(--pine); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pine-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 2px; }

h1, h2 { font-family: var(--font-display); font-weight: 420; letter-spacing: -0.012em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.06; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
h3 { font-family: var(--font-text); font-size: 1.125rem; font-weight: 620; line-height: 1.35; color: var(--ink); }
p { text-wrap: pretty; }
.muted { color: var(--slate); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -64px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 4px;
  font-family: var(--font-text); font-size: 0.9375rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--pine); color: var(--on-pine); }
.btn-primary:hover { background: var(--pine-hover); color: var(--on-pine); }
.btn-primary:disabled { opacity: 0.7; cursor: progress; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-secondary:hover { border-color: var(--pine); color: var(--pine); }
.btn-light { background: var(--on-deep); color: var(--deep); }
.btn-light:hover { background: #fff; color: var(--deep); }
.btn-ghost { background: transparent; color: var(--on-deep); border-color: rgba(230, 239, 236, 0.4); }
.btn-ghost:hover { border-color: var(--on-deep); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.875rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.site-header.is-scrolled, .site-header.is-solid { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; border-radius: 6px; background: var(--pine); color: var(--on-pine); display: grid; place-items: center; flex-shrink: 0; }
.brand-mark svg { width: 20px; height: 20px; }
.nav { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 500; padding-block: 6px; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--pine); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 4px; border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--pine); color: var(--pine); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.nav-toggle { display: none; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 900px) {
  .header-inner { gap: 12px; }
  .nav-toggle { display: grid; }
  .header-actions { margin-left: auto; }
  .nav-links {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
  .nav-links li:last-child a { border-bottom: 0; }
}
@media (max-width: 420px) { .header-actions .btn-ghost { background: transparent; color: var(--on-deep); border-color: rgba(230, 239, 236, 0.4); }
.btn-ghost:hover { border-color: var(--on-deep); color: #fff; }
.btn-sm { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 11vw, 136px); }
.section.tint { background: var(--mist); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-head h2 { margin-bottom: 16px; }
.split-head p { color: var(--slate); max-width: 34ch; }
@media (min-width: 961px) { .split-head { position: sticky; top: calc(var(--header-h) + 40px); } }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.section-intro { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-intro h2 { margin-bottom: 16px; }
.section-intro p { color: var(--slate); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--deep); color: var(--on-deep); padding-block: clamp(56px, 7vw, 96px) clamp(72px, 9vw, 120px); }
.motif { position: absolute; z-index: -1; width: min(720px, 90vw); right: -8%; bottom: -30%; color: var(--on-deep); opacity: 0.07; pointer-events: none; }
.hero h1 { color: #fff; }
[data-theme="dark"] .hero h1 { color: var(--on-deep); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); max-width: 14ch; margin-bottom: 24px; }
.hero .lede { font-size: 1.25rem; line-height: 1.5; color: var(--on-deep-muted); max-width: 40ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.founder { display: flex; align-items: center; gap: 16px; max-width: 48ch; padding-top: 24px; border-top: 1px solid var(--rule-deep); }
.founder img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.founder p { font-size: 0.9375rem; color: var(--on-deep-muted); line-height: 1.5; }
.founder strong { color: #fff; font-weight: 620; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero h1 { max-width: 18ch; } }

/* Example project plan: a sheet laid on a second sheet */
.plan-stack { position: relative; }
.sheets { position: relative; }
.sheets::before { content: ""; position: absolute; inset: 10px -10px -10px 10px; border-radius: var(--radius); background: #DCE6E2; transform: rotate(2.2deg); }
[data-theme="dark"] .sheets::before { background: #1D2F2C; }
.sheets .plan { position: relative; }
.plan-stack figcaption { position: relative; margin-top: 28px; font-size: 0.875rem; color: var(--on-deep-muted); max-width: 44ch; }
[data-theme="dark"] .plan { background: var(--mist); }
.plan {
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 2px 4px rgba(4, 20, 18, 0.2), 0 28px 60px -24px rgba(4, 20, 18, 0.6);
}
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.plan-head h2 { font-size: 1.5rem; line-height: 1.2; }
.plan-tag { font-size: 0.75rem; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.plan-for { font-size: 0.875rem; color: var(--slate); padding: 12px 0 4px; }
.plan dl > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.plan dl > div:last-child { border-bottom: 0; }
.plan dt { font-size: 0.8125rem; font-weight: 620; color: var(--slate); padding-top: 2px; }
.plan dd { font-size: 0.875rem; line-height: 1.5; }
.plan dd ul { list-style: none; }
.plan dd li + li { margin-top: 2px; }
.plan-sign { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 0.8125rem; color: var(--slate); }
.plan-sign img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.plan-sign strong { color: var(--ink); font-weight: 620; }
.plan-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 0.8125rem; color: var(--slate); }
@media (max-width: 480px) { .plan dl > div { grid-template-columns: 1fr; gap: 2px; } }
@media (prefers-reduced-motion: no-preference) {
  .sheets { animation: plan-in 0.7s cubic-bezier(.2, .7, .2, 1) 0.15s both; }
  @keyframes plan-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- Commitments strip ---------- */
.promises { border-bottom: 1px solid var(--rule); }
.promise-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.promise-grid li { padding: 32px 28px 34px; }
.promise-grid li:first-child { padding-left: 0; }
.promise-grid li + li { border-left: 1px solid var(--rule); }
.promise-grid h3 { font-family: var(--font-display); font-size: 1.3125rem; font-weight: 450; margin-bottom: 6px; }
.promise-grid p { font-size: 0.9375rem; color: var(--slate); line-height: 1.5; }
@media (max-width: 960px) {
  .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise-grid li { padding: 24px 20px 26px; }
  .promise-grid li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .promise-grid li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 520px) {
  .promise-grid { grid-template-columns: 1fr; }
  .promise-grid li { padding-inline: 0; border-left: 0 !important; }
  .promise-grid li + li { border-top: 1px solid var(--rule); }
}

/* ---------- Services ---------- */
.svc-list { list-style: none; border-top: 1px solid var(--ink); }
.svc { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 40px; padding: 28px 20px; margin-inline: -20px; border-bottom: 1px solid var(--rule); transition: background-color 0.2s ease; }
.svc::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 3px; border-radius: 2px; background: var(--accent); transform: scaleY(0); transition: transform 0.2s ease; }
.svc:hover { background: var(--mist); }
.svc:hover::before { transform: scaleY(1); }
.svc:hover h3 { color: var(--pine); }
.svc h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 450; line-height: 1.2; letter-spacing: -0.005em; }
.svc p { color: var(--slate); }
.svc .eg { margin-top: 10px; font-size: 0.875rem; color: var(--slate); }
.svc .eg span { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) { .svc { grid-template-columns: 1fr; padding-inline: 16px; margin-inline: -16px; } }

/* Tools: single-color logos, grouped and labelled */
.tools { margin-top: clamp(72px, 9vw, 112px); }
.tools-head { padding-top: 40px; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 40px; margin-bottom: 36px; }
.tools-head h3 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 420; }
.tools-head p { color: var(--slate); font-size: 0.9375rem; }
.tool-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.tool-group h4 { font-size: 0.875rem; font-weight: 620; color: var(--slate); margin-bottom: 14px; }
.tool-list { list-style: none; display: grid; gap: 4px; }
.tool-list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-weight: 560; }
.tool-list svg { width: 26px; height: 26px; flex-shrink: 0; fill: currentColor; color: var(--ink); opacity: 0.82; }
@media (max-width: 960px) { .tool-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tool-groups { gap: 28px 20px; } .tool-list li { gap: 10px; font-size: 0.9375rem; } .tool-list svg { width: 22px; height: 22px; } }
.fit-note { margin-top: 28px; font-size: 0.9375rem; color: var(--slate); }

/* ---------- Work / demo ---------- */
.demo-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); margin-bottom: 20px; }
.demo-tab { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: left; background: none; border: 0; padding: 16px 16px 18px 0; cursor: pointer; color: var(--slate); }
.demo-tab .t { display: block; font-weight: 620; color: var(--ink); margin-bottom: 2px; }
.demo-tab .d { display: block; font-size: 0.875rem; line-height: 1.45; }
.demo-tab .prog { position: absolute; left: 0; right: 16px; top: -1px; height: 2px; background: transparent; }
.demo-tab .prog i { display: block; height: 100%; width: 0; background: var(--pine); }
.demo-tab.active .t { color: var(--pine); }
.demo-tab:hover .t { color: var(--pine); }
.demo-frame { border: 1px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.demo-bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; font-size: 0.8125rem; color: var(--slate); border-bottom: 1px solid var(--rule); background: var(--paper); }
.demo-bar strong { color: var(--ink); font-weight: 600; }
.demo-view { aspect-ratio: 16 / 10; }
.demo-view iframe { width: 100%; height: 100%; border: 0; display: block; }
.demo-caption { margin-top: 16px; font-size: 0.9375rem; color: var(--slate); max-width: 70ch; }
@media (max-width: 860px) { .demo-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .demo-view { aspect-ratio: 4 / 5; } }
@media (max-width: 520px) { .demo-tab .d { display: none; } .demo-view { aspect-ratio: 3 / 4; } .demo-bar span:last-child { display: none; } }

/* ---------- Process ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 20px; }
.steps li::before { content: counter(step); display: block; font-family: var(--font-display); font-size: 3.5rem; font-weight: 350; line-height: 1; color: var(--accent); margin-bottom: 18px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--slate); font-size: 0.9375rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.models-head { margin: clamp(64px, 8vw, 96px) 0 28px; }
.models-head h3 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 420; margin-bottom: 8px; }
.models-head p { color: var(--slate); max-width: 60ch; }
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--mist); }
.model { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.model + .model { border-left: 1px solid var(--rule); }
.model p { color: var(--slate); font-size: 0.9375rem; }
.model .fit { font-size: 0.875rem; color: var(--ink); padding-top: 10px; border-top: 1px solid var(--rule); margin-top: auto; }
.model a { font-weight: 600; font-size: 0.9375rem; }
@media (max-width: 860px) { .models { grid-template-columns: 1fr; } .model + .model { border-left: 0; border-top: 1px solid var(--rule); } }

/* ---------- About ---------- */
.signature { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); }
.signature img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.signature p { font-size: 0.875rem; color: var(--slate); line-height: 1.45; }
.signature strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 620; }
.about-copy > p { margin-bottom: 18px; max-width: 62ch; }
.about-copy > p:first-child { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.4; color: var(--ink); }

/* ---------- Writing (home + blog index) ---------- */
.post-list { list-style: none; border-top: 1px solid var(--ink); }
.post-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 8px 40px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.post-row .meta { font-size: 0.875rem; color: var(--slate); padding-top: 4px; }
.post-row h2, .post-row h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 450; line-height: 1.25; margin-bottom: 8px; }
.post-row :is(h2, h3) a { color: var(--ink); text-decoration: none; }
.post-row :is(h2, h3) a:hover { color: var(--pine); text-decoration: underline; }
.post-row p { color: var(--slate); max-width: 66ch; }
@media (max-width: 720px) { .post-row { grid-template-columns: 1fr; } }
.more-link { display: inline-block; margin-top: 28px; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px 0; font-size: 1.125rem; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-display); font-size: 1.75rem; font-weight: 300; line-height: 0.6; color: var(--pine); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list summary:hover { color: var(--pine); }
.faq-list details p { color: var(--slate); max-width: 66ch; padding-bottom: 24px; margin-top: -6px; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; background: var(--deep); color: var(--on-deep); padding-block: clamp(80px, 11vw, 136px); }
.contact .motif { right: auto; left: -12%; bottom: -35%; }
.contact h2 { color: #fff; margin-bottom: 18px; }
[data-theme="dark"] .contact h2 { color: var(--on-deep); }
.contact a:not(.btn) { color: var(--on-deep); }
.contact a:not(.btn):hover { color: #fff; }
.contact .form-card a { color: var(--pine); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-lede { color: var(--on-deep-muted); max-width: 44ch; margin-bottom: 28px; }
.direct { list-style: none; margin-top: 36px; border-top: 1px solid var(--rule-deep); }
.direct li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule-deep); font-size: 0.9375rem; }
.direct span { color: var(--on-deep-muted); }
.next { margin-top: 40px; }
.next h3 { color: var(--on-deep); margin-bottom: 12px; }
.next ol { list-style: none; counter-reset: next; }
.next li { counter-increment: next; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 6px 0; color: var(--on-deep-muted); font-size: 0.9375rem; }
.next li::before { content: counter(next) "."; font-family: var(--font-display); font-size: 1.125rem; color: var(--on-deep); line-height: 1.35; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.form-card h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 450; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 13px; font-size: 1rem;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: 4px;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: var(--slate); opacity: 0.75; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--pine); outline-offset: 0; border-color: var(--pine); }
.field [aria-invalid="true"] { border-color: var(--error); }
.honeypot { display: none !important; }
.form-card .btn { width: 100%; margin-top: 4px; }
.form-fine { margin-top: 12px; font-size: 0.8125rem; color: var(--slate); }
.form-status { display: none; margin-top: 16px; padding: 12px 14px; border-radius: 4px; font-size: 0.9375rem; border: 1px solid currentColor; }
.form-status.show { display: block; }
.form-status.success { color: var(--ok); }
.form-status.error { color: var(--error); }
.spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep-muted); font-size: 0.9375rem; }
.site-footer a { color: var(--on-deep); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 32px; padding-block: 56px 40px; border-top: 1px solid var(--rule-deep); }
.footer-top .brand { color: var(--on-deep); margin-bottom: 12px; }
.footer-top .brand-mark { background: var(--on-deep); color: var(--deep); }
.footer-top p { max-width: 36ch; }
.footer-col h2 { font-family: var(--font-text); font-size: 0.875rem; font-weight: 600; color: var(--on-deep); margin-bottom: 12px; letter-spacing: 0; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 28px; border-top: 1px solid var(--rule-deep); font-size: 0.875rem; }
.footer-bottom ul { list-style: none; display: flex; gap: 20px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* Simple footer used by inner pages */
.footer-simple { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 32px; font-size: 0.875rem; }
.footer-simple ul { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--rule);
    transform: translateY(110%); transition: transform 0.25s ease;
  }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { min-height: 44px; }
}

/* ---------- Inner pages: articles, legal, blog index ---------- */
.page-head { background: var(--mist); padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.25rem, 4.6vw, 3.25rem); max-width: 22ch; margin-bottom: 14px; }
.page-head p { color: var(--slate); max-width: 58ch; font-size: 1.125rem; }
.page-body { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }

.crumbs { font-size: 0.875rem; color: var(--slate); margin-bottom: 20px; }
.crumbs a { color: var(--slate); }
.crumbs a:hover { color: var(--pine); }

.article { max-width: 70ch; margin-inline: auto; padding-bottom: clamp(64px, 8vw, 104px); }
.article-head { padding-block: clamp(40px, 6vw, 72px) 28px; }
.article-head .topic { font-size: 0.875rem; font-weight: 600; color: var(--pine); margin-bottom: 14px; }
.article-head h1 { font-size: clamp(2.125rem, 4.6vw, 3.125rem); line-height: 1.1; margin-bottom: 22px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: 0.9375rem; color: var(--slate); padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.byline strong { color: var(--ink); font-weight: 600; }

.prose { padding-top: 32px; }
.prose > * + * { margin-top: 1.15em; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.72; }
.prose .lead { font-size: 1.25rem; line-height: 1.6; color: var(--slate); }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); line-height: 1.2; margin-top: 2.2em; }
.prose h3 { font-size: 1.1875rem; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--pine); }
.prose strong { font-weight: 640; }
.prose blockquote { border-left: 3px solid var(--pine); padding: 4px 0 4px 22px; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.45; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 620; border-bottom-color: var(--ink); }
.prose a { color: var(--pine); text-decoration: underline; }

.related { margin-top: 64px; }
.related h2 { font-family: var(--font-text); font-size: 1rem; font-weight: 620; margin-bottom: 8px; }
.related ul { list-style: none; border-top: 1px solid var(--ink); }
.related li a { display: block; padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 1.25rem; }
.related li a:hover { color: var(--pine); }

.cta-panel { margin-top: 64px; padding: clamp(24px, 4vw, 40px); background: var(--mist); border: 1px solid var(--rule); border-radius: var(--radius); }
.cta-panel h2 { font-size: 1.75rem; margin-bottom: 10px; }
.cta-panel p { color: var(--slate); max-width: 56ch; margin-bottom: 22px; }

.legal { max-width: 70ch; }
.legal h2 { font-size: 1.375rem; }
.prose.legal { padding-top: 0; }
.page-head .updated { font-size: 0.9375rem; }

/* 404 */
.not-found { min-height: calc(100vh - var(--header-h)); display: grid; align-content: center; padding-block: 64px; }
.not-found .code { font-family: var(--font-display); font-size: 1.25rem; color: var(--pine); margin-bottom: 12px; }
.not-found h1 { margin-bottom: 16px; }
.not-found p { color: var(--slate); max-width: 48ch; margin-bottom: 28px; }
.not-found .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-cta, .form-card, .hero-actions, .demo-tabs, .demo-frame { display: none !important; }
  .contact, .site-footer, .hero { background: #fff !important; color: #000 !important; }
  .plan { box-shadow: none; }
}
