/* Publicalex landing page */

:root {
  --bg: #faf8f5;
  --bg-tint: #f2ede4;
  --surface: #ffffff;
  --ink: #16213a;
  --ink-soft: #4a5468;
  --line: #e4ddd0;
  --navy: #1b2a4a;
  --navy-ink: #f4efe6;
  --gold: #c8963e;
  --gold-soft: #f3e6cc;
  --green: #2f7d5b;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(22 33 58 / 0.04), 0 12px 32px rgb(22 33 58 / 0.08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1626;
    --bg-tint: #141d31;
    --surface: #18223a;
    --ink: #eef0f5;
    --ink-soft: #a9b1c3;
    --line: #283553;
    --navy: #233559;
    --gold-soft: #3a3020;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
h1 em { font-style: italic; color: var(--gold); }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--navy-ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-small { padding: 9px 16px; font-size: 0.9rem; white-space: nowrap; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-light { background: var(--navy-ink); color: var(--navy); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; text-decoration: none; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang {
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-soft); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-decoration: none;
}
.lang:hover { color: var(--ink); border-color: var(--ink-soft); }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 20px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: 0.85rem; font-weight: 500; color: var(--ink-soft);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.lead { color: var(--ink-soft); font-size: 1.12rem; margin: 20px 0 0; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.languages { margin: 36px 0 0; color: var(--ink-soft); font-size: 0.9rem; letter-spacing: 0.02em; opacity: 0.8; }

/* Product preview */
.preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.preview-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.preview-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.preview-bar p { margin: 0 0 0 10px; font-size: 0.8rem; color: var(--ink-soft); font-weight: 500; }
.preview-body { padding: 22px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; margin: 0 0 20px; padding: 0; }
.steps li {
  display: flex; align-items: center; gap: 6px;
  padding: 8px; border-radius: 10px;
  background: var(--bg); color: var(--ink-soft); font-size: 0.8rem; font-weight: 500;
}
.steps b {
  display: grid; place-items: center; width: 20px; height: 20px; flex: none;
  border-radius: 50%; background: var(--line); font-size: 0.7rem;
}
.steps .done b { background: var(--green); color: #fff; }
.steps .active { background: var(--gold-soft); color: var(--ink); }
.steps .active b { background: var(--gold); color: #fff; }
.doc-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.doc-title { margin: 0 0 10px; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 3px 10px; border-radius: 999px; background: var(--bg-tint); font-size: 0.78rem; color: var(--ink-soft); }
.preview-label { margin: 20px 0 10px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 600; }
.matches { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.matches li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.avatar {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 50%; background: var(--navy); color: var(--navy-ink); font-size: 0.8rem; font-weight: 600;
}
.avatar.alt { background: var(--gold); color: #fff; }
.who { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 0.9rem; }
.who small { color: var(--ink-soft); font-size: 0.8rem; }
.fit { padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.fit.soft { background: var(--bg-tint); color: var(--ink-soft); }
.preview-note { margin: 16px 0 0; font-size: 0.75rem; color: var(--ink-soft); }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.kicker { margin: 0 0 12px; color: var(--gold); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { padding: 40px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.panel h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
.panel-dark { background: var(--navy); border-color: var(--navy); color: var(--navy-ink); }
.panel-dark .checks li { color: color-mix(in srgb, var(--navy-ink) 85%, transparent); }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card p { margin: 10px 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.num { display: block; margin-bottom: 14px; font-family: var(--serif); font-size: 1.6rem; color: var(--gold); }

.callout {
  margin-top: 24px; padding: 28px 32px;
  border-radius: var(--radius); border: 1px dashed var(--gold);
  background: color-mix(in srgb, var(--gold-soft) 55%, transparent);
}
.callout p { margin: 8px 0 0; color: var(--ink-soft); max-width: 80ch; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.principles article { padding-top: 22px; border-top: 2px solid var(--gold); }
.principles p { margin: 10px 0 0; color: var(--ink-soft); }

.roadmap { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.roadmap li {
  display: grid; grid-template-columns: 90px 220px 1fr; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-soft);
}
.roadmap b { color: var(--ink); font-weight: 600; }
.status { justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--bg-tint); font-size: 0.75rem; font-weight: 600; }
.status.live { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }

/* CTA */
.cta { padding: 96px 0; background: var(--navy); color: var(--navy-ink); text-align: center; }
.cta-inner { max-width: 640px; }
.cta p { margin: 16px 0 32px; color: color-mix(in srgb, var(--navy-ink) 80%, transparent); font-size: 1.08rem; }

/* Footer */
.footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer p { margin: 0; }
.brand-footer { font-size: 1.05rem; color: var(--ink); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; gap: 24px; }
  .roadmap li { grid-template-columns: 90px 1fr; }
  .roadmap li > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 48px 0 64px; }
  .section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .panel { padding: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .roadmap li { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 420px) {
  .nav-actions .btn-small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
