/* ============================================================
   Recordera — shared stylesheet
   Design language referenced from cap.so
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-deep: #edf1f6;
  --ink: #111111;
  --ink-2: #646464;
  --ink-3: #8b8b8b;
  --line: #e1e7ee;
  --line-2: #d3dce6;

  --accent: #3d77c2;
  --accent-deep: #2b5c99;
  --accent-soft: #e1effe;

  --tint-blue: #e1effe;
  --tint-blue-ink: #3d77c2;
  --tint-green: #e2f6ec;
  --tint-green-ink: #3f9974;
  --tint-purple: #efe7fd;
  --tint-purple-ink: #7b5fd0;
  --tint-sand: #fdf1e3;
  --tint-sand-ink: #c2833f;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --maxw: 1140px;
  --nav-h: 64px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono",
    Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead { font-size: 18px; color: var(--ink-2); line-height: 1.65; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2a2a2a; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--ink-3); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 16px; }
.btn svg { width: 17px; height: 17px; }

/* ---------- top notice bar ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, .86);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 9px 24px;
  text-align: center;
}
.topbar .inner {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.topbar .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #f5a524; flex: none;
  animation: pulse 2s ease-in-out infinite;
}
.topbar .sep { color: rgba(255, 255, 255, .3); }

@media (max-width: 720px) {
  .topbar { font-size: 11.5px; padding: 7px 16px; }
  .topbar .sep { display: none; }
  .topbar .inner { gap: 4px 8px; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 32px; }

.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 26px; flex: none; }

.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.nav-links a { font-size: 14.5px; color: var(--ink-2); transition: color .16s ease; }
.nav-links a:hover { color: var(--ink); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.lang {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px; background: var(--bg-alt);
}
.lang a {
  font-size: 13px; line-height: 1;
  padding: 6px 11px; border-radius: 999px; color: var(--ink-2);
  transition: background-color .16s ease, color .16s ease;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(17,17,17,.07); }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 0; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -140px 0 auto; height: 460px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(61,119,194,.10), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 13px; margin-bottom: 24px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-alt);
  font-size: 12.5px; color: var(--ink-2);
}
.badge .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #e5484d; flex: none;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ opacity:1; transform:scale(1);} 50%{ opacity:.45; transform:scale(.82);} }

.hero h1 {
  font-size: clamp(38px, 6.2vw, 66px);
  letter-spacing: -0.035em;
  max-width: 15em; margin: 0 auto;
}
.hero .hero-sub {
  font-size: clamp(17px, 2.3vw, 21px);
  color: var(--ink-2);
  max-width: 34em; margin: 22px auto 0;
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

/* ---------- app mock ---------- */
.mock-wrap { margin-top: 62px; padding-bottom: 4px; }

.mock {
  max-width: 940px; margin: 0 auto;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(17,17,17,.04), 0 24px 56px -32px rgba(17,17,17,.28);
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  background: var(--bg-alt); border-bottom: 1px solid var(--line);
}
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); display: block; }
.mock-bar .mock-title {
  margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
}

.mock-stage { position: relative; background: var(--bg-deep); aspect-ratio: 16 / 9; overflow: hidden; }

/* faint page skeleton behind the selection */
.skeleton { position: absolute; inset: 0; padding: 26px 30px; display: flex; flex-direction: column; gap: 13px; }
.skeleton .sk-head { width: 32%; height: 20px; border-radius: 6px; background: #dde5ee; }
.skeleton .sk-row { display: flex; gap: 13px; }
.skeleton .sk-col { flex: 1; height: 74px; border-radius: 10px; background: #e4ebf3; }
.skeleton .sk-line { height: 11px; border-radius: 6px; background: #e4ebf3; }
.skeleton .sk-line.w70 { width: 70%; }
.skeleton .sk-line.w48 { width: 48%; }

/* the selection marquee */
.marquee {
  position: absolute; left: 21%; top: 22%; width: 48%; height: 46%;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  box-shadow: 0 0 0 9999px rgba(17,17,17,.34);
  animation: marquee 7s ease-in-out infinite;
}
@keyframes marquee {
  0%, 12%   { left: 21%; top: 22%; width: 48%; height: 46%; }
  38%, 62%  { left: 12%; top: 15%; width: 66%; height: 60%; }
  88%, 100% { left: 21%; top: 22%; width: 48%; height: 46%; }
}
.marquee .h { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--accent); border-radius: 2px; }
.marquee .h1 { left: -5px; top: -5px; }
.marquee .h2 { right: -5px; top: -5px; }
.marquee .h3 { left: -5px; bottom: -5px; }
.marquee .h4 { right: -5px; bottom: -5px; }
.marquee .size {
  position: absolute; top: -27px; left: -1px;
  font-family: var(--font-mono); font-size: 11px; line-height: 1;
  padding: 5px 8px; border-radius: 6px;
  background: var(--accent); color: #fff; white-space: nowrap;
}

/* floating recorder toolbar */
.toolbar {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  padding: 7px; border-radius: 14px;
  background: #111111; color: #fff;
  box-shadow: 0 12px 30px -10px rgba(17,17,17,.5);
}
.toolbar .tl {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px; border-radius: 9px;
  font-size: 12.5px; white-space: nowrap; color: rgba(255,255,255,.82);
}
.toolbar .tl.rec { background: rgba(255,255,255,.10); color: #fff; font-family: var(--font-mono); }
.toolbar .tl.rec .dot { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: pulse 1.6s ease-in-out infinite; }
.toolbar .tl.stop { background: var(--accent); color: #fff; }
.toolbar .divider { width: 1px; height: 20px; background: rgba(255,255,255,.18); }

.mock-caption { text-align: center; margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* ---------- trust strip ---------- */
.trust { padding: 34px 0; border-bottom: 1px solid var(--line); }
.trust-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 14px 44px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-2);
}
.trust-inner span { display: inline-flex; align-items: center; gap: 8px; }
.trust-inner svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }

/* ---------- generic section ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--ink-2); line-height: 1.65; }

/* ---------- feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(17,17,17,.3); }
.card .ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card .ico svg { width: 21px; height: 21px; }
.card h3 { font-size: 18px; margin-bottom: 9px; }
.card p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }

.t-blue { background: var(--tint-blue); color: var(--tint-blue-ink); }
.t-green { background: var(--tint-green); color: var(--tint-green-ink); }
.t-purple { background: var(--tint-purple); color: var(--tint-purple-ink); }
.t-sand { background: var(--tint-sand); color: var(--tint-sand-ink); }

/* ---------- split feature rows ---------- */
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feat {
  display: flex; gap: 16px; padding: 26px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.feat .ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.feat .ico svg { width: 19px; height: 19px; }
.feat h3 { font-size: 16.5px; margin-bottom: 6px; }
.feat p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.step { position: relative; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.step .num {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
  font-family: var(--font-mono); font-size: 13px;
  margin-bottom: 18px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.step .kbd {
  display: inline-block; margin-top: 14px; padding: 4px 10px;
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 7px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); background: var(--bg-alt);
}

/* ---------- dark privacy block ---------- */
.dark {
  background: var(--ink); color: #fff;
  border-radius: var(--radius-lg);
  padding: 60px 56px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
}
.dark h2 { font-size: clamp(26px, 3.4vw, 36px); color: #fff; }
.dark p { margin-top: 18px; color: rgba(255,255,255,.68); font-size: 16px; line-height: 1.7; }
.dark .dark-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dark .dark-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,.86); }
.dark .dark-list svg { width: 19px; height: 19px; color: #6fd39f; flex: none; margin-top: 3px; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 104px 0; }
.cta h2 { font-size: clamp(30px, 4vw, 46px); }
.cta p { margin: 18px auto 0; max-width: 30em; font-size: 17px; color: var(--ink-2); }
.cta .hero-actions { margin-top: 34px; }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 2px; font-size: 16.5px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev {
  width: 20px; height: 20px; flex: none; color: var(--ink-3);
  transition: transform .22s ease;
}
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .ans { padding: 0 2px 24px; font-size: 15px; color: var(--ink-2); line-height: 1.7; max-width: 62ch; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 62px 0 40px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer h4 { font-size: 13px; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a { font-size: 14.5px; color: var(--ink-2); transition: color .16s ease; }
.footer ul a:hover { color: var(--ink); }
.footer-brand p { margin-top: 14px; font-size: 14px; color: var(--ink-2); max-width: 26em; line-height: 1.6; }
.footer-bottom {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
}
.footer-bottom .lang { background: #fff; }

/* ---------- language splash (root) ---------- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
@supports (min-height: 100dvh) { .page { min-height: 100dvh; } }

.splash {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 40px 24px;
  background: var(--bg-alt);
}
.splash .brand { font-size: 22px; margin-bottom: 14px; }
.splash .brand-mark { width: 32px; height: 32px; }
.splash h1 { font-size: 30px; }
.splash p { margin-top: 12px; color: var(--ink-2); }
.splash-links { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.splash-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  width: 220px; padding: 20px 22px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.splash-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 18px 36px -26px rgba(17,17,17,.3); }
.splash-card strong { font-size: 16px; font-weight: 600; }
.splash-card span { font-size: 13px; color: var(--ink-3); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .dark { grid-template-columns: 1fr; gap: 34px; padding: 44px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .section { padding: 68px 0; }
  .hero { padding-top: 52px; }
  .mock-wrap { margin-top: 44px; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .toolbar .tl.hide-sm { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .marquee .size { font-size: 10px; }
}
