/* Paper Eclipse — layered fibrous paper, parchment, terracotta, muted indigo */
:root {
  --parchment: #f3ecdf;
  --parchment-deep: #e8dfcc;
  --ivory: #faf6ee;
  --ink: #2a2926;
  --ink-soft: #5c564c;
  --terracotta: #c46a4a;
  --terracotta-deep: #9e4f38;
  --beige: #d4c4a8;
  --indigo: #3d4a6b;
  --indigo-soft: #6a7390;
  --grain: rgba(42, 41, 38, 0.04);
  --fold: rgba(42, 41, 38, 0.08);
  --font-display: "Literata", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.85rem;
  --space-md: 1.4rem;
  --space-lg: 2.5rem;
  --space-xl: 4.5rem;
  --max: 70rem;
  --measure: 38rem;
  --radius: 0.15rem;
  --ease-panel: cubic-bezier(0.33, 0.9, 0.28, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse 120% 80% at 10% -10%, rgba(196, 106, 74, 0.08), transparent 50%),
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(61, 74, 107, 0.07), transparent 45%),
    linear-gradient(180deg, var(--ivory) 0%, var(--parchment) 28%, var(--parchment-deep) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      var(--grain) 2px,
      var(--grain) 3px
    );
  min-height: 100vh;
}

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

a {
  color: var(--indigo);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--terracotta-deep);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.15rem); margin: 0 0 var(--space-md); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin: 0 0 var(--space-md); }
h3 { font-size: 1.3rem; margin: 0 0 var(--space-sm); }

p { margin: 0 0 var(--space-md); }

ul { padding-left: 1.2rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--parchment);
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Header — paper screen bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--fold);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background:
    radial-gradient(circle at 55% 45%, var(--terracotta) 0 38%, transparent 40%),
    linear-gradient(90deg, transparent 48%, var(--indigo-soft) 48% 52%, transparent 52%);
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  max-width: 14rem;
  line-height: 1.25;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav-cta {
  color: var(--parchment) !important;
  background: var(--ink);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--terracotta-deep);
  color: var(--ivory) !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--fold);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-body);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 5px 0 var(--ink), 0 -5px 0 var(--ink);
  margin-top: 0.15rem;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; flex-direction: column; align-items: center; gap: 0.35rem; }
  .nav-toggle-label { font-size: 0.75rem; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ivory);
    border-bottom: 1px solid var(--fold);
    padding: 1rem 1.25rem 1.25rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; }
}

/* Layout helpers */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-xl) 1.25rem;
}

.wrap-narrow {
  max-width: 46rem;
  margin: 0 auto;
  padding: var(--space-xl) 1.25rem;
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo-soft);
  margin-bottom: var(--space-sm);
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* Buttons — paper panel slide */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-panel), color 0.25s ease;
}

.btn-panel {
  color: var(--parchment);
  background: var(--ink);
  box-shadow: 3px 3px 0 0 var(--terracotta);
}

.btn-panel:hover {
  color: var(--parchment);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 var(--terracotta);
}

.btn-panel:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 0 var(--terracotta-deep);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--ink);
  background: var(--beige);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-md);
}

/* Hero — full-bleed visual plane */
.hero-eclipse {
  position: relative;
  min-height: min(88vh, 42rem);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-eclipse::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(243, 236, 223, 0.94) 0%, rgba(243, 236, 223, 0.72) 42%, rgba(243, 236, 223, 0.2) 70%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1600&h=1000&fit=crop") center/cover no-repeat;
  animation: eclipse-drift 18s ease-in-out infinite alternate;
  z-index: 0;
}

.hero-eclipse::after {
  content: "";
  position: absolute;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  border: 1px solid rgba(61, 74, 107, 0.35);
  right: 12%;
  top: 18%;
  box-shadow:
    0 0 0 2.5rem rgba(196, 106, 74, 0.08),
    inset 0 0 0 40px rgba(42, 41, 38, 0.12);
  animation: eclipse-pulse 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes eclipse-drift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.04) translate(-1.5%, 1%); }
}

@keyframes eclipse-pulse {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(8px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-xl) 1.25rem calc(var(--space-xl) + 0.5rem);
  animation: rise-in 0.9s var(--ease-panel) both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(1.2rem); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 var(--space-sm);
  max-width: 14ch;
  line-height: 1.08;
}

.hero-line {
  font-size: 1.2rem;
  max-width: 28rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-md);
}

/* Paper panels / offer previews */
.paper-panel {
  background: var(--ivory);
  border: 1px solid var(--fold);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 12px 28px -18px rgba(42, 41, 38, 0.25);
  padding: var(--space-lg);
  position: relative;
}

.paper-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 6px,
    rgba(42, 41, 38, 0.015) 6px,
    rgba(42, 41, 38, 0.015) 7px
  );
  pointer-events: none;
}

.panel-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.offer-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform 0.35s var(--ease-panel);
}

.offer-tile:hover {
  transform: translateY(-4px);
  color: inherit;
}

.offer-tile img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  margin-bottom: var(--space-md);
  filter: saturate(0.85) contrast(0.95);
}

.offer-tile h3 {
  color: var(--ink);
}

.offer-tile p {
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: var(--space-sm);
}

.meta-line {
  font-size: 0.85rem;
  color: var(--indigo-soft);
}

/* Split / evidence */
.split {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

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

.quote-block {
  border-left: 3px solid var(--terracotta);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
}

.quote-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: normal;
  font-family: var(--font-body);
}

/* Forms */
.form-stack {
  display: grid;
  gap: var(--space-md);
  max-width: 34rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--beige);
  background: var(--ivory);
  color: var(--ink);
  border-radius: var(--radius);
}

.form-field textarea { min-height: 8rem; resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

.field-error {
  color: var(--terracotta-deep);
  font-size: 0.88rem;
  margin-top: 0.3rem;
  display: none;
}

.form-field.is-invalid .field-error { display: block; }
.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: var(--terracotta);
}

.form-status {
  padding: var(--space-md);
  border: 1px solid var(--fold);
  background: var(--parchment-deep);
  display: none;
}

.form-status.is-visible { display: block; }
.form-status.is-success { border-color: var(--indigo); }
.form-status.is-error { border-color: var(--terracotta); }

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--fold);
  vertical-align: top;
}

.data-table th {
  font-weight: 600;
  color: var(--indigo);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--parchment);
  padding: 1rem 1.25rem;
  box-shadow: 0 -8px 30px rgba(42, 41, 38, 0.25);
}

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

.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner a { color: var(--beige); }
.cookie-banner p { margin: 0; max-width: 42rem; font-size: 0.95rem; }

.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }

.cookie-banner .btn-panel {
  background: var(--terracotta);
  box-shadow: 3px 3px 0 0 var(--beige);
  color: var(--ivory);
}

.cookie-banner .btn-ghost {
  border-color: var(--beige);
  color: var(--parchment);
}

.cookie-banner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--parchment);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--fold);
  background: rgba(232, 223, 204, 0.55);
  padding: var(--space-xl) 1.25rem var(--space-lg);
  margin-top: var(--space-xl);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

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

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

.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.footer-tag { color: var(--ink-soft); font-size: 0.95rem; }

.footer-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo-soft);
  margin-bottom: 0.5rem;
}

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

.footer-links li,
.footer-legal li { margin-bottom: 0.35rem; }

.footer-copy {
  max-width: var(--max);
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--fold);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Page chrome */
.page-hero {
  padding: var(--space-xl) 1.25rem var(--space-lg);
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 { max-width: 18ch; }

.prose { max-width: 42rem; }
.prose h2 { margin-top: var(--space-lg); }
.prose ul { margin-bottom: var(--space-md); }

.band {
  background: rgba(250, 246, 238, 0.65);
  border-block: 1px solid var(--fold);
}

.list-plain {
  list-style: none;
  padding: 0;
}

.list-plain li {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--fold);
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo-soft);
  margin-right: 0.5rem;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--fold);
}

.price-row strong { font-family: var(--font-display); font-weight: 500; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  padding-left: 3rem;
  position: relative;
  margin-bottom: var(--space-md);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  background: var(--ivory);
}

.media-frame {
  overflow: hidden;
  border: 1px solid var(--fold);
  box-shadow: 8px 8px 0 0 rgba(61, 74, 107, 0.12);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: saturate(0.88);
}

.fade-up {
  animation: rise-in 0.8s var(--ease-panel) both;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-lg);
}

.err-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-xl) 1.25rem;
}

.err-page h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  margin-bottom: 0.25rem;
}
