/* YourFinOps v1 "Obsidian" - design-kit register, craft pass */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --obsidian: #0A0C0E; --panel: #0E1114; --panel-2: #101318; --graphite: #16191D;
  --line: #2A2E34; --line-dim: #1A1E23; --line-mid: #22262C;
  --ivory: #F5F2EB; --warm: #E8E4DB; --platinum: #C8CDD3; --silver: #8A9199; --dim: #6A727B;
  --gold: #C6A15B; --gold-hi: #D9AE6A; --gold-deep: #B89050;
  --sage: #8FA886; --clay: #C97B66;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
html { scroll-behavior: smooth; }
body { background: var(--obsidian); font-family: 'Inter', sans-serif; color: var(--platinum); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
.page { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.mono { font-family: 'IBM Plex Mono', monospace; }

.mark .ring { color: var(--platinum); }
.mark .needle { stroke: var(--gold); }
.mark .pivot { fill: var(--gold); }

nav.top { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line-dim); gap: 20px; flex-wrap: wrap; }
.nav-brand { display: flex; align-items: center; gap: 14px; }
.wordmark { font-size: 13px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--warm); font-weight: 500; }
.wordmark .g { color: var(--gold); }
.nav-links { display: flex; gap: 34px; font-size: 13.5px; color: var(--silver); }
.nav-links a { transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--warm); }
.nav-cta { font-size: 12px; padding: 10px 22px; border: 1px solid var(--gold); border-radius: 7px; color: var(--gold-hi);
  font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.nav-cta:hover { background: var(--gold); color: #14100A; }

/* Split hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; padding: 96px 0 84px;
  background: radial-gradient(85% 110% at 20% 0%, #171C22 0%, transparent 62%); }
.hero .kicker { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 26px; }
.hero h1 { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(38px, 4.6vw, 58px); line-height: 1.08; color: var(--ivory); letter-spacing: -0.01em; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--gold-hi); padding-bottom: 2px; }
.hero p.lede { font-size: 17px; line-height: 1.65; color: var(--silver); max-width: 480px; margin-bottom: 38px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary { display: inline-block; background: linear-gradient(135deg, var(--gold-hi), var(--gold-deep)); color: #14100A;
  font-weight: 600; font-size: 14px; padding: 15px 32px; border-radius: 7px; border: none; cursor: pointer; font-family: 'Inter', sans-serif;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease); box-shadow: 0 8px 24px rgba(198, 161, 91, 0.14); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(198, 161, 91, 0.22); }
.btn-primary:active { transform: translateY(1px) scale(0.99); box-shadow: 0 4px 12px rgba(198, 161, 91, 0.16); }
.btn-ghost { display: inline-block; border: 1px solid var(--line); color: var(--platinum); font-size: 14px; padding: 15px 32px; border-radius: 7px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease); }
.btn-ghost:hover { border-color: var(--silver); color: var(--warm); }
.btn-ghost:active { transform: translateY(1px); }

/* Hero entrance - the page's one authored moment */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * , .hero-visual { opacity: 0; transform: translateY(14px); animation: rise 0.9s var(--ease) forwards; }
  .hero-copy .kicker { animation-delay: 0.05s; }
  .hero-copy h1 { animation-delay: 0.14s; }
  .hero-copy .lede { animation-delay: 0.24s; }
  .hero-copy .btn-row { animation-delay: 0.34s; }
  .hero-visual { animation-delay: 0.3s; animation-duration: 1.1s; }
  @keyframes rise { to { opacity: 1; transform: translateY(0); } }
  [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  [data-reveal].in { opacity: 1; transform: translateY(0); }
}

/* Quarterly scorecard - real product preview */
.score-card { background: linear-gradient(170deg, var(--graphite) 0%, var(--panel) 65%); border: 1px solid var(--line-mid); border-radius: 12px;
  padding: 26px 26px 22px; box-shadow: 0 24px 60px rgba(4, 6, 8, 0.55); }
.score-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.score-title { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--silver); }
.score-pill { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--gold-hi); border: 1px solid rgba(198,161,91,0.4); border-radius: 999px; padding: 3px 12px; }
.score-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.score-metrics > div { background: rgba(10, 12, 14, 0.6); border: 1px solid var(--line-dim); border-radius: 9px; padding: 13px 15px; }
.score-metrics span { display: block; font-size: 11px; color: var(--dim); margin-bottom: 6px; }
.score-metrics strong { font-family: 'IBM Plex Mono', monospace; font-size: 19px; font-weight: 500; color: var(--warm); }
.score-rows { border-top: 1px solid var(--line-dim); }
.score-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--line-dim); font-size: 13.5px; color: var(--platinum); }
.status { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.status.ok { color: var(--sage); }
.status.warn { color: var(--clay); }
.score-next { margin-top: 18px; border-left: 1px solid var(--gold); padding-left: 16px; }
.score-next span { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.score-next p { font-size: 13.5px; color: var(--silver); line-height: 1.5; }

.proof { padding: 26px 0; text-align: center; border-bottom: 1px solid var(--line-dim); }
.proof span { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }

.section { padding: 92px 0 0; }
.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head h2 { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(30px, 4vw, 42px); color: var(--ivory); line-height: 1.14; margin-bottom: 16px; }
.accent-word { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; color: var(--gold-hi); }
.sec-head p { font-size: 15.5px; line-height: 1.65; color: var(--silver); max-width: 520px; }

.domains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.domain { border: 1px solid var(--line-mid); border-radius: 12px; padding: 26px 22px; background: var(--panel);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.domain:hover { border-color: #3A3F47; transform: translateY(-2px); }
.domain .num { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--gold); letter-spacing: 0.2em; margin-bottom: 14px; }
.domain h3 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 19px; color: var(--warm); margin-bottom: 8px; }
.domain p { font-size: 12.5px; line-height: 1.55; color: #7A828A; }
.domain.key { border-color: #4A3D22; background: linear-gradient(160deg, #16130C 0%, var(--panel) 70%); }
.domain.key:hover { border-color: #64522E; }
.domain.fill { display: flex; align-items: center; justify-content: center; border-style: dashed; background: transparent; }
.domain.fill:hover { transform: none; border-color: var(--line-mid); }
.domain.fill p { text-align: center; color: var(--gold); font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; line-height: 2; }

/* Cadence timeline */
.rhythm { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; padding-top: 10px; }
.rhythm::before { content: ""; position: absolute; top: 15px; left: 2%; right: 2%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent); }
.step { position: relative; padding-top: 34px; }
.node { position: absolute; top: 10px; left: 0; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--gold); background: var(--obsidian); }
.step .when { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--warm); display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.step .when span { color: var(--gold); font-size: 11px; }
.step p { font-size: 13px; line-height: 1.6; color: var(--silver); max-width: 190px; }

.stats-section { padding-top: 84px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid var(--line-dim); border-bottom: 1px solid var(--line-dim); padding: 44px 0; }
.stat { text-align: left; padding: 0 8px; }
.stat strong { display: block; font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.02em; color: var(--ivory); margin-bottom: 8px; }
.stat span { font-size: 13px; color: var(--silver); line-height: 1.5; }

.stack { display: grid; grid-template-columns: 1fr 1fr 1.18fr; gap: 18px; align-items: stretch; }
.tier { border: 1px solid var(--line-mid); border-radius: 12px; padding: 34px 30px; background: var(--panel); display: flex; flex-direction: column;
  transition: border-color 0.3s var(--ease); }
.tier:hover { border-color: #3A3F47; }
.tier.flag { border-color: #5A4A28; background: linear-gradient(165deg, #17130B 0%, var(--panel) 60%); padding: 42px 36px; }
.tier.flag:hover { border-color: #74603A; }
.tier .t-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--silver); margin-bottom: 16px; }
.tier.flag .t-label { color: var(--gold); }
.tier h3 { font-family: 'Fraunces', serif; font-weight: 350; font-size: 24px; color: var(--ivory); margin-bottom: 12px; }
.tier.flag h3 { font-size: 27px; }
.tier p { font-size: 13.5px; line-height: 1.6; color: var(--silver); flex: 1; }
.tier .price { font-family: 'IBM Plex Mono', monospace; font-size: 15px; color: var(--warm); margin: 22px 0 16px; }
.tier .go { text-align: center; padding: 13px; border-radius: 7px; border: 1px solid var(--line); font-size: 12px; color: var(--platinum);
  font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.14em; text-transform: uppercase; display: block;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease); }
.tier .go:hover { border-color: var(--gold); color: var(--gold-hi); }
.tier .go:active { transform: scale(0.99); }
.tier.flag .go { background: linear-gradient(135deg, var(--gold-hi), var(--gold-deep)); color: #14100A; border: none; font-weight: 600; font-family: 'Inter', sans-serif; letter-spacing: 0.02em; font-size: 14px; }
.tier.flag .go:hover { box-shadow: 0 10px 26px rgba(198, 161, 91, 0.22); }

/* Tools split */
.tools-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.tools-intro h2 { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(30px, 4vw, 42px); color: var(--ivory); line-height: 1.14; margin-bottom: 16px; }
.tools-intro p { font-size: 15.5px; line-height: 1.65; color: var(--silver); max-width: 400px; }
.tool-list { border-top: 1px solid var(--line-mid); }
.tool-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 6px; border-bottom: 1px solid var(--line-mid);
  transition: background 0.3s var(--ease); }
.tool-row:hover { background: rgba(22, 25, 29, 0.5); }
.tool-row h3 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 19px; color: var(--warm); margin-bottom: 5px; }
.tool-row p { font-size: 13px; line-height: 1.55; color: #7A828A; max-width: 420px; }
.tool-row .arrow { color: var(--gold); font-size: 18px; transition: transform 0.25s var(--ease); }
.tool-row:hover .arrow { transform: translateX(5px); }

.magnet { border: 1px solid #4A3D22; border-radius: 14px; padding: 58px 60px; text-align: center;
  background: radial-gradient(80% 120% at 50% 0%, #1A150C 0%, var(--panel) 70%); }
.magnet h2 { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(28px, 4vw, 38px); color: var(--ivory); margin-bottom: 14px; }
.magnet > p { font-size: 15px; color: var(--silver); line-height: 1.65; max-width: 500px; margin: 0 auto 32px; }
.field-row { display: flex; gap: 12px; max-width: 560px; margin: 0 auto; flex-wrap: wrap; }
.field-row input { flex: 1; min-width: 180px; background: var(--obsidian); border: 1px solid var(--line); border-radius: 7px; padding: 14px 18px;
  font-size: 14px; color: var(--warm); font-family: 'Inter', sans-serif; transition: border-color 0.25s var(--ease); }
.field-row input::placeholder { color: var(--dim); }
.field-row input:focus { outline: none; border-color: var(--gold); }
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { margin-top: 16px; font-size: 11.5px; color: var(--dim); }
.form-error { margin-top: 12px; font-size: 12.5px; color: var(--clay); min-height: 16px; }
.form-success { display: none; }
.form-success.on { display: block; }
.form-success strong { display: block; font-family: 'Fraunces', serif; font-weight: 400; font-size: 22px; color: var(--ivory); margin-bottom: 8px; }
.form-success p { font-size: 13.5px; color: var(--silver); margin-bottom: 20px; }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line-dim); padding: 20px 4px; }
.faq summary { cursor: pointer; font-family: 'Fraunces', serif; font-weight: 400; font-size: 18px; color: var(--warm); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color 0.2s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ivory); }
.faq summary::after { content: "+"; color: var(--gold); font-family: 'IBM Plex Mono', monospace; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--silver); max-width: 640px; }

.final { text-align: center; padding: 110px 0 100px; background: radial-gradient(70% 100% at 50% 100%, #14181D 0%, transparent 70%); }
.final h2 { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(28px, 4.2vw, 40px); color: var(--ivory); margin-bottom: 34px; }

footer { border-top: 1px solid var(--line-dim); padding: 44px 0 56px; display: flex; justify-content: space-between; gap: 60px; flex-wrap: wrap; }
footer .f-brand { font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--silver); white-space: nowrap; }
footer .f-brand span { color: var(--gold); }
footer .fine { font-size: 11px; line-height: 1.7; color: var(--dim); max-width: 560px; }
footer .f-links { display: flex; gap: 24px; font-size: 12.5px; color: var(--silver); }
footer .f-links a:hover { color: var(--warm); }

/* Calculators */
.calc-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.calc-tabs button { background: var(--panel); border: 1px solid var(--line-mid); border-radius: 7px; padding: 12px 20px; color: var(--silver);
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease); }
.calc-tabs button:hover { border-color: var(--silver); color: var(--warm); }
.calc-tabs button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-hi); background: linear-gradient(160deg, #16130C 0%, var(--panel) 70%); }
.calc-panel { display: none; max-width: 900px; margin: 0 auto; border: 1px solid var(--line-mid); border-radius: 12px; background: var(--panel); padding: 44px 48px; }
.calc-panel.on { display: block; }
.calc-panel .eyebrow { display: none; }
.calc-panel h2 { font-family: 'Fraunces', serif; font-weight: 300; font-size: 30px; color: var(--ivory); margin-bottom: 10px; }
.calc-panel .intro { font-size: 14px; line-height: 1.6; color: var(--silver); max-width: 560px; margin-bottom: 32px; }
.calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 22px; margin-bottom: 32px; }
.calc-field span.lbl { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver); margin-bottom: 8px; }
.inp { display: flex; align-items: center; background: var(--obsidian); border: 1px solid var(--line); border-radius: 7px; padding: 0 14px; transition: border-color 0.25s var(--ease); }
.inp:focus-within { border-color: var(--gold); }
.inp span { color: var(--dim); font-family: 'IBM Plex Mono', monospace; font-size: 12px; }
.inp input, .inp select { flex: 1; background: transparent; border: none; outline: none; padding: 13px 8px; color: var(--warm); font-family: 'IBM Plex Mono', monospace; font-size: 14px; width: 100%; }
.inp select option { background: var(--graphite); }
.checks { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--platinum); grid-column: 1 / -1; }
.checks label { display: flex; gap: 10px; align-items: center; }
.checks input { accent-color: var(--gold); }
.results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.result { border: 1px solid var(--line-mid); border-radius: 9px; padding: 16px; background: var(--obsidian); }
.result span { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver); margin-bottom: 8px; }
.result strong { font-family: 'IBM Plex Mono', monospace; font-size: 17px; font-weight: 500; color: var(--warm); }
.result.hot { border-color: #4A3D22; }
.result.hot strong { color: var(--gold-hi); }
.calc-warning { color: var(--clay); font-size: 13px; margin-bottom: 28px; }
.next-step { border-left: 1px solid var(--gold); padding: 4px 0 4px 18px; margin-bottom: 24px; }
.next-step span { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 6px; }
.next-step p { font-size: 13px; line-height: 1.6; color: var(--silver); }
.calc-note { font-size: 11.5px; line-height: 1.65; color: var(--dim); border-top: 1px solid var(--line-dim); padding-top: 18px; }

/* Legal */
.legal { max-width: 720px; margin: 0 auto; padding: 72px 0 96px; }
.legal h1 { font-family: 'Fraunces', serif; font-weight: 300; font-size: 40px; color: var(--ivory); margin: 0 0 8px; }
.legal .updated { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--dim); margin-bottom: 40px; }
.legal h2 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 21px; color: var(--warm); margin: 34px 0 10px; }
.legal p { font-size: 14px; line-height: 1.7; color: var(--silver); }
.legal .sec-kicker { display: none; }

/* Sub-page hero (tools) */
.hero.sub { display: block; text-align: left; padding: 76px 0 52px; grid-template-columns: none; }
.hero.sub h1 { max-width: 660px; }
.hero.sub p.lede { max-width: 520px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 64px 0 56px; }
  .domains, .results { grid-template-columns: repeat(2, 1fr); }
  .rhythm { grid-template-columns: 1fr; gap: 20px; padding-left: 4px; }
  .rhythm::before { display: none; }
  .step { padding-top: 0; padding-left: 26px; }
  .node { top: 4px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .stack { grid-template-columns: 1fr; }
  .tools-split { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { display: none; }
  .section { padding: 64px 0 0; }
  .magnet { padding: 40px 26px; }
  .calc-panel { padding: 30px 22px; }
  .calc-grid { grid-template-columns: 1fr; }
}
