/* =========================================================================
   onlinepresence.my — public site styles
   Warm, editorial "local studio" aesthetic.
   Display: Fraunces (serif) · Body/UI: Instrument Sans
   Palette: warm paper, ink, clay accent, muted green for "live" states.
   ========================================================================= */

:root {
  --paper: #faf6ef;
  --paper-2: #f3ecdf;
  --surface: #ffffff;
  --surface-warm: #fffdf7;
  --ink: #1c1712;
  --ink-soft: #3a322a;
  --muted: #6e6456;
  --line: #e6dccb;
  --line-strong: #d6c8ae;

  --accent: #c14b2e;
  --accent-ink: #ffffff;
  --accent-hover: #a83e25;
  --accent-soft: #f4e4d9;
  --accent-ring: rgba(193, 75, 46, 0.35);

  --green: #2f6b4f;
  --green-soft: #e4eee6;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 12px;
  --radius-lg: 18px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(28, 23, 18, 0.05), 0 4px 14px rgba(28, 23, 18, 0.05);
  --shadow-md: 0 2px 4px rgba(28, 23, 18, 0.06), 0 14px 40px rgba(28, 23, 18, 0.10);

  --container: 1140px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: pretty;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); font-weight: 600; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: var(--accent-hover); }

.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 40ch;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ------------------------------------------------------------------ wordmark */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }

.wordmark-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.wordmark-text em {
  font-style: normal;
  color: var(--accent);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--ink-soft);
}

.btn-light {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--surface);
}
.btn-light:hover { background: var(--paper-2); color: var(--ink); }

.btn-lg { font-size: 1.05rem; padding: 1rem 1.6rem; }
.btn-sm { font-size: 0.9rem; padding: 0.6rem 1rem; }
.btn-block { width: 100%; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.86);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.5rem;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}
.site-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(193, 75, 46, 0.07), transparent 60%),
    var(--paper);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-copy h1 { max-width: 17ch; }
.hero-copy .lede { max-width: 46ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0 1.5rem;
}

.hero-note { font-size: 0.95rem; margin: 0; }

/* --- browser mock --- */

.browser {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; flex: none; }
.dot-a { background: #e08a7a; }
.dot-b { background: #e7c07a; }
.dot-c { background: #9cc0a0; }
.browser-url {
  margin-left: 0.6rem;
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-mock { padding: 1.6rem; }
.mock-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}
.mock-brand {
  width: 7rem; height: 1rem;
  border-radius: 4px;
  background: var(--ink);
  opacity: 0.85;
}
.mock-links {
  width: 10rem; height: 0.6rem;
  border-radius: 4px;
  background: var(--line-strong);
}
.mock-hero {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-bottom: 1rem;
}
.mock-line {
  display: block;
  border-radius: 4px;
  background: var(--ink-soft);
  margin-bottom: 0.6rem;
}
.mock-line-1 { width: 72%; height: 1.1rem; }
.mock-line-2 { width: 48%; height: 0.8rem; background: var(--muted); }
.mock-btn {
  display: inline-block;
  margin-top: 0.6rem;
  width: 6.5rem; height: 1.6rem;
  border-radius: 6px;
  background: var(--accent);
}
.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.mock-card {
  height: 4.5rem;
  border-radius: var(--radius-sm);
  background: var(--surface-warm);
  border: 1px solid var(--line);
}

.visual-caption {
  text-align: center;
  font-size: 0.9rem;
  margin: 1rem 0 0;
}

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

section { padding: 5rem 0; }

.section-head { max-width: 34ch; margin-bottom: 3rem; }
.section-head h2 { margin-bottom: 0; }

/* ------------------------------------------------------------------ featured */

.featured { background: var(--paper); }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.site-card {
  display: block;
  background: var(--surface-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.site-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
  color: var(--ink);
}

.site-card .browser { box-shadow: none; }

.site-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.25rem 1rem;
  margin-top: 1.25rem;
}
.site-meta h3 { margin: 0; font-size: 1.25rem; }
.site-meta .muted { margin: 0; font-size: 0.95rem; }
.site-meta .live {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}
.live::before {
  content: "";
  width: 0.45rem; height: 0.45rem;
  border-radius: 50%;
  background: var(--green);
}

/* --- site preview mockups --- */

.site-preview {
  height: 11rem;
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
}

.site-preview--sun {
  background: linear-gradient(160deg, #f6d67a 0%, #f2b84b 100%);
}
.site-preview--sun .pv-title { width: 62%; height: 1.05rem; background: #5b3a12; }
.site-preview--sun .pv-sub { width: 40%; height: 0.6rem; background: #8a5f22; }
.site-preview--sun .pv-chip { width: 5.5rem; height: 1.5rem; border-radius: 999px; background: #5b3a12; }

.site-preview--hair {
  background: linear-gradient(160deg, #26221f 0%, #12100e 100%);
  align-items: flex-start;
}
.site-preview--hair .pv-title { width: 70%; height: 0.9rem; background: #e9e0d0; }
.site-preview--hair .pv-sub { width: 46%; height: 0.55rem; background: #6f675c; }
.site-preview--hair .pv-rule { width: 100%; height: 1px; background: #3a352f; margin-top: 0.6rem; }

.pv-title, .pv-sub { display: block; border-radius: 3px; }

/* ------------------------------------------------------------------ how */

.how { background: var(--surface-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.how-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2.5rem;
}
.how-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.5rem;
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
}
.how-row:last-child { border-bottom: 1px solid var(--line); }
.how-row h3 { margin-bottom: 0.35rem; }
.how-row p { margin: 0; max-width: 60ch; }

.how-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0;
}

/* ------------------------------------------------------------------ cta band */

.cta-band {
  background: var(--ink);
  color: #f6f0e6;
}
.cta-band h2 { color: #f6f0e6; }
.cta-band .muted { color: #b8ad9c; }

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}
.cta-inner h2 { margin-bottom: 0; }
.cta-inner .btn { margin-top: 1.2rem; }

/* ------------------------------------------------------------------ page hero */

.page-hero {
  padding: 5rem 0 3rem;
  background:
    radial-gradient(1000px 420px at 15% -10%, rgba(193, 75, 46, 0.06), transparent 60%),
    var(--paper);
}
.page-hero-inner { max-width: 60ch; }
.page-hero h1 { max-width: 22ch; }

/* ------------------------------------------------------------------ services */

.services { padding-top: 2rem; }

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}
.service--alt .service-text { order: 1; }
.service--alt .service-visual { order: 2; }

.service-text h2 { margin-top: 0.6rem; }
.service-text p { color: var(--ink-soft); max-width: 52ch; }

.plain-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.plain-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.85rem;
  height: 0.85rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.5 3.5L15 7' fill='none' stroke='%23c14b2e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.service-visual { display: flex; justify-content: center; }

.service-visual--google .google-card {
  width: 100%;
  max-width: 20rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.gc-name { width: 55%; height: 0.9rem; border-radius: 4px; background: var(--ink); }
.gc-stars { width: 6.5rem; height: 0.75rem; border-radius: 4px; background: #e7c07a; }
.gc-row { width: 100%; height: 0.6rem; border-radius: 4px; background: var(--line-strong); }
.gc-row-short { width: 68%; }

.service-visual--changes .changes-card {
  width: 100%;
  max-width: 20rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.ch-line { height: 0.7rem; border-radius: 4px; background: var(--line-strong); }
.ch-line-a { width: 90%; }
.ch-line-b { width: 62%; }
.ch-check {
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--green-soft);
  margin-top: 0.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.5 3.5L15 7' fill='none' stroke='%232f6b4f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 55% 55%;
  background-position: center;
  background-repeat: no-repeat;
}

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

.pricing { padding-top: 2rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
.price-card h3 { font-size: 1.4rem; margin-bottom: 0.25rem; }
.price-note { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

.price {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.price-card .plain-list { margin-bottom: 1.75rem; }
.price-card .btn { margin-top: auto; }

.price-card--featured {
  background: var(--ink);
  border-color: var(--ink);
  color: #f6f0e6;
  box-shadow: var(--shadow-md);
}
.price-card--featured h3,
.price-card--featured .price { color: #f6f0e6; }
.price-card--featured .price-note { color: #b8ad9c; }
.price-card--featured .plain-list li { color: #e6dccb; }
.price-card--featured .plain-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.5 3.5L15 7' fill='none' stroke='%23f6d67a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.price-badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  white-space: nowrap;
}

.pricing-foot { margin-top: 1.5rem; font-size: 0.9rem; }

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

.contact { padding-top: 2rem; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3.5rem;
}

.contact-emails {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.contact-emails a { font-weight: 500; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
}

/* ------------------------------------------------------------------ forms */

.field-group { margin-bottom: 1.15rem; }
.field-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.field {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface-warm);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(28, 23, 18, 0.14);
}
.field-area { resize: vertical; min-height: 8rem; }

.field-error {
  display: block;
  color: var(--accent-hover);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  cursor: pointer;
}
.check input { accent-color: var(--accent); width: 1rem; height: 1rem; }

.alert {
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.alert.error {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid rgba(193, 75, 46, 0.25);
}
.alert.error ul { margin: 0; padding-left: 1.1rem; }

.thank-you {
  padding: 1.5rem 0;
}
.thank-you h2 { margin-bottom: 0.4rem; }
.thank-you .btn { margin-top: 1.25rem; }

/* ------------------------------------------------------------------ auth shell */

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(193, 75, 46, 0.06), transparent 60%),
    var(--paper);
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 26rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.25rem 2rem;
}
.auth-card h1 { font-size: 2rem; margin-bottom: 0.25rem; }
.auth-card .muted { margin-bottom: 1.75rem; }

.auth-alt { margin: 1.5rem 0 0; font-size: 0.95rem; }

/* ------------------------------------------------------------------ portal */

.portal { text-align: left; max-width: 40rem; }
.portal h1 { font-size: 1.9rem; }

.role-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.25rem;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  background: var(--ink);
  color: #d8cebd;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand .wordmark { color: #f6f0e6; }
.footer-brand .wordmark:hover { color: #f6f0e6; }
.footer-brand .muted { margin-top: 1rem; max-width: 40ch; color: #b8ad9c; }

.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f8572;
  margin-bottom: 0.4rem;
}
.footer-col a { color: #d8cebd; font-size: 0.98rem; }
.footer-col a:hover { color: #f6f0e6; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid #33291f;
  padding-top: 1.5rem;
  font-size: 0.9rem;
}

/* ------------------------------------------------------------------ misc */

.not-found { padding: 3rem 0; max-width: 40rem; }
.not-found h1 { margin-bottom: 0.4rem; }
.not-found .btn { margin-top: 1.25rem; }

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

/* FocusOnNavigate focuses the <h1> after each navigation (adds tabindex="-1")
   for screen readers; suppress the focus ring it paints around the headline. */
h1:focus,
h1:focus-visible {
  outline: none;
}

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

/* ------------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { max-width: 34rem; margin: 0 auto; width: 100%; }
  .featured-grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 1.5rem; }
  .service--alt .service-text { order: 0; }
  .service--alt .service-visual { order: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 0.9rem; padding-bottom: 0.9rem; }
  .site-nav { order: 3; width: 100%; justify-content: space-between; gap: 0.5rem; padding-top: 0.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
  .how-row { grid-template-columns: 1fr; gap: 0.5rem; }
}
