:root {
  color-scheme: light;
  --bg: #fbfbfd;
  --paper: #ffffff;
  --muted: #f4f6f8;
  --ink: #111827;
  --subtle: #596273;
  --hairline: #d9dee7;
  --blue: #0a66d8;
  --blue-dark: #054ba6;
  --green: #31c96b;
  --shadow: 0 18px 54px rgba(17, 24, 39, 0.14);
  --radius: 8px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
  opacity: 1;
  transition: opacity 160ms ease;
}

body.leaving { opacity: 0; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

p { color: var(--subtle); line-height: 1.62; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(217, 222, 231, 0.78);
  background: rgba(251, 251, 253, 0.84);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand span,
.footer-brand span {
  direction: ltr;
  unicode-bidi: isolate;
}

.brand img,
.footer-brand img {
  border-radius: 8px;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 14px;
  color: #3c4452;
}

.mobile-menu-panel { display: contents; }

.site-nav a {
  padding: 8px 0;
}

.site-nav a[aria-current="page"] {
  color: var(--blue);
  font-weight: 650;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-picker select {
  height: 38px;
  max-width: 160px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0 34px 0 12px;
  font: inherit;
  color: var(--ink);
}

.nav-toggle { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 15px;
  cursor: pointer;
}

.button svg,
.site-header svg,
.feature svg,
.guide-list svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(10, 102, 216, 0.24);
}

.button-primary:hover { background: var(--blue-dark); }

.button-secondary {
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  border-color: var(--hairline);
}

.button-secondary:hover { border-color: #aeb8c8; }

.button-small {
  min-height: 38px;
  padding: 0 13px;
  font-size: 13px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(54px, 7vw, 92px) clamp(20px, 6vw, 86px);
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(251, 251, 253, 0.98) 0%, rgba(251, 251, 253, 0.86) 32%, rgba(251, 251, 253, 0.2) 67%, rgba(251, 251, 253, 0.04) 100%),
    linear-gradient(0deg, rgba(251, 251, 253, 0.88) 0%, rgba(251, 251, 253, 0) 28%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding-top: 10px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 740;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(44px, 6vw, 76px);
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  font-size: 18px;
}

.hero-lede,
.page-lede {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.mobile-mac-note {
  display: none;
  max-width: 520px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(217, 222, 231, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.48;
}

.mobile-device .mobile-mac-note {
  display: block;
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 80;
  max-width: min(92vw, 420px);
  padding: 12px 14px;
  border: 1px solid rgba(217, 222, 231, 0.92);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.94);
  color: #fff;
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.22);
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.site-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(217, 222, 231, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: #333b49;
  font-size: 13px;
}

.trust-row svg { color: var(--green); }

.section,
.page-hero {
  padding: clamp(64px, 8vw, 108px) clamp(20px, 5vw, 64px);
}

.section-tight {
  padding: 32px clamp(20px, 5vw, 64px);
  border-top: 1px solid rgba(217, 222, 231, 0.68);
  border-bottom: 1px solid rgba(217, 222, 231, 0.68);
  background: #fff;
}

.section-muted {
  background: var(--muted);
  border-block: 1px solid rgba(217, 222, 231, 0.75);
}

.container {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.narrow { max-width: 780px; }

.split,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
}

.align-center { align-items: center; }

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.brand-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 251, 253, 0.92));
}

.brand-art,
.pro-art {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(217, 222, 231, 0.78);
  background: #fff;
}

.brand-art {
  box-shadow: 0 16px 42px rgba(120, 98, 45, 0.12);
}

.brand-art img,
.pro-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-art-small {
  min-height: 320px;
}

.pro-art {
  max-width: 440px;
  justify-self: end;
  box-shadow: 0 22px 58px rgba(17, 24, 39, 0.22);
}

.section-heading p {
  font-size: 18px;
}

.feature-grid,
.steps,
.compare,
.language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  background: var(--hairline);
}

.feature,
.steps article,
.compare article,
.language-card {
  background: #fff;
  padding: 28px;
}

.feature svg,
.guide-list svg {
  color: var(--blue);
}

.feature h3,
.steps h3,
.language-card h3 {
  margin-top: 16px;
}

.feature p,
.steps p,
.language-card p {
  margin-bottom: 0;
}

.dictation-layer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-details {
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: #fff;
}

.process-details p {
  max-width: 860px;
}

.language-footnote {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(217, 222, 231, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--subtle);
  font-size: 14px;
}

.phrase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  background: var(--hairline);
}

.phrase-card {
  min-height: 164px;
  padding: 26px;
  background: #fff;
}

.phrase-card h2,
.phrase-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.phrase-card p {
  margin: 0;
  color: var(--subtle);
}

.download-start-card img {
  border-radius: 18px;
  margin-bottom: 22px;
}

.steps article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.steps article h3 {
  margin-top: 18px;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 680;
}

.page-shell {
  min-height: 70vh;
}

.page-hero {
  background:
    radial-gradient(circle at 12% 0%, rgba(10, 102, 216, 0.08), transparent 38%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid rgba(217, 222, 231, 0.75);
}

.download-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.download-panel img {
  border-radius: 18px;
  margin-bottom: 22px;
}

dl {
  margin: 0;
}

dt {
  color: var(--subtle);
  font-size: 13px;
}

dd {
  margin: 2px 0 16px;
  font-weight: 650;
}

.hash {
  overflow-wrap: anywhere;
  font-size: 12px;
  color: #2e3746;
}

.guide-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  background: var(--hairline);
}

.guide-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 20px;
  padding: 28px;
  background: #fff;
}

.guide-list p {
  margin-bottom: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.contact-address {
  margin: 0;
  color: var(--ink);
  font-weight: 680;
  overflow-wrap: anywhere;
}

.contact-hint {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--subtle);
}

.compare {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compare ul {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.compare li {
  position: relative;
  padding: 9px 0 9px 28px;
  border-top: 1px solid rgba(217, 222, 231, 0.68);
}

.compare li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(49, 201, 107, 0.12);
  color: #0f7b3a;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.badge-muted {
  background: rgba(10, 102, 216, 0.11);
  color: var(--blue);
}

.language-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.language-card {
  min-height: 178px;
}

.language-card.current {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.language-card .native {
  color: var(--ink);
  font-weight: 760;
  font-size: 20px;
}

.language-card .local-note {
  color: var(--green);
  font-weight: 720;
}

.language-card-muted {
  background:
    linear-gradient(180deg, rgba(244, 246, 250, 0.96), rgba(236, 240, 246, 0.96));
}

.language-card-muted .native {
  font-size: 24px;
}

.faq-list {
  border-top: 1px solid var(--hairline);
}

details {
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
}

summary {
  cursor: pointer;
  font-weight: 720;
  font-size: 18px;
}

details p {
  margin: 12px 0 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--hairline);
  background: #fff;
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  color: #3c4452;
}

.site-footer p {
  justify-self: end;
  margin: 0;
}

[dir="rtl"] .hero-scrim {
  background:
    linear-gradient(270deg, rgba(251, 251, 253, 0.98) 0%, rgba(251, 251, 253, 0.86) 32%, rgba(251, 251, 253, 0.2) 67%, rgba(251, 251, 253, 0.04) 100%),
    linear-gradient(0deg, rgba(251, 251, 253, 0.88) 0%, rgba(251, 251, 253, 0) 28%);
}

.timeline-list article {
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: #fff;
}

.timeline-list h2 {
  margin-top: 10px;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto auto;
    gap: 12px;
  }

  .brand { grid-column: 1; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    justify-self: end;
    min-height: 38px;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: #fff;
    padding: 0 12px;
    font: inherit;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .mobile-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: clamp(14px, 4vw, 28px);
    right: clamp(14px, 4vw, 28px);
    z-index: 40;
    display: none;
    padding: 12px;
    border: 1px solid rgba(217, 222, 231, 0.9);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 52px rgba(17, 24, 39, 0.16);
    backdrop-filter: blur(18px);
  }

  .site-header.nav-open .mobile-menu-panel {
    display: block;
  }

  .site-header.nav-open .site-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }

  .site-header.nav-open .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 16px;
  }

  .site-header.nav-open .site-nav a[aria-current="page"] {
    background: rgba(10, 102, 216, 0.08);
  }

  .site-header.nav-open .header-actions {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(217, 222, 231, 0.82);
  }

  .site-header.nav-open .language-picker select {
    width: 100%;
    max-width: none;
    min-height: 44px;
  }

  .site-header.nav-open .header-actions .button {
    width: 100%;
    min-height: 46px;
  }

  .hero {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 280px;
  }

  .hero-image { object-position: 65% center; }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(251, 251, 253, 0.98) 0%, rgba(251, 251, 253, 0.9) 45%, rgba(251, 251, 253, 0.08) 100%);
  }

  .split,
  .two-column,
  .feature-grid,
  .dictation-layer-grid,
  .steps,
  .compare,
  .language-grid,
  .phrase-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav { justify-content: start; }

  .site-footer p { justify-self: start; }
}

@media (max-width: 560px) {
  h1 { font-size: 42px; }

  .hero-lede,
  .page-lede { font-size: 18px; }

  .button { width: 100%; }

  .hero-actions,
  .trust-row { width: 100%; }

  .trust-row span { flex: 1; }

  .feature,
  .steps article,
  .compare article,
  .language-card,
  .phrase-card,
  .guide-list article,
  .download-panel {
    padding: 22px;
  }
}
