/* ─────────────────────────────────────────
   Paper Astronaut — Precision Editorial
   ───────────────────────────────────────── */

/* 0 · Design Tokens
   ───────────────────────────────────────── */
:root {
  --bg:           #FFFFFF;
  --bg-subtle:    #F6F5F2;
  --ink:          #0C0C0B;
  --ink-mid:      #3A3A38;
  --ink-soft:     #747472;
  --ink-faint:    #ADADAB;
  --rule:         #E6E5E2;
  --accent:       #0B3354;
  --accent-hover: #0F4873;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 5rem;
  --s7: 8rem;

  --max:      700px;
  --max-wide: 1080px;
}

/* 1 · Reset & Base
   ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-mid);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { color: var(--ink); font-weight: 500; }

/* 2 · Site Header
   ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

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

.brand-logo {
  width: clamp(130px, 18vw, 195px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a:hover::after { width: 100%; }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { width: 100%; }

/* 3 · Site Footer
   ───────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: var(--s3) var(--s4);
}

.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}

/* 4 · Page-load animations
   ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim   { animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both; }
.anim-d1 { animation-delay: 0.05s; }
.anim-d2 { animation-delay: 0.18s; }
.anim-d3 { animation-delay: 0.32s; }
.anim-d4 { animation-delay: 0.46s; }

/* 5 · Hero
   ───────────────────────────────────────── */
.hero {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, var(--s7)) var(--s4) var(--s6);
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #C6C5C1 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.4;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 85%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s3);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.75rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: var(--s3);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 520px;
  line-height: 1.7;
}

/* 6 · About section
   ───────────────────────────────────────── */
.about {
  border-top: 1px solid var(--rule);
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: var(--s6) var(--s4);
  display: grid;
  gap: var(--s4);
}

@media (min-width: 700px) {
  .about {
    grid-template-columns: 200px 1fr;
    gap: var(--s6);
    align-items: start;
  }
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0.25rem;
}

.about-body p {
  color: var(--ink-mid);
  margin-bottom: var(--s3);
}

.about-body p:last-child { margin-bottom: 0; }

/* 7 · Products
   ───────────────────────────────────────── */
.products-section {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--s4) var(--s6);
}

.products-header {
  border-top: 1px solid var(--rule);
  padding: var(--s5) 0 var(--s5);
  display: grid;
  gap: var(--s3);
  align-items: baseline;
}

@media (min-width: 700px) {
  .products-header {
    grid-template-columns: 200px 1fr;
    gap: var(--s6);
  }
}

.products-header-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.product-card {
  border-top: 1px solid var(--rule);
  padding: var(--s6) 0;
  display: grid;
  gap: var(--s5);
  align-items: center;
}

@media (min-width: 768px) {
  .product-card {
    grid-template-columns: 200px 1fr;
    gap: var(--s6);
  }
}

.product-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
}

.product-icon {
  width: min(160px, 50vw);
  border-radius: 24%;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.07),
    0 24px 56px rgba(0,0,0,0.06);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.product-icon:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.04),
    0 16px 40px rgba(0,0,0,0.1),
    0 32px 72px rgba(0,0,0,0.08);
}

.product-wordmark {
  width: min(190px, 75vw);
  max-width: 100%;
  opacity: 0.8;
}

.product-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: var(--s1);
  line-height: 1.05;
}

.product-tagline {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: var(--s3);
  line-height: 1.5;
}

.product-body > p {
  margin-bottom: var(--s3);
  color: var(--ink-mid);
}

.product-highlight {
  background: var(--bg-subtle);
  border-left: 2px solid var(--accent);
  padding: var(--s3) var(--s4);
  margin: var(--s4) 0;
  font-size: 0.9375rem;
  color: var(--ink-mid);
  line-height: 1.65;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-top: var(--s3);
}

.feature-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-mid);
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.disclaimer {
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--ink-faint);
  line-height: 1.65;
}

/* 8 · Form pages
   ───────────────────────────────────────── */
.form-page {
  max-width: 580px;
  margin: 0 auto;
  padding: var(--s6) var(--s4) var(--s7);
}

.form-intro {
  margin-bottom: var(--s5);
}

.form-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: var(--s2);
}

.form-intro p {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.form-error {
  margin-bottom: var(--s4);
  padding: 0.875rem var(--s3);
  border: 1px solid #DDBBBC;
  background: #FDF5F6;
  color: #6B2A32;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.form-card {
  border: 1px solid var(--rule);
  padding: var(--s4) var(--s5);
  position: relative;
}

@media (max-width: 480px) {
  .form-card { padding: var(--s3); }
}

.field {
  margin-bottom: 1.5rem;
}

.field:last-of-type { margin-bottom: var(--s3); }

.field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.field .hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink-mid);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23ADADAB' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.6;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 51, 84, 0.1);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
}

.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-faint);
}

.form-actions {
  margin-top: var(--s4);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.875rem;
  padding: 0 2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-submit:hover { background: var(--accent-hover); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.form-footnote {
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 9 · Thanks pages
   ───────────────────────────────────────── */
.thanks-page {
  max-width: 520px;
  margin: 0 auto;
  padding: var(--s7) var(--s4);
  text-align: center;
}

.thanks-mark {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s4);
}

.thanks-mark svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thanks-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin-bottom: var(--s3);
  line-height: 1.1;
}

.thanks-page p {
  color: var(--ink-soft);
  margin-bottom: var(--s3);
  font-size: 1.0625rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.btn-back:hover { gap: 0.7rem; text-decoration: none; }

/* 10 · Responsive adjustments
   ───────────────────────────────────────── */
@media (max-width: 600px) {
  .header-inner    { padding: 1rem var(--s3); }
  .site-nav        { gap: 1.5rem; }
  .hero            { padding: var(--s5) var(--s3) var(--s4); }
  .about           { padding: var(--s4) var(--s3); }
  .products-section{ padding: 0 var(--s3) var(--s4); }
  .form-page       { padding: var(--s4) var(--s3) var(--s5); }
  .thanks-page     { padding: var(--s5) var(--s3); }
  .site-footer     { padding: var(--s3) var(--s3); }
}
