/* The Okay Company: warm paper, ink, one gold accent */
:root {
  --bg: #f4efe3;
  --paper: #fbf8f1;
  --ink: #16150f;
  --muted: #5d5a4f;
  --line: #dcd5c4;
  --gold: #e8b33a;
  --gold-ink: #8a5f00;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16150f;
    --paper: #1f1e17;
    --ink: #f4efe3;
    --muted: #b3ad9c;
    --line: #34322a;
    --gold-ink: #f0c25a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, env(safe-area-inset-left)) 14px max(16px, env(safe-area-inset-right));
  padding-inline: clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { border-radius: 8px; }
.brand-word { font-size: 22px; font-weight: 700; letter-spacing: -0.04em; }
.dot { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta { color: var(--ink); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 18px 30px; font-size: 18px; }

/* Hero */
main > section { padding-inline: clamp(16px, 6vw, 96px); }
.hero { position: relative; max-width: 1240px; margin: 0 auto; padding-top: clamp(64px, 12vw, 150px); padding-bottom: clamp(64px, 10vw, 130px); }
.hero h1 { position: relative; display: inline-block; font-size: clamp(46px, 9vw, 116px); letter-spacing: -0.045em; line-height: 0.98; }
.hero h1 em { position: relative; }
.strike {
  position: absolute; left: -0.04em; top: 0.56em; height: 0.075em;
  width: calc(100% + 0.08em); background: var(--gold); border-radius: 4px;
}
.hero-fix {
  margin: 14px 0 0; font-size: clamp(24px, 3.6vw, 42px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1;
}
.hero-fix em { color: var(--gold-ink); }
.lede { max-width: 560px; margin: 30px 0 34px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.hero-acts { display: flex; flex-wrap: wrap; gap: 12px; }

.okay-orb { position: absolute; right: clamp(16px, 6vw, 96px); bottom: 110px; width: 280px; margin: 0; pointer-events: none; }
.okay-orb svg { width: 100%; height: auto; overflow: visible; }
.orb-ring { fill: none; stroke: var(--ink); stroke-width: 14; opacity: .9; }
.orb-check { fill: none; stroke: var(--gold); stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 110; }
.js .hero .strike { width: 0; }
.js .hero-fix { opacity: 0; transform: translateY(10px); }
.js .orb-check { stroke-dashoffset: 110; }
@media (max-width: 1180px) {
  .okay-orb { position: static; width: clamp(96px, 14vw, 140px); margin: 0 0 28px; order: -1; }
  .hero { display: flex; flex-direction: column; align-items: flex-start; }
  .hero h1 { order: 0; }
}

/* Reveal sequence (site.js adds .go) */
.hero.go .strike { animation: strike .5s cubic-bezier(.6,0,.2,1) .9s forwards; }
.hero.go .hero-fix { animation: rise .6s cubic-bezier(.2,.7,.2,1) 1.35s forwards; }
.hero.go .orb-check { animation: draw .7s cubic-bezier(.6,0,.2,1) 1.5s forwards; }
@keyframes strike { from { width: 0; } to { width: calc(100% + 0.08em); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .js .hero .strike { width: calc(100% + 0.08em); animation: none !important; }
  .js .hero-fix { opacity: 1; transform: none; animation: none !important; }
  .js .orb-check { stroke-dashoffset: 0; animation: none !important; }
}

/* Sections */
.sec-head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2, .company h2 { font-size: clamp(32px, 4.6vw, 56px); }
.products, .how { max-width: 1240px; margin: 0 auto; padding-block: clamp(56px, 8vw, 110px); }
.products { border-top: 1px solid var(--line); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: clamp(24px, 3vw, 40px); min-height: 420px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 28px;
  text-decoration: none; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .35s;
}
.card::before {
  content: ""; position: absolute; inset: auto -30% -55% auto; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: var(--tone); opacity: .14; transition: opacity .35s, transform .5s cubic-bezier(.2,.7,.2,1);
}
.card:hover { transform: translateY(-4px); border-color: var(--tone); box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--tone) 70%, transparent); }
.card:hover::before { opacity: .24; transform: scale(1.12); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-name { font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; letter-spacing: -0.04em; }
.card-name span { color: var(--tone); }
.chip { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--tone-soft); color: #16150f; white-space: nowrap; }
.card-line { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.1vw, 26px); line-height: 1.25; }
.card-body { color: var(--muted); max-width: 470px; }
.card-list { display: flex; flex-wrap: wrap; gap: 8px; }
.card-list span { font-size: 13px; font-weight: 500; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.card-foot { position: relative; margin-top: auto; padding-top: 10px; font-weight: 600; display: flex; justify-content: space-between; }
.card-foot b { transition: transform .3s; }
.card:hover .card-foot b { transform: translate(3px, -3px); }

.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
@media (max-width: 980px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rules { grid-template-columns: 1fr; } }
.rules li { padding: 26px 24px 30px 0; border-bottom: 1px solid var(--line); }
.rules .n { display: block; font-family: var(--serif); font-size: 15px; color: var(--gold-ink); margin-bottom: 26px; }
.rules h3 { font-size: 21px; margin-bottom: 10px; }
.rules p { margin: 0; color: var(--muted); font-size: 16px; }

.company { background: var(--ink); color: var(--bg); padding-block: clamp(64px, 9vw, 120px); }
.company-in { max-width: 1240px; margin: 0 auto; }
.company h2 { max-width: 780px; }
.company em { color: var(--gold); }
.company .eyebrow { color: var(--gold); }
.company p:not(.eyebrow) { max-width: 640px; margin: 26px 0 0; font-size: 18px; opacity: .78; }
.company a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.facts { display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 80px); margin: 52px 0 0; }
.facts dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.facts dd { margin: 6px 0 0; font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.04em; }

.contact { max-width: 900px; margin: 0 auto; padding-block: clamp(72px, 10vw, 140px); text-align: center; }
.contact h2 { font-size: clamp(30px, 4.4vw, 52px); margin-bottom: 36px; }
.fine { color: var(--muted); font-size: 15px; margin: 20px 0 0; }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
  padding: 28px clamp(16px, 6vw, 96px) max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.foot .brand-word { color: var(--ink); font-size: 20px; }
.foot nav { display: flex; gap: 20px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
section[id] { scroll-margin-top: 72px; }
