/* ============================================================
   AKS TOOLS — The Wedding Job Calculator
   Cool-grey editorial · Cormorant Garamond + DM Sans
   Self-contained: shared foundation + calculator components.
   ============================================================ */

:root {
  /* cool-grey palette (no warmth) */
  --paper:      #FFFFFF;
  --bg:         #F6F7F8;
  --bone:       #ECEEF0;
  --stone:      #E1E4E6;
  --stone-deep: #CFD4D7;
  --tint:       #F1EDE6;
  --rule:       #DCE0E2;
  --rule-deep:  #C5CACE;
  --ink:        #1D2022;
  --ink-2:      #2A2E30;
  --soft:       #51565A;
  --muted:      #888E92;

  /* margin zones */
  --zone-loss:   #B4523F;
  --zone-danger: #BE6A4A;
  --zone-thin:   #C49A5B;
  --zone-good:   #7CA982;
  --zone-great:  #5F9E6E;

  --font-serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-sans:  "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --ls-eyebrow: .32em;
  --ls-btn:     .22em;

  --gutter:     clamp(20px, 4vw, 56px);
  --section-y:  clamp(80px, 11vw, 168px);
  --container:  1200px;
  --container-narrow: 960px;
  --container-text: 660px;

  --dur:  320ms;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px; line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4,p { margin: 0; }
em, i { font-style: italic; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--soft);
  display: inline-block;
}
.eyebrow-rule {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--soft);
}
.eyebrow-rule::before, .eyebrow-rule::after {
  content: ''; width: 36px; height: 1px; background: var(--rule-deep);
}

.display {
  font-family: var(--font-serif);
  font-weight: 400; line-height: 1.05; letter-spacing: -.005em;
  color: var(--ink);
  font-size: clamp(40px, 4.6vw, 72px);
}
.display em { font-style: italic; }
.display.lg { font-size: clamp(48px, 6vw, 96px); }

.lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.5; color: var(--soft); font-weight: 400;
}
.body { font-size: 17px; line-height: 1.8; color: var(--soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: var(--ls-btn); text-transform: uppercase;
  padding: 18px 34px;
  border: 1px solid var(--ink);
  background: var(--paper); color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--soft); border-color: var(--soft); }

.section { padding: var(--section-y) 0; }
.section--paper { background: var(--paper); }
.section-head {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  margin-bottom: clamp(48px, 6vw, 86px);
}
.section-head .display { max-width: 20ch; }
.section-head .body { max-width: 52ch; }

/* ============================================================
   NAV  (matches preset page + Tools dropdown)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 80;
  padding: 16px 0;
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease), padding var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--rule);
  padding: 9px 0;
}
.nav-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px;
}
.nav-brand {
  justify-self: center;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; position: relative;
}
.nav-brand-img {
  height: 54px; width: auto; display: block;
  transition: height var(--dur) var(--ease);
}
.nav.scrolled .nav-brand-img { height: 40px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links-left { justify-self: start; }
.nav-links-right { justify-self: end; gap: 24px; }
.nav-link {
  font-family: var(--font-sans);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--ink);
  position: relative; padding: 6px 0;
  transition: opacity var(--dur) var(--ease);
  opacity: .82;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width var(--dur) var(--ease);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { width: 100%; }
.nav-icon {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); opacity: .75;
  transition: opacity var(--dur) var(--ease);
}
.nav-icon:hover { opacity: 1; }
.nav-icon svg { width: 16px; height: 16px; }
@media (max-width: 980px) {
  .nav-links { display: none; }
}

/* ---------- Tools dropdown ---------- */
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translate(-50%, 10px);
  min-width: 224px;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 44px -18px rgba(29,32,34,.22);
  padding: 10px 0;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  z-index: 90;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
  opacity: 1; visibility: visible;
  transform: translate(-50%, 4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
}
.nav-drop-menu a, .nav-drop-menu .nav-drop-soon {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 11px 22px;
  font-family: var(--font-sans);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
  transition: background var(--dur) var(--ease);
}
.nav-drop-menu a:hover { background: var(--bg); }
.nav-drop-soon { color: var(--muted); cursor: default; }
.nav-drop-soon em {
  font-family: var(--font-serif); font-style: italic;
  font-size: 12px; letter-spacing: .02em; text-transform: none;
  color: var(--muted);
}

/* ============================================================
   HERO
   ============================================================ */
.hero { background: var(--paper); padding: clamp(48px, 6vw, 88px) 0 0; }
.hero-head {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.hero-head .display { max-width: 16ch; }
.hero-head .lead { max-width: 44ch; }

/* ============================================================
   CALCULATOR LAYOUT
   ============================================================ */
.calc { background: var(--paper); padding: clamp(56px, 7vw, 104px) 0 var(--section-y); }
.calc-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: clamp(40px, 5vw, 88px);
  align-items: start;
}
@media (max-width: 960px) {
  .calc-grid { grid-template-columns: 1fr; }
}

/* ---------- form ---------- */
.calc-form { display: flex; flex-direction: column; gap: clamp(40px, 4.5vw, 64px); }
.fgroup { border-top: 1px solid var(--rule-deep); padding-top: 28px; }
.fgroup-head {
  display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px;
}
.fgroup-no {
  font-family: var(--font-serif); font-style: italic;
  font-size: 22px; color: var(--muted); line-height: 1;
  min-width: 30px;
}
.fgroup-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(22px, 2vw, 28px); color: var(--ink); line-height: 1.2;
}
.fgroup-sub { font-size: 14px; color: var(--muted); margin: 2px 0 22px 46px; max-width: 52ch; }
.fgroup-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin-left: 46px; }
.fgroup-fields.single { grid-template-columns: 1fr; }
@media (max-width: 640px) {
  .fgroup-fields { grid-template-columns: 1fr; margin-left: 0; }
  .fgroup-sub { margin-left: 0; }
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-family: var(--font-sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--soft);
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
}
.field-hint { font-size: 12.5px; color: var(--muted); letter-spacing: .01em; line-height: 1.5; }
.money { position: relative; }
.money::before {
  content: '$';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-serif); font-size: 18px; color: var(--muted);
  pointer-events: none;
}
.money input {
  width: 100%;
  font-family: var(--font-serif); font-size: 22px; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--rule-deep);
  padding: 8px 0 10px 20px;
  outline: none; border-radius: 0;
  transition: border-color var(--dur) var(--ease);
  -moz-appearance: textfield; appearance: textfield;
}
.money input::-webkit-outer-spin-button, .money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.money input:focus { border-bottom-color: var(--ink); }
.money input::placeholder { color: var(--stone-deep); }

.price-field .money input { font-size: clamp(30px, 3vw, 40px); padding-left: 26px; }
.price-field .money::before { font-size: 26px; }

/* toggle pill */
.toggle {
  display: inline-flex; border: 1px solid var(--rule-deep);
}
.toggle button {
  font-family: var(--font-sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 12px 22px;
  color: var(--soft);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.toggle button.on { background: var(--ink); color: var(--paper); }

/* select */
.selectwrap { position: relative; }
.selectwrap select {
  width: 100%;
  font-family: var(--font-serif); font-size: 19px; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--rule-deep);
  padding: 10px 26px 12px 0;
  outline: none; border-radius: 0;
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.selectwrap select:focus { border-bottom-color: var(--ink); }
.selectwrap::after {
  content: ''; position: absolute; right: 4px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1px solid var(--soft); border-bottom: 1px solid var(--soft);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* ============================================================
   RESULTS PANEL (dark, zone-aware)
   ============================================================ */
.verdict {
  position: sticky; top: 96px;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(36px, 3.6vw, 52px) clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column; gap: 26px;
  --zone: var(--zone-good);
  border-top: 3px solid var(--zone);
  transition: border-color 600ms var(--ease);
}
@media (max-width: 960px) { .verdict { position: static; } }
.verdict-eyebrow {
  font-family: var(--font-sans);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: rgba(255,255,255,.55);
  text-align: center;
}

/* gauge */
.gauge { position: relative; width: min(260px, 78%); margin: 0 auto; }
.gauge svg { width: 100%; height: auto; display: block; overflow: visible; }
.gauge-track { stroke: rgba(255,255,255,.14); }
.gauge-fill {
  stroke: var(--zone);
  transition: stroke-dashoffset 700ms var(--ease), stroke 600ms var(--ease);
}
.gauge-center {
  position: absolute; left: 0; right: 0; bottom: 4px;
  text-align: center;
}
.gauge-num {
  font-family: var(--font-serif);
  font-size: clamp(52px, 5vw, 68px); line-height: 1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.gauge-num small { font-size: .45em; color: rgba(255,255,255,.6); margin-left: 2px; }
.gauge-label {
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 9.5px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

/* zone status */
.zone-status { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.zone-name {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--zone);
  transition: color 600ms var(--ease);
}
.zone-copy {
  font-family: var(--font-serif); font-style: italic;
  font-size: 16.5px; line-height: 1.55;
  color: rgba(255,255,255,.78);
  min-height: 3.1em;
}

/* money rows */
.vrows { border-top: 1px solid rgba(255,255,255,.16); }
.vrow {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.16);
}
.vrow-label {
  font-family: var(--font-sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.vrow-val {
  font-family: var(--font-serif); font-size: 21px; color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.vrow--profit .vrow-val { color: var(--zone); font-size: 24px; transition: color 600ms var(--ease); }

/* what-if slider */
.whatif { display: flex; flex-direction: column; gap: 14px; }
.whatif-label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-family: var(--font-sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.whatif-price { font-family: var(--font-serif); font-size: 22px; color: var(--paper); letter-spacing: 0; text-transform: none; }
.whatif input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 2px;
  background: linear-gradient(to right, var(--zone) 0%, var(--zone) var(--slider-pct, 30%), rgba(255,255,255,.2) var(--slider-pct, 30%));
  outline: none; cursor: ew-resize;
  transition: none;
}
.whatif input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--ink);
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
  cursor: ew-resize;
}
.whatif input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--ink);
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
  cursor: ew-resize;
}
.whatif-hint { font-size: 12px; color: rgba(255,255,255,.45); text-align: center; letter-spacing: .04em; }

/* target solver */
.solver {
  border: 1px solid rgba(255,255,255,.18);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 6px;
  text-align: center;
}
.solver-line {
  font-family: var(--font-serif); font-style: italic;
  font-size: 16px; color: rgba(255,255,255,.75);
}
.solver-line .selectwrap { display: inline-block; width: auto; margin: 0 2px; }
.solver-line select {
  font-family: var(--font-serif); font-style: italic; font-size: 16px;
  color: var(--paper); background: transparent;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.4);
  padding: 0 18px 2px 2px;
  appearance: none; -webkit-appearance: none; outline: none; cursor: pointer;
}
.solver-line .selectwrap::after { border-color: rgba(255,255,255,.6); right: 2px; }
.solver-line select option { color: var(--ink); font-style: normal; }
.solver-answer {
  font-family: var(--font-serif); font-size: clamp(26px, 2.4vw, 32px); color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.verdict-fine {
  text-align: center;
  font-size: 11px; letter-spacing: .06em;
  color: rgba(255,255,255,.38);
}

/* ============================================================
   ZONE EXPLAINER STRIP
   ============================================================ */
.zones { background: var(--tint); }
.zones-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--rule-deep); border: 1px solid var(--rule-deep);
}
.zone-cell { background: var(--paper); padding: clamp(28px, 3vw, 44px) clamp(24px, 2.4vw, 36px); }
.zone-cell-range {
  font-family: var(--font-serif); font-size: clamp(24px, 2.2vw, 30px); color: var(--ink);
  display: flex; align-items: center; gap: 12px;
}
.zone-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.zone-cell-name {
  margin-top: 6px;
  font-family: var(--font-sans); font-size: 10px; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase; color: var(--soft);
}
.zone-cell p { margin-top: 14px; font-size: 14px; line-height: 1.7; color: var(--soft); }
@media (max-width: 920px) { .zones-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .zones-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER  (matches site)
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(72px, 8vw, 120px) 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.footer-brand-img { width: 240px; max-width: 100%; height: auto; display: block; }
.footer-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255,255,255,.7);
  margin-top: 24px;
  max-width: 28ch;
}
.footer-col-title {
  font-family: var(--font-sans);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 22px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col li a {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255,255,255,.72);
  transition: color var(--dur) var(--ease);
}
.footer-col li a:hover { color: var(--paper); }
.footer-bottom {
  margin-top: 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.footer-studio-link {
  color: rgba(255,255,255,.55);
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 3px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer-studio-link:hover { color: var(--paper); border-color: var(--paper); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 16px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ---------- fade-in (fail-visible) ---------- */
.fade { opacity: 1; transform: none; }
html.js .fade { opacity: 0; transform: translateY(14px); }
html.js .fade.anim { transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
html.js .fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .fade { opacity: 1; transform: none; transition: none; }
  .gauge-fill { transition: stroke 600ms var(--ease); }
}

.nav-drop > .nav-link { display: inline-block; }

/* ============================================================
   ALBUM ROWS
   ============================================================ */
.album-rows { display: flex; flex-direction: column; gap: 16px; margin-left: 46px; }
.album-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 150px 30px;
  gap: 20px; align-items: end;
}
.album-remove {
  font-family: var(--font-serif); font-size: 22px; line-height: 1;
  color: var(--muted); padding: 6px 4px;
  transition: color var(--dur) var(--ease);
}
.album-remove:hover { color: var(--ink); }
.album-add {
  margin: 22px 0 0 46px;
  font-family: var(--font-sans);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--soft);
  border-bottom: 1px solid var(--rule-deep);
  padding-bottom: 5px;
  align-self: flex-start;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.album-add:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 640px) {
  .album-rows { margin-left: 0; }
  .album-add { margin-left: 0; }
  .album-row { grid-template-columns: minmax(0, 1fr) 110px 26px; gap: 14px; }
}

/* ============================================================
   ANNUAL PROJECTION
   ============================================================ */
.annual {
  text-align: center;
  font-family: var(--font-serif); font-style: italic;
  font-size: 17.5px; line-height: 1.6;
  color: rgba(255,255,255,.85);
}
.annual em { color: rgba(255,255,255,.62); }
.annual-count input {
  width: 2.4em;
  font-family: var(--font-serif); font-style: italic; font-size: 17.5px;
  text-align: center;
  color: #FFFFFF; background: transparent;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.4);
  outline: none; border-radius: 0; padding: 0 2px 1px;
  -moz-appearance: textfield; appearance: textfield;
}
.annual-count input::-webkit-outer-spin-button, .annual-count input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.annual-total { font-style: normal; font-size: 19px; color: var(--zone); transition: color 600ms var(--ease); }

/* ============================================================
   VERDICT VISIBILITY BOOST
   ============================================================ */
.verdict { border-top-width: 4px; }
.verdict-eyebrow { color: rgba(255,255,255,.72); }
.gauge-num { font-size: clamp(56px, 5.6vw, 78px); }
.gauge-num small { color: rgba(255,255,255,.7); }
.gauge-label { color: rgba(255,255,255,.7); }
.zone-name { font-size: 13px; }
.zone-copy { color: rgba(255,255,255,.92); font-size: 17.5px; }
.vrow-label { color: rgba(255,255,255,.7); font-size: 10.5px; }
.vrow-val { font-size: 23px; }
.vrow--profit .vrow-val { font-size: 26px; }
.whatif-label { color: rgba(255,255,255,.7); }
.whatif-hint { color: rgba(255,255,255,.58); }
.solver { border-color: rgba(255,255,255,.28); }
.solver-line { color: rgba(255,255,255,.88); }
.verdict-fine { color: rgba(255,255,255,.48); }

/* ---------- honest-math additions ---------- */
.money.no-sign::before { content: ''; }
.money.no-sign input { padding-left: 0; }
.vrow[hidden], .annual span[hidden] { display: none; }
.vrow--dim .vrow-val { color: rgba(255,255,255,.75); font-size: 19px; }

/* ============================================================
   GUIDE — PASSWORD GATE
   ============================================================ */
html.locked { overflow: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: none;
  align-items: center; justify-content: center;
  text-align: center;
  padding: var(--gutter);
}
html.locked .gate { display: flex; }
.gate-inner { max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.gate-logo { width: 220px; height: auto; }
.gate-eyebrow {
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.gate-title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.1; color: #fff; }
.gate-title em { font-style: italic; }
.gate-lead { font-family: var(--font-serif); font-style: italic; font-size: 17px; color: rgba(255,255,255,.75); max-width: 38ch; }
.gate-form { display: flex; gap: 0; width: 100%; max-width: 400px; border: 1px solid rgba(255,255,255,.35); }
.gate-form input {
  flex: 1; min-width: 0;
  font-family: var(--font-sans); font-size: 14px; letter-spacing: .08em;
  background: transparent; color: #fff;
  border: 0; outline: none; padding: 16px 18px;
}
.gate-form input::placeholder { color: rgba(255,255,255,.4); letter-spacing: .18em; text-transform: uppercase; font-size: 11px; }
.gate-form button {
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 500;
  letter-spacing: var(--ls-btn); text-transform: uppercase;
  background: #fff; color: var(--ink); padding: 0 26px;
  transition: background var(--dur) var(--ease);
}
.gate-form button:hover { background: var(--stone); }
.gate-error { font-family: var(--font-sans); font-size: 12px; letter-spacing: .06em; color: #C98A7A; min-height: 18px; }
.gate-hint { font-family: var(--font-sans); font-size: 12.5px; line-height: 1.7; color: rgba(255,255,255,.5); max-width: 40ch; }
.gate-hint a { border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; color: rgba(255,255,255,.75); }
html.locked .guide-body { visibility: hidden; }

/* ============================================================
   GUIDE — ARTICLE
   ============================================================ */
.ghero { background: var(--paper); padding: clamp(48px, 6vw, 88px) 0 clamp(32px, 4vw, 56px); }
.ghero .hero-head .display { max-width: 18ch; }
.ghero-meta {
  font-family: var(--font-sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.guide-article { background: var(--paper); padding-bottom: var(--section-y); }
.gwrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.gsection { border-top: 1px solid var(--rule-deep); padding-top: 34px; margin-top: clamp(44px, 5vw, 64px); }
.gsection:first-child { margin-top: 0; }
.gsection-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 18px; }
.gsection-no { font-family: var(--font-serif); font-style: italic; font-size: 24px; color: var(--muted); min-width: 40px; }
.gsection-title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); color: var(--ink); line-height: 1.15; }
.gsection-title em { font-style: italic; }
.gp { font-size: 16.5px; line-height: 1.85; color: var(--soft); margin-top: 1em; }
.gp strong { color: var(--ink); font-weight: 500; }
.gp a { border-bottom: 1px solid var(--rule-deep); padding-bottom: 1px; transition: border-color var(--dur) var(--ease); }
.gp a:hover { border-color: var(--ink); }
.glist { margin-top: 1.1em; display: flex; flex-direction: column; gap: 12px; }
.glist li { display: flex; gap: 14px; font-size: 16px; line-height: 1.75; color: var(--soft); }
.glist li::before { content: '—'; color: var(--muted); flex: 0 0 auto; }
.glist li strong { color: var(--ink); font-weight: 500; }
.gcode {
  font-family: "SF Mono", "Menlo", monospace; font-size: 13.5px;
  background: var(--bone); padding: 2px 7px; color: var(--ink-2);
}

/* prompt box */
.prompt {
  margin-top: 22px;
  border: 1px solid var(--rule-deep);
  background: var(--bg);
}
.prompt-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--rule);
}
.prompt-label {
  font-family: var(--font-sans); font-size: 10px; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase; color: var(--soft);
}
.prompt-copy {
  font-family: var(--font-sans); font-size: 10px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--rule-deep); padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.prompt-copy:hover { color: var(--ink); border-color: var(--ink); }
.prompt-text { padding: 20px 22px; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); font-family: var(--font-sans); }

/* pro tip box */
.tip {
  margin-top: 26px;
  background: var(--tint);
  padding: 26px 28px;
  display: flex; flex-direction: column; gap: 8px;
}
.tip-label {
  font-family: var(--font-sans); font-size: 10px; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase; color: var(--soft);
}
.tip p { font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
.tip a { border-bottom: 1px solid var(--rule-deep); padding-bottom: 1px; }

/* checklist */
.gcheck { margin-top: 22px; border: 1px solid var(--rule-deep); background: var(--paper); }
.gcheck li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 15px 22px; border-top: 1px solid var(--rule);
  font-size: 15.5px; line-height: 1.6; color: var(--ink-2);
}
.gcheck li:first-child { border-top: 0; }
.gcheck li::before {
  content: ''; flex: 0 0 14px; width: 14px; height: 14px; align-self: center;
  border: 1px solid var(--rule-deep);
}
.gprint {
  margin-top: 18px;
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--soft);
  border-bottom: 1px solid var(--rule-deep); padding-bottom: 4px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gprint:hover { color: var(--ink); border-color: var(--ink); }

/* closing CTA */
.gcta {
  margin-top: clamp(48px, 6vw, 72px);
  background: var(--ink); color: #fff;
  padding: clamp(40px, 5vw, 60px) clamp(28px, 4vw, 56px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.gcta .display { color: #fff; font-size: clamp(28px, 3vw, 42px); max-width: 20ch; }
.gcta p { font-family: var(--font-serif); font-style: italic; font-size: 16.5px; color: rgba(255,255,255,.78); max-width: 44ch; }
.gcta-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.gcta .btn { border-color: #fff; background: #fff; color: var(--ink); }
.gcta .btn:hover { background: var(--stone); border-color: var(--stone); }
.gcta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.gcta .btn--ghost:hover { background: rgba(255,255,255,.1); }

@media print {
  .nav, .gate, .gcta, .footer, .gprint { display: none !important; }
  .guide-body { visibility: visible !important; }
  body { background: #fff; }
}

/* ============================================================
   GATE — email path
   ============================================================ */
.gate-divider {
  display: flex; align-items: center; gap: 16px; width: 100%; max-width: 400px;
  font-family: var(--font-sans); font-size: 10px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.45);
}
.gate-divider::before, .gate-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.2); }
.gate-form--email input { letter-spacing: .03em; }
.gate-form--email input::placeholder { letter-spacing: .14em; }
.gate-form.sent { opacity: .35; pointer-events: none; }

/* ============================================================
   FLOW CHART
   ============================================================ */
.flow {
  max-width: 980px; margin: clamp(40px, 5vw, 64px) auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.flow-label, .flow-note {
  font-family: var(--font-sans); font-size: 10px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
}
.flow-note { letter-spacing: .14em; text-transform: none; font-size: 12px; color: var(--muted); font-family: var(--font-serif); font-style: italic; font-size: 14px; }
.flow-track {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 6px;
}
.flow-node {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: 1px solid var(--rule-deep);
  background: var(--paper);
  padding: 10px 16px;
  font-family: var(--font-sans); font-size: 9.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
a.flow-node:hover { background: var(--tint); border-color: var(--ink); transform: translateY(-2px); }
.flow-no { font-family: var(--font-serif); font-style: italic; font-size: 13px; color: var(--muted); letter-spacing: 0; text-transform: none; }
.flow-node--last { background: var(--ink); color: #fff; border-color: var(--ink); }
.flow-node--last .flow-no { color: rgba(255,255,255,.6); }
a.flow-node--last:hover { background: var(--ink-2); border-color: var(--ink-2); }
.flow-arrow { color: var(--rule-deep); display: inline-flex; align-items: center; }
.flow-arrow::before { content: '→'; font-family: var(--font-serif); font-size: 17px; color: var(--stone-deep); }
.flow-node--fork { border-style: dashed; gap: 4px; padding: 8px 16px; }
.flow-fork-label { font-family: var(--font-serif); font-style: italic; font-size: 12px; color: var(--muted); letter-spacing: .02em; text-transform: none; }
.flow-fork-opt { color: var(--ink-2); }
.flow-fork-or { font-family: var(--font-serif); font-style: italic; font-size: 11px; color: var(--muted); text-transform: none; letter-spacing: .02em; }

/* staggered reveal */
html.js .flow .flow-node, html.js .flow .flow-arrow { opacity: 0; transform: translateY(6px); }
html.js .flow.in .flow-node, html.js .flow.in .flow-arrow {
  opacity: 1; transform: none;
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
html.js .flow.in .flow-track > *:nth-child(1)  { transition-delay: 0ms; }
html.js .flow.in .flow-track > *:nth-child(2)  { transition-delay: 70ms; }
html.js .flow.in .flow-track > *:nth-child(3)  { transition-delay: 140ms; }
html.js .flow.in .flow-track > *:nth-child(4)  { transition-delay: 210ms; }
html.js .flow.in .flow-track > *:nth-child(5)  { transition-delay: 280ms; }
html.js .flow.in .flow-track > *:nth-child(6)  { transition-delay: 350ms; }
html.js .flow.in .flow-track > *:nth-child(7)  { transition-delay: 420ms; }
html.js .flow.in .flow-track > *:nth-child(8)  { transition-delay: 490ms; }
html.js .flow.in .flow-track > *:nth-child(9)  { transition-delay: 560ms; }
html.js .flow.in .flow-track > *:nth-child(10) { transition-delay: 630ms; }
html.js .flow.in .flow-track > *:nth-child(11) { transition-delay: 700ms; }
html.js .flow.in .flow-track > *:nth-child(12) { transition-delay: 770ms; }
html.js .flow.in .flow-track > *:nth-child(13) { transition-delay: 840ms; }
html.js .flow.in .flow-track > *:nth-child(14) { transition-delay: 910ms; }
html.js .flow.in .flow-track > *:nth-child(15) { transition-delay: 980ms; }
html.js .flow.in .flow-track > *:nth-child(16) { transition-delay: 1050ms; }
html.js .flow.in .flow-track > *:nth-child(17) { transition-delay: 1120ms; }
html.js .flow.in .flow-track > *:nth-child(18) { transition-delay: 1190ms; }
html.js .flow.in .flow-track > *:nth-child(19) { transition-delay: 1260ms; }
@media (prefers-reduced-motion: reduce) {
  html.js .flow .flow-node, html.js .flow .flow-arrow { opacity: 1; transform: none; transition: none; }
}

/* vertical flow on small screens */
@media (max-width: 700px) {
  .flow-track { flex-direction: column; gap: 6px; }
  .flow-node { width: 100%; max-width: 300px; }
  .flow-arrow::before { content: '↓'; }
}

/* ============================================================
   FIGURES — app recreations
   ============================================================ */
.gfig { margin: 26px 0 0; }
.gfig figcaption {
  margin-top: 14px; text-align: center;
  font-family: var(--font-serif); font-style: italic;
  font-size: 14px; color: var(--muted);
}
.gmail {
  background: #1a1a1c;
  border: 1px solid #2c2c2f;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 44px -20px rgba(29,32,34,.35);
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
}
.gmail-row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 11px 16px;
  border-top: 1px solid #26262a;
  font-size: 12.5px; line-height: 1.4;
  min-width: 0;
}
.gmail-row:first-child { border-top: 0; }
.gmail-draft { color: #E8604C; flex: 0 0 auto; font-weight: 500; }
.gmail-line {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #9a9aa0;
}
.gmail-line strong { color: #ececf0; font-weight: 600; }
.gmail-snip { color: #85858c; }
.gmail-time { flex: 0 0 auto; color: #85858c; font-size: 11.5px; }
@media (max-width: 560px) {
  .gmail-snip { display: none; }
  .gmail-row { font-size: 11.5px; }
}

/* ---------- screenshot slots ---------- */
.gshot {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule-deep);
  box-shadow: 0 18px 44px -20px rgba(29,32,34,.25);
}
.gshot-slot {
  border: 1px dashed var(--rule-deep);
  background: var(--bg);
  padding: 56px 28px;
  text-align: center;
  font-family: var(--font-sans); font-size: 10px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}

/* ---------- flow chart restyle: bigger labels, no numerals ---------- */
.flow-node { font-size: 12px; letter-spacing: .16em; padding: 16px 22px; gap: 5px; }
.flow-node--fork { padding: 12px 22px; }
.flow-fork-label { font-size: 13px; }
.flow-fork-or { font-size: 12px; }
.flow-arrow::before { font-size: 19px; }

/* ---------- embedded animation frame ---------- */
.gframe {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border: 1px solid var(--rule-deep);
  box-shadow: 0 18px 44px -20px rgba(29,32,34,.25);
  overflow: hidden;
}
.gframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ---------- flow chart: uniform boxes ---------- */
.flow-track { align-items: stretch; }
.flow-node {
  width: 152px; min-height: 118px;
  justify-content: center; text-align: center;
  padding: 12px 14px;
}
.flow-node--fork { padding: 12px 14px; }
.flow-arrow { align-self: center; }
@media (max-width: 700px) {
  .flow-track { align-items: center; }
  .flow-node { width: 100%; max-width: 300px; min-height: 0; padding: 14px 16px; }
}

/* equal height across both flow rows */
.flow-node { min-height: 124px; }
@media (max-width: 700px) { .flow-node { min-height: 0; } }

/* ============================================================
   MINI TEASER ANIMATION (guide hero)
   ============================================================ */
.mini {
  max-width: 640px;
  margin: clamp(36px, 4.5vw, 56px) auto 0;
  background: var(--ink);
  padding: 26px 30px 24px;
  display: flex; flex-direction: column; gap: 14px;
  text-align: left;
}
.mini-row { display: flex; gap: 12px; align-items: baseline; }
.mini-who {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 10px; font-weight: 700;
  align-self: flex-start;
}
.mini-who--ak { background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
.mini-who--c { background: rgba(217,119,87,.16); color: #D97757; font-size: 13px; }
.mini-text {
  font-family: var(--font-sans); font-size: 14px; line-height: 1.6;
  color: rgba(255,255,255,.92); min-height: 1.6em; flex: 1;
}
.mini-caret {
  display: inline-block; width: 6px; height: 13px; margin-left: 2px;
  background: #D97757; vertical-align: baseline;
  animation: minicaret .9s steps(1) infinite;
}
@keyframes minicaret { 50% { opacity: 0; } }
.mini-status { display: flex; flex-direction: column; gap: 7px; padding-left: 38px; }
.mini-stat {
  font-family: var(--font-sans); font-size: 12px; letter-spacing: .04em;
  color: rgba(255,255,255,.55);
  opacity: 0; transform: translateY(5px);
  transition: opacity .4s ease, transform .4s ease;
}
.mini-stat.show { opacity: 1; transform: none; }
.mini-stat .ck { color: #7CA982; margin-right: 8px; }
@media (max-width: 560px) { .mini { padding: 20px 20px 18px; } .mini-status { padding-left: 0; } }

/* dropdown item tags (free / private) */
.nav-drop-menu a em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px; letter-spacing: .02em; text-transform: none;
  color: var(--muted, #8A8A85);
}

/* ============================================================
   MOBILE MENU (hamburger + overlay)
   ============================================================ */
.nav-burger { display: none; }
@media (max-width: 980px) {
  .nav-burger {
    display: flex; flex-direction: column; gap: 6px;
    position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
    width: 26px; padding: 6px 0; cursor: pointer; z-index: 95;
  }
  .nav-burger span { display: block; height: 1.5px; width: 100%; background: currentColor; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 300;
  background: var(--ink);
  display: none;
  align-items: center; justify-content: center;
  text-align: center;
}
html.menu-open .mobile-menu { display: flex; }
html.menu-open { overflow: hidden; }
.mobile-menu-close {
  position: absolute; top: 14px; right: 22px;
  font-family: var(--font-serif); font-size: 44px; line-height: 1;
  color: rgba(255,255,255,.7);
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.mobile-menu-close:hover { color: #fff; }
.mobile-menu-links { display: flex; flex-direction: column; gap: clamp(14px, 3.2vh, 26px); }
.mobile-menu-links a {
  font-family: var(--font-serif);
  font-size: clamp(28px, 6.5vw, 40px); line-height: 1.2;
  color: #fff; text-decoration: none;
}
.mobile-menu-links a:hover { color: rgba(255,255,255,.75); }
.mobile-menu-links a em {
  font-style: italic; font-size: .45em; color: rgba(255,255,255,.5); margin-left: 10px;
}


/* mobile menu: editorial table of contents (grouped) */
.mobile-menu .mobile-menu-links { display: block; text-align: left; width: min(84vw, 400px); margin: 0 auto; }
.mobile-menu .mm-primary { display: flex; flex-direction: column; gap: clamp(8px, 2.2vh, 18px); padding-bottom: clamp(18px, 3.6vh, 30px); margin-bottom: clamp(18px, 3.6vh, 30px); border-bottom: 1px solid rgba(244,241,236,.18); }
.mobile-menu .mm-primary a { font-family: var(--font-serif); font-size: clamp(28px, 5vh, 40px); line-height: 1.1; color: #F4F1EC; }
.mobile-menu .mm-groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3.2vh, 28px) 22px; }
.mobile-menu .mm-group { display: flex; flex-direction: column; gap: 9px; }
.mobile-menu .mm-label { font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: rgba(244,241,236,.4); margin-bottom: 2px; }
.mobile-menu .mm-group a { font-family: var(--font-sans); font-size: 14px; line-height: 1.4; letter-spacing: .02em; color: rgba(244,241,236,.85); }
.mobile-menu .mm-group a:hover { color: #F4F1EC; }
.mobile-menu .mm-group a em { font-style: italic; font-family: var(--font-serif); font-size: 12px; color: rgba(244,241,236,.45); margin-left: 6px; }
@media (max-height: 640px) { .mobile-menu .mm-primary a { font-size: 24px; } }
