/* Smartax marketing site — matches Admin brand tokens */
:root {
  --brand: #231709;
  --brand-hover: #3d2e1f;
  --brand-light: #2f2316;
  --accent: #d4a373;
  --accent-hover: #c49363;
  --accent-muted: #7b4019;
  --surface: #faf8f5;
  --surface-elevated: #ffffff;
  --text: #1c1917;
  --text-muted: #57534e;
  --text-soft: #78716c;
  --border: #e7e5e4;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(35, 23, 9, 0.08);
  --shadow-lg: 0 20px 50px rgba(35, 23, 9, 0.12);
  --max-width: 1140px;
  --header-h: 72px;
  --header-logo-w: 9.5rem;
  --header-actions-w: 2.75rem;
}

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

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

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.nav-open {
  overflow: hidden;
}

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

a { color: var(--accent-muted); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:link, a:visited { color: var(--accent-muted); }
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--brand);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header — fixed bar stays above page content on mobile */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  min-height: var(--header-h);
  background: rgba(250, 248, 245, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "logo actions";
  align-items: center;
  gap: 0.75rem;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  text-decoration: none;
  color: var(--brand);
  grid-area: logo;
}

.logo:hover { color: var(--brand); }

.logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: var(--header-logo-w);
  object-fit: contain;
}

.logo--footer .logo-img,
.logo-img--footer {
  display: block;
  height: 32px;
  width: auto;
  max-width: 9.5rem;
  opacity: 0.98;
}

.nav-desktop {
  display: none;
  grid-area: nav;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  min-width: 0;
  flex-wrap: nowrap;
}

.nav-desktop a,
.nav-desktop-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"],
.nav-desktop-link:hover,
.nav-desktop-link[aria-current="page"] {
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.375rem;
  flex-shrink: 0;
  grid-area: actions;
  justify-self: end;
  position: relative;
  z-index: 3;
}

/* Must beat .btn { display: inline-flex } — portal is desktop header only */
.btn.header-cta {
  display: none;
  min-width: 7.25rem;
  padding-inline: 0.75rem;
  white-space: nowrap;
  font-size: 0.8125rem;
}

.lang-switch {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  min-width: 3.25rem;
  width: 3.25rem;
  text-align: center;
  flex-shrink: 0;
}

.lang-switch:hover { color: var(--brand); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin: 0;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(35, 23, 9, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
}

a.btn,
a.btn:link,
a.btn:visited,
a.btn:hover,
a.btn:active,
a.btn:focus,
a.btn:focus-visible {
  text-decoration: none;
}

button.btn {
  line-height: inherit;
}

.btn:active { transform: scale(0.98); }

.btn-primary,
.btn-primary:link,
.btn-primary:visited {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(35, 23, 9, 0.2);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-hover);
  color: #fff;
}

.btn-secondary,
.btn-secondary:link,
.btn-secondary:visited,
.btn-portal,
.btn-portal:link,
.btn-portal:visited {
  background: var(--surface-elevated);
  color: var(--brand);
  border: 1px solid var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-portal:hover,
.btn-portal:focus-visible {
  border-color: var(--accent);
  color: var(--brand);
  background: var(--surface-elevated);
}

.btn-accent,
.btn-accent:link,
.btn-accent:visited {
  background: var(--accent);
  color: var(--brand);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: var(--accent-hover);
  color: var(--brand);
}

.btn-lg {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--brand);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1090;
  background: var(--surface);
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 12px 40px rgba(35, 23, 9, 0.12);
}

.nav-mobile.open { display: block; }

@media (max-width: 767px) {
  .btn.header-cta {
    display: none !important;
    visibility: hidden;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
  }
}

.nav-mobile a {
  display: block;
  padding: 0.875rem 0;
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
  font-size: 1.0625rem;
  border-bottom: 1px solid var(--border);
}

.nav-mobile .btn { width: 100%; margin-top: 1rem; }

.nav-mobile-portal {
  display: block;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(212, 163, 115, 0.25), transparent),
    linear-gradient(180deg, var(--surface) 0%, #f5f0ea 100%);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(212, 163, 115, 0.2);
  border: 1px solid rgba(212, 163, 115, 0.4);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-muted);
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-note {
  font-size: 0.875rem;
  color: var(--text-soft);
}

.hero-note a,
.hero-note a:link,
.hero-note a:visited {
  color: var(--accent-muted);
  font-weight: 600;
}

.hero-note a:hover {
  color: var(--brand);
}

.hero-visual {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  overflow: hidden;
}

.hero-mock {
  border-radius: calc(var(--radius-lg) - 8px);
  background: linear-gradient(145deg, var(--brand) 0%, #3d2e1f 100%);
  aspect-ratio: 16 / 11;
  padding: 1rem;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.75rem;
}

.mock-bar {
  display: flex;
  gap: 0.375rem;
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}

.mock-content {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.75rem;
}

.mock-panel {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.75rem;
}

.mock-panel-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.mock-stat {
  background: rgba(212, 163, 115, 0.2);
  border-radius: 6px;
  height: 48px;
}

.mock-line {
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.mock-line.short { width: 60%; }

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-alt {
  background: var(--surface-elevated);
  border-block: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-muted);
  margin-bottom: 0.5rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(212, 163, 115, 0.5);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(212, 163, 115, 0.2);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card h3 { margin: 0 0 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.9375rem; margin: 0; }

/* Audience split */
.split-grid {
  display: grid;
  gap: 1.5rem;
}

.split-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-elevated);
}

.split-card.office {
  border-top: 4px solid var(--accent);
}

.split-card.client {
  border-top: 4px solid var(--accent-muted);
}

.split-card ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.split-card li { margin-bottom: 0.375rem; }

/* Workflow */
.workflow {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.workflow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.workflow-step:last-child { border-bottom: none; }

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.workflow-step h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.workflow-step p { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }

/* CTA band */
.cta-band {
  background: var(--brand);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  text-align: center;
}

.cta-band h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 32rem; margin: 0 auto 1.5rem; }

.cta-band .btn-primary,
.cta-band .btn-primary:link,
.cta-band .btn-primary:visited {
  background: var(--accent);
  color: var(--brand);
}

.cta-band .btn-primary:hover,
.cta-band .btn-primary:focus-visible {
  background: var(--accent-hover);
  color: var(--brand);
}

/* FAQ */
.faq-list { max-width: 40rem; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Footer */
.site-footer {
  background: var(--brand);
  color: rgba(255,255,255,0.8);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2rem 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand .logo {
  display: inline-flex;
  margin-bottom: 0.75rem;
  max-width: 10rem;
}

.footer-brand .logo:hover { opacity: 0.9; }

.footer-tagline {
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 22rem;
  margin: 0;
  color: rgba(255,255,255,0.72);
}

.footer-col h4 {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9375rem;
  margin-bottom: 0.625rem;
  line-height: 1.4;
}

.footer-col a:hover,
.footer-col a:focus-visible { color: var(--accent); }

.footer-contact {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  word-break: break-all;
}

.footer-legal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.footer-legal-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible { color: var(--accent); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8125rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.footer-bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* Legal pages */
.legal-doc .container {
  max-width: 42rem;
}

.legal-meta {
  color: var(--text-soft);
  font-size: 0.9375rem;
  margin: 0 0 2rem;
}

.legal-doc h2 {
  font-size: 1.125rem;
  margin: 2rem 0 0.75rem;
}

.legal-doc h2:first-of-type {
  margin-top: 0;
}

.legal-doc p,
.legal-doc li {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal-doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-doc li { margin-bottom: 0.5rem; }

.legal-doc a {
  color: var(--accent-muted);
  font-weight: 500;
}

.legal-doc a:hover { color: var(--brand); }

.legal-back {
  margin-top: 2.5rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-elevated);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.legal-table th,
.legal-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.legal-table th {
  background: var(--surface);
  color: var(--brand);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-table tr:last-child td { border-bottom: none; }

.legal-table code {
  font-size: 0.8125rem;
  word-break: break-all;
}

.contact-email {
  color: var(--accent-muted);
  font-weight: 500;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 2000;
  padding: 1rem;
  background: var(--brand);
  color: rgba(255,255,255,0.9);
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -8px 32px rgba(35, 23, 9, 0.2);
  transform: translateY(100%);
  transition: transform 0.28s ease;
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
}

.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner a:hover { color: #fff; }

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-banner .btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

.cookie-banner .btn-secondary:hover {
  border-color: var(--accent);
  color: #fff;
}

main { flex: 1; }

/* Page hero (inner pages) */
.page-hero {
  padding: 2.5rem 0 2rem;
  background: linear-gradient(180deg, #f5f0ea 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 40rem;
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}

.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }

/* Feature detail */
.feature-block {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-block:last-child { border-bottom: none; }

.feature-block h2 { margin-bottom: 0.5rem; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgba(212, 163, 115, 0.15);
  color: var(--accent-muted);
}

/* Contact page */
.page-hero--compact {
  padding: 1.75rem 0 1.25rem;
}

.section--contact {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.contact-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.contact-intro h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
}

.contact-lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 28rem;
}

.contact-points {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.contact-points li {
  position: relative;
  padding-left: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.contact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-aside {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-soft);
}

.contact-form-panel {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.contact-form-panel .form-grid {
  max-width: none;
}

/* Contact form */
.form-grid {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

.form-grid--split .form-field-full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.375rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--surface-elevated);
  color: var(--text);
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

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

textarea { min-height: 120px; resize: vertical; }

.form-alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.form-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.form-alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.form-alert[hidden] { display: none !important; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-recaptcha-note {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.form-recaptcha-note[hidden] { display: none !important; }

.form-recaptcha-note a {
  color: var(--text-soft);
  text-decoration: underline;
}

.thank-you-section {
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.thank-you-card {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.thank-you-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 999px;
  background: rgba(212, 163, 115, 0.18);
  color: var(--accent-muted);
}

.thank-you-card h1 {
  margin: 0 0 0.75rem;
}

.thank-you-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.thank-you-note {
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin: 0 0 1.75rem;
}

.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.app-links {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.app-link-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.app-link-card h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.app-link-card p { margin: 0; font-size: 0.875rem; color: var(--text-muted); }

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .split-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid--4 { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

@media (min-width: 640px) {
  .form-grid--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.5rem 3.5rem;
  }

  :root {
    --header-actions-w: 8.25rem;
  }

  .header-inner {
    grid-template-columns: var(--header-logo-w) minmax(0, 1fr) var(--header-actions-w);
    grid-template-areas: "logo nav actions";
    gap: 0.75rem 1.25rem;
  }

  .logo {
    max-width: var(--header-logo-w);
  }

  .nav-desktop {
    display: flex;
  }

  .header-actions {
    width: var(--header-actions-w);
    min-width: var(--header-actions-w);
  }

  .nav-toggle { display: none; }
  .btn.header-cta { display: inline-flex; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .feature-block { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (min-width: 900px) {
  :root {
    --header-logo-w: 10.5rem;
  }

  .nav-desktop a,
  .nav-desktop-link {
    font-size: 0.9375rem;
  }
}

@media (min-width: 1024px) {
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
