/* SayTXT — main stylesheet
   Design language: iOS-inspired rounded, generous whitespace,
   Voice Orb palette accents, mobile-first responsive. */

:root {
  /* Brand */
  --brand-red: #E63946;
  --brand-ink: #0F172A;
  --brand-bg: #FFFFFF;
  --brand-muted: #64748B;
  --brand-line: #E2E8F0;
  --brand-soft: #F8FAFC;

  /* Voice Orb palette (accents) */
  --orb-warm: #FF6B35;
  --orb-calm: #1B3A57;
  --orb-lively: #FFD93D;
  --orb-smooth: #D4AF37;
  --orb-refined: #4A5563;
  --orb-elegant: #E8A5C4;
  --orb-clear: #5BC0EB;
  --orb-friendly: #FFCBA4;
  --orb-authoritative: #722F37;
  --orb-youthful: #7FDBDA;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "SF Pro Display", "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, monospace;

  /* Layout */
  --container: 1080px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--brand-ink);
  background: var(--brand-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand-red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ------------ Hero ------------ */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--orb-warm), var(--brand-red) 55%, transparent 75%);
  opacity: 0.18;
  filter: blur(12px);
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -180px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--orb-clear), var(--orb-calm) 60%, transparent 78%);
  opacity: 0.14;
  filter: blur(12px);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 800;
}
.hero .lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--brand-muted);
  margin: 0 0 32px;
  max-width: 620px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
#download { scroll-margin-top: 96px; }
.store-badges-center { justify-content: center; }
.store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  transition: transform 0.15s ease;
}
.store-badge-link:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.store-badge-link:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 3px;
}
.store-badge {
  display: block;
  width: auto;
  max-width: none;
}
.store-badge-apple { height: 50px; }
/* The official Google PNG has transparent padding around its 564 x 168 badge. */
.store-badge-google {
  height: 75px;
  margin: -10px -13px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--brand-ink);
  color: white !important;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.btn-secondary {
  background: white;
  color: var(--brand-ink) !important;
  border: 1px solid var(--brand-line);
}
.btn-secondary:hover { border-color: var(--brand-ink); text-decoration: none; }
.hero-micro {
  margin-top: 20px;
  font-size: 14px;
  color: var(--brand-muted);
}

/* ------------ Section ------------ */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
section.alt { background: var(--brand-soft); }
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin: 0 0 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 800;
}
.section-lead {
  font-size: 18px;
  color: var(--brand-muted);
  max-width: 640px;
  margin: 0 0 40px;
}

/* ------------ Format grid ------------ */
.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.format-card {
  background: white;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.format-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.format-card .icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.format-card h3 {
  font-size: 17px;
  margin: 0 0 6px;
  font-weight: 600;
}
.format-card p {
  font-size: 14px;
  color: var(--brand-muted);
  margin: 0;
}
@media (max-width: 720px) {
  .format-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ------------ Differentiators (3 big pillars) ------------ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.diff-card {
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  color: white;
}
.diff-card h3 {
  font-size: 44px;
  line-height: 1;
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.diff-card p.diff-sub { font-size: 15px; margin: 0 0 20px; opacity: 0.85; }
.diff-card p.diff-body { font-size: 15px; margin: 0; opacity: 0.9; line-height: 1.5; }
.diff-1 { background: linear-gradient(135deg, var(--orb-warm), var(--brand-red)); }
.diff-2 { background: linear-gradient(135deg, var(--orb-calm), var(--orb-clear)); }
.diff-3 { background: linear-gradient(135deg, var(--orb-smooth), #7a5c22); }
@media (max-width: 860px) { .diff-grid { grid-template-columns: 1fr; } }

/* ------------ Use case cards ------------ */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.uc-card {
  display: block;
  background: white;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  padding: 26px 22px;
  color: var(--brand-ink) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.uc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
  text-decoration: none;
}
.uc-card .uc-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 10px;
}
.uc-card h3 {
  font-size: 19px;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.uc-card p {
  font-size: 15px;
  color: var(--brand-muted);
  margin: 0 0 14px;
  line-height: 1.5;
}
.uc-card .uc-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-red);
}
@media (max-width: 860px) { .uc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .uc-grid { grid-template-columns: 1fr; } }

/* ------------ Voice Orb strip ------------ */
.orb-strip {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
}
.orb {
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-align: center;
  min-width: 92px;
}
.orb .orb-ball {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 10px;
  box-shadow: inset 0 -4px 12px rgba(0,0,0,0.15), inset 0 4px 8px rgba(255,255,255,0.35);
  position: relative;
}
.orb .orb-ball::after {
  content: "";
  position: absolute;
  top: 14%; left: 20%;
  width: 22%; height: 22%;
  background: radial-gradient(circle, rgba(255,255,255,0.6), transparent 70%);
  border-radius: 50%;
}
.orb .orb-label { font-size: 13px; font-weight: 600; color: var(--brand-ink); }
.orb .orb-sub { font-size: 12px; color: var(--brand-muted); }
.orb-warm .orb-ball { background: radial-gradient(circle at 30% 30%, var(--orb-warm), #B84A1F); }
.orb-calm .orb-ball { background: radial-gradient(circle at 30% 30%, #2C5F7E, var(--orb-calm)); }
.orb-lively .orb-ball { background: radial-gradient(circle at 30% 30%, var(--orb-lively), #C8FF6B); }
.orb-smooth .orb-ball { background: radial-gradient(circle at 30% 30%, var(--orb-smooth), #1A1A2E); }
.orb-refined .orb-ball { background: radial-gradient(circle at 30% 30%, #E8E4D8, var(--orb-refined)); }
.orb-elegant .orb-ball { background: radial-gradient(circle at 30% 30%, #F4E4D4, var(--orb-elegant)); }
.orb-clear .orb-ball { background: radial-gradient(circle at 30% 30%, #F0FAFF, var(--orb-clear)); }
.orb-friendly .orb-ball { background: radial-gradient(circle at 30% 30%, #FFE4D4, var(--orb-friendly)); }
.orb-authoritative .orb-ball { background: radial-gradient(circle at 30% 30%, #3D3936, var(--orb-authoritative)); }
.orb-youthful .orb-ball { background: radial-gradient(circle at 30% 30%, #B8E6F4, var(--orb-youthful)); }

/* ------------ FAQ ------------ */
.faq-list { max-width: 780px; }
.faq-item {
  border-bottom: 1px solid var(--brand-line);
  padding: 24px 0;
}
.faq-item:first-child { border-top: 1px solid var(--brand-line); }
.faq-item h3 {
  font-size: 19px;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.faq-item p {
  margin: 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.6;
}

/* ------------ Quotes ------------ */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote {
  background: white;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  padding: 24px;
}
.quote .stars { color: #F59E0B; margin-bottom: 10px; font-size: 15px; letter-spacing: 2px; }
.quote p { margin: 0 0 14px; font-size: 15px; line-height: 1.5; }
.quote .author { font-size: 13px; color: var(--brand-muted); }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } }

/* ------------ CTA band ------------ */
.cta-band {
  background: linear-gradient(135deg, var(--brand-ink), #1E2F4E);
  color: white;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  margin: 40px 0;
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.cta-band p { margin: 0 0 28px; opacity: 0.85; font-size: 17px; }
.cta-band .btn-primary { background: white; color: var(--brand-ink) !important; }
.cta-band .btn-secondary { background: transparent; color: white !important; border-color: rgba(255,255,255,0.35); }
.cta-band .store-badge-link:focus-visible { outline-color: white; }

@media (max-width: 480px) {
  .store-badges { justify-content: center; }
}

/* ------------ Use case / article page ------------ */
.article {
  max-width: 760px;
  width: calc(100% - 48px);
  margin: 0 auto;
  padding: 60px 0 40px;
}
.article .kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin: 0 0 12px;
}
.article h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 800;
}
.article .subhead {
  font-size: 19px;
  color: var(--brand-muted);
  margin: 0 0 40px;
  line-height: 1.5;
}
.article h2 {
  font-size: 26px;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.article h3 {
  font-size: 20px;
  margin: 32px 0 12px;
  font-weight: 700;
}
.article p, .article li { font-size: 17px; line-height: 1.7; color: #1E293B; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin: 0 0 8px; }
.article > .store-badges { margin-top: 40px; }

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.article th, .article td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--brand-line);
  text-align: left;
}
.article th { background: var(--brand-soft); font-weight: 700; }
.article td.no { color: #B91C1C; }
.article td.yes { color: #059669; font-weight: 600; }

.table-scroll {
  margin: 24px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll table { margin: 0; }
@media (max-width: 600px) {
  .table-scroll table { min-width: 620px; }
}

.callout {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand-red);
  padding: 20px 24px;
  border-radius: 4px 8px 8px 4px;
  margin: 32px 0;
}
.callout p { margin: 0; font-size: 16px; }

.related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--brand-line);
}
.related h2 { margin-top: 0; }

/* ------------ Features page grid ------------ */
.feature-groups {
  display: grid;
  gap: 40px;
}
.feature-group {
  padding: 32px;
  background: white;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
}
.feature-group h2 {
  font-size: 22px;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.feature-group h2 .fg-icon { font-size: 26px; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--brand-soft);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .check {
  color: #059669;
  font-weight: 700;
  margin-top: 2px;
}
.feature-list .fl-body { flex: 1; }
.feature-list strong { display: block; margin-bottom: 2px; }
.feature-list .desc { color: var(--brand-muted); font-size: 14px; }

/* ------------ Utility ------------ */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none; }

/* Browser tool entry on the App homepage. */
.web-tools-section { padding-top: 8px; padding-bottom: 48px; }
.web-tool-card { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 32px; background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: var(--radius-lg); }
.web-tool-card h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.02em; }
.web-tool-card p { max-width: 600px; margin: 0; color: var(--brand-muted); font-size: 16px; }
.web-tool-card .web-tool-meta { margin-top: 12px; font-size: 13px; }
.web-tool-card .btn { flex-shrink: 0; white-space: nowrap; background: var(--brand-red); }
@media (max-width: 800px) {
  .web-tool-card { flex-direction: column; align-items: flex-start; gap: 24px; padding: 24px; }
}
