/* MeeraLabs — editorial design system. Paper, ink, one green. FT-chart restraint. */
:root {
  --paper: #FAF8F4;
  --paper-2: #F3F0E9;
  --ink: #141210;
  --ink-2: #3D3A34;
  --ink-3: #6E6A61;
  --ink-4: #A6A198;
  --rule: #E4DFD5;
  --green: #0B5E4F;
  --green-dark: #08483C;
  --green-tint: #E7F0ED;
  --leak: #C4622D;        /* the "slow clinic" data color */
  --leak-tint: #F6E8DE;
  --white: #FFFFFF;
  --max: 1080px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, Segoe UI, sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink-2); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* type */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
.eyebrow { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 1rem; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 38em; }
.small, .caption { font-size: 0.82rem; color: var(--ink-3); }
.caption { margin-top: 0.6rem; }
.mono { font-family: var(--mono); font-size: 0.85em; }

/* layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.band-alt { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-ink { background: var(--ink); color: #D8D4CC; }
.band-ink h2, .band-ink h3 { color: var(--paper); }
.band-ink .small, .band-ink .caption { color: #9B968C; }
.band-green { background: var(--green-dark); color: #DCE8E4; }
.band-green h2, .band-green h3 { color: var(--white); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr; } }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(250,248,244,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.wordmark span { color: var(--green); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink-2); font-size: 0.95rem; }
.nav-links a:hover { color: var(--green); text-decoration: none; }
.nav-links a.btn { color: var(--white); }
.nav-links a.btn:hover { color: var(--white); background: var(--green-dark); }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-block; background: var(--green); color: var(--white); font-weight: 600; font-size: 0.95rem; padding: 13px 26px; border-radius: 6px; border: none; cursor: pointer; }
.btn:hover { background: var(--green-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-ghost:hover { background: var(--green-tint); }
.band-green .btn, .band-ink .btn { background: var(--paper); color: var(--ink); }
.band-green .btn:hover, .band-ink .btn:hover { background: var(--white); }

/* cards */
.card { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 30px; }
.card h3 { margin-bottom: 0.6rem; }
.card .problem { color: var(--leak); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.75rem; }
.card ul { margin: 0.75rem 0 0.75rem 1.1rem; }
.card li { margin-bottom: 0.45rem; font-size: 0.95rem; }
.for-line { font-size: 0.85rem; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 0.75rem; margin-top: 1rem; }

/* stats */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr; } }
.stat-num { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--ink); }
.band-ink .stat-num, .band-green .stat-num { color: var(--white); }
.stat-label { font-size: 0.9rem; color: var(--ink-3); max-width: 22em; margin: 0.25rem auto 0; }
.band-ink .stat-label, .band-green .stat-label { color: #9B968C; }
.band-green .stat-label { color: #A9C2BB; }

/* chart frame */
.chart { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 26px; }
.chart-title { font-weight: 600; color: var(--ink); font-size: 1rem; margin-bottom: 1rem; font-family: var(--sans); }
.band-ink .chart, .band-green .chart { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.14); }
.band-ink .chart-title, .band-green .chart-title { color: var(--paper); }

/* product-UI panels */
.panel { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 30px rgba(20,18,16,0.06); }
.panel-head { background: var(--paper-2); border-bottom: 1px solid var(--rule); padding: 10px 18px; font-size: 0.8rem; color: var(--ink-3); display: flex; justify-content: space-between; }
.panel-body { padding: 18px; }
.tl-row { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--paper-2); font-size: 0.9rem; align-items: baseline; }
.tl-row:last-child { border-bottom: none; }
.tl-time { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-4); min-width: 52px; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; align-self: center; }
.tl-dot.in { background: var(--leak); }
.pill { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 2px 10px; border-radius: 99px; background: var(--green-tint); color: var(--green-dark); }
.pill.warn { background: var(--leak-tint); color: var(--leak); }

/* tables */
table.compare { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
.compare th { background: var(--paper-2); font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.compare td:last-child { color: var(--ink); font-weight: 500; }

/* forms */
form.review { display: grid; gap: 18px; max-width: 560px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 12px 14px; font-size: 1rem; font-family: var(--sans); border: 1.5px solid var(--rule); border-radius: 6px; background: var(--white); color: var(--ink); }
.field input:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,94,79,0.12); }

/* phases */
.phase { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.phase:last-child { border-bottom: none; }
.phase-days { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-3); padding-top: 4px; }
.deliverable { font-size: 0.88rem; color: var(--green-dark); font-weight: 600; margin-top: 0.5rem; }
.deliverable::before { content: "Deliverable — "; color: var(--ink-4); font-weight: 500; }

/* footer */
footer { border-top: 1px solid var(--rule); padding: 44px 0 56px; font-size: 0.88rem; color: var(--ink-3); }
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--ink-3); }
footer a:hover { color: var(--green); }
.foot-quiet { font-size: 0.8rem; color: var(--ink-4); }

/* guarantee band */
.guarantee { border-left: 4px solid var(--green); padding-left: 28px; }
.hr-rule { border: none; border-top: 1px solid var(--rule); }
