/* =========================================================
   Talksy landing — v1
   Brand: Direction B (Mesh) — graphite + coral + steel
   ========================================================= */

:root {
  /* Brand — Talksy v2 palette (synced with SMS portal) */
  --brand-blue: #537fc2;          /* primary brand, CTAs, dark sections, wordmark */
  --brand-blue-2: #3D4B8E;        /* hover/pressed */
  --brand-blue-dark: #537fc2;     /* deep surfaces (footer) */
  --accent-red: #FF3333;          /* accent — top mesh node, prominent CTAs */
  --accent-red-2: #DC2626;        /* hover/pressed */
  --steel: #C9CDD4;
  --steel-soft: #8E9BBF;          /* tinted blue-gray for text on blue */

  /* Aliases — keep old names mapped so any stragglers still resolve */
  --graphite: var(--brand-blue);
  --graphite-2: var(--brand-blue-2);
  --graphite-3: var(--brand-blue-dark);
  --coral: var(--accent-red);
  --coral-2: var(--accent-red-2);

  /* Neutrals */
  --canvas: #FFFFFF;              /* pure white — matches SMS portal */
  --canvas-soft: #F7F8FA;         /* very subtle alt surface */
  --surface: #FFFFFF;
  --text-primary: #0F1A2E;
  --text-secondary: #5A6B86;
  --text-tertiary: #8597B0;
  --border: #E6E8EC;
  --border-strong: #D2D6DD;

  /* Functional */
  --success: #5ac14e;             /* jade */
  --warning: #F0A52F;
  --error: #EF4444;               /* matches accent */
  --info: #4D5DAA;                /* matches brand */

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Type — Geologica (matches SMS portal) */
  --font-sans: 'Geologica', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Layout */
  --max-w: 1200px;
  --gutter: clamp(20px, 4vw, 32px);

  /* Shadows */
  --shadow-card: 0 1px 0 rgba(15, 26, 46, 0.04), 0 8px 24px -16px rgba(15, 26, 46, 0.12);
  --shadow-card-strong: 0 1px 0 rgba(15, 26, 46, 0.04), 0 24px 48px -24px rgba(15, 26, 46, 0.25);
}

/* =================== Reset =================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--steel); text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* =================== Layout =================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}

section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* =================== Typography =================== */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; color: var(--text-primary); }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 4vw, 30px); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: 20px; line-height: 1.3; }
h4 { font-size: 14px; line-height: 1.4; color: var(--text-primary); }
p { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}
.eyebrow-light { color: var(--steel); }
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-red); display: inline-block;
}

.hl {
  background-image: linear-gradient(180deg, transparent 60%, rgba(77, 93, 170, 0.22) 60%);
  padding: 0 2px;
}

.section-head { max-width: 720px; margin: 0 0 56px; }
.section-head h2 { margin: 0 0 16px; }
.sub { color: var(--text-secondary); font-size: 18px; line-height: 1.6; }
.sub-light { color: var(--steel); }
.section-head-light h2 { color: var(--surface); }

/* =================== Buttons =================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 80ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }

.btn-primary {
  background: var(--brand-blue);
  color: var(--surface);
}
.btn-primary:hover { background: var(--brand-blue-2); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--canvas); border-color: var(--text-secondary); }

.btn-ghost-dark {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}
.btn-ghost-dark:hover { background: var(--text-primary); color: var(--surface); }

.btn-coral { background: var(--accent-red); color: var(--surface); height: 48px; padding: 0 22px; border-radius: var(--radius-pill); font-weight: 500; }
.btn-coral:hover { background: var(--accent-red-2); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
  margin-top: auto;
}
.link-arrow:hover { color: var(--brand-blue); }
.link-arrow-light { color: var(--surface); }
.link-arrow-light:hover { color: var(--accent-red); }

/* =================== Header =================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 72px;
  gap: 24px;
}
.brand img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  gap: 32px;
  justify-self: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 120ms ease;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-right { display: flex; align-items: center; gap: 8px; }

.locale-switcher { position: relative; }
.locale-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}
.locale-btn:hover { background: var(--canvas); }
.locale-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-strong);
  padding: 6px;
  min-width: 160px;
  display: none;
}
.locale-menu.is-open { display: block; }
.locale-menu li a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
}
.locale-menu li a:hover { background: var(--canvas); }

.mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.mobile-toggle span {
  width: 18px; height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
}

.mobile-nav {
  display: none;
  padding: 16px var(--gutter) 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.mobile-nav.is-open { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a {
  padding: 12px 0;
  font-size: 16px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a.btn { border-bottom: 0; margin-top: 12px; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav .btn-ghost, .nav .btn-primary { display: none; }
  .mobile-toggle { display: flex; }
}

/* =================== Hero =================== */
.hero { padding: 80px 0 96px; background: var(--canvas-soft); }
@media (max-width: 720px) { .hero { padding: 56px 0 72px; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-copy h1 { margin: 0 0 20px; max-width: 14ch; }
.lede { font-size: 18px; line-height: 1.6; color: var(--text-secondary); max-width: 56ch; }
.hero-cta { display: flex; gap: 12px; margin: 32px 0 28px; flex-wrap: wrap; }

.trust-strip {
  display: flex;
  gap: 18px 28px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 13px;
}
.trust-strip li { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip svg { color: var(--brand-blue); }

/* Hero visual — globe card */
.hero-visual { display: flex; justify-content: center; }
.globe-card {
  width: 100%;
  max-width: 480px;
  background: #537fc2;
  color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 2px 0 rgba(15,26,46,0.06), 0 32px 64px -24px rgba(15,26,46,0.40);
}
.globe-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: var(--steel);
}
.globe-head .mono { color: var(--steel); flex: 1; font-size: 12px; }
.signal-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-red);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.22);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.signal-status {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 11px;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.globe-canvas-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  line-height: 0;
}
#globeCanvas {
  display: block;
  width: 100%;
  height: 230px;
}
.globe-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
}
.globe-stat {
  text-align: center;
  padding: 2px 0;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.globe-stat:last-child { border-right: none; }
.globe-stat-val {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--surface);
  letter-spacing: -0.01em;
  line-height: 1.2;
  display: block;
}
.globe-stat-label {
  font-size: 10px;
  color: var(--steel);
  display: block;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}
.signal-foot {
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.22); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .signal-dot { animation: none; }
}

/* =================== Channels =================== */
.channels { background: var(--surface); }

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .channel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .channel-grid { grid-template-columns: 1fr; } }

.channel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  min-height: 320px;
}
.channel-card:hover {
  border-color: var(--text-secondary);
  box-shadow: var(--shadow-card);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: rgba(77, 93, 170, 0.10);
  color: var(--brand-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.channel-card h3 { margin: 0; }
.card-lead { color: var(--text-secondary); font-size: 14.5px; line-height: 1.55; }
.card-list { display: flex; flex-direction: column; gap: 6px; }
.card-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-primary);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
}

/* =================== Why / Pillars =================== */
.why { background: var(--canvas-soft); }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .pillar-grid { grid-template-columns: 1fr; } }
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.pillar-num { font-size: 12px; color: var(--text-tertiary); letter-spacing: 0.1em; }
.pillar h3 { font-size: 18px; }
.pillar p { color: var(--text-secondary); font-size: 14.5px; }

/* =================== Coverage =================== */
.coverage {
  background: var(--brand-blue);
  color: var(--surface);
  overflow: hidden;
}
.coverage h2 { color: var(--surface); }
.coverage-map {
  margin: 12px auto 32px;
  max-width: 1000px;
  aspect-ratio: 2 / 1;
}
.coverage-map object { width: 100%; height: 100%; }

.coverage-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.coverage-cta p { color: var(--steel-soft); font-size: 16px; max-width: 56ch; }

/* =================== How it works =================== */
.how { background: var(--surface); }
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
@media (max-width: 800px) { .how-steps { grid-template-columns: 1fr; } }
.how-steps li {
  background: var(--canvas-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.how-num { color: var(--brand-blue); font-size: 12px; letter-spacing: 0.1em; }
.how-steps h3 { font-size: 22px; }
.how-steps p { color: var(--text-secondary); font-size: 15px; }

/* =================== Pricing =================== */
.pricing { background: var(--canvas-soft); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pricing-grid { grid-template-columns: 1fr; } }

.price-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.tile-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
}
.tile-label { font-size: 14px; color: var(--text-secondary); margin: 0 0 8px; }
.tile-price {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.tile-price .num { font-family: var(--font-mono); font-weight: 500; }
.tile-price .unit { font-size: 14px; color: var(--text-secondary); font-weight: 400; }
.tile-note { font-size: 13px; color: var(--text-secondary); line-height: 1.5; flex: 1; }
.price-tile-featured {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: var(--surface);
}
.price-tile-featured .tile-eyebrow { color: white; font-weight: bold;}
.price-tile-featured .tile-label { color: var(--steel); }
.price-tile-featured .tile-price { color: var(--surface); }
.price-tile-featured .tile-note { color: var(--steel); }

/* =================== FAQ =================== */
.faq { background: var(--surface); }
.faq-list { max-width: 920px; margin: 0 auto; }
.faq-list details {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.faq-list details:last-child { border-bottom: 1px solid var(--border); }
.faq-list summary {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--brand-blue);
  width: 24px; text-align: center;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list p {
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  max-width: 72ch;
}

/* =================== Contact =================== */
.contact { background: var(--brand-blue-dark); color: var(--surface); }
.contact h2 { color: var(--surface); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-direct { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.contact-direct li {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.contact-direct .ts { font-size: 11px; color: var(--steel); letter-spacing: 0.14em; }
.contact-direct a { color: var(--surface); }
.contact-direct a:hover { color: var(--accent-red); }

.contact-form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--text-primary);
  display: flex; flex-direction: column; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; }
.field .muted { color: var(--text-tertiary); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(77, 93, 170, 0.22);
}
.field-group {
  border: 0; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.field-group legend { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.field-group > label { display: inline-flex; }
.chip {
  display: inline-flex;
  align-items: center;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: 13px;
  cursor: pointer;
  transition: all 120ms ease;
  margin: 0 6px 6px 0;
}
.chip input:checked + span {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: var(--surface);
}
.chip input:focus + span {
  box-shadow: 0 0 0 3px rgba(77, 93, 170, 0.22);
}
.form-fineprint {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.form-fineprint a { color: var(--text-secondary); text-decoration: underline; }

/* =================== Footer =================== */
.site-footer {
  background: var(--brand-blue-dark);
  color: var(--steel-soft);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-tagline { color: var(--steel); font-size: 14px; max-width: 32ch; }
.site-footer h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--surface);
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-weight: 500;
}
.site-footer ul li { padding: 4px 0; font-size: 14px; }
.site-footer ul li a:hover { color: var(--surface); }
.site-footer .muted { color: var(--steel); font-style: italic; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .mono { font-size: 12px; color: var(--steel); }
.footer-locales { display: flex; gap: 4px; }
.footer-locales li a {
  display: inline-block;
  padding: 6px 10px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--steel);
  border-radius: var(--radius-sm);
}
.footer-locales li a:hover { color: var(--surface); background: rgba(255,255,255,0.10); }

/* =================== Reduced motion =================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* =================== Focus visible =================== */
:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
