/* Companion Solo — shared stylesheet (Phase 1) */

:root {
  --bg: #faf8f4;
  --bg-2: #f3efe7;
  --card: #ffffff;
  --ink: #16171a;
  --ink-2: #4a4d55;
  --ink-3: #7a7d86;
  --line: #e6e1d6;
  --teal: #0f766e;
  --teal-2: #0b5d57;
  --teal-soft: #e6f2f0;
  --amber: #f2b33d;
  --amber-soft: #fdf1d6;
  --amber-ink: #7a4a05;
  --serif: 'Fraunces', 'Iowan Old Style', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max: 1100px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }

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

/* ─── NAV ─── */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250,248,244,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.wordmark { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.wordmark:hover { text-decoration: none; color: var(--teal-2); }
.nav-parent { font-size: 0.85rem; color: var(--ink-2); }
.nav-parent:hover { color: var(--teal); }

/* ─── SECTIONS ─── */
section { padding: 6rem 0; }
.section-kicker {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 1rem; }

/* ─── HERO ─── */
#top { padding: 7rem 0 5rem; }
.hero { max-width: 860px; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.8rem); margin-bottom: 1.6rem; }
.hero h1 em { font-style: italic; color: var(--teal); }
.hero-sub { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--ink-2); max-width: 720px; margin-bottom: 2.4rem; }

.btn {
  display: inline-block; padding: 0.95rem 1.8rem; border-radius: 6px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2;
  background: var(--teal); color: #fff; border: 1px solid var(--teal);
  cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--teal-2); color: #fff; text-decoration: none; transform: translateY(-1px); }

/* ─── DEMO (before / after) ─── */
#demo { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-grid {
  display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  gap: 2rem; align-items: stretch; margin-top: 2.5rem;
}
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.75rem; box-shadow: 0 1px 2px rgba(22,23,26,0.04), 0 12px 32px -20px rgba(22,23,26,0.25);
  display: flex; flex-direction: column;
}
.panel-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 1.2rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line);
}
.note { font-family: var(--serif); font-size: 1.05rem; line-height: 1.7; color: var(--ink-2); }
.note p { margin-bottom: 0.9rem; }
.note p:last-child { margin-bottom: 0; }
.note .pmark { font-family: var(--sans); font-size: 0.7rem; color: var(--ink-3); margin-right: 0.5rem; vertical-align: 0.15em; }

.review-rows { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.review-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.7rem 0.85rem; border-radius: 6px; background: var(--bg); border: 1px solid var(--line);
  font-size: 0.95rem;
}
.review-row.hit { background: var(--amber-soft); border-color: #f3dfae; }
.review-cat { font-weight: 600; color: var(--ink); }
.review-empty { font-size: 0.8rem; color: var(--ink-3); }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap;
  background: var(--amber); color: var(--amber-ink); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.02em; padding: 0.25rem 0.6rem; border-radius: 999px;
}
.chip .pref { font-family: var(--serif); font-weight: 500; opacity: 0.85; }
.tally {
  margin-top: 1.2rem; padding-top: 0.9rem; border-top: 1px solid var(--line);
  font-size: 0.9rem; color: var(--ink-2); display: flex; justify-content: space-between; gap: 1rem;
}
.tally strong { color: var(--teal); font-weight: 600; }

.demo-arrow { display: flex; align-items: center; justify-content: center; color: var(--teal); }
.demo-arrow svg { width: 44px; height: 44px; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

/* ─── PROOF POINTS ─── */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.card-num { font-family: var(--serif); font-size: 2rem; color: var(--teal); line-height: 1; }
.card p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; color: var(--ink); }

/* ─── PRINCIPLE BAND ─── */
#principle { background: var(--teal); color: #fff; padding: 5rem 0; }
#principle p {
  font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.3;
  max-width: 900px; margin: 0 auto; text-align: center;
}
#principle em { font-style: italic; color: var(--amber); }

/* ─── EARLY ACCESS FORM ─── */
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 2.5rem;
  max-width: 640px; margin-top: 2rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.field label span { font-weight: 400; color: var(--ink-3); }
.field input, .field select {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 0.75rem 0.9rem; width: 100%; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234a4d55' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem;
}
.field input:focus, .field select:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.form-note { margin-top: 1.4rem; font-size: 0.92rem; color: var(--ink-2); }
.form-status { margin-top: 1rem; font-size: 0.92rem; color: var(--amber-ink); background: var(--amber-soft); border-radius: 6px; padding: 0.7rem 0.9rem; }
.form-status.ok { color: var(--teal-2); background: var(--teal-soft); }
.form-status.err { color: #7f1d1d; background: #fdecec; }

/* ─── AGENCY BAND ─── */
#agencies { padding: 0 0 6rem; }
.band {
  background: var(--teal-soft); border: 1px solid #cfe3e0; border-radius: 12px; padding: 2rem 2.25rem;
  font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4;
}
.band a { font-weight: 600; }

/* ─── FOOTER ─── */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: 0.86rem; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; }
footer .sep { color: var(--ink-3); }
footer a { color: var(--ink-2); }
footer a:hover { color: var(--teal); }

/* ─── 404 ─── */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
.notfound h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1.2rem; }

/* ─── SCROLL REVEAL ─── */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .demo-arrow svg { animation: none; }
  .btn:hover { transform: none; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  section { padding: 4.5rem 0; }
  #top { padding: 4.5rem 0 3.5rem; }
  .demo-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .demo-arrow svg { transform: rotate(90deg); animation-name: nudge-down; }
  @keyframes nudge-down { 0%,100% { transform: rotate(90deg) translateX(0); } 50% { transform: rotate(90deg) translateX(6px); } }
  .cards { grid-template-columns: 1fr; }
  .form-card { padding: 1.75rem 1.25rem; }
  .panel { padding: 1.4rem 1.2rem; }
  .review-row { flex-wrap: wrap; }
  .band { padding: 1.5rem 1.25rem; }
  .nav .wrap { flex-wrap: wrap; }
}
