/* TalentEcho — marketing site styles. Light mode only. System fonts only. */

:root {
  --blue: #0000FF;
  --blue-pressed: #0000CC;
  --blue-tint: #E6E6FF;
  --wash-start: #E2FFFF;
  --ink: #000000;
  --text-secondary: #5A5A5A;
  --grey: #B3B3B3;
  --bg: #FFFFFF;
  --surface: #F4F4F6;
  --hairline: #ECECEC;
  --on-blue: #FFFFFF;

  --radius-card: 16px;
  --radius-row: 14px;
  --radius-pill: 999px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 40px;
  --s-7: 64px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

section { padding: var(--s-7) 0; }

.eyebrow {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 var(--s-3);
}

.section-head {
  font-size: clamp(26px, 4vw, 34px);
  margin-bottom: var(--s-6);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--ink);
  font-weight: 500;
  font-size: 18px;
}
.lockup:hover { text-decoration: none; }
.lockup .star { width: 22px; height: 22px; display: block; }
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.header-nav a.text-link { color: var(--ink); font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--blue);
  color: var(--on-blue);
  padding: 10px 20px;
}
.btn-primary:hover { background: var(--blue-pressed); }

.btn-small { padding: 7px 14px; font-size: 14px; }

/* App Store badge link */
.store-badge {
  display: inline-flex;
  transition: transform 0.08s ease, opacity 0.15s ease;
}
.store-badge:hover { text-decoration: none; opacity: 0.9; }
.store-badge:active { transform: scale(0.97); }
.store-badge svg { height: 54px; width: auto; display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: var(--s-7);
  padding-bottom: var(--s-7);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--wash-start) 0%, var(--bg) 62%);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-7);
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 6.2vw, 60px);
  margin: 0 0 var(--s-4);
}
.hero-sub {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--text-secondary);
  max-width: 30ch;
  margin: 0 0 var(--s-5);
}
.hero-cta { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }

/* ---------- Dictation demo ---------- */
.demo-card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: var(--s-5);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
.demo-rec {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--hairline);
}
.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FF3B30;
  flex: none;
  animation: recpulse 1.4s ease-in-out infinite;
}
@keyframes recpulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.rec-label { font-size: 14px; font-weight: 500; }
.rec-timer {
  font-size: 14px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}
.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  margin-left: var(--s-2);
}
.waveform .bar {
  width: 3px;
  height: 100%;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleY(0.3);
  transform-origin: center;
  transition: transform 0.14s ease;
}

.demo-transcript {
  list-style: none;
  margin: 0;
  padding: var(--s-4) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-height: 210px;
}
.demo-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.demo-line.show { opacity: 1; transform: none; }
.demo-line .text {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.4;
}
.demo-line .caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--blue);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.chip {
  flex: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  background: var(--blue-tint);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.chip.show { opacity: 1; transform: none; }

/* ---------- Two sides ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
.col-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: var(--s-6) var(--s-5) 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.col-card h3 { font-size: 20px; margin-bottom: var(--s-3); }
.col-card > p { color: var(--text-secondary); }
.col-tag {
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: var(--s-2);
}
.col-card .phone {
  margin: var(--s-5) auto -10px;
}
.col-card .phone img {
  height: 320px;
  object-fit: cover;
  object-position: top;
}

/* ---------- Phone frame ---------- */
.phone {
  width: 240px;
  max-width: 72%;
  padding: 9px;
  background: #0A0A0A;
  border-radius: 40px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08);
}
.phone img {
  display: block;
  width: 100%;
  border-radius: 31px;
}

/* ---------- Showcase ---------- */
.showcase {
  background: var(--surface);
}
.showcase .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--s-7);
  align-items: center;
}
.showcase .phone { width: 270px; max-width: 100%; justify-self: center; }
.showcase h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: var(--s-4); }
.showcase p { color: var(--text-secondary); font-size: 18px; max-width: 40ch; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  counter-reset: step;
}
.step { }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: var(--blue-tint);
  color: var(--blue);
  font-weight: 500;
  font-size: 16px;
  margin-bottom: var(--s-3);
}
.step h3 { font-size: 18px; margin-bottom: var(--s-2); }
.step p { color: var(--text-secondary); font-size: 15px; }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-row);
}
.feature svg { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 1px; }
.feature p { font-size: 15px; }

/* ---------- Trust ---------- */
.trust {
  text-align: center;
  background: var(--surface);
}
.trust p {
  max-width: 46ch;
  margin: 0 auto;
  font-size: clamp(18px, 2.6vw, 22px);
  color: var(--ink);
}
.trust .muted { color: var(--text-secondary); font-size: 16px; margin-top: var(--s-3); }

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  max-width: 760px;
  margin: 0 auto var(--s-6);
}
.price-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.price-card.featured { border-color: var(--blue); }
.price-card h3 { font-size: 22px; }
.price-amount { font-size: 30px; font-weight: 500; }
.price-amount span { font-size: 16px; color: var(--text-secondary); font-weight: 400; }
.price-alt { color: var(--text-secondary); font-size: 15px; }
.price-trial { color: var(--blue); font-size: 14px; font-weight: 500; }
.price-note { color: var(--text-secondary); font-size: 15px; }

.disclosure {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}
.disclosure ul { margin: var(--s-2) 0; padding-left: 1.2em; }
.disclosure strong { color: var(--ink); font-weight: 500; }
.pricing-cta { text-align: center; margin-top: var(--s-6); }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--wash-start) 0%, var(--bg) 100%);
  z-index: -1;
}
.final-cta h2 { font-size: clamp(28px, 4.4vw, 40px); margin-bottom: var(--s-5); }
.final-cta .store-badge { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: var(--s-6) 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  align-items: center;
  justify-content: space-between;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
}
.footer-links a { color: var(--text-secondary); font-size: 15px; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { color: var(--grey); font-size: 13px; width: 100%; }

.center-badge { display: flex; justify-content: center; margin-top: var(--s-5); }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--s-7) var(--s-5);
}
.legal h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: var(--s-3); }
.legal h2 { font-size: 20px; margin: var(--s-6) 0 var(--s-3); }
.legal h3 { font-size: 16px; margin: var(--s-5) 0 var(--s-2); }
.legal p, .legal li { color: var(--text-secondary); margin-bottom: var(--s-3); }
.legal ul { padding-left: 1.3em; }
.legal .updated { color: var(--grey); font-size: 14px; }
.legal strong { color: var(--ink); font-weight: 500; }
.legal .caps { font-size: 13px; }
.legal a { color: var(--blue); }
.legal-back { display: inline-block; margin-top: var(--s-6); font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero-sub { max-width: 40ch; }
  .two-col { grid-template-columns: 1fr; }
  .showcase .wrap { grid-template-columns: 1fr; gap: var(--s-5); text-align: center; }
  .showcase p { margin: 0 auto; }
  .steps { grid-template-columns: 1fr; gap: var(--s-6); }
  .feature-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  section { padding: var(--s-6) 0; }
}

@media (max-width: 480px) {
  .store-badge svg { height: 48px; }
  .header-nav { gap: var(--s-3); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .rec-dot { animation: none; }
  .demo-line .caret { display: none; }
  * { scroll-behavior: auto !important; }
}
