:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --ink: #0a0a0a;
  --muted: #5c5c5c;
  --line: #e5e5e5;
  --line-strong: #d4d4d4;
  --max: 1120px;
  --header-h: 64px;
  --font: "Sora", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* Header — OpenAI-like top bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand-mark { color: var(--ink); flex: 0 0 auto; }
.brand-word {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background .15s;
}
.nav-item:hover,
.nav-item[aria-expanded="true"] { background: var(--bg-soft); }
.nav-item .chev { opacity: .55; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.lang-sep { color: var(--line-strong); }
.lang-link {
  color: var(--muted);
  padding: 2px 2px;
}
.lang-link:hover { color: var(--ink); }
.lang-link.is-active {
  color: var(--ink);
  pointer-events: none;
}
.lang-switch-mobile {
  padding: 8px 4px 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.link-quiet {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 0 8px;
}
.link-quiet:hover { opacity: .7; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: #222; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--bg-soft); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px -32px rgba(0,0,0,.25);
}
.mega-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 32px;
}
.mega-inner-narrow { max-width: 760px; }
.mega-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 20px;
}
.mega-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-grid a {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
}
.mega-grid a:hover { background: var(--bg-soft); }
.mega-grid strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mega-grid span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.mobile-drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 40;
  background: #fff;
  padding: 16px 24px 32px;
  display: none;
  gap: 4px;
  align-content: start;
}
.mobile-drawer.is-open {
  display: grid;
}
.mobile-drawer[hidden] {
  display: none !important;
}
.mobile-drawer a {
  display: block;
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-drawer .btn { margin-top: 16px; width: 100%; height: 44px; }

/* Page */
main {
  flex: 1 0 auto;
  overflow: clip;
  width: 100%;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 24px 72px;
  text-align: center;
}
.hero-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
  max-width: 14ch;
  margin: 0 auto 20px;
}
.lead {
  max-width: 38rem;
  margin: 0 auto;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}
.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-cta .btn { height: 44px; padding: 0 18px; }

.strip {
  max-width: var(--max);
  margin: 0 auto 24px;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip div { display: grid; gap: 6px; }
.strip b {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.strip span {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 24px;
}
.section-alt { background: var(--bg-soft); max-width: none; }
.section-alt > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.section-head { max-width: 40rem; margin-bottom: 40px; }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.section-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 24px;
}
.section:not(.section-alt) .feature-grid article { background: var(--bg-soft); border-color: transparent; }
.feature-grid h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.feature-grid p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: end;
}
.text-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
}
.text-link:hover { text-decoration: underline; }
.checklist {
  display: grid;
  gap: 12px;
  padding: 8px 0;
}
.checklist li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px var(--ink);
}

.faq {
  max-width: 720px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 500;
  color: var(--muted);
}
.faq details[open] summary::after { content: "–"; }
.faq p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
  max-width: 54ch;
}

.cta {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 24px 108px;
  text-align: center;
}
.cta h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  margin-bottom: 12px;
}
.cta > p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 28px 24px 40px;
  background: var(--bg);
}
.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}
.site-footer nav a,
.site-footer p {
  font-size: 13px;
  color: var(--muted);
}
.site-footer nav a:hover { color: var(--ink); }

@media (max-width: 920px) {
  .primary-nav,
  .header-actions .link-quiet,
  .header-actions .btn-primary { display: none; }
  .menu-toggle { display: inline-grid; }
  .site-header-inner { grid-template-columns: 1fr auto; }
  .mega { display: none !important; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid,
  .feature-grid-2,
  .split,
  .mega-grid,
  .mega-grid-2 { grid-template-columns: 1fr; }
  .site-footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .site-footer nav { justify-content: start; }
}

@media (max-width: 560px) {
  .hero { padding: 64px 20px 48px; }
  .section { padding: 64px 20px; }
  .strip { grid-template-columns: 1fr 1fr; padding: 24px 20px; }
}

/* Talk: a voice call with an AI assistant, on the page */
.talk [hidden] { display: none !important; }
.talk {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 24px 80px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.talk-head { text-align: center; margin-bottom: 32px; }
.talk-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.talk-head p:last-child { color: var(--muted); line-height: 1.55; }
.talk-head .hero-kicker { margin-bottom: 12px; }

.talk-envs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.talk-env {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.talk-env:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.talk-env:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.talk-env:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.talk-env input { position: absolute; opacity: 0; pointer-events: none; }
.talk-env::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition: border .15s;
}
.talk-env:has(input:checked)::after { border: 5.5px solid var(--ink); }
.talk-env img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.talk-env-text { display: grid; gap: 4px; }
.talk-env-text b { font-size: 16px; font-weight: 600; letter-spacing: -0.03em; }
.talk-env-text span { font-size: 13px; line-height: 1.4; color: var(--muted); }

.talk-go {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.talk-go .btn { height: 48px; padding: 0 22px; gap: 8px; font-size: 15px; }
.talk-go .btn:disabled { background: var(--line-strong); cursor: not-allowed; }
.talk-left { font-size: 13px; font-weight: 500; color: var(--muted); }
.talk-error {
  max-width: 34rem;
  margin: 16px auto 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
.talk-error a { text-decoration: underline; }
.talk-fine {
  max-width: 40rem;
  margin: 18px auto 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.talk-live {
  --level: 0;
  --accent: #fff;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.talk-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 24px 28px;
}
.talk-clock {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,.62);
}
.talk-clock.is-low { color: #ff9b85; }
.talk-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
}
.talk-orb img {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  object-fit: cover;
}
.talk-ring {
  position: absolute;
  inset: 26px;
  border-radius: 38px;
  background: rgba(255,255,255,.1);
  transition: transform .09s linear, opacity .2s;
  transform: scale(calc(1 + var(--level) * .38));
}
.talk-ring + .talk-ring {
  inset: 26px;
  background: rgba(255,255,255,.06);
  transform: scale(calc(1 + var(--level) * .72));
}
.talk-live[data-phase="speaking"] .talk-ring,
.talk-live[data-phase="greeting"] .talk-ring { animation: talk-speak 1.1s ease-in-out infinite; }
.talk-live[data-phase="speaking"] .talk-ring + .talk-ring,
.talk-live[data-phase="greeting"] .talk-ring + .talk-ring { animation-delay: .18s; }
.talk-live[data-phase="thinking"] .talk-ring,
.talk-live[data-phase="connecting"] .talk-ring { animation: talk-think 1.5s ease-in-out infinite; }
.talk-live[data-phase="thinking"] .talk-ring + .talk-ring,
.talk-live[data-phase="connecting"] .talk-ring + .talk-ring { animation-delay: .3s; }
.talk-live[data-phase="ended"] .talk-ring { opacity: 0; }
.talk-live[data-phase="ended"] .talk-orb img { opacity: .6; }
@keyframes talk-speak {
  0%, 100% { transform: scale(1.04); }
  50% { transform: scale(1.34); }
}
@keyframes talk-think {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.14); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .talk-ring { animation: none !important; transition: none; transform: scale(1.12); }
}
.talk-who {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.talk-state {
  min-height: 21px;
  margin-top: 4px;
  max-width: 30rem;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.66);
  text-align: center;
}
.talk-state a { color: #fff; text-decoration: underline; }
.talk-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.talk-btn {
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background .15s, border-color .15s;
}
.talk-btn:hover { background: rgba(255,255,255,.1); }
.talk-btn[aria-pressed="true"] { background: #fff; color: var(--ink); }
.talk-btn-end { border-color: #e5484d; background: #e5484d; }
.talk-btn-end:hover { background: #d13438; border-color: #d13438; }
.talk-live .btn-primary { height: 40px; background: #fff; color: var(--ink); }
.talk-live .btn-primary:hover { background: #e9e9e9; }

.talk-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
  padding: 20px;
  background: var(--bg-soft);
  color: var(--ink);
}
.talk-lines:empty { display: none; }
.talk-line {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 16px 16px 16px 5px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.talk-line.is-you {
  align-self: flex-end;
  border: 0;
  border-radius: 16px 16px 5px 16px;
  background: var(--ink);
  color: #fff;
}
.talk-line.is-pending { opacity: .55; }

@media (max-width: 720px) {
  .talk-envs { grid-template-columns: 1fr; gap: 8px; }
  .talk-env {
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    padding: 12px 40px 12px 12px;
  }
  .talk-env::after { top: 50%; margin-top: -9px; }
  .talk-env img { width: 52px; height: 52px; border-radius: 13px; }
  .talk-go .btn { width: 100%; }
  .talk-lines { max-height: 260px; padding: 16px; }
  .talk-line { max-width: 90%; }
}
