/* ==========================================================================
   Oakward marketing site
   Design tokens mirror src/theme/styles.ts so the site and the app read as
   one product. If you change a colour in the app, change it here too.
   ========================================================================== */

:root {
  --ink:            #07060B;
  --bg:             #0B0810;
  --bg-alt:         #120D18;
  --panel:          #171719;
  --panel-alt:      #201E20;
  --panel-border:   #6A5126;
  --panel-border-d: #3B3020;
  --gold:           #C9A227;
  --gold-bright:    #F3D77A;
  --gold-deep:      #8B6914;
  --parchment:      #EFE6CE;
  --parchment-dim:  #E3D6AE;
  --text:           #F4EEDD;
  --muted:          #B8AD97;
  --faint:          #8A806E;
  --danger:         #D0576A;
  --success:        #4CAE78;

  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino,
           Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --radius: 16px;
  --shadow: 0 18px 48px rgba(0, 0, 0, .55);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: .2px; }
h1 { font-size: clamp(2.7rem, 7vw, 4.5rem); color: var(--gold-bright); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); color: var(--gold-bright); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); color: var(--parchment); }
p  { margin: 0 0 1.1em; color: var(--parchment-dim); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: .82em; }
.center { text-align: center; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: var(--ink); padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }

/* --- shared ornaments ----------------------------------------------------- */
.rule {
  display: flex; align-items: center; gap: 12px;
  margin: 0 auto 28px; max-width: 320px;
}
.rule::before, .rule::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}
.diamond {
  width: 8px; height: 8px; flex: none;
  border: 1px solid var(--gold); background: var(--ink);
  transform: rotate(45deg);
}

.eyebrow {
  display: inline-block;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px; font-weight: 700;
}

.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head p { font-size: 1.12rem; }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 10px;
  font-family: var(--serif); font-size: 1.06rem; font-weight: 700;
  border: 1px solid var(--gold-deep); cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(180deg, #E5C561, var(--gold) 55%, #A5811B);
  color: #1B1408; border-color: var(--gold-bright);
  box-shadow: 0 8px 22px rgba(201, 162, 39, .26);
}
.btn--primary:hover { box-shadow: 0 12px 30px rgba(201, 162, 39, .4); }
.btn--ghost {
  background: rgba(23, 23, 25, .72); color: var(--parchment);
  border-color: var(--panel-border); backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(32, 30, 32, .9); border-color: var(--gold-deep); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .cta-row, .cta-row--center { justify-content: center; }

/* --- header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 6, 11, .5);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.is-stuck {
  background: rgba(7, 6, 11, .93);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--gold-deep);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 18px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; color: var(--gold-bright); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold-deep); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--parchment-dim); font-size: 1rem; }
.nav a:hover { color: var(--gold-bright); text-decoration: none; }
.nav .btn { padding: 10px 20px; font-size: .98rem; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--panel-border); border-radius: 8px;
  color: var(--gold-bright); padding: 9px 12px; cursor: pointer; font-size: 1.1rem;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7, 6, 11, .98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gold-deep);
    padding: 8px 22px 24px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 2px; border-bottom: 1px solid var(--panel-border-d); }
  .nav .btn { margin-top: 16px; border-bottom: 1px solid var(--gold-bright); }
}

/* --- hero ----------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(70px, 11vw, 150px) 0 clamp(70px, 10vw, 130px);
  margin-top: -76px; padding-top: calc(clamp(70px, 11vw, 150px) + 76px);
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("../img/hero-bg.webp") center 32% / cover no-repeat;
  transform: scale(1.06);
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 28% 44%, rgba(7, 6, 11, .55), rgba(7, 6, 11, .84) 62%),
    linear-gradient(180deg, rgba(7, 6, 11, .82) 0%, rgba(11, 8, 16, .62) 40%, var(--bg) 97%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.hero__mark { width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--gold-deep); margin-bottom: 22px; box-shadow: 0 0 40px rgba(201, 162, 39, .22); }
.hero h1 { text-shadow: 0 4px 26px rgba(0, 0, 0, .85); margin-bottom: .3em; }
.hero__lede { font-size: clamp(1.12rem, 1.9vw, 1.35rem); color: var(--parchment); max-width: 40ch; text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.hero__note { font-size: .95rem; color: var(--muted); margin-top: 20px; }
.hero__note strong { color: var(--gold-bright); font-weight: 700; }

.hero__art { position: relative; min-height: 420px; }
.hero__art img { position: absolute; filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .7)); }
.hero__art .art-hero { width: 66%; right: 4%; bottom: 0; }
.hero__art .art-pet  { width: 40%; left: 0; bottom: 4%; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { min-height: 300px; order: -1; }
  .hero__art .art-hero { width: 46%; right: 12%; }
  .hero__art .art-pet { width: 30%; left: 8%; }
}
@media (max-width: 560px) { .hero__art { display: none; } }

/* --- pill strip ----------------------------------------------------------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--panel-border-d); background: rgba(23, 23, 25, .7);
  font-size: .92rem; color: var(--parchment-dim);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }

/* --- steps ---------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative; padding: 30px 24px 26px;
  background: var(--panel); border: 1px solid var(--panel-border-d); border-radius: var(--radius);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 24px;
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ink); border: 1px solid var(--gold);
  color: var(--gold-bright); font-size: 1.05rem; font-weight: 700;
}
.step img { width: 44px; height: 44px; margin-bottom: 14px; }
.step h3 { font-size: 1.22rem; margin-bottom: .35em; }
.step p { margin: 0; font-size: .98rem; color: var(--muted); }

/* --- feature blocks ------------------------------------------------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 96px); }
.feature:nth-child(even) .feature__media { order: 2; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .feature:nth-child(even) .feature__media { order: 0; }
}

.feature__media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--panel-border); box-shadow: var(--shadow);
  aspect-ratio: 3 / 1.55;
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__media::after {
  content: ""; position: absolute; inset: 6px; border: 1px solid rgba(139, 105, 20, .5);
  border-radius: 11px; pointer-events: none;
}
.feature__icon { width: 52px; height: 52px; margin-bottom: 14px; }
.feature ul { list-style: none; padding: 0; margin: 0; }
.feature li {
  position: relative; padding-left: 26px; margin-bottom: 9px;
  color: var(--muted); font-size: 1.02rem;
}
.feature li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border: 1px solid var(--gold); background: var(--ink);
  transform: rotate(45deg);
}

/* --- feature grid --------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }

.tile {
  padding: 26px 24px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--panel-border-d);
  transition: border-color .2s ease, transform .2s ease;
}
.tile:hover { border-color: var(--panel-border); transform: translateY(-3px); }
.tile img { width: 40px; height: 40px; margin-bottom: 12px; }
.tile h3 { font-size: 1.15rem; color: var(--gold-bright); margin-bottom: .3em; }
.tile p { margin: 0; font-size: .97rem; color: var(--muted); }

/* --- boss band ------------------------------------------------------------ */
.band { position: relative; overflow: hidden; }
.band__bg { position: absolute; inset: 0; background: url("../img/forest-ruins.webp") center / cover no-repeat; }
.band__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 6, 11, .95) 8%, rgba(7, 6, 11, .68) 55%, rgba(7, 6, 11, .92)); }
.band .wrap { position: relative; z-index: 2; }
.band__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.band__art {
  justify-self: center; align-self: end;
  width: auto; max-width: 100%; max-height: 460px;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .8));
}
@media (max-width: 860px) {
  .band__grid { grid-template-columns: 1fr; }
  .band__art { max-height: 340px; }
}

.hp { margin-top: 22px; max-width: 420px; }
.hp__labels { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.hp__track { height: 12px; border-radius: 999px; background: #2C141A; border: 1px solid var(--panel-border-d); overflow: hidden; }
.hp__fill { height: 100%; width: 62%; background: linear-gradient(90deg, #7A2432, var(--danger)); }

/* --- testimonials --------------------------------------------------------- */
.quotes { columns: 3 300px; column-gap: 20px; }
.quote {
  break-inside: avoid; margin: 0 0 20px;
  padding: 26px 26px 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--panel-border-d);
  position: relative;
}
.quote::before {
  content: "\201C"; position: absolute; top: 2px; left: 18px;
  font-size: 4.2rem; line-height: 1; color: var(--gold-deep); opacity: .5;
}
.quote p { position: relative; margin: 0 0 16px; color: var(--parchment-dim); font-size: 1.03rem; }
.quote footer { display: flex; align-items: center; gap: 12px; }
.quote .avatar {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--panel-alt); border: 1px solid var(--gold-deep);
  color: var(--gold-bright); font-size: 1rem; font-weight: 700;
}
.quote cite { font-style: normal; display: block; color: var(--text); font-size: .98rem; }
.quote .who { color: var(--faint); font-size: .85rem; }
.sample-note {
  margin: 26px auto 0; max-width: 640px; text-align: center;
  font-size: .88rem; color: var(--faint);
}

/* --- pricing -------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; justify-content: center; }
@media (max-width: 780px) { .plans { grid-template-columns: minmax(0, 420px); } }

.plan {
  padding: 34px 30px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--panel-border-d);
  display: flex; flex-direction: column;
}
.plan--best { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(201, 162, 39, .18), var(--shadow); }
.plan__tag {
  align-self: flex-start; margin-bottom: 14px; padding: 5px 13px; border-radius: 999px;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  background: rgba(201, 162, 39, .14); border: 1px solid var(--gold-deep); color: var(--gold-bright);
}
.plan h3 { color: var(--gold-bright); }
.plan__price { font-size: 2.9rem; color: var(--text); line-height: 1; margin: 8px 0 4px; }
.plan__price span { font-size: 1rem; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; }
.plan li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--muted); font-size: .99rem; }
.plan li::before { content: "\2713"; position: absolute; left: 2px; color: var(--success); }
.plan .btn { margin-top: auto; width: 100%; }

/* --- faq ------------------------------------------------------------------ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--panel-border-d); border-radius: 12px;
  background: var(--panel); margin-bottom: 12px; overflow: hidden;
}
.faq details[open] { border-color: var(--panel-border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 52px 20px 24px;
  font-size: 1.1rem; color: var(--parchment); position: relative; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 1.5rem; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq__body { padding: 0 24px 20px; }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* --- closing cta ---------------------------------------------------------- */
.closer { position: relative; overflow: hidden; text-align: center; }
.closer__bg { position: absolute; inset: 0; background: url("../img/gate.webp") center 30% / cover no-repeat; }
.closer__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg), rgba(7, 6, 11, .84) 45%, var(--ink)); }
.closer .wrap { position: relative; z-index: 2; }
.closer p { max-width: 560px; margin-left: auto; margin-right: auto; font-size: 1.1rem; }

/* --- footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--gold-deep); padding: 54px 0 40px; }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 34px; }
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: 1fr; gap: 26px; } }
.site-footer h4 { color: var(--gold); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--muted); font-size: .98rem; }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer .legal {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--panel-border-d);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  color: var(--faint); font-size: .88rem;
}

/* --- reveal animation ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { transform: none; }
}

/* --- article pages (privacy / support) ------------------------------------ */
.doc { padding: clamp(48px, 7vw, 84px) 0 clamp(64px, 9vw, 100px); }
.doc__inner { max-width: 780px; margin: 0 auto; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .25em; }
.doc h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-top: 1.8em; }
.doc h3 { font-size: 1.2rem; margin-top: 1.4em; }
.doc ul, .doc ol { color: var(--parchment-dim); padding-left: 22px; }
.doc li { margin-bottom: .5em; }
.doc .updated { color: var(--faint); font-size: .92rem; margin-bottom: 2em; }
.doc .callout {
  background: var(--panel); border: 1px solid var(--panel-border-d);
  border-left: 3px solid var(--gold); border-radius: 10px;
  padding: 20px 24px; margin: 1.6em 0;
}
.doc .callout p:last-child { margin-bottom: 0; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
