/* Algolytical — static site stylesheet */

:root {
  --background: #f8fafc;
  --foreground: #111827;
  --card: #ffffff;
  --card-foreground: #111827;
  --primary: #1d2d73;
  --primary-foreground: #ffffff;
  --secondary: #eef2fa;
  --secondary-foreground: #1d2d73;
  --muted: #f1f5f9;
  --muted-foreground: #6b7280;
  --accent: #eef2fa;
  --accent-foreground: #1d2d73;
  --destructive: #ef4444;
  --border: #e5e7eb;
  --input: #e5e7eb;
  --ring: #4a90e2;
  --brand-accent: #4a90e2;
  --brand-accent-foreground: #ffffff;
  --brand-secondary: #2e4bc6;
  --success: #22c55e;

  --radius-sm: 5px;
  --radius-md: 7px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-2xl: 18px;
  --radius-3xl: 22px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
* { border-color: var(--border); }

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

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
ul, ol { margin: 0; }
img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

/* Layout */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.uppercase-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin: 0 0 0.75rem;
}

.section { padding: 5rem 0; }
@media (min-width: 640px) { .section { padding: 7rem 0; } }
.section--tight { padding: 4rem 0; }
@media (min-width: 640px) { .section--tight { padding: 5rem 0; } }
.section--border-top { border-top: 1px solid var(--border); }
.section--border-y { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--tint { background: color-mix(in oklch, var(--secondary), transparent 0%); background: var(--secondary); opacity: 1; }
.section--tint { background: rgba(238, 242, 250, 0.55); }

.text-muted { color: var(--muted-foreground); }
.text-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  max-width: 34rem;
}
.text-balance { text-wrap: balance; }

/* Loading screen */

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
  transition: opacity 0.4s ease-in-out;
}
#loading-screen img {
  height: 40px;
  width: auto;
  animation: loading-logo-in 0.5s ease-out;
}
#loading-screen.is-hidden {
  opacity: 0;
  pointer-events: none;
}
@keyframes loading-logo-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Reveal-on-load animation */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal-in 0.5s ease-out forwards;
}
.reveal--delay-1 { animation-delay: 0.15s; }
@keyframes reveal-in {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, #loading-screen img { animation: none; opacity: 1; transform: none; }
}

/* Navbar */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(10px);
}
.navbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem;
  min-height: 5rem;
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 2.75rem; width: auto; }
@media (min-width: 640px) { .logo img { height: 3rem; } }

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  order: 3;
  flex-basis: 100%;
  justify-content: center;
}
@media (min-width: 1024px) {
  .nav-links { order: 0; flex-basis: auto; gap: 2rem; }
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--foreground); }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.navbar-actions .navbar-username {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: color-mix(in oklch, var(--primary), transparent 20%); }

.btn-accent { background: var(--brand-accent); color: var(--brand-accent-foreground); }
.btn-accent:hover { background: color-mix(in oklch, var(--brand-accent), transparent 10%); }

.btn-outline { background: var(--background); border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { background: var(--muted); }

.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--muted); }

.btn-block { width: 100%; }
.btn-sm { height: 2.25rem; padding: 0 1rem; font-size: 0.875rem; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-lg);
  border: none;
  background: transparent;
  cursor: pointer;
}
.btn-icon:hover { background: var(--muted); }

/* Cards, forms, misc components shared across pages */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
}
@media (min-width: 640px) { .card { padding: 2.5rem; } }

.field { margin-bottom: 1.25rem; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.field label .field-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.field label .field-link:hover { color: var(--foreground); }

.input, .textarea, .select {
  margin-top: 0.5rem;
  width: 100%;
  height: 2.75rem;
  padding: 0 0.875rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--input);
  background: transparent;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.textarea { height: auto; padding: 0.625rem 0.875rem; resize: vertical; }
.select { appearance: none; background-repeat: no-repeat; background-position: right 0.875rem center; background-size: 1rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.input::placeholder, .textarea::placeholder { color: var(--muted-foreground); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.25);
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.or-divider::before, .or-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}
.or-divider span { font-size: 0.75rem; text-transform: uppercase; color: var(--muted-foreground); }

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  line-height: 1.6;
  display: none;
}
.form-message.is-visible { display: block; }
.form-message--error { background: rgba(239, 68, 68, 0.1); color: var(--destructive); }
.form-message--info { background: rgba(238, 242, 250, 0.8); color: var(--muted-foreground); }

.google-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; }
.google-btn svg { width: 1rem; height: 1rem; }

/* Grids */

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .grid-cols-lg-2 { grid-template-columns: 1fr 1fr; }
}

/* Icon tiles used across preview/topic/pillar cards */

.icon-accent { color: var(--brand-accent); }
.icon-accent svg { width: 1.25rem; height: 1.25rem; stroke-width: 1.75; }

.tile {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: border-color 0.15s ease;
}
.tile:hover { border-color: rgba(74, 144, 226, 0.4); }
.tile h3 { margin-top: 1rem; font-size: 1.125rem; }
.tile p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }

.tag {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(74, 144, 226, 0.12), transparent),
    radial-gradient(50% 40% at 10% 10%, rgba(29, 45, 115, 0.08), transparent);
}
.hero .container {
  display: grid;
  align-items: center;
  gap: 3.5rem;
  padding-top: 3rem;
  padding-bottom: 5rem;
}
@media (min-width: 1024px) {
  .hero .container { grid-template-columns: 1fr 1fr; padding-top: 5rem; padding-bottom: 8rem; }
}
.hero h1 {
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.25rem; } }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.snapshot-card {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 26rem;
}
.snapshot-card .card {
  box-shadow: 0 1px 2px rgba(0,0,0,0.02), 0 16px 40px -16px rgba(20,30,50,0.18);
}
.snapshot-card .card-top { display: flex; align-items: baseline; justify-content: space-between; }
.snapshot-card .card-top h3 { font-size: 1.125rem; }
.snapshot-card .card-top span { font-size: 0.75rem; color: var(--muted-foreground); }
.snapshot-card .card-sub { margin-top: 0.375rem; font-size: 0.875rem; color: var(--muted-foreground); }
.snapshot-row { margin-top: 1.25rem; }
.snapshot-row + .snapshot-row { margin-top: 1.25rem; }
.snapshot-row-label { display: flex; align-items: center; justify-content: space-between; font-size: 0.875rem; margin-bottom: 0.375rem; }
.snapshot-row-label span:last-child { color: var(--muted-foreground); }
.snapshot-bar { height: 0.375rem; width: 100%; border-radius: 999px; background: var(--muted); overflow: hidden; }
.snapshot-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(to right, var(--primary), var(--brand-accent)); }
.snapshot-note {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(238, 242, 250, 0.6);
}
.snapshot-note .dot { width: 0.375rem; height: 0.375rem; border-radius: 999px; background: var(--brand-accent); flex-shrink: 0; }
.snapshot-note p { font-size: 0.75rem; line-height: 1.6; color: var(--muted-foreground); }

/* Page header (inner pages) */

.page-header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 60% at 50% 0%, rgba(74, 144, 226, 0.1), transparent);
}
.page-header .container { padding: 4rem 0; max-width: 42rem; }
@media (min-width: 640px) { .page-header .container { padding: 5rem 0; } }
.page-header h1 {
  font-size: 1.875rem;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) { .page-header h1 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .page-header h1 { font-size: 3rem; } }
.page-header p { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.7; color: var(--muted-foreground); }

.section-heading { max-width: 42rem; }
.section-heading.align-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading h2 { font-size: 1.875rem; letter-spacing: -0.02em; }
@media (min-width: 640px) { .section-heading h2 { font-size: 2.25rem; } }
.section-heading p { margin-top: 1rem; font-size: 1rem; line-height: 1.7; color: var(--muted-foreground); }

.section-heading-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .section-heading-row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .section-heading-row .btn { flex-shrink: 0; }
}

/* CTA banner */

.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 3.5rem 2rem;
  text-align: center;
}
@media (min-width: 640px) { .cta-banner { padding: 4rem; } }
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(74, 144, 226, 0.25), transparent);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { font-size: 1.5rem; }
@media (min-width: 640px) { .cta-banner h2 { font-size: 1.875rem; } }
.cta-banner p { margin: 0.75rem auto 0; max-width: 28rem; font-size: 0.875rem; line-height: 1.6; color: rgba(255,255,255,0.7); }
.cta-banner .btn { margin-top: 2rem; }

/* Philosophy (blockquote) */

.philosophy blockquote {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) { .philosophy blockquote { font-size: 1.875rem; } }
.philosophy p.attribution { margin-top: 1.5rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }

/* Numbered lists (about principles, service list numbering) */

.numbered-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: 1.5rem; }
.numbered-list li { display: flex; gap: 1rem; }
.numbered-list .num { font-family: var(--font-heading); font-size: 0.875rem; color: var(--brand-accent); }
.numbered-list h3 { font-size: 1rem; }
.numbered-list p { margin-top: 0.375rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }

/* Values / pillars grid item (icon + title + text, no card) */

.plain-item h3 { margin-top: 1rem; font-size: 1rem; }
.plain-item p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }

/* Services list (services page) */

.service-row {
  scroll-margin-top: 6rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 640px) { .service-row { padding: 2.5rem; } }
@media (min-width: 1024px) { .service-row { grid-template-columns: 1fr 1.4fr; gap: 4rem; } }
.service-row + .service-row { margin-top: 2rem; }
.service-row .num { font-family: var(--font-heading); font-size: 0.75rem; color: var(--muted-foreground); }
.service-row .service-title { margin-top: 0.75rem; display: flex; align-items: center; gap: 0.75rem; }
.service-row .service-title h2 { font-size: 1.25rem; }
.service-row .service-desc { margin-top: 1rem; font-size: 1rem; line-height: 1.7; color: var(--muted-foreground); }
.service-bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; align-content: start; }
@media (min-width: 640px) { .service-bullets { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .service-bullets { grid-template-columns: 1fr; } }
.service-bullets li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; }
.service-bullets svg { margin-top: 0.125rem; width: 1rem; height: 1rem; flex-shrink: 0; color: var(--brand-accent); }

/* Process timeline */

.process-grid { margin-top: 3.5rem; display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step .step-num { font-family: var(--font-heading); font-size: 1.875rem; color: rgba(74, 144, 226, 0.5); }
.process-step h3 { margin-top: 0.75rem; font-size: 1rem; }
.process-step p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }

/* Pricing */

.pricing-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-2xl);
  padding: 2rem;
}
.pricing-card.is-highlighted {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 16px 40px -16px rgba(20, 30, 50, 0.35);
}
.pricing-card h3 { font-size: 1.25rem; }
.pricing-card .tagline { margin-top: 1rem; font-size: 1.5rem; font-weight: 500; color: var(--foreground); }
.pricing-card.is-highlighted .tagline { color: var(--brand-accent); }
.pricing-card .best-for { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }
.pricing-card.is-highlighted .best-for { color: rgba(255,255,255,0.7); }
.pricing-card .features { list-style: none; margin: 1.75rem 0 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.pricing-card .features li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; }
.pricing-card .features svg { margin-top: 0.125rem; width: 1rem; height: 1rem; flex-shrink: 0; color: var(--brand-accent); }
.pricing-card .btn { margin-top: 2rem; }

/* Accordion (FAQ) */

.accordion { display: flex; flex-direction: column; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}
.accordion-trigger:hover { text-decoration: underline; }
.accordion-trigger svg { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--muted-foreground); transition: transform 0.15s ease; }
.accordion-item.is-open .accordion-trigger svg { transform: rotate(180deg); }
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.2s ease;
}
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel-inner { overflow: hidden; }
.accordion-panel .accordion-panel-inner-content {
  padding-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Contact page */

.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-info-item { display: flex; gap: 1rem; }
.contact-info-item svg { margin-top: 0.25rem; width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--brand-accent); }
.contact-info-item h3 { font-size: 1rem; }
.contact-info-item p, .contact-info-item a { margin-top: 0.25rem; display: block; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }
.contact-info-item a:hover { color: var(--foreground); }

.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.3fr; } }

.map-placeholder {
  height: 18rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: rgba(238, 242, 250, 0.4);
}
@media (min-width: 640px) { .map-placeholder { height: 20rem; } }
.map-placeholder svg { width: 2rem; height: 2rem; color: var(--brand-accent); }
.map-placeholder p:first-of-type { font-family: var(--font-heading); font-size: 1rem; }
.map-placeholder p:last-of-type { font-size: 0.875rem; color: var(--muted-foreground); }

/* Confirmation state (contact form / newsletter) */

.confirm-box { display: none; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.confirm-box.is-visible { display: flex; }
.confirm-box svg { width: 1.5rem; height: 1.5rem; color: var(--brand-accent); }
.confirm-box h2 { font-size: 1.25rem; }
.confirm-box p { font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }

/* Newsletter */

.newsletter-form { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .newsletter-form { flex-direction: row; align-items: flex-end; } }
.newsletter-form .field { flex: 1; margin-bottom: 0; }
.newsletter-form .btn { flex-shrink: 0; }
.newsletter-confirm { display: none; margin-top: 1.5rem; font-size: 0.875rem; font-weight: 500; }
.newsletter-confirm.is-visible { display: block; }

/* Auth pages (login / signup) */

.auth-section { display: flex; align-items: center; min-height: calc(100vh - 5rem); padding: 4rem 0; }
.auth-card { width: 100%; max-width: 28rem; margin: 0 auto; }
.auth-card .logo { display: flex; justify-content: center; }
.auth-form { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.auth-footer-note { margin-top: 1.75rem; text-align: center; font-size: 0.875rem; color: var(--muted-foreground); }
.auth-footer-note a { font-weight: 500; color: var(--foreground); text-decoration: underline; text-underline-offset: 4px; }

/* Legal pages */

.legal-content { display: flex; flex-direction: column; gap: 2.5rem; }
.legal-section h2 { font-size: 1.25rem; }
.legal-section .legal-body { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; line-height: 1.7; color: var(--muted-foreground); }
.legal-section .legal-body a { text-decoration: underline; text-underline-offset: 3px; }
.legal-section .legal-body a:hover { color: var(--foreground); }
.legal-section .legal-body ul { list-style: disc; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.legal-section .legal-body p.emphasis { font-weight: 500; color: var(--foreground); }

.compliance-table {
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--card);
}
.compliance-row {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.compliance-row:last-child { border-bottom: none; }
@media (min-width: 640px) { .compliance-row { grid-template-columns: 1fr 1.5fr; align-items: center; gap: 1rem; } }
.compliance-row dt { font-size: 0.875rem; font-weight: 500; }
.compliance-row dd { margin: 0; font-size: 0.875rem; color: var(--muted-foreground); }
.compliance-note { margin-top: 1.5rem; font-size: 0.75rem; color: var(--muted-foreground); }

/* 404 */

.not-found { text-align: center; max-width: 32rem; margin: 0 auto; }
.not-found h1 { margin-top: 0.75rem; font-size: 1.875rem; }
@media (min-width: 640px) { .not-found h1 { font-size: 2.25rem; } }
.not-found p { margin-top: 1rem; font-size: 1rem; line-height: 1.7; color: var(--muted-foreground); }
.not-found-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }

/* Footer */

.footer {
  border-top: 1px solid var(--border);
  background: rgba(238, 242, 250, 0.4);
}
.footer .container { padding: 3.5rem 1.5rem; }
@media (min-width: 1024px) { .footer .container { padding: 3.5rem 2rem; } }
.footer-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-about { max-width: 24rem; }
.footer-about p { margin-top: 1rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }
.footer-about .footer-phone { margin-top: 0.75rem; display: inline-block; font-size: 0.875rem; color: var(--muted-foreground); }
.footer-about .footer-phone:hover { color: var(--foreground); }
.footer-socials { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
}
.footer-socials a:hover { border-color: var(--brand-accent); color: var(--brand-accent); }
.footer-socials svg { width: 1rem; height: 1rem; }

.footer-col h3 { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 500; }
.footer-col ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col a { font-size: 0.875rem; color: var(--muted-foreground); }
.footer-col a:hover { color: var(--foreground); }

.footer-legal {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.footer-legal p.legal-notice { font-size: 0.75rem; line-height: 1.6; color: var(--muted-foreground); }
.footer-legal p.legal-notice a { text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-bottom p { font-size: 0.75rem; color: var(--muted-foreground); }
