/* Gem City Web Co.: site styles
   Tokens follow DESIGN.md. Light and dark via prefers-color-scheme. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Body/UI: Inter (OFL), self-hosted latin subsets. Public Sans could not be
   fetched in the build environment; swap these three files and the family
   name below if Public Sans is added later. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F5F1E8;
  --ink: #16191D;
  --muted: #5B6168;
  --line: #DDD6C8;
  --gem: #0E6A50;
  --gem-deep: #0B523E;
  --gem-ink: #FFFFFF;
  --gem-wash: #E6EFEA;
  --brass: #B4832F;
  --brass-ink: #16191D;
  --card: #FFFDF8;
  --night: #0B2620;
  --night-rgb: 11 38 32;
  --night-2: #113B31;
  --night-ink: #F5F1E8;
  --night-muted: #B6C4BD;
  --night-line: rgba(245, 241, 232, 0.14);
  --shadow: 0 24px 48px -24px rgba(22, 25, 29, 0.28);
  --shadow-lg: 0 40px 80px -30px rgba(11, 38, 32, 0.45);
  --facets: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23F5F1E8' stroke-width='1' stroke-opacity='.08'%3E%3Cpath d='M0 40 80 0l80 40-80 40zM0 120l80-40 80 40-80 40zM0 40v80M160 40v80M80 80v80M80 0v80'/%3E%3Cpath d='M40 20 80 80 120 20M40 100l40-20 40 20M40 140l40-60 40 60'/%3E%3C/g%3E%3C/svg%3E");

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1160px;
  --gutter: 16px;
  --section: 72px;
  --radius: 10px;
  --body-size: 15px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121417;
    --ink: #ECE8DF;
    --muted: #A4A9AF;
    --line: #2C3036;
    --gem: #3FB58C;
    --gem-deep: #5CC9A2;
    --gem-ink: #0B1210;
    --gem-wash: #182420;
    --brass: #D3A55A;
    --brass-ink: #0B1210;
    --card: #1A1D21;
    --night: #0A2219;
    --night-rgb: 10 34 25;
    --night-2: #143A2F;
    --night-ink: #ECE8DF;
    --night-muted: #B6C4BD;
    --night-line: rgba(236, 232, 223, 0.12);
    --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

@media (min-width: 900px) {
  :root {
    --section: 120px;
    --gutter: 32px;
    --body-size: 17px;
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--body-size);
  line-height: 1.55;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.9rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; line-height: 1.2; text-wrap: pretty; }

p { margin: 0; }
p + p { margin-top: 1em; }

a {
  color: var(--gem);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
a:hover { color: var(--gem-deep); }

:focus-visible {
  outline: 3px solid var(--gem);
  outline-offset: 2px;
  border-radius: 4px;
}

img, svg { display: block; max-width: 100%; }

ul, ol { margin: 0; padding: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 100;
  background: var(--gem);
  color: var(--gem-ink);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn-primary {
  background: var(--gem);
  color: var(--gem-ink);
  border-color: var(--gem);
}
.btn-primary:hover { background: var(--gem-deep); border-color: var(--gem-deep); color: var(--gem-ink); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

.btn-ghost {
  background: transparent;
  color: var(--night-ink);
  border-color: rgba(245, 241, 232, 0.45);
}
.btn-ghost:hover { background: rgba(245, 241, 232, 0.1); color: var(--night-ink); border-color: var(--night-ink); }

.btn-sm { min-height: 44px; padding: 10px 18px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  min-height: 44px;
}
.brand:hover { color: var(--ink); }
.brand .gem { width: 22px; height: 22px; color: var(--gem); flex: none; }
.brand-lg { font-size: 1.35rem; font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
.brand-lg .gem { width: 28px; height: 28px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-radius: 999px;
}
.site-nav a:not(.btn):hover { background: var(--gem-wash); color: var(--ink); }
.site-nav .btn { margin-left: 10px; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 899px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.btn) {
    display: flex;
    min-height: 52px;
    padding: 0 8px;
    border-radius: 6px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .site-nav li:last-child a:not(.btn) { border-bottom: 0; }
  .site-nav .btn { margin: 12px 0 0; width: 100%; }
}

/* ---------- sections ---------- */

.section {
  padding-block: var(--section);
}
.section-card { background: var(--card); border-block: 1px solid var(--line); }
.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.06em;
}
@media (min-width: 900px) {
  .section-head { margin-bottom: 56px; }
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 600ms ease, transform 600ms ease;
  }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- hero (night band) ---------- */

.hero {
  position: relative;
  background: var(--night);
  color: var(--night-ink);
  padding-block: 56px 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  z-index: -3;
  background: #26260C;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgb(var(--night-rgb) / 0.6), rgb(var(--night-rgb) / 0.25) 40%, rgb(var(--night-rgb) / 0.97) 92%),
    linear-gradient(to right, rgb(var(--night-rgb) / 0.98) 0%, rgb(var(--night-rgb) / 0.95) 45%, rgb(var(--night-rgb) / 0.86) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--facets);
  background-size: 160px 160px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse 70% 80% at 85% 50%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 85% 50%, #000 10%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #7AD6B5;
  font-weight: 600;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brass);
  border-radius: 2px;
}
.hero h1 { max-width: 14ch; color: var(--night-ink); }
.hero .sub {
  margin-top: 24px;
  max-width: 50ch;
  font-size: 1.1em;
  color: var(--night-muted);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero .btn-primary { background: #3FB58C; border-color: #3FB58C; color: #0B1210; }
.hero .btn-primary:hover { background: #5CC9A2; border-color: #5CC9A2; color: #0B1210; }
.hero :focus-visible { outline-color: #3FB58C; }
.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 28px;
  color: var(--night-muted);
  font-size: 0.9em;
}
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7AD6B5;
  flex: none;
}

@media (min-width: 900px) {
  .hero { padding-block: 96px 150px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
}

/* ---------- before / after ---------- */

.compare { margin: 0; min-width: 0; }
.compare-stack {
  position: relative;
  padding-top: 40px;
}
.compare figcaption {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--night-muted);
  text-align: right;
}

.before {
  position: absolute;
  top: 0;
  left: 0;
  width: 62%;
  transform: rotate(-2deg);
  transform-origin: bottom left;
  opacity: 0.95;
}
.before-label,
.after-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--night-ink);
}
.before-label span:first-child,
.after-label span:first-child {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--night-line);
  color: var(--night-muted);
}
.after-label span:first-child { background: #3FB58C; border-color: #3FB58C; color: #0B1210; }
.before-time { color: #E7A6A6; }
.after-time { color: #7AD6B5; }

.old {
  background: #E9E6DE;
  border: 1px solid #C9C4B6;
  border-radius: 6px;
  overflow: hidden;
  color: #2E2E2E;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.62rem;
  line-height: 1.3;
  box-shadow: 0 16px 32px -20px rgba(0, 0, 0, 0.6);
}
.old-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  background: #D6D3CB;
  border-bottom: 1px solid #BDB8AB;
  font-family: var(--body);
  font-size: 0.6rem;
  color: #6B6B6B;
}
.old-bar i { width: 7px; height: 7px; border-radius: 50%; background: #B5B0A4; }
.old-bar span { margin-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.old-body { padding: 10px 12px 12px; background: #F4F1E7; }
.old-head { text-align: center; padding-bottom: 8px; border-bottom: 2px solid #8A6C3F; }
.old-title { display: block; font-weight: 700; color: #7A2F1C; font-size: 0.8rem; letter-spacing: 0.02em; }
.old-sub { display: block; margin-top: 2px; color: #777; font-style: italic; }
.old-cols { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding-top: 8px; }
.old-cols { min-height: 120px; }
.old-nav { display: grid; gap: 3px; }
.old-nav span { background: #D9D2BF; border: 1px solid #B9AE92; padding: 2px 4px; color: #333; }
.old-main { display: grid; gap: 6px; align-content: start; }
.old-under { color: #1A0DAB; text-decoration: underline; }
.old-text { color: #444; }
.old-mini { font-size: 0.55rem; color: #888; }
.old-load { position: relative; height: 7px; margin-top: 2px; background: #D8D4C9; border: 1px solid #B5B0A4; }
.old-load i { position: absolute; inset: 0 auto 0 0; width: 22%; background: #9A9A9A; }

.after {
  position: relative;
  width: 84%;
  margin-left: auto;
  margin-top: 150px;
  transform: rotate(1deg);
  transform-origin: top right;
}
.after-label {
  position: absolute;
  z-index: 2;
  top: -16px;
  right: 16px;
  margin: 0;
  gap: 10px;
  padding: 5px 6px 5px 6px;
  border-radius: 999px;
  background: var(--night);
  border: 1px solid var(--night-line);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
}
.after-label .after-time { padding-right: 8px; }

.browser {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-url {
  flex: 1;
  margin-left: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the example site inside the browser */
.ex {
  --ex-ink: #2B1D12;
  --ex-paper: #FBF6EC;
  --ex-accent: #9A3B1E;
  --ex-soft: #EFE4D1;
  --ex-mid: #6B5848;
  background: var(--ex-paper);
  color: var(--ex-ink);
  padding: 16px 18px 20px;
  font-size: 0.76rem;
  line-height: 1.4;
}
.ex-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ex-soft);
}
.ex-brand { font-family: var(--display); font-weight: 600; font-size: 1rem; }
.ex-nav ul { list-style: none; display: flex; gap: 12px; color: var(--ex-mid); }
.ex-call { background: var(--ex-accent); color: #fff; padding: 5px 11px; border-radius: 999px; font-weight: 600; }
.ex-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0 14px;
}
.ex-h { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.05; letter-spacing: -0.01em; color: var(--ex-ink); }
.ex-hero p + p { margin-top: 8px; color: var(--ex-mid); }
.ex-btns { display: flex; gap: 8px; margin-top: 12px; }
.ex-btn { padding: 6px 12px; border-radius: 999px; font-weight: 600; border: 1px solid var(--ex-ink); }
.ex-btn.fill { background: var(--ex-ink); color: #FBF6EC; }
.ex-photo {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 30%, #F3C66B 0 14%, transparent 15%),
    linear-gradient(160deg, #D9A066, #8E4A2B);
  position: relative;
}
.ex-photo::after {
  content: "";
  position: absolute;
  inset: auto 10% 12% 10%;
  height: 26%;
  border-radius: 50% 50% 8px 8px;
  background: #F8E9D2;
  opacity: 0.9;
}
.ex-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--ex-soft); }
.ex-card { background: #fff; border: 1px solid var(--ex-soft); border-radius: 8px; padding: 10px 12px; }
.ex-card strong { display: block; margin-bottom: 4px; }
.ex-card ul { list-style: none; color: var(--ex-mid); }
.ex-card li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.ex-card li span:last-child { color: var(--ex-ink); font-weight: 600; }
.ex-open { color: #1C6B3A; font-weight: 600; }

@media (max-width: 560px) {
  .compare-stack { padding-top: 36px; }
  .before { width: 76%; }
  .after { width: 92%; margin-top: 200px; }
  .after-label { top: -36px; right: 0; }
  .old-cols { min-height: 100px; }
  .hero::after { opacity: 0.3; }
  .ex { padding: 14px 14px 16px; }
  .ex-nav ul { display: none; }
  .ex-hero { grid-template-columns: 1fr; }
  .ex-photo { aspect-ratio: 5 / 2; }
  .ex-row { grid-template-columns: 1fr; gap: 8px; }
  .ex-card li span:first-child { white-space: nowrap; }
  .old-cols { grid-template-columns: 1fr; }
  .old-nav { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- promise strip (overlapping card) ---------- */

.promises {
  position: relative;
  z-index: 2;
  margin-top: -64px;
  padding-bottom: 8px;
}
.promise-grid {
  display: grid;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.promise-grid li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 16px;
  padding: 20px 20px;
  border-top: 1px solid var(--line);
}
.promise-grid li:first-child { border-top: 0; }
.pi { width: 28px; height: 28px; color: var(--gem); grid-row: 1 / span 2; }
.promise-grid li h2, .promise-grid li p { grid-column: 2; }
.promise-grid h2 { font-size: 1.25rem; line-height: 1.2; }
.promise-grid p { margin-top: 8px; color: var(--muted); font-size: 0.95em; }

@media (min-width: 720px) {
  .promise-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-grid li:nth-child(2) { border-top: 0; }
  .promise-grid li:nth-child(odd) { border-right: 1px solid var(--line); }
}
@media (min-width: 1000px) {
  .promises { margin-top: -80px; }
  .promise-grid { grid-template-columns: repeat(4, 1fr); }
  .promise-grid li { display: block; border-top: 0; border-right: 1px solid var(--line); padding: 32px 28px; }
  .promise-grid li:last-child { border-right: 0; }
  .pi { margin-bottom: 14px; }
}

/* ---------- how it works (track) ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 32px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 26px;
  bottom: 26px;
  width: 2px;
  background: var(--line);
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  position: relative;
}
.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gem);
  background: var(--paper);
  color: var(--gem);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
}
.steps h3 { grid-column: 2; margin-top: 10px; }
.steps p { grid-column: 2; margin-top: 8px; color: var(--muted); }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 40px; }
  .steps::before { left: 26px; right: 26px; top: 26px; bottom: auto; width: auto; height: 2px; }
  .steps li { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; gap: 22px 0; }
  .steps li::before { grid-row: auto; }
  .steps h3 { grid-column: 1; margin-top: 0; min-height: 2.4em; }
  .steps p { grid-column: 1; margin-top: 0; }
}

/* ---------- why Gem City (comparison) ---------- */

.eyebrow-ink { color: var(--gem); margin-bottom: 16px; }
#why .section-head { max-width: 720px; }

.cmp-wrap { min-width: 0; }
.cmp {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.cmp th, .cmp td {
  text-align: left;
  vertical-align: top;
  padding: 16px 20px;
}
.cmp th {
  font-weight: 600;
  font-size: 1rem;
}
.cmp th.cmp-us {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  background: var(--night);
  color: var(--night-ink);
  border-radius: 14px 14px 0 0;
}
.cmp th.cmp-us .gem { display: inline-block; width: 20px; height: 20px; color: #3FB58C; vertical-align: -3px; margin-right: 10px; }
.cmp th.cmp-them { color: var(--muted); font-weight: 500; padding-top: 24px; }
.cmp td {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-top: 1px solid var(--line);
}
.cmp td.cmp-them { color: var(--muted); }
.cmp td.cmp-us {
  background: var(--night);
  color: var(--night-ink);
  font-weight: 500;
  border-top-color: var(--night-line);
  box-shadow: inset 1px 0 0 var(--night-2), inset -1px 0 0 var(--night-2);
}
.cmp tbody tr:last-child td.cmp-us { border-radius: 0 0 14px 14px; padding-bottom: 24px; }
.cmp-icon { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.cmp-them .cmp-icon { color: var(--muted); opacity: 0.7; }
.cmp-us .cmp-icon { color: #3FB58C; }

.cmp-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}
.cmp-foot p { font-size: 1.08em; max-width: 44ch; }

/* phone: each row becomes a stacked pair */
@media (max-width: 899px) {
  .cmp, .cmp thead, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  .cmp thead { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 4px; }
  .cmp thead tr { display: contents; }
  .cmp th { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 0.9rem; }
  .cmp th.cmp-them { padding-top: 6px; border: 1px solid var(--line); background: var(--paper); }
  .cmp th.cmp-them::before { content: ""; width: 10px; height: 10px; background: linear-gradient(45deg, transparent 42%, currentColor 42% 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, currentColor 42% 58%, transparent 58%); opacity: 0.7; }
  .cmp th.cmp-us { font-family: var(--body); font-size: 0.9rem; letter-spacing: 0; border-radius: 999px; }
  .cmp th.cmp-us .gem { width: 16px; height: 16px; margin-right: 0; vertical-align: -2px; }
  .cmp tbody tr {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 12px;
    background: var(--card);
  }
  .cmp td { display: flex; padding: 14px 16px; border-top: 0; }
  .cmp td.cmp-us { border-radius: 0; }
  .cmp tbody tr:last-child td.cmp-us { border-radius: 0; padding-bottom: 14px; }
}
@media (min-width: 900px) {
  .cmp td { display: table-cell; }
  .cmp td > span { display: inline-block; vertical-align: top; max-width: calc(100% - 34px); }
  .cmp td .cmp-icon { display: inline-block; vertical-align: top; margin-right: 12px; }
  .cmp th.cmp-us { padding: 22px 28px; }
  .cmp td.cmp-us { padding: 18px 28px; }
  .cmp th.cmp-them, .cmp td.cmp-them { padding-left: 0; }
  .cmp-foot { margin-top: 48px; }
}

/* ---------- includes (phone + checklist) ---------- */

.includes-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.includes {
  list-style: none;
  display: grid;
  gap: 4px;
}
.includes li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.includes li:last-child { border-bottom: 0; }
.includes .check { flex: none; width: 24px; height: 24px; color: var(--gem); margin-top: 1px; }

.phone-wrap { margin: 0; justify-self: center; order: 2; }
@media (min-width: 900px) { .phone-wrap { order: 0; } }
.phone-wrap figcaption { margin-top: 14px; font-size: 0.85rem; color: var(--muted); text-align: center; }
.phone {
  width: 280px;
  max-width: 100%;
  padding: 12px;
  border-radius: 40px;
  background: var(--night);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px var(--night-2);
}
.phone-screen {
  --ex-ink: #2B1D12;
  --ex-paper: #FBF6EC;
  --ex-accent: #9A3B1E;
  --ex-soft: #EFE4D1;
  --ex-mid: #6B5848;
  background: var(--ex-paper);
  color: var(--ex-ink);
  border-radius: 30px;
  padding: 26px 14px 18px;
  font-size: 0.74rem;
  line-height: 1.4;
  overflow: hidden;
}
.ph-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; }
.ph-call { background: var(--ex-accent); color: #fff; padding: 5px 12px; border-radius: 999px; font-weight: 600; }
.ph-photo {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background:
    radial-gradient(circle at 70% 30%, #F3C66B 0 14%, transparent 15%),
    linear-gradient(160deg, #D9A066, #8E4A2B);
}
.ph-h { font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.08; margin-top: 12px; color: var(--ex-ink); }
.ph-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ph-btn { text-align: center; padding: 8px 10px; border-radius: 999px; font-weight: 600; border: 1px solid var(--ex-ink); }
.ph-btn.fill { background: var(--ex-ink); color: #FBF6EC; }
.ph-card { margin-top: 10px; background: #fff; border: 1px solid var(--ex-soft); border-radius: 10px; padding: 10px 12px; }
.ph-row { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; color: var(--ex-mid); }
.ph-row span:last-child { color: var(--ex-ink); font-weight: 600; }
.ph-open { color: #1C6B3A !important; }
.ph-stars { display: flex; align-items: center; gap: 10px; }
.stars { display: inline-flex; gap: 2px; color: #D9962B; }
.stars svg { width: 14px; height: 14px; }
.ph-small { color: var(--ex-mid); font-size: 0.68rem; }

@media (min-width: 900px) {
  .includes-grid { grid-template-columns: 0.8fr 1.2fr; gap: 80px; }
  .phone { width: 300px; }
}

/* ---------- pricing ---------- */

.plans {
  list-style: none;
  display: grid;
  gap: 32px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.plan-tag {
  position: absolute;
  top: -13px;
  left: 20px;
  background: var(--brass);
  color: var(--brass-ink);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}
.plan h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
}
.plan .popular {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--gem-ink);
  background: var(--gem);
  padding: 3px 10px;
  border-radius: 999px;
}
.price {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.price small {
  display: block;
  margin-top: 6px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0;
}
.plan ul {
  list-style: none;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  align-content: start;
  flex: 1;
}
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--brass);
}
.plan .btn { margin-top: 24px; width: 100%; }

/* featured = night card */
.plan.is-featured {
  background: var(--night);
  border-color: var(--night);
  color: var(--night-ink);
  box-shadow: var(--shadow-lg);
}
.plan.is-featured .price small { color: var(--night-muted); }
.plan.is-featured ul { border-top-color: var(--night-line); }
.plan.is-featured .popular { background: #3FB58C; color: #0B1210; }
.plan.is-featured .btn-primary { background: #3FB58C; border-color: #3FB58C; color: #0B1210; }
.plan.is-featured .btn-primary:hover { background: #5CC9A2; border-color: #5CC9A2; }
.plan.is-featured :focus-visible { outline-color: #3FB58C; }

.plans-note { margin-top: 24px; color: var(--muted); }

@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; margin-top: 12px; }
  .plan { padding: 32px 28px 28px; }
  .plan.is-featured { transform: translateY(-14px); }
}

.care { margin-top: 72px; }
.care h3 { font-size: 1.8rem; }
.care > p { margin-top: 10px; color: var(--muted); }
.care-grid {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
.care-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  border-radius: 10px;
  padding: 22px 22px 24px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.care-card h4 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.care-price {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 6px 0 8px;
}
.care-price small { font-family: var(--body); font-weight: 500; font-size: 0.85rem; color: var(--muted); letter-spacing: 0; }
.care-card p:last-child { color: var(--muted); }

@media (min-width: 720px) {
  .care-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* ---------- photo band ---------- */

.photo-band {
  margin: 0;
  background: #8C8C8C;
  border-block: 1px solid var(--line);
}
.photo-band img {
  width: 100%;
  height: clamp(220px, 34vw, 480px);
  object-fit: cover;
  object-position: 50% 60%;
}

/* ---------- where we work (map) ---------- */

.photo-river { margin: 32px 0 0; }
.photo-river img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  background: #D9D9D9;
  display: block;
}
.photo-river figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }


.where {
  display: grid;
  gap: 40px;
}
.city-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  font-size: 1em;
  font-weight: 500;
}
.city-list li {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}
.city-list .lead {
  background: var(--gem);
  border-color: var(--gem);
  color: var(--gem-ink);
  font-weight: 600;
}
.where-note { margin-top: 20px; color: var(--muted); }

.map-wrap { margin: 0; min-width: 0; }
.map {
  width: 100%;
  height: auto;
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: var(--body);
}
.map-links line { stroke: var(--gem); stroke-width: 1; opacity: 0.4; }
.map-links .ring { fill: var(--gem); fill-opacity: 0.07; stroke: var(--gem); stroke-width: 1; stroke-dasharray: 3 5; opacity: 0.8; }
.map-dots circle { fill: var(--card); stroke: var(--ink); stroke-width: 2; }
.map-dots .hub { fill: var(--gem); stroke: var(--gem); }
.map-labels text { fill: var(--muted); font-size: 13px; font-weight: 500; paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
.map-labels .hub-label { fill: var(--ink); font-size: 18px; font-weight: 600; }
.map-wrap figcaption { margin-top: 10px; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 600px) {
  .map-labels text { font-size: 17px; }
  .map-labels .hub-label { font-size: 22px; }
  .map-dots circle { stroke-width: 2.5; }
}

@media (min-width: 900px) {
  .where { grid-template-columns: 0.9fr 1.1fr; align-items: start; gap: 72px; }
  .map-wrap { position: sticky; top: 100px; }
}

/* ---------- FAQ ---------- */

.faq-grid { display: grid; gap: 32px; }
.faq-side .section-head { margin-bottom: 20px; }
.faq-ask { color: var(--muted); }
.faq-ask a { font-weight: 600; display: inline-block; padding-block: 10px; margin-block: -10px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  min-height: 60px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.08em;
  list-style: none;
  border-radius: 6px;
  transition: color 160ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gem); }
.faq summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--gem), var(--gem)) center / 12px 2px no-repeat,
    linear-gradient(var(--gem), var(--gem)) center / 2px 12px no-repeat;
  transition: transform 220ms ease, background-color 160ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--gem-wash); }
.faq details p {
  padding: 0 4px 24px;
  color: var(--muted);
  max-width: 64ch;
}
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] p { animation: faq-in 240ms ease; }
  @keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}

@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: start; }
  .faq-side { position: sticky; top: 100px; }
}

/* ---------- contact ---------- */

.contact-section {
  background: var(--gem-wash);
  border-top: 1px solid var(--line);
}
.contact-grid { display: grid; gap: 40px; }
.contact-side { display: grid; gap: 20px; align-content: start; }
.contact-side .section-head { margin-bottom: 8px; }
.contact-side p { color: var(--muted); }
.contact-side .big {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--ink);
}
.contact-links { list-style: none; display: grid; gap: 8px; }
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  word-break: break-all;
}
.contact-links a:hover { color: var(--gem); }
.contact-links svg { width: 22px; height: 22px; color: var(--gem); flex: none; }

.form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 600; }
.field label span { font-weight: 400; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--gem);
  outline-offset: 1px;
  border-color: var(--gem);
}
.form-foot { display: grid; gap: 16px; margin-top: 8px; }
.form-small { color: var(--muted); font-size: 0.9em; }
.form-small a { display: inline-block; padding-block: 12px; margin-block: -12px; }
.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 500;
}
.form-status:empty { display: none; }
.form-status.ok { background: var(--gem-wash); color: var(--ink); border: 1px solid var(--gem); }
.form-status.err { background: var(--paper); color: var(--ink); border: 1px solid var(--brass); }
.form-status a { word-break: break-all; }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
  .form { padding: 36px 32px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
}

/* ---------- footer (night band) ---------- */

.site-footer {
  background: var(--night);
  color: var(--night-muted);
  padding-block: 56px 36px;
  font-size: 0.95em;
}
.footer-grid { display: grid; gap: 36px; }
.footer-brand p { margin-top: 14px; max-width: 34ch; }
.site-footer .brand { color: var(--night-ink); }
.site-footer .brand .gem { color: #3FB58C; }
.footer-col h2 {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--night-ink);
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-col li { min-height: 36px; display: flex; align-items: center; }
.footer-col a {
  color: var(--night-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-col a:hover { color: #3FB58C; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #3FB58C; }
.copyright {
  padding-top: 24px;
  border-top: 1px solid var(--night-line);
  font-size: 0.88em;
}
.credit { font-size: 0.85em; margin-top: -8px; }
.credit a { color: var(--night-muted); display: inline-block; padding-block: 10px; margin-block: -10px; }
.credit a:hover { color: #3FB58C; }

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
  .copyright { grid-column: 1 / -1; }
  .credit { grid-column: 1 / -1; margin-top: -32px; }
}

/* ---------- inner pages (privacy, 404) ---------- */

.page { padding-block: 56px 96px; }
.prose { max-width: 68ch; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.prose .meta { margin-top: 16px; color: var(--muted); }
.prose h2 { font-size: 1.5rem; margin-top: 40px; }
.prose p { margin-top: 14px; }
.prose p a { display: inline-block; padding-block: 11px; margin-block: -11px; }
.prose ul { margin-top: 12px; padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose .btn { margin-top: 28px; }

.notfound { max-width: 640px; }
.notfound .code {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(5rem, 18vw, 9rem);
  line-height: 1;
  color: var(--gem);
  letter-spacing: -0.04em;
}
.notfound h1 { margin-top: 12px; font-size: clamp(2rem, 5vw, 3rem); }
.notfound p { margin-top: 16px; color: var(--muted); font-size: 1.08em; }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
