/*
  Intellicall marketing site — design system.

  Palette: near-black slate ink on off-white surfaces, one accent (teal), one dark section
  (navy) for the security block and footer. Deliberately not the app's own royal blue — this
  site needs its own identity, not a re-skin of the product.
*/

:root {
  --ink: #0f172a;
  --ink-muted: #47556c;
  --ink-faint: #7b8aa3;

  --surface: #ffffff;
  --surface-alt: #f6f8fb;
  --surface-card: #ffffff;
  --border: #e2e8f0;
  --border-soft: #edf1f6;

  --brand: #0f766e;
  --brand-dark: #0b5e57;
  --brand-light: #ccfbf1;
  --brand-ink: #042f2c;

  --navy: #0b1220;
  --navy-alt: #10192c;
  --navy-border: #1f2b45;
  --navy-ink: #e7ecf6;
  --navy-ink-muted: #a7b4cc;

  --amber: #b45309;
  --amber-bg: #fffbeb;
  --red: #b91c1c;
  --red-bg: #fef2f2;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.16), 0 2px 8px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 64px -16px rgba(15, 23, 42, 0.28);

  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2f9;
    --ink-muted: #b9c4d8;
    --ink-faint: #8592ab;

    --surface: #0b1220;
    --surface-alt: #10192c;
    --surface-card: #121d33;
    --border: #223051;
    --border-soft: #1a2540;

    --brand: #2dd4bf;
    --brand-dark: #14b8a6;
    --brand-light: #0f2e2b;
    --brand-ink: #99f6e4;

    --navy: #050810;
    --navy-alt: #0a1120;
    --navy-border: #1c2740;
    --navy-ink: #eef2f9;
    --navy-ink-muted: #9aa7c0;

    --amber-bg: #2a1f06;
    --red-bg: #2a0e0e;

    --shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5), 0 2px 8px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 64px -16px rgba(0, 0, 0, 0.6);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink-muted); }
.lede { font-size: 1.15rem; color: var(--ink-muted); max-width: 60ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 6px 12px; border-radius: 999px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #ffffff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink-faint); }
.btn-on-navy { background: var(--brand); color: #ffffff; }
.btn-on-navy:hover { background: var(--brand-dark); }
.btn-ghost-on-navy { background: transparent; color: var(--navy-ink); border-color: var(--navy-border); }
.btn-ghost-on-navy:hover { border-color: var(--navy-ink-muted); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink-muted); font-size: 0.94rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--surface); font-size: 1.1rem;
  }
  .nav-links.nav-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border-soft);
    padding: 12px 24px 20px; box-shadow: var(--shadow);
  }
  .nav-links.nav-open a { padding: 10px 0; width: 100%; }
}

/* ---------------------------------------------------------------- sections */
section { padding: 88px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 700px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 40px; }
.hero-copy { max-width: 640px; }
.hero-copy h1 { margin-top: 18px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border-soft);
}
.hero-trust span { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--ink-muted); font-weight: 500; }
.hero-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--brand); flex: none; }

.browser-frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); background: var(--surface-card);
}
.browser-frame .chrome {
  display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: var(--surface-alt);
  border-bottom: 1px solid var(--border-soft);
}
.browser-frame .dot { width: 10px; height: 10px; border-radius: 999px; background: var(--border); }
.browser-frame .chrome-url {
  margin-left: 10px; font-size: 0.72rem; color: var(--ink-faint); background: var(--surface);
  border: 1px solid var(--border-soft); border-radius: 999px; padding: 3px 12px; flex: 1; max-width: 260px;
}
.browser-frame img { width: 100%; }

/* ---------------------------------------------------------------- stat strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat h3 { font-size: 2rem; margin-bottom: 4px; color: var(--brand-dark); }
.stat p { margin: 0; font-size: 0.92rem; }

/* ---------------------------------------------------------------- workflow / walkthrough */
.tabbar {
  display: inline-flex; padding: 4px; background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 999px; margin-bottom: 40px; gap: 4px;
}
.tabbar button {
  border: none; background: transparent; padding: 10px 22px; border-radius: 999px; font-weight: 600;
  font-size: 0.92rem; color: var(--ink-muted); cursor: pointer; font-family: inherit;
}
.tabbar button[aria-selected="true"] { background: var(--surface-card); color: var(--ink); box-shadow: var(--shadow-sm); }

.walkthrough { display: none; grid-template-columns: minmax(220px, 340px) 1fr; gap: 48px; align-items: center; }
.walkthrough.active { display: grid; }
.walk-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 4px; }
.walk-steps li {
  counter-increment: step; position: relative; padding: 16px 16px 16px 52px; border-radius: var(--radius);
  cursor: pointer; border: 1px solid transparent;
}
.walk-steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 16px; width: 26px; height: 26px;
  border-radius: 999px; background: var(--surface-alt); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700; color: var(--ink-faint);
}
.walk-steps li[aria-current="true"] { background: var(--surface-alt); border-color: var(--border); }
.walk-steps li[aria-current="true"]::before { background: var(--brand); border-color: var(--brand); color: #fff; }
.walk-steps li h4 { margin: 0 0 4px; font-size: 0.98rem; }
.walk-steps li p { margin: 0; font-size: 0.88rem; }

.walk-shot { position: relative; }
.walk-shot .browser-frame { position: relative; }
.walk-shot img { display: none; }
.walk-shot img.active { display: block; }
.walk-progress { display: flex; gap: 6px; margin-top: 16px; justify-content: center; }
.walk-progress span { height: 3px; flex: 1; background: var(--border); border-radius: 999px; overflow: hidden; }
.walk-progress span i { display: block; height: 100%; width: 0; background: var(--brand); }
.walk-progress span.done i { width: 100%; transition: none; }
.walk-progress span.playing i { width: 0; animation: walkbar 4.2s linear forwards; }
@keyframes walkbar { to { width: 100%; } }

@media (max-width: 900px) {
  .walkthrough.active { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- feature grid */
.grid-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card .icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--brand-light); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.2rem;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.92rem; }

/* ---------------------------------------------------------------- security (dark) */
.security { background: var(--navy); color: var(--navy-ink); }
.security .eyebrow { background: rgba(45, 212, 191, 0.14); color: #5eead4; }
.security h2, .security h3 { color: var(--navy-ink); }
.security p { color: var(--navy-ink-muted); }
.security .section-head { max-width: 720px; }
.security .grid-features .card {
  background: var(--navy-alt); border-color: var(--navy-border);
}
.security .card .icon { background: rgba(45, 212, 191, 0.14); color: #5eead4; }
.security .card p { color: var(--navy-ink-muted); }
.gdpr-panel {
  margin-top: 48px; border: 1px solid var(--navy-border); background: var(--navy-alt);
  border-radius: var(--radius-lg); padding: 36px; display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 780px) { .gdpr-panel { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.gdpr-panel p:last-child { margin: 0; }

/* ---------------------------------------------------------------- pricing */
.pricing-card {
  max-width: 460px; margin: 0 auto; background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 40px;
}
.price-row { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 4px; }
.price-row .amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; }
.price-row .period { color: var(--ink-faint); font-weight: 600; }
.pricing-card .trial { display: inline-block; margin: 4px 0 24px; font-weight: 600; color: var(--brand-dark); background: var(--brand-light); padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; }
.check-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 10px; font-size: 0.94rem; color: var(--ink); }
.check-list li::before { content: "✓"; color: var(--brand); font-weight: 800; flex: none; }
.pricing-note { text-align: center; font-size: 0.84rem; color: var(--ink-faint); margin-top: 18px; }

/* ---------------------------------------------------------------- contact / CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #f0fdfa; border-radius: var(--radius-lg); padding: 56px; text-align: center;
}
.cta-band h2 { color: #ffffff; }
.cta-band p { color: rgba(240, 253, 250, 0.88); max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-band .hero-ctas { justify-content: center; }
.cta-band .btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.35); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.16); }
.cta-band .btn-primary { background: #ffffff; color: var(--brand-dark); }
.cta-band .btn-primary:hover { background: #ecfeff; }

.copy-email { display: inline-flex; align-items: center; gap: 8px; }
.copy-email button {
  border: none; background: rgba(255,255,255,0.16); color: inherit; padding: 4px 10px; border-radius: 8px;
  font-size: 0.78rem; cursor: pointer; font-family: inherit;
}

/* ---------------------------------------------------------------- footer */
footer { border-top: 1px solid var(--border-soft); padding: 48px 0 32px; }
footer .foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
footer .foot-links { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
footer .foot-links a { text-decoration: none; color: var(--ink-muted); font-size: 0.9rem; }
footer .foot-links a:hover { color: var(--ink); }
footer .fine-print { font-size: 0.8rem; color: var(--ink-faint); border-top: 1px solid var(--border-soft); padding-top: 20px; max-width: 90ch; }
footer .fine-print p { color: var(--ink-faint); margin: 0 0 8px; }

/* ---------------------------------------------------------------- misc */
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--ink-muted); }
.pill.amber { color: var(--amber); background: var(--amber-bg); border-color: transparent; }
.pill.red { color: var(--red); background: var(--red-bg); border-color: transparent; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .cta-band { padding: 40px 24px; }
  .stats { grid-template-columns: 1fr; text-align: center; }
}
