/* Hallmark · macrostructure: Narrative Workflow · tone: utilitarian · anchor hue: orange #FE5111 (primary button only)
 * theme: studied-DNA (source: KERPSTUDIO DESIGN-RULES v2 + home mockup A) · enrichment: none (work imagery pending) · nav: N1b · footer: Ft2
 * pre-emit critique: P4 H4 E4 S4 R5 V4
 */
@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font: 400 var(--text-body)/1.7 var(--font-body);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-style: normal; min-width: 0; overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }

.wrap { max-width: calc(var(--content) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); }

.display { font-size: var(--text-display); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.h2 { font-size: var(--text-section); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.h3 { font-size: var(--text-h3); line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; }
.h4 { font-size: var(--text-h4); line-height: 1.4; font-weight: 700; letter-spacing: -0.01em; }
.meta { font-size: var(--text-meta); line-height: 1.5; font-weight: 500; letter-spacing: 0.01em; color: var(--color-muted); }

/* header */
.site-head { height: 104px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-24); }
.logo { display: inline-flex; align-items: center; gap: var(--space-16); text-decoration: none; }
.logo svg { width: 190px; height: auto; display: block; }
.logo span { font-size: var(--text-meta); font-weight: 600; color: var(--color-muted); white-space: nowrap; }
.nav { display: flex; gap: var(--space-32); font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; padding: 6px 0; white-space: nowrap; }
.nav a:hover { box-shadow: inset 0 -2px var(--color-ink); }

/* buttons */
.btn, .btn2 {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
  height: 48px; padding: 0 var(--space-24); font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.btn { background: var(--color-orange); color: var(--color-ink); }
.btn:hover { background: var(--color-ink); color: var(--color-white); }
.btn2 { border: 1px solid var(--color-ink); color: var(--color-ink); }
.btn2:hover { background: var(--color-ink); color: var(--color-white); }

/* hero */
.hero { padding-top: var(--space-64); }
.hero .display { grid-column: 1 / 11; }
.hero-lead { grid-column: 1 / 8; margin-top: var(--space-32); font-size: var(--text-lead); max-width: var(--measure); }
.hero-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-16); margin-top: var(--space-48); }

/* facts */
.facts { margin-top: var(--space-96); }
.facts > div { grid-column: span 3; border-top: 1px solid var(--color-line); padding-top: var(--space-16); }
.facts b { display: block; font-size: var(--text-section); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.facts .meta { margin-top: var(--space-8); }

/* sections */
.section { padding-top: var(--section); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-24); border-top: 1px solid var(--color-line); padding-top: var(--space-24); margin-bottom: var(--space-48); }
.sec-head p { max-width: var(--measure); color: var(--color-muted); }

/* rows: services, flow, gear */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gut); padding: var(--space-24) 0; border-top: 1px solid var(--color-line); align-items: baseline; }
.rows > li:last-child { border-bottom: 1px solid var(--color-line); }
.rows .r-title { grid-column: 1 / 6; }
.rows .r-body { grid-column: 6 / 13; max-width: var(--measure); }
.rows .r-body .meta { margin-top: var(--space-8); }
.flow .r-num { grid-column: 1 / 2; font-weight: 700; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.flow .r-title { grid-column: 2 / 6; }
.gear .r-title { grid-column: 1 / 5; font-weight: 700; }
.gear .r-body { grid-column: 5 / 11; color: var(--color-muted); }
.gear .r-qty { grid-column: 11 / 13; text-align: right; font-weight: 700; }

/* pricing */
.plans > article { grid-column: span 4; border-top: 2px solid var(--color-ink); padding-top: var(--space-24); display: flex; flex-direction: column; gap: var(--space-16); }
.plan-flag { font-size: var(--text-meta); font-weight: 700; }
.price { font-size: var(--text-section); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.price small { font-size: var(--text-meta); font-weight: 500; color: var(--color-muted); margin-left: var(--space-4); letter-spacing: 0; }
.price-unit { display: block; font-size: var(--text-meta); font-weight: 500; color: var(--color-muted); letter-spacing: 0; }
.plans ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); }
.plans li { padding-left: var(--space-16); position: relative; }
.plans li::before { content: "–"; position: absolute; left: 0; color: var(--color-muted); }
.addons { margin-top: var(--space-64); }
.addons .h4 { margin-bottom: var(--space-16); }
.price-note { margin-top: var(--space-16); }

/* deck */
.deck-row { align-items: end; }
.deck-row .h3 { grid-column: 1 / 6; }
.deck-row p { grid-column: 6 / 11; max-width: var(--measure); }
.deck-row .btn2 { grid-column: 11 / 13; justify-self: end; }

/* contact band (teal) */
.contact { margin-top: var(--section); background: var(--color-teal); color: var(--color-white); }
.contact .wrap { padding-top: var(--space-96); padding-bottom: var(--space-96); }
.contact .meta { color: var(--color-white); }
.contact .lead { margin-top: var(--space-16); max-width: var(--measure); font-size: var(--text-lead); }
.contact-row { display: flex; justify-content: space-between; align-items: end; gap: var(--space-24); flex-wrap: wrap; margin-top: var(--space-48); }
.contact-lines { display: grid; gap: var(--space-8); }
.contact-lines a { font-size: var(--text-h4); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.contact-lines a:hover { text-decoration-thickness: 2px; }
.contact a:focus-visible { outline-color: var(--color-white); }
.btn-on-teal { display: inline-flex; align-items: center; height: 48px; padding: 0 var(--space-24); background: var(--color-white); color: var(--color-ink); font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.btn-on-teal:hover { background: var(--color-ink); color: var(--color-white); }

/* footer */
.site-foot { padding: var(--space-32) 0 var(--space-48); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-8) var(--space-32); }
.site-foot a { text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }

/* tablet */
@media (max-width: 1199px) {
  .grid, .rows > li { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .hero .display, .hero-lead { grid-column: 1 / -1; }
  .facts > div { grid-column: span 4; }
  .facts > div:nth-child(n+3) { margin-top: var(--space-24); }
  .rows .r-title { grid-column: 1 / 4; }
  .rows .r-body { grid-column: 4 / 9; }
  .flow .r-num { grid-column: 1 / 2; }
  .flow .r-title { grid-column: 2 / 4; }
  .gear .r-title { grid-column: 1 / 4; }
  .gear .r-body { grid-column: 4 / 7; }
  .gear .r-qty { grid-column: 7 / 9; }
  .plans > article { grid-column: 1 / -1; }
  .plans > article + article { margin-top: var(--space-32); }
  .deck-row .h3, .deck-row p { grid-column: 1 / -1; }
  .deck-row .btn2 { grid-column: 1 / -1; justify-self: start; margin-top: var(--space-8); }
}
/* phone */
@media (max-width: 767px) {
  .grid, .rows > li { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-head { height: auto; padding: var(--space-24) 0; flex-wrap: wrap; }
  .logo span { display: none; }
  .nav { gap: var(--space-16); font-size: var(--text-meta); }
  .hero { padding-top: var(--space-32); }
  .facts { margin-top: var(--space-64); }
  .facts > div { grid-column: span 2; }
  .sec-head { flex-direction: column; align-items: start; gap: var(--space-8); }
  .rows .r-title, .rows .r-body, .flow .r-title, .flow .r-num { grid-column: 1 / -1; }
  .rows > li { row-gap: var(--space-8); }
  .gear .r-title { grid-column: 1 / 3; }
  .gear .r-body { grid-column: 1 / 3; grid-row: 2; }
  .gear .r-qty { grid-column: 3 / 5; grid-row: 1 / 3; align-self: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: 1ms !important; } }
