/* Shared design tokens and accessible, responsive page primitives. */
:root {
  color-scheme: light;
  --page: #f5f4ed;
  --surface: #fffef9;
  --soft: #efeee6;
  --ink: #22382c;
  --muted: #647068;
  --line: #dcded3;
  --accent: #244b38;
  --accent-hover: #173b29;
  --accent-ink: #fffef7;
  --lime: #dcebaf;
  --warm: #f0dfbf;
  --danger: #9b3328;
  --danger-bg: #fce9e3;
  --shadow: 0 12px 42px rgb(39 53 33 / 5%);
  --radius: 20px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #141d18;
  --surface: #1e2a22;
  --soft: #27332a;
  --ink: #f2f1e7;
  --muted: #b3bdb3;
  --line: #3c4b3f;
  --accent: #c8dfa9;
  --accent-hover: #e0edca;
  --accent-ink: #17291d;
  --lime: #394d2f;
  --warm: #54432c;
  --danger: #ffb7a9;
  --danger-bg: #472b27;
  --shadow: 0 12px 42px rgb(0 0 0 / 12%);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, .button { touch-action: manipulation; }
a { color: inherit; text-underline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 580; line-height: 1.15; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4vw, 3.7rem); }
h2 { font-size: clamp(1.65rem, 2.4vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -.025em; }
small, .small { font-size: .82rem; }
.muted { color: var(--muted); }
.eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; }
.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; }
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 20px;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  background: var(--surface);
  border-radius: 8px;
}
.shell { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; gap: 36px; min-height: 88px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.15rem; font-weight: 700; letter-spacing: -.045em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); }
.brand-mark svg { width: 22px; height: 22px; }
.brand span:last-child span { font-weight: 420; }
.main-nav { display: flex; align-items: center; gap: 27px; margin-right: auto; }
.main-nav a { color: var(--muted); font-size: .84rem; font-weight: 550; text-decoration: none; padding-block: 12px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 19px; border: 1px solid transparent; border-radius: 10px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 650; font-size: .88rem; line-height: 1.35; }
.button:hover:not(:disabled) { background: var(--accent-hover); }
.button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button.secondary:hover:not(:disabled), .icon-button:hover { background: var(--soft); }
.button.subtle { background: transparent; color: var(--ink); border-color: var(--line); }
.button.danger { background: var(--danger-bg); color: var(--danger); }
.button.wide { width: 100%; }
.icon-button { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); }
.text-button { color: var(--ink); background: none; border: 0; padding: 9px 0; text-decoration: underline; text-underline-offset: 4px; font-size: .85rem; }
.credit-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 12px; background: var(--soft); border-radius: 9px; font-size: .78rem; text-decoration: none; font-variant-numeric: tabular-nums; }
.dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; display: inline-block; }
.page-intro { padding: 42px 0 30px; max-width: 850px; }
.page-intro .eyebrow { margin-bottom: 13px; color: var(--muted); }
.page-intro p:last-child { margin-top: 16px; color: var(--muted); max-width: 650px; }
.section { padding-block: 48px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-heading p { margin-top: 12px; color: var(--muted); max-width: 620px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-pad { padding: 28px; }
.stack { display: grid; gap: 18px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.notice { padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); font-size: .85rem; }
.notice.error { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.status-line { min-height: 22px; font-size: .8rem; color: var(--muted); }
.status-line.error { color: var(--danger); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 6px; background: var(--soft); font-size: .7rem; font-weight: 600; }
.badge.warm { background: var(--warm); }
.badge.lime { background: var(--lime); }
.field { display: grid; gap: 8px; }
.field > label, .field-label { font-size: .78rem; font-weight: 650; }
input:not([type="checkbox"]):not([type="file"]), textarea, select { width: 100%; border: 1px solid var(--line); color: var(--ink); background: var(--surface); border-radius: 10px; padding: 12px; }
textarea { resize: vertical; min-height: 142px; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
select { min-height: 46px; }
.field-help { font-size: .74rem; color: var(--muted); }
.site-footer { display: flex; align-items: start; justify-content: space-between; gap: 28px; border-top: 1px solid var(--line); padding: 32px 0 40px; margin-top: 48px; font-size: .75rem; color: var(--muted); }
.site-footer p { max-width: 410px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: end; max-width: 500px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
dialog { width: min(470px, calc(100% - 28px)); max-height: calc(100dvh - 28px); overflow: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: 0 25px 90px rgb(0 0 0 / 25%); }
dialog::backdrop { background: rgb(16 28 20 / 50%); backdrop-filter: blur(4px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 17px; }
.dialog-heading h2 { font-size: 1.9rem; }
.dialog-heading .icon-button { width: 34px; height: 34px; }
dialog .intro { color: var(--muted); font-size: .88rem; margin-bottom: 22px; }
.toast { position: fixed; z-index: 120; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: min(520px, calc(100% - 32px)); background: var(--ink); color: var(--page); padding: 14px 22px; border-radius: 12px; box-shadow: var(--shadow); font-size: .88rem; }
.loading-mark { width: 18px; height: 18px; display: inline-block; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.price-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.price-card.featured { border-color: var(--accent); }
.price { font-size: 2.8rem; line-height: 1; letter-spacing: -.055em; }
.price small { font-size: .8rem; color: var(--muted); letter-spacing: 0; }
.price-card ul { padding-left: 18px; color: var(--muted); font-size: .85rem; line-height: 1.9; margin: 0; flex: 1; }
.prose { max-width: 800px; padding-block: 45px 20px; }
.prose h1 { margin-bottom: 16px; }
.prose h2 { margin-top: 35px; margin-bottom: 12px; font-size: 1.55rem; }
.prose p, .prose ul, .prose ol { margin: 14px 0; color: var(--muted); }
.prose strong { color: var(--ink); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; text-align: left; }
th, td { padding: 15px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .72rem; color: var(--muted); font-weight: 650; white-space: nowrap; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 12px; color: var(--muted); font-size: .9rem; }
.empty-card { padding: 50px 24px; text-align: center; display: grid; justify-items: center; gap: 15px; }
.empty-card p { max-width: 460px; color: var(--muted); font-size: .9rem; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-15 { margin-top: 15px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-12 { margin-bottom: 12px; }
.mb-18 { margin-bottom: 18px; }
.border-top { border-top: 1px solid var(--line); }
.medium-heading { font-size: 1.7rem; }
.small-heading { font-size: 1.4rem; }
@media (max-width: 980px) {
  .shell { width: calc(100% - 40px); }
  .site-header { gap: 22px; }
  .main-nav { gap: 18px; }
  .main-nav .examples-link { display: none; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 28px); }
  .site-header { min-height: 76px; flex-wrap: wrap; gap: 0 15px; padding-top: 15px; }
  .brand { margin-right: auto; font-size: 1.05rem; }
  .header-actions { gap: 7px; }
  .header-actions .button { padding-inline: 12px; }
  .main-nav { order: 3; flex-basis: 100%; justify-content: space-between; gap: 12px; margin-top: 5px; }
  .main-nav a { padding-block: 11px; font-size: .77rem; }
  .main-nav .examples-link { display: initial; }
  .header-actions .credit-pill { display: none; }
  .page-intro { padding: 29px 0 24px; }
  .page-intro h1 { font-size: 2.4rem; }
  .page-intro p:last-child { font-size: .88rem; }
  .section { padding-block: 32px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .price-grid, .feature-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; margin-top: 30px; }
  .footer-links { justify-content: start; }
  .panel-pad, .price-card { padding: 22px; }
  dialog { padding: 24px; }
  .toast { bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
