/* ==========================================================================
   Hafy marketing site: theme tokens mirror packages/ui/src/theme.ts
   (Ink text, Petrol primary, Canvas/Sand neutrals, Brass/Clay/Moss accents)
   ========================================================================== */

:root {
  --color-background: #FAF9F6;
  --color-surface: #F1ECE3;
  --color-surface-2: #EAE3D6;
  --color-border: #E3DBCC;
  --color-border-strong: #C2B49B;
  --color-text: #181D1F;
  --color-text-muted: #6B6157;
  --color-primary: #0E5C61;
  --color-primary-dark: #0A4548;
  --color-primary-text: #FFFFFF;
  --color-primary-soft: #DCEBEA;
  --color-success: #3D6B4A;
  --color-warning: #B8863A;
  --color-danger: #A8442F;
  --color-danger-bg: #F7E8E4;
  --color-brass: #C1873F;
  --color-cta-dark: #161B1E;
  --color-overlay: rgba(22, 27, 30, 0.55);

  --font-heading: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(22, 27, 30, 0.06);
  --shadow-card: 0 4px 14px rgba(22, 27, 30, 0.08);
  --shadow-lg: 0 10px 28px rgba(22, 27, 30, 0.14);

  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

@media (max-width: 640px) {
  section {
    padding: 56px 0;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-text);
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border-strong);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-dark {
  background: var(--color-cta-dark);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span {
  margin: 5px 0;
}

.nav-toggle.open span {
  opacity: 0;
}

.nav-toggle.open::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions .btn-outline {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(60% 60% at 30% 30%, var(--color-primary-soft) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  max-width: 640px;
}

.hero .lede {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  padding: 10px 20px 10px 16px;
  font-size: 13px;
  color: var(--color-text-muted);
  background: var(--color-background);
}

.store-badge strong {
  display: block;
  font-size: 14px;
  color: var(--color-text);
  font-family: var(--font-heading);
}

.store-badge svg {
  color: var(--color-text);
  flex-shrink: 0;
}

/* Hero phone mockup */

.hero-visual {
  display: flex;
  justify-content: center;
}

/* Modern (iPhone 16/17-style) frame: tall 9:19.5 body, side-button bumps,
   a Dynamic Island cut into the screen instead of a notch, and a gesture
   home-indicator bar, rather than a plain rounded rectangle. */
.phone {
  position: relative;
  width: 264px;
  height: 572px;
  flex-shrink: 0;
  border-radius: 54px;
  background: linear-gradient(160deg, #3c4144 0%, var(--color-cta-dark) 45%, #0c0f10 100%);
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

.phone::before,
.phone::after {
  content: "";
  position: absolute;
  background: #0c0f10;
}

/* Volume buttons */
.phone::before {
  left: -3px;
  top: 118px;
  width: 3px;
  height: 30px;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 44px 0 #0c0f10;
}

/* Power button */
.phone::after {
  right: -3px;
  top: 152px;
  width: 3px;
  height: 50px;
  border-radius: 0 2px 2px 0;
}

.dynamic-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 24px;
  background: #000;
  border-radius: 14px;
  z-index: 6;
}

.phone-screen {
  position: absolute;
  inset: 12px;
  border-radius: 44px;
  background: var(--color-background);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 16px;
}

.phone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 5px;
  border-radius: 3px;
  background: var(--color-cta-dark);
  opacity: 0.3;
  z-index: 6;
}

.phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px 10px 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-text);
}

.phone-statusbar-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text);
}

.phone-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.phone-greeting {
  font-size: 12px;
  color: var(--color-text-muted);
}

.phone-username {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
}

.phone-bell {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  flex-shrink: 0;
}

.phone-bell-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-danger);
  border: 1.5px solid var(--color-background);
}

.phone-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  padding: 11px 16px;
  color: var(--color-text-muted);
  font-size: 12.5px;
  margin-bottom: 18px;
}

.phone-section-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
}

.phone-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.phone-category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.phone-category-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-category-icon svg {
  width: 20px;
  height: 20px;
}

.phone-category-tile span {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.phone-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.phone-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
}

.phone-tabbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--color-background);
  border-top: 1px solid var(--color-border);
  padding: 10px 6px 20px;
  margin: auto -16px 0;
}

.phone-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--color-text-muted);
}

.phone-tab svg {
  width: 19px;
  height: 19px;
}

.phone-tab.active {
  color: var(--color-primary);
}

.phone-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}

.phone-screen .phone-card:last-child {
  margin-bottom: 0;
}

.phone-card .row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.avatar-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.phone-card .name {
  font-weight: 700;
  font-size: 13.5px;
}

.phone-card .meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.pill-success {
  background: #E4EEE6;
  color: var(--color-success);
}

.pill-brass {
  background: #F5E9D6;
  color: var(--color-brass);
}

/* ---------- Section headers ---------- */

.section-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head.left {
  margin: 0 0 48px;
  text-align: left;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 16.5px;
}

.tag {
  display: inline-block;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}

/* ---------- Mission / Vision ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.value-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.value-card .icon-badge {
  margin-bottom: 18px;
}

.value-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.value-card p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-badge svg {
  width: 26px;
  height: 26px;
}

.bg-surface {
  background: var(--color-surface);
}

/* ---------- Values grid ---------- */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.mini-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.mini-card h4 {
  font-size: 16.5px;
  margin: 14px 0 8px;
}

.mini-card p {
  font-size: 14.5px;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ---------- Categories ---------- */

.category-card {
  text-align: center;
  padding: 30px 20px;
}

.category-card .icon-badge {
  margin: 0 auto 16px;
}

/* ---------- Tabs (How it works) ---------- */

.tabs-toggle {
  display: inline-flex;
  padding: 5px;
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  margin: 0 auto 44px;
  border: 1px solid var(--color-border);
}

.tabs-toggle button {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--color-text-muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tabs-toggle button.active {
  background: var(--color-primary);
  color: var(--color-primary-text);
}

.tabs-center {
  display: flex;
  justify-content: center;
}

.steps {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.steps.active {
  display: grid;
}

@media (max-width: 980px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step-card {
  position: relative;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-cta-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}

.step-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ---------- Trust / features ---------- */

.feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 760px) {
  .feature-row {
    grid-template-columns: 1fr;
  }
}

.feature-item {
  display: flex;
  gap: 18px;
  padding: 8px 0;
}

.feature-item .icon-badge {
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 17px;
  margin-bottom: 6px;
}

.feature-item p {
  color: var(--color-text-muted);
  font-size: 14.5px;
  margin-bottom: 0;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--color-text);
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--color-primary);
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 14px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding: 0 4px 22px;
  color: var(--color-text-muted);
  font-size: 15px;
  margin: 0;
}

.inline-link {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- CTA / notify ---------- */

.cta-section {
  background: var(--color-cta-dark);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 56px;
  text-align: center;
}

@media (max-width: 640px) {
  .cta-section {
    padding: 36px 22px;
  }
}

.cta-section h2 {
  color: #fff;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin: 0 auto 28px;
}

.notify-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 420px;
  margin: 0 auto;
}

.notify-role {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2px;
}

.notify-role-text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14.5px;
  font-weight: 600;
}

.notify-role-text:last-child {
  margin-left: -7px;
}

.notify-role input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.notify-role label {
  cursor: pointer;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
  font-weight: 700;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.notify-role input[type="radio"]:checked + label {
  background: #fff;
  color: var(--color-cta-dark);
  border-color: #fff;
}

.notify-role input[type="radio"]:focus-visible + label {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.notify-fields {
  display: flex;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.notify-form input[type="email"] {
  flex: 1 1 240px;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  min-width: 0;
}

.notify-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.notify-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary-soft);
}

.notify-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 26px;
  margin-bottom: 0;
}

.notify-error {
  font-size: 13.5px;
  font-weight: 600;
  color: #F3C9BE;
  margin-top: 14px;
  margin-bottom: 0;
}

/* Honeypot field: invisible to people, still reachable by form-filling bots */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.notify-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 14px 22px;
  font-weight: 700;
  font-size: 14.5px;
  max-width: 420px;
  margin: 0 auto;
}

.cta-section.submitted .notify-form,
.cta-section.submitted .notify-note {
  display: none;
}

.cta-section.submitted .notify-success {
  display: flex;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 56px 0 32px;
  background: var(--color-surface);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 760px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-brand-logo {
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 14px;
  max-width: 280px;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  text-decoration: none;
  font-size: 14.5px;
  color: var(--color-text);
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-strong);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.reveal-hidden {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.reveal-hidden.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Simple legal pages ---------- */

.legal-page {
  padding: 64px 0 96px;
}

.legal-page .container {
  max-width: 800px;
}

.legal-page h1 {
  font-size: 34px;
}

.legal-updated {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 20px;
  margin-top: 40px;
}

.legal-page p,
.legal-page li {
  color: var(--color-text-muted);
  font-size: 15.5px;
}

.legal-page ul {
  padding-left: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: 32px;
}

.contact-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.contact-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.contact-card p {
  margin-bottom: 4px;
}

.contact-card a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}
