/* Pro Speak Artisan — landing brand stylesheet.
 * Mirrors the mobile app's design tokens (lib/core/theme/app_tokens.dart).
 * Inter via Google Fonts for the type, no external JS, no tracking. */

:root {
  /* Brand */
  --brand:        #FF3B30;
  --brand-deep:   #CC2C24;
  --brand-soft:   #FFE5E2;

  /* Ink (text on light) */
  --ink-900: #0E1117;
  --ink-700: #1F2430;
  --ink-500: #505868;
  --ink-300: #8B93A4;
  --ink-100: #E2E5EC;

  /* Surfaces */
  --bg:           #FAF7F3;
  --surface:      #FFFFFF;
  --surface-alt:  #F3F1ED;

  /* Accents */
  --teal:   #0EA98E;
  --amber:  #E0A100;
  --violet: #6F5BFF;

  /* Status */
  --success-soft: #D8F4EC;
  --success-fg:   #0A5A4B;

  /* Layout */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-full: 999px;

  --shadow-card: 0 12px 48px rgba(26, 30, 42, .08);
  --shadow-hero: 0 24px 80px rgba(255, 59, 48, .18);

  --container: 1120px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout primitives */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--ink-100); }

/* Typography */
h1, h2, h3, h4 {
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1;  font-weight: 700; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
h4 { font-size: 14px; line-height: 1.4; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); }
p  { color: var(--ink-700); margin: 0 0 12px; }
.lead { font-size: clamp(18px, 1.8vw, 22px); color: var(--ink-500); }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 243, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-100);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink-900);
}
.nav-logo:hover { text-decoration: none; }
.nav-logo svg { width: 32px; height: 32px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover { color: var(--ink-900); text-decoration: none; }
@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 59, 48, .28);
}
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border: 1px solid var(--ink-100);
}
.btn-ghost:hover { border-color: var(--ink-300); text-decoration: none; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* Hero */
.hero {
  padding: 80px 0 120px;
  background:
    radial-gradient(ellipse 60% 80% at 20% 0%, rgba(255, 59, 48, .12), transparent 60%),
    radial-gradient(ellipse 50% 80% at 100% 30%, rgba(111, 91, 255, .08), transparent 60%);
}
.hero-inner { text-align: center; max-width: 880px; margin: 0 auto; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  margin-bottom: 28px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.hero-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}
.hero h1 {
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--brand-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}
.hero .lead {
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-stat .num {
  font-size: 36px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.hero-stat .label { color: var(--ink-500); font-size: 14px; }
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; gap: 20px; }
}

/* Section title */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .lead { margin: 8px auto 0; }

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}
.feature-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--ink-500); margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  border: 1px solid var(--ink-100);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px; left: 28px;
  width: 36px; height: 36px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  box-shadow: 0 6px 16px rgba(255, 59, 48, .35);
}
.step h3 { margin-top: 16px; }
.step p { color: var(--ink-500); font-size: 15px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-hero);
  transform: scale(1.02);
}
.plan-tag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.plan-name { font-size: 14px; color: var(--ink-500); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.plan-price { font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--ink-900); }
.plan-price .unit { font-size: 16px; color: var(--ink-500); font-weight: 500; }
.plan-tagline { color: var(--ink-500); margin: 8px 0 24px; font-size: 14px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 28px; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0;
  color: var(--ink-700);
  font-size: 15px;
}
.plan-features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 3px;
  background: var(--success-soft);
  color: var(--success-fg);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230A5A4B'%3E%3Cpath d='M6.5 10.5l-2-2 1-1 1 1 3-3 1 1z'/%3E%3C/svg%3E");
  background-size: 16px; background-repeat: no-repeat; background-position: center;
}
.plan .btn { margin-top: auto; justify-content: center; }
@media (max-width: 900px) {
  .pricing { grid-template-columns: 1fr; gap: 20px; }
  .plan.featured { transform: none; }
}
.pricing-note {
  margin-top: 40px;
  text-align: center;
  color: var(--ink-500);
  font-size: 14px;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 12px;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--brand); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-900);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--ink-500);
  font-weight: 400;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 12px; color: var(--ink-500); font-size: 15px; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  text-align: center;
  color: #fff;
  margin: 0 24px;
  box-shadow: var(--shadow-hero);
}
.cta-banner h2, .cta-banner p { color: #fff; }
.cta-banner .lead { color: rgba(255,255,255,.85); }
.cta-banner .btn-primary {
  background: #fff;
  color: var(--brand-deep);
}
.cta-banner .btn-primary:hover { background: var(--bg); }

/* Footer */
footer {
  padding: 56px 24px 40px;
  color: var(--ink-500);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-500); }
.footer-links a:hover { color: var(--ink-900); text-decoration: none; }

/* Legal pages — shared shell when standalone */
.legal {
  max-width: 760px;
  margin: 56px auto 96px;
  background: var(--surface);
  padding: 56px 56px 80px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}
@media (max-width: 720px) {
  .legal { padding: 32px 24px 64px; margin: 24px 12px 64px; border-radius: var(--radius-lg); }
}
.legal h1 { font-size: 38px; margin-bottom: 16px; -webkit-text-fill-color: initial; background: none; }
.legal h2 {
  font-size: 24px; margin: 48px 0 16px;
  border-bottom: 1px solid var(--ink-100);
  padding-bottom: 12px;
}
.legal h3 { font-size: 18px; margin: 32px 0 8px; }
.legal blockquote {
  border-left: 3px solid var(--brand);
  padding: 6px 18px;
  color: var(--ink-500);
  margin: 24px 0;
  background: #FFF8F7;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.legal th, .legal td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink-100);
  vertical-align: top;
}
.legal th { background: var(--surface-alt); font-weight: 600; }
.legal code {
  background: var(--surface-alt);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 14px;
}
.legal pre {
  background: var(--surface-alt);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 14px;
}
.legal pre code { background: transparent; padding: 0; }
