/* ServSmith — warm canvas, heavy display type, one accent word per heading. Light only, by design. */
:root {
  color-scheme: light;
  --canvas: #fcf6ef;          /* warm page */
  --canvas-2: #f7ece0;        /* warm bands */
  --surface: #ffffff;
  --ink: #0f172a;             /* Brand.ink */
  --ink-2: #3f4a5f;
  --muted: #6b7280;
  --line: #ecdfd0;
  --blue: #2563eb;            /* Brand.electric */
  --blue-deep: #1d4ed8;
  --amber: #f59e0b;           /* Brand.amber */
  --amber-ink: #b45309;
  --emerald: #047857;
  --shadow: 24px 60px -24px rgba(56, 40, 24, .38);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-deep); }
img { max-width: 100%; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- display type ---------- */
h1, h2, h3 { letter-spacing: -0.028em; line-height: 1.06; margin: 0; }
h1 { font-weight: 900; font-size: clamp(37px, 5.4vw, 58px); }
h2 { font-weight: 900; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.1; }
h3 { font-weight: 800; font-size: 19px; letter-spacing: -0.015em; }
.hl-blue { color: var(--blue); }
.hl-amber { color: var(--amber-ink); }
.hl-emerald { color: var(--emerald); }
.lede { font-size: clamp(17px, 2.1vw, 20px); color: var(--ink-2); margin: 16px 0 0; max-width: 34em; }

/* ---------- header ---------- */
header.bar { position: sticky; top: 0; z-index: 20; background: rgba(252, 246, 239, .86);
  backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; }
header.bar.scrolled { border-bottom-color: var(--line); }
header.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px;
  letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
header nav { display: flex; align-items: center; gap: 22px; }
header nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 600; }
header nav a:hover { color: var(--blue-deep); }
header nav .btn { color: #fff; }
@media (max-width: 620px) { header nav .hide-sm { display: none; } }

/* ---------- buttons and badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 22px; border-radius: 13px; font-weight: 700; font-size: 16px; text-decoration: none;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(15, 23, 42, .55); }
.btn.sm { padding: 10px 16px; font-size: 15px; border-radius: 11px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: #d9c8b4; }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }

.badge { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 13px; border-radius: 999px;
  background: rgba(37, 99, 235, .09); border: 1px solid rgba(37, 99, 235, .22); color: var(--blue-deep);
  font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, .6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }
@media (prefers-reduced-motion: reduce) { .badge .pulse { animation: none; } }

/* ---------- phone mockups ---------- */
.phone { width: 100%; max-width: 268px; aspect-ratio: 402 / 874; flex: none;
  padding: 7px; border-radius: 44px; background: linear-gradient(155deg, #39404f, #111623 55%, #05070d);
  box-shadow: 0 var(--shadow), 0 1px 3px rgba(15, 23, 42, .3); }
.phone img { width: 100%; height: 100%; display: block; border-radius: 37px; object-fit: cover; object-position: top; }

.stage { position: relative; display: flex; justify-content: center; }
.stage::before { content: ""; position: absolute; inset: -6% -4% 6%; border-radius: 50%; z-index: -1;
  background: radial-gradient(60% 55% at 50% 45%, rgba(37, 99, 235, .20), rgba(245, 158, 11, .14) 45%, transparent 72%);
  filter: blur(18px); }
.stage .phone + .phone { position: absolute; left: 50%; top: 7%; transform: translateX(-88%) rotate(-7deg) scale(.88);
  z-index: -1; opacity: .96; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 86px) 0 clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 4px; }
.hero .lede { font-size: clamp(17.5px, 2.2vw, 20.5px); }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.hero .badge { margin-bottom: 26px; }
.hero .fine { margin: 16px 0 0; font-size: 14.5px; color: var(--muted); }

/* ---------- sections ---------- */
section { padding: clamp(52px, 6.4vw, 84px) 0; }
.centered { max-width: 720px; margin: 0 auto; text-align: center; }
.centered .lede { margin-left: auto; margin-right: auto; max-width: 40em; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center;
  padding: clamp(26px, 3.6vw, 44px) 0; }
.row .copy p { color: var(--ink-2); margin: 16px 0 0; max-width: 32em; }
/* The status cadence line: "Requested. Confirmed. On the way..." reads as a beat, not body copy. */
.row .copy p.beat { color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.row.flip .art { order: -1; }
.row .art { display: flex; justify-content: center; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

/* ---------- pro band ---------- */
.band { background: var(--canvas-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.collage { display: flex; justify-content: center; align-items: flex-start; gap: 0; margin-top: clamp(36px, 5vw, 56px);
  padding-bottom: 12px; }
.collage .phone { max-width: 244px; }
.collage .phone:nth-child(1) { transform: rotate(-6deg) translateY(16px); z-index: 1; }
.collage .phone:nth-child(2) { margin: 0 -20px; z-index: 3; }
.collage .phone:nth-child(3) { transform: rotate(6deg) translateY(16px); z-index: 1; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(36px, 5vw, 52px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; }
.card p { margin: 7px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.card .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(37, 99, 235, .1); color: var(--blue); }
.card .ico.amber { background: rgba(245, 158, 11, .14); color: var(--amber-ink); }
.card .ico.emerald { background: rgba(4, 120, 87, .12); color: var(--emerald); }
.card .ico svg { width: 20px; height: 20px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(32px, 4vw, 44px);
  counter-reset: step; }
.step { padding-top: 22px; border-top: 3px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: block; font-weight: 900; font-size: 15px;
  color: var(--blue); margin-bottom: 8px; letter-spacing: .04em; }
.step p { margin: 6px 0 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- coming soon ---------- */
.announce { text-align: center; }
.announce .panel { background: var(--ink); color: #fff; border-radius: 30px;
  padding: clamp(40px, 6vw, 68px) clamp(24px, 5vw, 56px); box-shadow: 0 var(--shadow); }
.announce h2 { color: #fff; }
.announce p { color: rgba(255, 255, 255, .78); margin: 18px auto 0; max-width: 40em; font-size: 17px; }
.announce .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.announce .btn { background: #fff; color: var(--ink); border-color: #fff; }
.announce .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .34); }
.announce .fine { margin-top: 20px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.announce .badge { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff;
  margin-bottom: 22px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center;
  padding-top: 34px; padding-bottom: 34px; }
footer .brand { font-size: 17px; }
footer .brand img { width: 28px; height: 28px; border-radius: 7px; }
footer .tag { margin-left: 12px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--blue-deep); text-decoration: underline; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- long-form pages (privacy, support) ---------- */
.doc { max-width: 740px; padding-top: 48px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.doc h2 { font-size: 22px; font-weight: 800; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc .muted { color: var(--muted); }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 8px; border-bottom: 1px solid var(--line); }
.doc td:first-child { width: 58%; }

/* ---------- code / reference card (join, invoice) ---------- */
[hidden] { display: none !important; }
.code-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 26px 0 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.code-label { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); flex-basis: 100%; }
.code-value { font-size: clamp(30px, 6vw, 40px); font-weight: 900; letter-spacing: .12em; line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums; margin-right: auto; user-select: all; }
.note { background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .3); border-radius: 16px;
  padding: 16px 18px; margin: 26px 0 8px; font-size: 15.5px; }
.doc ol { margin: 10px 0 0; padding-left: 22px; }
.doc ol li { margin: 7px 0; }
.doc .eyebrow { margin-bottom: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding-top: clamp(34px, 6vw, 60px); }
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero .stage { margin-top: 34px; }
  .stage .phone + .phone { display: none; }
  .row { grid-template-columns: 1fr; gap: 30px; padding: 26px 0; }
  .row.flip .art { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .collage { flex-direction: column; align-items: center; gap: 22px; }
  .collage .phone { max-width: 258px; }
  .collage .phone:nth-child(n) { transform: none; margin: 0; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) {
  .cards { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  header nav .btn { width: auto; }
  .announce .btn { width: auto; }
  .doc table, .doc tbody, .doc tr, .doc td, .doc th { display: block; width: 100% !important; }
  .doc tr:first-child { display: none; }
  .doc td { border-bottom: 0; padding: 4px 0; }
  .doc tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
}
