/* ==========================================================================
   SALAS COMPUTER — design system
   Tenor Sans · white, beige & black · light + dark themes (follows system)
   ========================================================================== */

/* Tenor Sans (SIL Open Font License) is served from /fonts. It has one weight,
   so bold is never faked: hierarchy comes from size, spacing and color. */
@font-face { font-family: "Tenor Sans"; src: url("../fonts/TenorSans-Regular.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* Light (default): white, beige and black — calm and trustworthy */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f0e8;
  --bg-2: #fbf8f3;
  --surface: #ffffff;
  --surface-2: #faf6f0;
  --surface-3: #efe8dd;
  --line: rgba(35, 28, 18, .10);
  --line-strong: rgba(35, 28, 18, .20);
  --ink: #111111;
  --ink-2: #2b2621;
  --muted: #6b6258;
  --accent: #111111;
  --accent-2: #000000;
  --accent-ink: #7a6448;
  --accent-soft: rgba(17, 17, 17, .05);
  --accent-glow: rgba(17, 17, 17, .14);
  --on-accent: #ffffff;
  --panel: #141210;
  --panel-ink: #f5f0e8;
  --amber: #8a5a12;
  --amber-soft: #f8efe0;
  --green: #2f6b46;
  --green-soft: #e9f2ea;
  --grid: rgba(35, 28, 18, .045);
  --shadow: 0 0 0 1px var(--line), 0 14px 34px -20px rgba(35, 28, 18, .25);
  --header-bg: rgba(245, 240, 232, .82);
}

/* Dark: warm black with beige type, never harsh */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0e0d;
  --bg-2: #151412;
  --surface: #191816;
  --surface-2: #201e1b;
  --surface-3: #2a2723;
  --line: rgba(240, 230, 214, .09);
  --line-strong: rgba(240, 230, 214, .18);
  --ink: #f3ede4;
  --ink-2: #ddd5c9;
  --muted: #a89f93;
  --accent: #efe7da;
  --accent-2: #ffffff;
  --accent-ink: #d8c3a2;
  --accent-soft: rgba(239, 231, 218, .07);
  --accent-glow: rgba(239, 231, 218, .16);
  --on-accent: #111111;
  --panel: #24221f;
  --panel-ink: #f3ede4;
  --amber: #e3b866;
  --amber-soft: rgba(227, 184, 102, .10);
  --green: #8fc9a1;
  --green-soft: rgba(143, 201, 161, .10);
  --grid: rgba(240, 230, 214, .03);
  --shadow: 0 0 0 1px var(--line), 0 20px 40px -24px rgba(0, 0, 0, .7);
  --header-bg: rgba(15, 14, 13, .78);
}

:root {
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Tenor Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Tenor Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-synthesis: none; letter-spacing: .01em;
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.5; -webkit-font-smoothing: antialiased; transition: background .3s var(--ease), color .3s var(--ease);
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; }
.brand { color: var(--ink); text-decoration: none; }
/* Logo: laptop mark + wordmark in Tenor Sans; takes the text color, so it works in light and dark */
.logo { display: inline-flex; align-items: center; gap: 12px; color: inherit; line-height: 1; white-space: nowrap; }
.logo-mark { width: 34px; height: 24px; flex: none; }
.logo-word { font-family: var(--font); font-size: 19px; letter-spacing: .16em; }
.logo-sm .logo-mark { width: 28px; height: 20px; } .logo-sm .logo-word { font-size: 16px; }
.doc-logo .logo-mark { width: 38px; height: 26px; } .doc-logo .logo-word { font-size: 20px; }
.header-right { display: flex; align-items: center; gap: 14px; }
.header-contact { color: var(--muted); text-decoration: none; font-size: 13.5px; transition: color .2s; }
.header-contact:hover { color: var(--ink); }

.theme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface-2); cursor: pointer; color: var(--ink);
  transition: border-color .2s, transform .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 96px; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -320px; pointer-events: none;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%); filter: blur(10px);
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); text-transform: uppercase;
  letter-spacing: .14em; font-size: 11.5px; color: var(--accent-ink); margin: 0 0 18px;
  padding: 6px 12px; border: 1px solid var(--accent-glow); border-radius: 999px; background: var(--accent-soft);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; margin: 0 0 18px; letter-spacing: -.035em; max-width: 820px; font-weight: 800; }
.hero h1 .hl { color: var(--accent); }
.lede { color: var(--muted); max-width: 600px; margin: 0; font-size: 18px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.hero-stats b { color: var(--ink); font-weight: 600; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 28px; align-items: start; margin-top: -48px; padding-bottom: 72px; position: relative; z-index: 2; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } }

.mode-switch {
  display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 18px; border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow);
}
.mode-switch button {
  border: 0; background: transparent; padding: 10px 18px; border-radius: 9px; cursor: pointer;
  font-weight: 600; font-size: 14.5px; color: var(--muted); transition: color .2s, background .2s;
}
.mode-switch button:hover { color: var(--ink); }
.mode-switch button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px -6px var(--accent-glow); }

/* ---------- Sections ---------- */
.section {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; margin: 0 0 18px; border: 0; min-width: 0;
}
.section legend, .section h2 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 4px; padding: 0; float: left; width: 100%; display: flex; align-items: center; gap: 12px; }
.section .hint { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; clear: both; padding-top: 4px; }
.step { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent-ink); padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); border: 1px solid var(--accent-glow); }

/* ---------- Option cards ---------- */
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; clear: both; }
.opt {
  position: relative; display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 16px 16px 14px 46px; cursor: pointer; background: var(--surface-2);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.opt:hover { border-color: var(--muted); transform: translateY(-1px); }
.opt input { position: absolute; left: 16px; top: 18px; width: 18px; height: 18px; accent-color: var(--accent); margin: 0; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent), 0 10px 30px -14px var(--accent-glow); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.opt:has(input:disabled) { opacity: .4; cursor: not-allowed; transform: none; }
.opt-title { font-weight: 600; display: block; }
.opt-desc { display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.opt-price { display: inline-block; margin-top: auto; padding-top: 10px; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink); }
.opt-price.manual { color: var(--amber); }
.opt-price.included { color: var(--green); }

.field { clear: both; margin-top: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.field textarea {
  width: 100%; min-height: 92px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; resize: vertical; background: var(--surface-2);
}
.field textarea:focus, .stepper input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); clear: both; }
.stepper-row:first-of-type { border-top: 0; }
.stepper-row .opt-desc { margin: 0; }
.stepper-row .opt-price { padding-top: 4px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--surface-2); }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; font-size: 18px; font-weight: 500; color: var(--ink); transition: background .15s, color .15s; }
.stepper button:hover { background: var(--accent); color: var(--on-accent); }
.stepper input { width: 56px; height: 40px; border: 0; border-inline: 1px solid var(--line); text-align: center; font-family: var(--mono); font-weight: 600; background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pages-note { color: var(--muted); font-size: 14px; font-weight: 400; }

.notice { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; margin-top: 16px; clear: both; border: 1px solid; }
.notice.info { background: var(--accent-soft); color: var(--ink-2); border-color: var(--accent-glow); }
.notice.warn { background: var(--amber-soft); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }

/* ---------- Summary ---------- */
.summary {
  position: sticky; top: 84px; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; overflow: hidden;
}
.summary::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent); }
@media (max-width: 980px) { .summary { position: relative; top: 0; } }
.summary h2 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; border: 1px solid; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.standard { background: var(--green-soft); color: var(--green); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.status.estimate { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-glow); }
.status.needs_review { background: var(--amber-soft); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }

.big {
  position: relative; border-radius: 12px; padding: 18px; margin: 0 0 16px; color: var(--panel-ink); overflow: hidden;
  background: var(--panel); box-shadow: 0 18px 40px -22px rgba(0,0,0,.45), inset 0 0 0 1px var(--line);
}
.big::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.big .row { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.big .row + .row { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.2); }
.big .k { color: rgba(255,255,255,.82); font-size: 13px; }
.big .v { font-family: var(--mono); font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.big .v.sm { font-size: 17px; }

.sum-group { border-top: 1px solid var(--line); padding: 14px 0; }
.sum-group h3 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 10px; font-weight: 500; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 0; }
.sum-line .l small { display: block; color: var(--muted); font-size: 12.5px; }
.sum-line .r { white-space: nowrap; font-family: var(--mono); font-size: 13.5px; font-variant-numeric: tabular-nums; font-weight: 600; }
.sum-line.sub { color: var(--muted); }
.sum-line.sub .r { font-weight: 500; }
.sum-line.total { font-size: 15.5px; font-weight: 700; padding-top: 10px; }
.sum-line.total .r { font-size: 18px; color: var(--ink); }
.manual-tag { color: var(--amber); font-weight: 600; font-family: var(--font); font-size: 13px; }
.empty { color: var(--muted); font-size: 14px; }

.actions { display: grid; gap: 8px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--radius-sm);
  padding: 12px 16px; font-weight: 600; border: 1px solid var(--line-strong); background: var(--surface-2);
  cursor: pointer; text-decoration: none; color: var(--ink); transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -10px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-primary::after { content: "→"; transition: transform .2s var(--ease); }
.btn-primary:hover::after { transform: translateX(3px); }
.btn-sm { padding: 8px 12px; font-size: 13.5px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.fine { color: var(--muted); font-size: 12.5px; margin: 16px 0 0; }
.toast { color: var(--green); font-size: 13px; min-height: 18px; margin-top: 4px; }

/* ---------- Mobile bar ---------- */
.mobile-bar {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 30; border-radius: 14px;
  background: var(--header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong); color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom) / 2) 16px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.45);
}
.mobile-bar[hidden] { display: none; }
.mobile-bar-label { display: block; font-size: 11.5px; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.mobile-bar strong { font-family: var(--mono); font-size: 20px; font-variant-numeric: tabular-nums; }
.mobile-bar-sub { display: block; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.mobile-bar .btn-primary::after { content: none; }
@media (min-width: 981px) { .mobile-bar { display: none !important; } }
@media (max-width: 980px) { body { padding-bottom: 92px; } }

/* ---------- Footer & misc ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 13px; }
.loading, .error-box { padding: 24px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.error-box { color: var(--accent-ink); }
.mt { margin-top: 16px; }
.mt0 { margin-top: 0; }

@media (max-width: 640px) {
  .header-contact { display: none; }
  .logo-word { font-size: 16px; letter-spacing: .13em; } .logo-mark { width: 28px; height: 20px; }
  .hero { padding: 40px 0 80px; }
  .lede { font-size: 16px; }
  .hero-stats { gap: 16px; }
  .mode-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .mode-switch button { padding: 10px 8px; font-size: 14px; }
  .section { padding: 20px; }
  .stepper-row { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print: always a clean light estimate ---------- */
.print-head { display: none; justify-content: space-between; align-items: center; border-bottom: 2px solid #111; padding-bottom: 12px; margin-bottom: 16px; font-size: 13px; }
.print-head img { height: 24px; }
@media print {
  :root, [data-theme] { --bg: #fff; --surface: #fff; --surface-2: #fff; --ink: #0b0b0f; --ink-2: #222; --muted: #555; --line: #ddd; --line-strong: #ccc; --accent: #111; --accent-ink: #5a4a35; --on-accent: #fff; --panel: #fff; --panel-ink: #111; --amber: #8a4b00; --green: #0f7a4a; --shadow: none; }
  body { background: #fff; color: #0b0b0f; padding: 0; }
  .site-header, .hero, .config, .mobile-bar, .actions, .site-footer, .toast { display: none !important; }
  .layout { display: block; margin: 0; }
  .summary { box-shadow: none; position: static; padding: 0; }
  .summary::before { display: none; }
  .print-head { display: flex !important; }
  .big { background: #fff; color: #0b0b0f; border: 2px solid #111; box-shadow: none; }
  .big::after { display: none; }
  .big .k { color: #555; }
  .big .row + .row { border-top-color: #ddd; }
}

/* ==========================================================================
   Site-wide pages
   ========================================================================== */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 3px; border-radius: 2px; background: var(--accent); }
.nav .nav-cta { color: var(--on-accent); margin-left: 8px; padding: 9px 14px; }
.nav .nav-cta:hover { color: var(--on-accent); background: var(--accent-2); }
.nav .nav-cta::after { content: none !important; }
.nav .nav-cta[aria-current="page"], .nav .nav-cta[aria-current="page"]:hover { color: var(--on-accent); background: var(--accent); }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; }
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 12px; font-size: 16px; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
  .nav .nav-cta { margin: 8px 0 0; justify-content: center; }
  .nav .nav-cta[aria-current="page"] { color: var(--on-accent); background: var(--accent); }
  .header-contact { display: none; }
}
.menu-toggle .x { display: none; }
.menu-toggle[aria-expanded="true"] .x { display: block; }
.menu-toggle[aria-expanded="true"] .bars { display: none; }

/* Hero variants */
.hero-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } .hero-visual { display: none; } }
.hero.home { padding: 80px 0 96px; }
.hero.page { padding: 56px 0 64px; }
.hero.page h1 { font-size: clamp(32px, 4.6vw, 50px); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn-ghost { background: transparent; }

/* Browser mockup */
.mock { border-radius: 14px; background: var(--surface); box-shadow: var(--shadow), 0 40px 80px -40px var(--accent-glow); overflow: hidden; transform: perspective(1200px) rotateY(-8deg) rotateX(3deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.mock-bar i:first-child { background: var(--accent); }
.mock-url { margin-left: 10px; flex: 1; font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; }
.mock-body { padding: 18px; display: grid; gap: 12px; }
.sk { border-radius: 6px; background: var(--surface-3); height: 10px; }
.sk.red { background: var(--accent); }
.sk.h { height: 22px; width: 70%; }
.sk.w40 { width: 40%; } .sk.w60 { width: 60%; } .sk.w80 { width: 80%; }
.mock-hero { border-radius: 10px; padding: 22px; background: linear-gradient(135deg, var(--accent-soft), transparent), var(--surface-2); border: 1px solid var(--line); display: grid; gap: 10px; }
.mock-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-cols div { height: 64px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.mock-code { font-family: var(--mono); font-size: 11.5px; color: var(--muted); line-height: 1.7; padding: 12px 14px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
.mock-code b { color: var(--accent-ink); font-weight: 500; }

/* Bands */
.band { padding: 88px 0; border-bottom: 1px solid var(--line); }
.band.alt { background: var(--bg-2); }
.band-head { max-width: 680px; margin-bottom: 40px; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 12px; }
.band h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 12px; }
.band-head p { color: var(--muted); font-size: 17px; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card { position: relative; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
a.card { color: inherit; text-decoration: none; display: block; }
.card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-strong), 0 24px 48px -24px var(--accent-glow); }
.card h3 { font-size: 18px; margin: 16px 0 6px; letter-spacing: -.01em; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card .more { display: inline-block; margin-top: 14px; color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-glow); color: var(--accent-ink); }
.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: s; }
.steps .card::before { counter-increment: s; content: "0" counter(s); font-family: var(--mono); font-size: 13px; color: var(--accent-ink); }
.steps .card h3 { margin-top: 10px; }

.price-card { display: flex; flex-direction: column; }
.price-card.featured { box-shadow: 0 0 0 1.5px var(--accent), 0 30px 60px -30px var(--accent-glow); }
.price-card .tag { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 6px; background: var(--accent); color: var(--on-accent); }
.price-card .label { font-weight: 600; color: var(--muted); font-size: 14px; }
.price-card .amount { font-family: var(--mono); font-size: 34px; font-weight: 700; letter-spacing: -.03em; margin: 8px 0 2px; }
.price-card .amount small { font-size: 15px; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.price-card li { display: flex; gap: 10px; }
.price-card li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.price-card .btn { margin-top: auto; }

.cta-band { position: relative; overflow: hidden; border-radius: 20px; padding: 56px; color: var(--panel-ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.cta-band::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--panel-ink); margin: 0 0 10px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; max-width: 560px; font-size: 17px; }
.cta-band .btn { background: var(--panel-ink); color: #111; border-color: var(--panel-ink); margin-top: 26px; }
.cta-band .btn:hover { background: #f1f1f3; }
.cta-band .btn-primary::after { content: "→"; }
@media (max-width: 620px) { .cta-band { padding: 34px 24px; } }

/* Service detail rows */
.svc { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.svc:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 820px) { .svc { grid-template-columns: 1fr; gap: 16px; } }
.svc h2 { font-size: 26px; margin: 14px 0 6px; }
.svc .from { font-family: var(--mono); color: var(--accent-ink); font-size: 14px; }
.svc p { color: var(--ink-2); margin: 0 0 14px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
@media (max-width: 620px) { .ticks { grid-template-columns: 1fr; } }
.ticks li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.ticks li::before { content: "→"; color: var(--accent); font-family: var(--mono); }

.table-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
table.plans { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
table.plans th, table.plans td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plans thead th { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 500; }
table.plans td.price { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
table.plans tr:last-child td { border-bottom: 0; }
table.plans td .muted { color: var(--muted); font-size: 13.5px; display: block; }

/* Templates gallery */
.tpl { padding: 0; overflow: hidden; }
.tpl-thumb { aspect-ratio: 16 / 10; padding: 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto; gap: 8px; }
.tpl-thumb .nav-sk { display: flex; justify-content: space-between; align-items: center; }
.tpl-thumb .nav-sk span { display: block; height: 7px; width: 34px; border-radius: 4px; background: var(--c, var(--accent)); }
.tpl-thumb .nav-sk em { display: flex; gap: 5px; }
.tpl-thumb .nav-sk em i { display: block; width: 18px; height: 5px; border-radius: 3px; background: var(--surface-3); }
.tpl-thumb .hero-sk { border-radius: 8px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 40%, #000)); padding: 12px; display: grid; align-content: center; gap: 6px; }
.tpl-thumb .hero-sk i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.85); width: 60%; }
.tpl-thumb .hero-sk i + i { width: 40%; background: rgba(255,255,255,.5); }
.tpl-thumb .row-sk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tpl-thumb .row-sk i { display: block; height: 22px; border-radius: 5px; background: var(--surface-3); }
.tpl-body { padding: 20px 22px 22px; }
.tpl-body .cat { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tpl-body h3 { margin: 6px 0 6px; }

/* Prose (legal, about) */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; }
.prose ul { padding-left: 20px; }

/* Forms */
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form .row2 { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--surface-2); font-weight: 400; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .req { color: var(--accent-ink); }
.hp { position: absolute !important; left: -9999px !important; }
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item b { display: block; }
.contact-item a { text-decoration: none; font-family: var(--mono); font-size: 14px; }
.contact-item span { color: var(--muted); font-size: 14px; }

/* Footer (full) */
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); margin: 0 0 12px; font-weight: 500; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--accent-ink); }
.footer-brand .logo { margin-bottom: 14px; color: var(--ink); }
.footer-brand p { margin: 0; max-width: 300px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.center { text-align: center; }
.center .band-head { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.c-red { --c: #e10f1f; } .c-blue { --c: #2563eb; } .c-amber { --c: #d97706; }
.c-teal { --c: #0d9488; } .c-violet { --c: #7c3aed; } .c-slate { --c: #334155; }
/* list bullets: keep inline text (incl. live prices) in one flow */
.price-card li, .ticks li { display: block; position: relative; padding-left: 24px; }
.price-card li::before, .ticks li::before { position: absolute; left: 0; top: 0; }
.form label { display: block; }
.form label > input, .form label > select, .form label > textarea { display: block; margin-top: 6px; }

/* ---------- Readability pass: larger small text ---------- */
body { font-size: 16px; }
.eyebrow { font-size: 12.5px; }
.kicker, .sum-group h3, .footer-grid h4, table.plans thead th, .tpl-body .cat, .mobile-bar-label { font-size: 12.5px; letter-spacing: .1em; }
.hero-stats { font-size: 14px; }
.section .hint, .card p, .band-head p { font-size: 15.5px; }
.opt-title { font-size: 15.5px; }
.opt-desc { font-size: 14.5px; }
.opt-price { font-size: 14px; }
.sum-line { font-size: 15px; }
.sum-line .l small { font-size: 13.5px; }
.sum-line .r { font-size: 14.5px; }
.status { font-size: 13px; }
.fine, .site-footer { font-size: 14px; }
.notice { font-size: 15px; }
.nav a { font-size: 15px; }
table.plans { font-size: 15.5px; }
table.plans td .muted { font-size: 14.5px; }
.step { font-size: 13px; }
.btn-sm { font-size: 14.5px; }
.price-card ul { font-size: 15.5px; }
.ticks li { font-size: 15.5px; }
.tpl-live { display: block; position: relative; aspect-ratio: 16 / 11; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tpl-live-inner { position: absolute; top: 0; left: 0; width: 1200px; transform-origin: top left; container-type: inline-size; pointer-events: none; }
.tpl-live::after { content: "Preview →"; position: absolute; right: 12px; bottom: 12px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 8px; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s var(--ease); }
.tpl:hover .tpl-live::after, .tpl-live:focus-visible::after { opacity: 1; transform: none; }
.tpl-body .cta-row { margin-top: 16px; }
.svc > div, .grid-2 > *, .grid-3 > * { min-width: 0; }
@media (max-width: 620px) { table.plans { min-width: 0; } table.plans th, table.plans td { padding: 12px; } }

/* Quote request dialog */
.req-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border: 0; border-radius: 18px; padding: 26px; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong), 0 40px 80px -20px rgba(0,0,0,.6); }
.req-dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.req-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.req-head h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.req-summary { font-family: var(--mono); font-size: 14px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent-glow); }
.req-done { text-align: center; display: grid; justify-items: center; gap: 6px; }
.req-done h2 { margin: 10px 0 0; }
.req-done .ref { font-family: var(--mono); color: var(--accent-ink); }
.footer-grid li span { color: var(--muted); font-size: 13px; }

/* Proposal document & payments */
.doc { max-width: 860px; margin: 0 auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px; }
@media (max-width: 620px) { .doc { padding: 22px; } }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 2px solid var(--accent); }
.doc-head img { height: 26px; width: auto; }
.doc-meta { display: grid; text-align: right; font-size: 14px; color: var(--muted); }
.doc-meta b { color: var(--ink); font-size: 16px; text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); }
.doc-title { font-size: clamp(28px, 4vw, 38px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 18px; }
.doc h2 { font-size: 19px; margin: 32px 0 10px; letter-spacing: -.01em; }
.doc p { color: var(--ink-2); }
.prewrap { white-space: pre-wrap; }
.doc-table td.num, .doc-table th.num { text-align: right; white-space: nowrap; font-family: var(--mono); }
.doc-table td .muted { display: block; color: var(--muted); font-size: 13.5px; }
.doc-table tr.sub td { color: var(--muted); }
.doc-table tr.discount td { color: var(--green); font-weight: 600; }
.doc-table tr.total td { font-weight: 800; font-size: 17px; border-top: 2px solid var(--line-strong); }
.terms { padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.accept { margin-top: 30px; padding: 24px; border-radius: var(--radius); border: 1.5px solid var(--accent); background: var(--accent-soft); }
.accept h2 { margin-top: 0; }
.check-row { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; }
.check-row input { width: 20px !important; height: 20px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.doc-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.pay-box { margin-top: 16px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface-2); }
.pay-box h3 { margin: 0 0 10px; }
.pay-steps { padding-left: 20px; display: grid; gap: 12px; margin: 0; }
.pay-steps .btn-sm { padding: 4px 10px; font-size: 13px; margin-left: 6px; }
.pay-steps .muted { color: var(--muted); font-size: 14px; }
.copyable { font-family: var(--mono); }
@media print {
  .doc { box-shadow: none; padding: 0; }
  .accept, .doc-actions, .pay-box .btn { display: none !important; }
  .logo { color: #111 !important; }
}
.section > .form, .section > div, .section > table { clear: both; }
.footer-grid > * { min-width: 0; }
.footer-grid a { overflow-wrap: anywhere; }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.pay-card { border-color: var(--accent); background: var(--accent-soft); }
.pay-card p { margin: 0 0 12px; }
.card-form { display: grid; gap: 14px; margin-top: 4px; }
.card-element { min-height: 120px; }
.card-secure { margin: 0; }
.ref-box { display: grid; justify-items: center; gap: 6px; margin: 8px 0 4px; padding: 16px 20px; border-radius: 12px; border: 1px dashed var(--accent); background: var(--accent-soft); width: 100%; }
.ref-label { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ref-box .ref { font-size: 24px; letter-spacing: .02em; user-select: all; }
.ref-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.ref-banner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; padding: 10px 12px; margin-bottom: 14px; border-radius: 10px; background: var(--green-soft); color: var(--ink); }
.ref-banner b { font-family: var(--mono); }
.ref-banner .btn-sm { padding: 4px 10px; margin-left: auto; }
@media print { .ref-banner { display: none; } .print-head b { font-family: var(--mono); } .req-dialog { display: none !important; } }
@media print { .no-print { display: none !important; } }
.progress-box { padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface-2); }
.progress-box .sum-line.paid .r { color: var(--green); }
.progress-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .6s var(--ease); }

/* Pay page opened from an emailed link: one centered column */
.wrap.narrow{max-width:760px}
