:root {
  --ink: #2d2a26;
  --ink-soft: #6b665f;
  --paper: #fdfaf4;
  --tint: #f3efe4;
  --deep: #2f4a3e;
  --accent: #e07a4e;
  --accent-2: #3f8f6f;
  --accent-3: #d98f3a;
  --border: #e6dfcc;
  --radius: 20px;
  --max: 1100px;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.hero, .section, .site-footer { scroll-margin-top: 72px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 250, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 16px;
  height: 21px;
  color: var(--accent);
  flex-shrink: 0;
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.nav a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 100px;
}
.nav-cta:hover { background: #c96436; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 46vw;
  min-width: 340px;
  max-width: 620px;
  opacity: 0.35;
}

.blob-a { top: -14%; right: -8%; color: var(--accent-3); animation: drift-a 8s ease-in-out infinite; }
.blob-b { bottom: -22%; left: -12%; color: var(--accent-2); animation: drift-b 9.76s ease-in-out infinite; }

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(-3%, 4%) rotate(10deg) scale(1.06); }
}

@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(4%, -3%) rotate(-8deg) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .blob-a, .blob-b { animation: none; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-2);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 0 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.section { padding: 86px 0; }
.section-tint { background: var(--tint); }
.section-deep { background: var(--deep); color: #fff; }

.tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.tag-light { color: #a9e0c5; }

.split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}

.split-label .tag { margin-bottom: 0; }

.split-body h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.split-body p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 16px;
}

.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.chip {
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-2);
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.use-item {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
}

.use-item--b { border-left-color: var(--accent-2); }
.use-item--c { border-left-color: var(--accent-3); }
.use-item--d { border-left-color: var(--deep); }

.use-item h3 { margin: 0 0 6px; font-size: 1.02rem; }
.use-item p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }

.note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  display: inline-block;
}

.split-visual {
  margin: 24px 0 0;
  max-width: 750px;
  width: 100%;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink-soft);
}
.split-visual svg { width: 100%; height: auto; display: block; }

.deep-h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 0 0 18px; max-width: 700px; }
.section-lede-deep { font-size: 1.05rem; color: #cfe3d8; max-width: 640px; margin: 0 0 36px; }

.access-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.access-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 26px;
}

.access-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.access-card p { margin: 0 0 16px; color: #cfe3d8; font-size: 0.93rem; }

.status-pill {
  display: inline-block;
  background: rgba(224, 122, 78, 0.22);
  color: #ffcbae;
  border: 1px solid rgba(224, 122, 78, 0.45);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
}

.paper-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }

.paper-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.paper-title { margin: 0 0 10px; font-weight: 800; font-size: 1rem; }
.paper-meta { margin: 0 0 14px; color: var(--ink-soft); font-size: 0.88rem; }
.paper-link { color: var(--accent-2); font-weight: 700; text-decoration: none; font-size: 0.9rem; }
.paper-link:hover { text-decoration: underline; }

.signup-inner { max-width: 600px; }
.section-lede { font-size: 1.05rem; color: var(--ink-soft); margin: 0 0 30px; }

.signup-form { display: flex; gap: 12px; flex-wrap: wrap; }

.signup-form input {
  flex: 1 1 260px;
  padding: 14px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
.signup-form input:focus { outline: none; border-color: var(--accent); }

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.g-recaptcha { flex: 1 1 100%; }

.form-message { margin-top: 14px; font-size: 0.9rem; color: var(--accent-2); min-height: 1.2em; }

.site-footer { background: var(--deep); color: #cfe3d8; padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.88rem; }
.footer-inner p { margin: 0; }
.footer-credit { opacity: 0.85; font-size: 0.82rem; }

.footer-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.site-modal {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: 760px;
  width: 90vw;
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.site-modal::backdrop { background: rgba(0, 0, 0, 0.6); }
.modal-inner { padding: 44px; overflow-y: auto; max-height: 90vh; position: relative; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.modal-inner::-webkit-scrollbar { width: 8px; }
.modal-inner::-webkit-scrollbar-track { background: transparent; }
.modal-inner::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 100px; }
@media (max-width: 600px) {
  .site-modal { width: 94vw; max-height: 92vh; }
  .modal-inner { padding: 28px 22px; max-height: 92vh; }
}
.modal-inner h2 { margin: 0 0 16px; }
.modal-body p { margin: 0 0 14px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.65; }
.modal-body p:last-child { margin-bottom: 0; }
.modal-meta { font-size: 0.85rem; font-style: italic; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--ink);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--tint); }

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--deep);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.15);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; max-width: 640px; font-size: 0.92rem; color: #e8f2ec; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { padding: 10px 20px; font-size: 0.88rem; }
.cookie-actions .btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }

.cookie-required-notice {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.cookie-required-notice[hidden] { display: none; }
.cookie-reopen-link {
  background: none;
  border: none;
  padding: 0;
  margin-left: 4px;
  color: var(--accent-2);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn:disabled:hover { background: var(--accent); }

.error-page { padding: 140px 0 96px; }
.error-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.error-visual {
  display: flex;
  justify-content: center;
  color: var(--border);
  margin-bottom: 12px;
}
.error-visual .path-svg {
  width: 100%;
  max-width: 260px;
  height: auto;
}
.error-page .eyebrow { display: block; }
.error-page h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0 0 16px;
}
.error-page .lede {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 821px) and (max-width: 1024px) {
  .paper-grid { grid-template-columns: repeat(2, 1fr); }
  .access-cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 180px 1fr; }
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .use-grid { grid-template-columns: 1fr; }
  .access-cards { grid-template-columns: 1fr; }
  .paper-grid { grid-template-columns: 1fr; }
  .nav a:not(.nav-cta) { display: none; }
}
