/* Owlstead — landing page v2. Dusk world. */

@font-face {
  font-family: "Bitter";
  src: url("../fonts/bitter-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b1017;
  --ink-2: #121924;
  --paper: #f2ede1;
  --paper-ink: #131a24;
  --paper-muted: #525c68;
  --amber: #e9a23b;
  --amber-deep: #b97a1d;
  --ivory: #f4efe4;
  --muted: #a2adbc;
  --line: rgba(244, 239, 228, 0.14);
  --display: "Bitter", Georgia, serif;
  --body: "Archivo", -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #2a3444; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.9rem, 6.5vw, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
p { margin: 0 0 1rem; max-width: 68ch; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--amber); color: var(--ink);
  padding: 0.6rem 1rem; z-index: 200; font-weight: 700;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(11, 16, 23, 0.88); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; gap: 2rem;
}
.wordmark {
  font-family: var(--display); font-weight: 800; font-size: 1.35rem;
  color: var(--ivory); text-decoration: none; letter-spacing: -0.01em;
  margin-right: auto;
}
.wordmark.small { font-size: 1.1rem; margin: 0; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ivory); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--amber); color: var(--ink);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: 0.9rem 1.6rem; border-radius: 10px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.btn:hover { background: #f2b45a; transform: translateY(-2px); }
.btn-small { padding: 0.6rem 1.1rem; font-size: 0.9rem; border-radius: 8px; }
.btn-large { font-size: 1.15rem; padding: 1.1rem 2.2rem; margin: 1.25rem 0; }
.quiet-link { color: var(--muted); font-size: 0.95rem; margin-left: 1.25rem; text-underline-offset: 4px; }
.quiet-link:hover { color: var(--ivory); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 0; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../img/owl-hero.jpg") 68% 30% / cover no-repeat, var(--ink);
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,16,23,0.97) 22%, rgba(11,16,23,0.72) 48%, rgba(11,16,23,0.18) 78%, rgba(11,16,23,0.05) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 7rem clamp(1.25rem, 4vw, 2.5rem) 4rem; }
.hero .lede { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--muted); max-width: 34rem; margin: 1.5rem 0 2.25rem; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0; }

/* ---------- proof (paper band) ---------- */
.proof { background: var(--paper); color: var(--paper-ink); }
.proof h2 { max-width: 20ch; }
.proof-lede { font-size: 1.2rem; max-width: 60ch; }
.src { color: var(--paper-muted); font-size: 0.95rem; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  margin-top: 3rem; padding-top: 2.5rem;
  border-top: 1px solid rgba(19, 26, 36, 0.18);
}
.stat strong { display: block; font-family: var(--display); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.02em; }
.stat span { display: block; margin: 0.35rem 0; font-size: 1rem; }
.stat em { display: block; font-style: normal; font-size: 0.85rem; color: var(--paper-muted); }

/* ---------- calculator ---------- */
.section-note { color: var(--muted); font-size: 1rem; margin-top: -0.5rem; }
.calc-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  margin-top: 3rem; align-items: start;
}
.field { margin-bottom: 2.25rem; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.75rem; }
.field label { font-weight: 600; }
.field output { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--amber); font-variant-numeric: tabular-nums; }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  background: #232e3f; outline-offset: 6px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--amber); border: 3px solid var(--ink);
  box-shadow: 0 0 0 1px var(--amber); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--amber); border: 3px solid var(--ink); cursor: pointer;
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: #232e3f; }

.calc-result {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.75rem, 4vw, 3rem);
  position: sticky; top: 6rem;
}
.result-label { color: var(--muted); margin: 0; }
.result-total {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(3rem, 6vw, 4.5rem); color: var(--amber);
  margin: 0.25rem 0 0; font-variant-numeric: tabular-nums; line-height: 1;
}
.result-sub { font-size: 1.25rem; color: var(--ivory); margin: 0.25rem 0 1.25rem; }
.result-detail { color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.25rem; margin-bottom: 1.75rem; }

/* ---------- solutions ---------- */
.solutions h2 { margin-bottom: clamp(3rem, 6vw, 5rem); }
.module {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
}
.module:last-child { border-bottom: 1px solid var(--line); }
.module.flip .module-text { order: 2; }
.module.flip .module-visual { order: 1; }
.pain { color: var(--muted); font-size: 1.1rem; }
.module ul { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.module li {
  position: relative; padding-left: 1.75rem; margin-bottom: 0.85rem; max-width: 44ch;
}
.module li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 0.65rem; height: 0.65rem; border-radius: 50%;
  background: var(--amber);
}
.module-visual img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* authored materials (labeled illustration) */
.tag {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); border: 1px solid var(--line);
  padding: 0.2rem 0.55rem; border-radius: 20px; font-weight: 600;
}
.calllog {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.75rem;
}
.calllog-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; margin-bottom: 1.25rem; }
.calllog-row { display: flex; gap: 0.9rem; padding: 0.85rem 0; border-top: 1px solid var(--line); align-items: flex-start; }
.calllog-row .dot { flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--amber); margin-top: 0.5em; }
.calllog-row strong { display: block; font-size: 0.95rem; }
.calllog-row span span, .calllog-row div span { color: var(--muted); font-size: 0.95rem; }

.reviewcard {
  background: var(--paper); color: var(--paper-ink);
  border-radius: 14px; padding: 2.25rem; width: 100%;
}
.tag-row { margin-bottom: 1rem; }
.tag-row .tag { color: var(--paper-muted); border-color: rgba(19,26,36,0.25); }
.stars { display: flex; gap: 0.3rem; margin-bottom: 1rem; }
.stars svg { width: 1.4rem; height: 1.4rem; fill: var(--amber-deep); }
.review-quote { font-family: var(--display); font-size: 1.35rem; line-height: 1.4; margin-bottom: 0.5rem; }
.review-src { color: var(--paper-muted); font-size: 0.9rem; margin: 0; }

/* ---------- how ---------- */
.how { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3rem; }
.step-word {
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  color: var(--amber); margin-bottom: 0.5rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--muted); margin: 0; }
.how .section-note { margin-top: 3rem; }

/* ---------- about / contact ---------- */
.about p { font-size: 1.15rem; color: var(--muted); }
.about p:first-of-type { color: var(--ivory); }
.contact { padding-bottom: clamp(5rem, 10vw, 9rem); }
.contact .btn-large { display: inline-block; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 2rem 0; }
.foot-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.foot-tag { color: var(--muted); font-size: 0.95rem; }
.foot-domain { margin-left: auto; color: var(--muted); font-size: 0.95rem; }

/* ---------- reveal motion (one restrained system) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .module { grid-template-columns: 1fr; gap: 2rem; }
  .module.flip .module-text { order: 1; }
  .module.flip .module-visual { order: 2; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(11,16,23,0.55) 0%, rgba(11,16,23,0.92) 62%, rgba(11,16,23,0.97) 100%);
  }
  .hero-bg { background-position: 62% 18%; }
  .hero-inner { padding-top: 9rem; }
  .foot-domain { margin-left: 0; }
}
