/* Context Engineering & Cursor Starter-Kit — site styles
   No external fonts, CDNs or trackers. System font stack only. */

:root {
  --bg: #f4f1ea;
  --bg-elev: #fffdf8;
  --ink: #1b1916;
  --muted: #5c574f;
  --line: #d9d2c6;
  --accent: #163e46;
  --accent-hover: #0f2e34;
  --accent-soft: #e4eef0;
  --footer-bg: #14363d;
  --footer-ink: #e8f0f2;
  --footer-muted: #b7c7cb;
  --focus: #0b57d0;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(27, 25, 22, 0.06), 0 8px 24px rgba(27, 25, 22, 0.06);
  --max: 44rem;
  --max-wide: 68rem;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover { color: var(--accent-hover); }

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus { top: 0.75rem; }

/* Header */
.site-header {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner,
.footer-inner,
.wrap {
  width: min(var(--max-wide), calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}

/* Main */
main {
  flex: 1;
  padding: 2.25rem 0 4rem;
}

.wrap-narrow {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(1.75rem, 3.2vw, 2.45rem); margin: 0 0 1rem; }
h2 { font-size: 1.4rem; margin: 2.5rem 0 0.85rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }

p { margin: 0 0 1rem; }

.lede {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

/* Hero / price */
.hero {
  width: min(var(--max-wide), calc(100% - 2rem));
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
}

.price-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem 1.35rem;
}

.price-amount {
  font-size: 2.6rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.15rem 0 0.35rem;
}

.price-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.price-meta strong { color: var(--ink); font-weight: 650; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: #fff;
  width: 100%;
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}


.btn-secondary {
  background: var(--bg-elev);
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.btn-row .btn { width: 100%; }

.fine-print {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0.85rem 0 0;
}

.list-check,
.list-plain {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}

.list-check li,
.list-plain li { margin: 0 0 0.55rem; }

.rule-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.15rem;
}

.rule-list li {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  margin: 0 0 0.5rem;
}

.rule-list strong { display: block; font-size: 0.95rem; }
.rule-list span { color: var(--muted); font-size: 0.9rem; }

code, .file {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--accent-soft);
  padding: 0.05em 0.3em;
  border-radius: 4px;
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.legal-page h1 { margin-bottom: 0.35rem; }
.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.legal-page h2 { border-top: 1px solid var(--line); padding-top: 1.5rem; }

.toc {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 0 0 2rem;
}

.toc p { margin: 0 0 0.4rem; font-weight: 650; font-size: 0.9rem; }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: 0.9rem; }
.toc li { margin: 0.2rem 0; }

.notice {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 0.85rem 1rem;
  margin: 0 0 1.25rem;
  border-radius: 0 8px 8px 0;
}

.form-block {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  margin: 1rem 0 1.5rem;
}

.form-block p { margin-bottom: 0.6rem; }

address { font-style: normal; }

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 2.25rem 0 1.75rem;
  font-size: 0.9rem;
}

.site-footer a { color: var(--footer-ink); }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.site-footer h2 {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--footer-muted);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin: 0 0 0.35rem; }

.cookie-settings-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--footer-ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.cookie-settings-btn:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  color: var(--footer-muted);
  font-size: 0.8125rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  z-index: 80;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  background: transparent;
  pointer-events: none;
}

.cookie-banner[hidden],
.cookie-panel[hidden] { display: none !important; }

.cookie-card {
  pointer-events: auto;
  width: min(44rem, 100%);
  margin: 0 auto;
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(27, 25, 22, 0.18);
  padding: 1.15rem 1.2rem 1.2rem;
}

.cookie-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.cookie-card p {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.cookie-actions .btn { min-height: 2.7rem; }

.cookie-more {
  display: block;
  margin: 0.75rem auto 0;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.cookie-prefs {
  margin: 0 0 0.9rem;
  padding: 0;
  border: 0;
}

.cookie-pref {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.cookie-pref p { margin: 0.15rem 0 0; }

.switch {
  position: relative;
  width: 2.6rem;
  height: 1.5rem;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.switch input:disabled { cursor: not-allowed; }

.switch-ui {
  display: block;
  width: 100%;
  height: 100%;
  background: #c9c3b8;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.switch-ui::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.2rem;
  height: 1.2rem;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.switch input:checked + .switch-ui { background: var(--accent); }
.switch input:checked + .switch-ui::after { transform: translateX(1.1rem); }
.switch input:disabled + .switch-ui { opacity: 0.85; }
.switch input:focus-visible + .switch-ui {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .cookie-actions,
  .btn-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .switch-ui,
  .switch-ui::after { transition: none; }
}

@media print {
    .cookie-banner,
  .cookie-panel,
  .site-header,
  .site-footer .cookie-settings-btn,
  .btn { break-inside: avoid; }
  .site-header { position: static; }
  body { background: #fff; }
  a { color: inherit; }
}
