/* Life in the World — marketing site design system.
   Tokens copied verbatim from the Claude Design project's data.js COLORS,
   translated from the design's inline-styled .dc.html mockups into reusable
   classes. See site/README.md for how this connects to the Site Manage API. */

:root {
  --primary: #E11D48;
  --primary-light: #F43F5E;
  --primary-dark: #BE123C;
  --soft-pink: #FFF1F2;
  --light-pink: #FFF5F7;
  --heading: #0F172A;
  --body: #475569;
  --secondary: #64748B;
  --muted: #94A3B8;
  --border: #E2E8F0;
  --light-border: #F1F5F9;
  --white: #FFFFFF;
  --soft-bg: #F8FAFC;
  --driving: #2563EB;
  --driving-bg: #EFF6FF;
  --consult: #059669;
  --consult-dark: #047857;
  --consult-bg: #ECFDF5;
  --success: #16A34A;
  --star: #F59E0B;
  --shadow-sm: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.10);
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-2xl: 18px;
  --container: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

h1, h2, h3, p { margin: 0; }

button, input, select, textarea { font-family: inherit; }
::placeholder { color: var(--muted); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }

.hero-gradient { background: linear-gradient(180deg, var(--light-pink) 0%, var(--white) 100%); }

.eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.eyebrow-pill {
  display: inline-block;
  background: #FFE4E9;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.breadcrumb { font-size: 13px; color: var(--secondary); margin-bottom: 24px; }
.breadcrumb a { color: var(--secondary); }
.breadcrumb .current { color: var(--heading); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-outline { background: var(--white); color: var(--heading); border-color: var(--border); }
.btn-outline:hover { border-color: #CBD5E1; }
.btn-outline-primary { background: var(--white); color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--soft-pink); }
.btn-dark { background: var(--heading); color: var(--white); }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--light-border);
}
.site-header .container {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--soft-pink); display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-weight: 800; font-size: 16px;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-size: 17px; font-weight: 800; color: var(--heading); line-height: 1.2; }
.brand-tagline { font-size: 11px; color: var(--secondary); line-height: 1.3; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 15px; font-weight: 500; color: var(--heading);
  padding-bottom: 4px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.site-nav a.active { color: var(--primary); border-bottom-color: var(--primary); }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--white); cursor: pointer;
}

.mobile-panel {
  display: none;
  flex-direction: column;
  padding: 8px 32px 20px;
  border-top: 1px solid var(--light-border);
  gap: 4px;
}
.mobile-panel a { font-size: 15px; font-weight: 500; color: var(--heading); padding: 10px 0; }
.mobile-panel a.active { color: var(--primary); }
.mobile-panel .btn { margin-top: 8px; text-align: center; }
.mobile-panel.open { display: flex; }

@media (max-width: 920px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--light-border); }
.footer-inner { padding: 56px 0 40px; }
/* Overrides .container's 32px/20px side padding for the footer specifically -
   compound selector so it wins regardless of source order, incl. .container's
   own @media (max-width:640px) rule below. */
.site-footer .footer-inner { padding-left: 10px; padding-right: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; column-gap: 24px; row-gap: 24px; }
.footer-col-title { font-size: 14px; font-weight: 700; color: var(--heading); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--body); }
.footer-links a:hover { color: var(--primary); }
.footer-brand-desc { font-size: 13px; color: var(--secondary); line-height: 1.6; max-width: 220px; margin-top: 14px; }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--body);
}
.footer-bottom {
  border-top: 1px solid var(--light-border); margin-top: 36px; padding-top: 20px;
  display: flex; justify-content: space-between; font-size: 13px; color: var(--secondary);
  flex-wrap: wrap; gap: 8px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--white); color: var(--heading);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.pill.active { border-color: var(--primary); background: var(--soft-pink); color: var(--primary-dark); }
.badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.94); color: var(--primary-dark);
}

/* ---------- Icon tiles ---------- */
.icon-tile {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-circle {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ---------- Media placeholders ---------- */
.media {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--soft-bg);
  display: flex; align-items: center; justify-content: center;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.empty::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--light-pink), var(--soft-bg));
}
.media-4-3 { aspect-ratio: 4 / 3; }
.media-16-10 { aspect-ratio: 16 / 10; }
.media-16-9 { aspect-ratio: 16 / 9; }
.media-21-7 { aspect-ratio: 21 / 7; min-height: 260px; }

/* ---------- Forms ---------- */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--heading); }
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--heading);
  font-family: inherit;
}
.form-field textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
}
.form-note { font-size: 13.5px; border-radius: var(--radius); padding: 12px 14px; margin-top: 4px; }
.form-note.success { background: var(--consult-bg); color: var(--consult-dark); }
.form-note.error { background: var(--soft-pink); color: var(--primary-dark); }

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--soft-pink);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.stat { text-align: center; }
.stat-value { font-size: 26px; font-weight: 800; color: var(--heading); }
.stat-label { font-size: 13px; color: var(--secondary); margin-top: 4px; }

/* ---------- CTA banners ---------- */
.cta-banner {
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.cta-banner-left { display: flex; align-items: center; gap: 18px; }
.cta-banner-title { font-size: 17px; font-weight: 700; color: var(--heading); }
.cta-banner-desc { font-size: 14px; color: var(--body); }

/* ---------- Empty / loading states ---------- */
.state-msg { text-align: center; padding: 40px 20px; color: var(--secondary); font-size: 14px; }
[data-loading] .data-target { min-height: 40px; }

/* ---------- FAQ accordion ---------- */
.faq-item { border: 1px solid var(--light-border); border-radius: var(--radius-lg); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; background: var(--white); border: none; cursor: pointer;
  text-align: left; font-size: 15px; font-weight: 600; color: var(--heading);
}
.faq-symbol { font-size: 20px; color: var(--primary); line-height: 1; }
.faq-answer { padding: 0 22px 20px; font-size: 14px; color: var(--body); line-height: 1.6; display: none; }
.faq-item.open .faq-answer { display: block; }

/* ---------- Home hero ---------- */
.hero-section .container { padding-top: 56px; padding-bottom: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-title { font-size: 44px; font-weight: 800; color: var(--heading); line-height: 1.15; margin: 0 0 18px; }
.hero-subtitle { font-size: 17px; color: var(--body); line-height: 1.6; margin: 0 0 28px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.trust-points { display: flex; gap: 22px; flex-wrap: wrap; }
.trust-point { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #334155; font-weight: 500; }
.hero-media { position: relative; box-shadow: var(--shadow-lg); }
.hero-media-tag {
  position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.92);
  border-radius: var(--radius); padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--heading);
  display: flex; align-items: center; gap: 6px;
}
@media (max-width: 900px) {
  .hero-section .container { grid-template-columns: 1fr; }
  .hero-title { font-size: 34px; }
}

.country-selector { margin-top: -28px; position: relative; z-index: 2; padding-bottom: 8px; }
.country-selector-inner { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Service cards (home preview) ---------- */
.service-card { border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, transform 0.2s; }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.service-icon-wrap { width: 52px; height: 52px; border-radius: 14px; background: var(--white); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.service-title { font-size: 19px; font-weight: 700; color: var(--heading); margin-bottom: 10px; }
.service-desc { font-size: 14px; color: var(--body); line-height: 1.6; margin: 0 0 16px; }
.service-link { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.service-points { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 18px; }
.service-point { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #334155; }

/* ---------- App cards ---------- */
.app-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.app-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.app-title { font-size: 17px; font-weight: 700; color: var(--heading); }
.app-desc { font-size: 13px; color: var(--secondary); line-height: 1.5; margin: 0; }
.app-points { display: flex; flex-direction: column; gap: 6px; }
.app-point { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #334155; }
.app-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #334155; margin-top: 2px; }
.app-rating strong { color: var(--heading); }
.app-store-links { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.store-btn {
  flex: 1; background: var(--heading); border-radius: var(--radius);
  padding: 9px 10px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.store-btn svg { flex-shrink: 0; }
.store-btn span { color: var(--white); font-size: 11px; font-weight: 600; }

/* ---------- Carousel (home apps) ---------- */
.carousel-viewport { overflow: hidden; touch-action: pan-y; }
.carousel-track { display: flex; cursor: grab; transition: transform 0.3s ease; }
.carousel-track.dragging { transition: none; }
.carousel-slide { flex: 0 0 25%; padding-right: 20px; box-sizing: border-box; user-select: none; }
@media (max-width: 1100px) { .carousel-slide { flex-basis: 50%; } }
@media (max-width: 760px) { .carousel-slide { flex-basis: 100%; } }
.carousel-nav-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--white); border: 1px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.carousel-nav-btn:hover { border-color: var(--primary); color: var(--primary); }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 999px; background: #FDA4AF; border: none; cursor: pointer; padding: 0; transition: width 0.2s, background 0.2s; }
.carousel-dot.active { width: 24px; background: var(--primary); }

/* ---------- Country cards ---------- */
.country-card { overflow: hidden; }
.country-card-media { position: relative; }
.country-card-flag {
  position: absolute; bottom: -18px; left: 20px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.country-card-body { padding: 28px 20px 20px; }
.country-card-title { font-size: 18px; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.country-card-desc { font-size: 13.5px; color: var(--body); line-height: 1.5; margin: 0 0 14px; min-height: 40px; }
.country-card-icons { display: flex; gap: 18px; margin-bottom: 18px; }
.country-card-icon { text-align: center; }
.country-card-icon-label { font-size: 11px; color: var(--secondary); margin-top: 4px; }
.country-card-actions { display: flex; gap: 10px; }
.country-more {
  border: 1px dashed var(--border); border-radius: var(--radius-xl);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 20px; text-align: center; background: var(--light-pink);
}

/* ---------- Country detail hero ---------- */
.country-hero { position: relative; }
.country-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.05) 0%, rgba(15,23,42,0.55) 100%);
}
.country-hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; }
.country-hero-content .breadcrumb { color: rgba(255,255,255,0.85); }
.country-hero-content .breadcrumb a { color: rgba(255,255,255,0.85); }
.country-hero-content .current { color: var(--white); }
.country-hero-title { font-size: 38px; font-weight: 800; color: var(--white); display: flex; align-items: center; gap: 12px; }

/* ---------- About page ---------- */
.value-tile { text-align: center; padding: 24px 12px; }
.value-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--soft-pink); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.value-name { font-size: 16px; font-weight: 700; color: var(--heading); margin-bottom: 6px; }
.value-desc { font-size: 13px; color: var(--secondary); line-height: 1.5; margin: 0; }
.reason-card { padding: 22px; }
.reason-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--driving-bg); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.reason-name { font-size: 15px; font-weight: 700; color: var(--heading); margin-bottom: 6px; }
.reason-desc { font-size: 13px; color: var(--secondary); line-height: 1.5; margin: 0; }
.section-heading { font-size: 22px; font-weight: 800; color: var(--heading); margin-bottom: 24px; }
.mission-row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 48px; }

/* ---------- Support categories ---------- */
.support-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.support-card:hover { box-shadow: var(--shadow-lg); }
.support-card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--soft-pink); display: flex; align-items: center; justify-content: center; }
.support-card-name { font-size: 15px; font-weight: 700; color: var(--heading); }

/* ---------- Legal pages ---------- */
.legal-updated { font-size: 13.5px; color: var(--muted); margin: 0 0 36px; }
.legal-body h3 { font-size: 17px; font-weight: 700; color: var(--heading); margin: 0 0 8px; }
.legal-body p { font-size: 14.5px; color: var(--body); line-height: 1.7; margin: 0 0 26px; }

/* ---------- Page hero decoration ---------- */
.page-hero { position: relative; overflow: hidden; }
.page-hero-circle {
  position: absolute; right: -60px; top: 20px; width: 340px; height: 340px;
  border-radius: 50%; border: 40px solid #FFE4E9; opacity: 0.6;
}
.page-hero .container { position: relative; padding-top: 28px; padding-bottom: 56px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-lg { margin-bottom: 40px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 10px; }
.gap-md { gap: 16px; }
