/* OneJaw — marketing site
   Voice and structure follow ~/vault/04 The Storefront/site-copy.md
   Numbers follow ~/vault/02 The Price Book/pricing.md */

:root {
  --ink: #14181d;
  --ink-soft: #454f5b;
  --ink-faint: #6b7683;
  --surface: #ffffff;
  --surface-warm: #f5f4f1;
  --surface-dark: #14181d;
  --line: #dedcd6;
  --line-dark: #2c333c;
  --accent: #c2410c;
  --accent-bright: #f97316;
  --accent-wash: #fdf3ec;
  --ok: #15803d;

  --wrap: 1080px;
  --narrow: 720px;
  --radius: 6px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.021em;
  margin: 0 0 0.5em;
  font-weight: 800;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.22rem; font-weight: 750; letter-spacing: -0.012em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }

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

.narrow { max-width: var(--narrow); }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  font-weight: 850;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}

.logo span { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
}

.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  border-radius: var(--radius);
  padding: 14px 24px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.25;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover { background: #a53709; border-color: #a53709; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover { border-color: var(--ink); }

.btn-sm { padding: 9px 17px; font-size: 0.93rem; }

.btn-on-dark {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: #14181d;
}

.btn-on-dark:hover { background: #fb8b3c; border-color: #fb8b3c; }

.textlink {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(194, 65, 12, 0.3);
}

.textlink:hover { border-bottom-color: var(--accent); }

/* ---------- sections ---------- */

section { padding: 76px 0; }

.section-warm { background: var(--surface-warm); }

.section-dark {
  background: var(--surface-dark);
  color: #e6e9ed;
}

.section-dark h1,
.section-dark h2,
.section-dark h3 { color: #fff; }

.section-dark p { color: #b9c1ca; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.76rem;
  font-weight: 750;
  color: var(--accent);
  margin: 0 0 14px;
}

.section-dark .eyebrow { color: var(--accent-bright); }

.lede {
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.section-dark .lede { color: #b9c1ca; }

/* ---------- hero ---------- */

.hero {
  padding: 84px 0 76px;
  border-bottom: 1px solid var(--line);
}

.hero h1 { max-width: 16ch; }

.hero .lede { font-size: 1.2rem; margin-bottom: 32px; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 26px;
  font-size: 0.93rem;
  color: var(--ink-faint);
}

/* ---------- cost list ---------- */

.cost-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
  display: grid;
  gap: 14px;
}

.cost-list li {
  padding-left: 30px;
  position: relative;
  max-width: 68ch;
}

.cost-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 3px;
  background: var(--accent);
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 26px;
  margin-top: 42px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.section-dark .step {
  background: #1c222a;
  border-color: var(--line-dark);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.step p { color: var(--ink-soft); margin-bottom: 0; }
.section-dark .step p { color: #b9c1ca; }

/* ---------- system cards ---------- */

.systems { display: grid; gap: 22px; margin-top: 40px; }

.system {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 30px 32px;
  background: var(--surface);
}

.system h3 { margin-bottom: 14px; }

.system dl { margin: 0; }

.system dt {
  font-weight: 750;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  color: var(--ink-faint);
  margin-bottom: 5px;
}

.system dd {
  margin: 0 0 18px;
  color: var(--ink-soft);
  max-width: 72ch;
}

.system dd:last-child { margin-bottom: 0; }

.system .plain {
  color: var(--ink);
  font-style: italic;
}

/* ---------- flow ---------- */

.flow {
  counter-reset: flow;
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  gap: 20px;
}

.flow li {
  counter-increment: flow;
  position: relative;
  padding: 20px 24px 20px 66px;
  background: var(--surface-warm);
  border-radius: var(--radius);
  max-width: 74ch;
}

.flow li::before {
  content: counter(flow);
  position: absolute;
  left: 22px;
  top: 20px;
  font-weight: 850;
  font-size: 1.28rem;
  color: var(--accent);
}

/* ---------- calculator ---------- */

.calc {
  background: #1c222a;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 34px;
  margin-top: 38px;
}

.calc-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 22px;
}

.calc-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8c97a3;
  margin-bottom: 9px;
}

.calc-field input {
  width: 100%;
  font: inherit;
  font-weight: 700;
  font-size: 1.16rem;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid #39424d;
  background: #12171d;
  color: #fff;
}

.calc-field input:focus {
  outline: 2px solid var(--accent-bright);
  outline-offset: 1px;
  border-color: transparent;
}

.calc-out {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 20px;
  margin-top: 32px;
  padding-top: 30px;
  border-top: 1px solid var(--line-dark);
}

.calc-out div span {
  display: block;
  font-size: 0.79rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8c97a3;
  margin-bottom: 6px;
}

.calc-out div strong {
  font-size: clamp(1.55rem, 3.6vw, 2.15rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  color: #fff;
  line-height: 1.1;
}

.calc-out .headline strong { color: var(--accent-bright); }

.calc-formula {
  margin-top: 26px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  color: #8c97a3;
  line-height: 1.9;
}

/* ---------- pricing ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
  margin-top: 42px;
  align-items: start;
}

.tier {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tier-featured {
  border: 2px solid var(--accent);
  box-shadow: 0 12px 34px rgba(20, 24, 29, 0.09);
}

.tier-flag {
  display: inline-block;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 5px 11px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.tier h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }

.tier-tag {
  color: var(--ink-faint);
  font-size: 0.97rem;
  font-style: italic;
  margin-bottom: 22px;
}

.tier-price {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.tier-price .amount {
  font-size: 2.15rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.tier-price .per { color: var(--ink-faint); font-weight: 600; font-size: 1rem; }

.tier-price .setup {
  margin-top: 7px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 11px;
}

.tier ul li {
  padding-left: 27px;
  position: relative;
  font-size: 0.98rem;
}

.tier ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 800;
}

.tier ul li.off { color: var(--ink-faint); }
.tier ul li.off::before { content: "—"; color: var(--line); }

.tier-fit {
  font-size: 0.93rem;
  color: var(--ink-faint);
  margin-bottom: 24px;
}

.tier .btn { margin-top: auto; width: 100%; }

.price-note {
  margin-top: 34px;
  font-size: 0.95rem;
  color: var(--ink-faint);
  max-width: 74ch;
}

/* ---------- expectations ---------- */

.expect {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  gap: 22px;
}

.expect li {
  padding-left: 34px;
  position: relative;
  max-width: 72ch;
}

.expect li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 850;
  font-size: 1.15rem;
}

/* ---------- quote / placeholder ---------- */

.quote {
  border-left: 4px solid var(--accent);
  padding: 6px 0 6px 26px;
  margin: 0;
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 68ch;
}

.placeholder {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 30px;
  color: var(--ink-faint);
  background: var(--surface-warm);
  font-size: 0.95rem;
}

.placeholder strong { color: var(--ink); }

.booking-slot {
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 60px 30px;
  text-align: center;
  background: var(--surface-warm);
  color: var(--ink-faint);
  margin-top: 34px;
}

/* ---------- final CTA ---------- */

.cta-band { text-align: center; }
.cta-band .lede { margin: 0 auto 30px; }
.cta-band h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--surface-dark);
  color: #98a2ad;
  padding: 52px 0 44px;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.site-footer .logo { color: #fff; display: block; margin-bottom: 12px; }

.site-footer p { max-width: 42ch; margin-bottom: 0; }

.site-footer a { color: #fff; text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }

.footer-nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-legal {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.87rem;
  color: #6b7683;
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .hero { padding: 60px 0 54px; }
  .header-inner { min-height: 64px; gap: 16px; }
  .site-nav { gap: 18px; width: 100%; order: 3; }
  .calc { padding: 26px 22px; }
  .system { padding: 26px 24px; }
}
