:root {
  --bg: #F3F6FA;
  --surface: #FFFFFF;
  --ink: #121A22;
  --ink-soft: #46535F;
  --ink-faint: #5C6975;
  --accent: #1A6BBF;      /* mid blue */
  --accent-deep: #0B4A80; /* deep navy blue */
  --accent-soft: #E8F0FA; /* pale blue chip/badge background */
  --line: #DCE4EC;
  --btn-ink: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(18, 26, 34, 0.06);
  --shadow-md: 0 4px 16px rgba(18, 26, 34, 0.08);
  --shadow-lg: 0 12px 32px rgba(18, 26, 34, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A121C;
    --surface: #121F2E;
    --ink: #E6ECF3;
    --ink-soft: #93A3B5;
    --ink-faint: #6D7E90;
    --accent: #4C8FE6;
    --accent-deep: #1A6BBF;
    --accent-soft: rgba(76, 143, 230, 0.14);
    --line: #1F2E40;
    --btn-ink: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  --bg: #0A121C;
  --surface: #121F2E;
  --ink: #E6ECF3;
  --ink-soft: #93A3B5;
  --ink-faint: #6D7E90;
  --accent: #4C8FE6;
  --accent-deep: #1A6BBF;
  --accent-soft: rgba(76, 143, 230, 0.14);
  --line: #1F2E40;
  --btn-ink: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
}
:root[data-theme="light"] {
  --bg: #F3F6FA;
  --surface: #FFFFFF;
  --ink: #121A22;
  --ink-soft: #46535F;
  --ink-faint: #5C6975;
  --accent: #1A6BBF;
  --accent-deep: #0B4A80;
  --accent-soft: #E8F0FA;
  --line: #DCE4EC;
  --btn-ink: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(18, 26, 34, 0.06);
  --shadow-md: 0 4px 16px rgba(18, 26, 34, 0.08);
  --shadow-lg: 0 12px 32px rgba(18, 26, 34, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-deep); }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 12px;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}
.skip-link:focus { top: 12px; }

h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 44px;
  height: 44px;
  align-self: center;
  flex-shrink: 0;
  border-radius: 10px;
}
.brand .mark {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.brand .mark small {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  font-weight: 500;
  margin-top: 2px;
}
nav.links {
  display: flex;
  gap: 26px;
  align-items: center;
}
nav.links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}
nav.links a:hover { color: var(--accent); }
nav.links a.btn,
nav.links a.btn:hover { color: var(--btn-ink); }
nav.links a.active { color: var(--accent); font-weight: 700; }

/* ---------- Mobile menu ---------- */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.mobile-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 28px 20px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 13px 4px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.active { color: var(--accent); font-weight: 700; }
.mobile-menu .btn { margin-top: 16px; justify-content: center; }

@media (min-width: 861px) {
  .mobile-menu { display: none !important; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-deep);
  color: var(--btn-ink);
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid var(--accent-deep);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.on-dark {
  background: #FFFFFF;
  color: var(--accent-deep);
  border-color: #FFFFFF;
}
.btn.on-dark:hover { background: #EFF4FB; }

@media (max-width: 860px) {
  nav.links a.hide-sm,
  nav.links .btn.hide-sm { display: none; }
  .mobile-toggle { display: flex; }
}

/* ---------- Section scaffolding ---------- */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
section { padding: 88px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; max-width: 60ch; }

/* ---------- Hero ---------- */
.hero {
  padding-top: 64px;
  padding-bottom: 76px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  margin-top: 18px;
}
.hero .lede {
  margin-top: 22px;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero .ctas {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  aspect-ratio: 4 / 5;
  max-width: 380px;
  margin: 0 auto;
}

/* browser-page mockup */
.hero-visual .device-browser {
  position: absolute;
  z-index: 1;
  top: 5%;
  left: 5%;
  width: 66%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.28);
  transform: rotate(-4deg);
  overflow: hidden;
}
.hero-visual .device-browser .d-chrome { display: flex; gap: 5px; padding: 9px 12px; border-bottom: 1px solid #E4E9EF; }
.hero-visual .device-browser .d-chrome span { width: 7px; height: 7px; border-radius: 50%; }
.hero-visual .device-browser .d-body { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.hero-visual .device-browser .d-line { height: 8px; border-radius: 4px; background: #E4E9EF; }
.hero-visual .device-browser .d-block { height: 34px; border-radius: 6px; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); }

/* laptop running the terminal */
.hero-visual .device-laptop {
  position: absolute;
  z-index: 2;
  bottom: 10%;
  left: 4%;
  width: 34%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(-6deg);
}
.hero-visual .device-laptop .screen {
  width: 100%;
  aspect-ratio: 16 / 12;
  background: #0B1420;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 14px 26px rgba(0,0,0,0.32);
}
.hero-visual .device-laptop .chrome { display: flex; align-items: center; gap: 4px; padding: 6px 9px; background: #111E2E; }
.hero-visual .device-laptop .chrome span { width: 5px; height: 5px; border-radius: 50%; }
.hero-visual .device-laptop .tab { margin-left: 5px; font-size: 0.5rem; color: #93A3B5; font-family: Menlo, monospace; }
.hero-visual .device-laptop .body { padding: 9px; display: flex; flex-direction: column; gap: 5px; }
.hero-visual .device-laptop .code { height: 5px; border-radius: 3px; }
.hero-visual .device-laptop .cursor { width: 4px; height: 7px; background: #4FB2F5; display: inline-block; animation: blink 1.1s steps(1) infinite; }
.hero-visual .device-laptop .base {
  width: 120%;
  height: 8px;
  margin-top: -1px;
  background: linear-gradient(180deg, #22303F, #16202B);
  border-radius: 0 0 6px 6px;
  position: relative;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}
.hero-visual .device-laptop .base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 3px;
  transform: translateX(-50%);
  width: 16%;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.2);
}
@keyframes blink { 50% { opacity: 0; } }

/* phone showing the resulting site */
.hero-visual .device-phone {
  position: absolute;
  z-index: 3;
  bottom: 5%;
  right: 6%;
  width: 24%;
  aspect-ratio: 9 / 16.5;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 28px rgba(0,0,0,0.3);
  transform: rotate(7deg);
  padding: 9px 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hero-visual .device-phone .p-notch { width: 24%; height: 5px; border-radius: 3px; background: #1B2430; margin: 0 auto 2px; }
.hero-visual .device-phone .p-header { height: 15%; border-radius: 6px; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); flex-shrink: 0; }
.hero-visual .device-phone .p-line { height: 6px; border-radius: 3px; background: #E4E9EF; }
.hero-visual .device-phone .p-row { display: flex; gap: 5px; flex: 1; }
.hero-visual .device-phone .p-card { flex: 1; border-radius: 6px; background: #EEF2F7; }
.hero-visual .device-phone .p-card.accent { background: var(--accent-soft); }
.hero-visual .device-phone .p-home { width: 28%; height: 3px; border-radius: 2px; background: #DCE4EC; margin: 2px auto 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 300px; }
}

/* ---------- Sub-page hero band ---------- */
.page-hero {
  padding: 38px 0 66px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%);
}
.page-hero .wrap { max-width: 760px; }
.page-hero .eyebrow { color: #CFE3FA; }
.page-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin-top: 10px;
  color: #fff;
}
.page-hero .lede {
  margin-top: 12px;
  color: #DCEAFB;
  font-size: 1rem;
}

/* ---------- Stats bar ---------- */
.stats { padding: 56px 0; background: var(--surface); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-label { margin-top: 6px; color: var(--ink-soft); font-size: 0.94rem; }

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}

/* ---------- Cards / services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.service-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card .icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.2rem; }
.service-card p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Service / about detail rows ---------- */
.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.detail-row.reverse .detail-copy { order: 2; }
.detail-row.reverse .detail-visual { order: 1; }
.detail-row + .detail-row { margin-top: 88px; }
.detail-copy .tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
}
.detail-copy h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 14px; }
.detail-copy > p { color: var(--ink-soft); margin-top: 16px; }
.check-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.check-list li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #1FA971;
  margin-top: 2px;
}
.check-list li strong { color: var(--ink); font-weight: 600; }

.detail-visual {
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px;
  text-align: center;
}
.detail-visual .visual-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.detail-visual .visual-num { font-size: 2.6rem; font-weight: 800; color: var(--ink); }
.detail-visual .visual-note { color: var(--ink-soft); font-size: 0.92rem; max-width: 30ch; }

@media (max-width: 860px) {
  .detail-row, .detail-row.reverse { grid-template-columns: 1fr; }
  .detail-row.reverse .detail-copy,
  .detail-row.reverse .detail-visual { order: 0; }
  .detail-row + .detail-row { margin-top: 56px; }
}

/* ---------- Process steps ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-step {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.process-step .num {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent);
}
.process-step h3 { font-size: 1.05rem; }
.process-step p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

@media (max-width: 860px) {
  .process { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .process { grid-template-columns: 1fr; }
}

/* ---------- FAQ accordion ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 4px 20px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chevron {
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}
.faq-item[open] summary .chevron { transform: rotate(45deg); }
.faq-item .faq-answer {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  max-width: 64ch;
}

/* ---------- Pricing ---------- */
.price-block { margin-bottom: 64px; }
.price-block:last-child { margin-bottom: 0; }
.price-block .label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
  display: block;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(var(--plan-count, 3), 1fr);
  gap: 16px;
  align-items: stretch;
}
.plan-card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plan-name { font-size: 1.02rem; color: var(--ink); }
.plan-price {
  font-variant-numeric: tabular-nums;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-deep);
}
.plan-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan-field { display: flex; flex-direction: column; gap: 4px; }
.plan-field .field-label {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.plan-field .field-value { color: var(--ink-soft); font-size: 0.92rem; }

.price-note { margin-top: 18px; font-size: 0.9rem; color: var(--ink-faint); }

/* Explicit snap points at common device widths, rather than fluid reflow */
@media (max-width: 1024px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 20px 18px; }
}

/* ---------- Team ---------- */
.team-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}
.team-card .photo { aspect-ratio: 1 / 1; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card .info { padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.team-card .info h3 { font-size: 1.4rem; }
.team-card .info .role { color: var(--accent); font-weight: 700; font-size: 0.96rem; }
.team-card .info p:last-child { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

@media (max-width: 620px) {
  .team-card { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 56px 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  text-align: center;
  clip-path: polygon(0 9%, 100% 0, 100% 91%, 0 100%);
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: #DCEAFB; max-width: 52ch; margin: 14px auto 0; }
.cta-band .ctas { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.contact-info > p { color: var(--ink-soft); margin-top: 16px; }
.info-rows { margin-top: 30px; display: flex; flex-direction: column; gap: 22px; }
.info-row { display: flex; align-items: flex-start; gap: 14px; }
.info-row .icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-row .icon svg { width: 22px; height: 22px; }
.info-row h3 { font-size: 1.02rem; margin-bottom: 2px; }
.info-row p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

.contact-form-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 36px;
}
.contact-form-card h3 { font-size: 1.4rem; margin-bottom: 22px; }
.field { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.field:first-of-type { margin-top: 0; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.field .optional { font-weight: 400; }
.field input, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.95rem;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 100px; }
.contact-form-card form { margin-top: 0; }
.contact-form-card .btn { margin-top: 24px; width: 100%; justify-content: center; }
.contact-form-card .btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.form-status { margin-top: 14px; font-size: 0.9rem; }
.form-status.error { color: #C4423E; }
.form-status.success { color: #1FA971; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 56px 0 32px;
}
.footer-grid h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-grid p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

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

@media (max-width: 720px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  section { padding: 60px 0; }
  .hero { padding-top: 40px; padding-bottom: 52px; }
  .section-head { margin-bottom: 36px; }
}

@media (max-width: 480px) {
  .nav { flex-wrap: wrap; row-gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .brand .mark { font-size: 0.92rem; }
  nav.links { gap: 14px; }
}

/* ---------- Legal pages ---------- */
.legal-page {
  max-width: 720px;
  padding-top: 0;
  padding-bottom: 40px;
}
.legal-page .legal-updated {
  color: var(--ink-faint);
  font-size: 0.9rem;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 36px;
  margin-bottom: 10px;
}
.legal-page h2:first-of-type { margin-top: 0; }
.legal-page p { color: var(--ink-soft); }
.legal-page .legal-note {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-faint);
}
