/* FlashTranslate landing page
   Editorial, restrained: white paper, ink text, one brand blue. */

:root {
  --blue: #1565C0;
  --blue-dark: #0e4f99;
  --ink: #14181d;
  --ink-soft: #4b555f;
  --hairline: #e3e6ea;
  --wash: #f6f7f9;
  --paper: #ffffff;
  --radius-phone: 36px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Manrope", -apple-system, sans-serif;
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.03em;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
}

.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 22px;
  transition: background 180ms ease;
}

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

.btn-small { padding: 9px 18px; font-size: 15px; }

/* ---------- Type helpers ---------- */

.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}

/* ---------- Hero ---------- */

.hero { padding: 88px 0 96px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 56px);
  margin-bottom: 20px;
}

.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0 0 32px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.badge {
  display: inline-flex;
  border-radius: 8px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.badge:hover { opacity: 0.85; }

.badge:focus-visible,
.btn:focus-visible,
.nav-links a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.badge-note {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 12px 0 0;
}

/* ---------- Phone frames ---------- */

.phone {
  margin: 0;
  display: inline-block;
  border: 10px solid var(--ink);
  border-radius: var(--radius-phone);
  background: var(--ink);
  box-shadow: 0 24px 60px rgba(20, 24, 29, 0.18);
  line-height: 0;
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-phone) - 10px);
  display: block;
}

.hero-phone { text-align: center; }
.hero-phone .phone { max-width: 300px; }

/* ---------- How it works ---------- */

.how {
  background: var(--wash);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 88px 0;
}

.how h2, .features h2, .languages h2 { font-size: clamp(30px, 3.6vw, 40px); }

.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.steps h3 { font-size: 21px; margin: 0 0 6px; }

.steps p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
  font-family: "Manrope", -apple-system, sans-serif;
  font-size: 18px;
}

/* ---------- Screenshots ---------- */

.shots { padding: 88px 0 72px; }

.shots-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.shot-figure {
  margin: 0;
  width: 250px;
  text-align: center;
}

.shot-figure .phone { max-width: 100%; }

.shot-raised { margin-top: -20px; }

.shot-figure figcaption {
  line-height: 1.5;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 14px 8px 0;
}

/* ---------- Features ---------- */

.features {
  background: var(--wash);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 88px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-grid article {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 28px 26px;
}

.feature-grid h3 { font-size: 20px; margin: 0 0 8px; }

.feature-grid p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

.f-icon {
  width: 28px;
  height: 28px;
  color: var(--blue);
  margin-bottom: 18px;
}

/* ---------- Languages ---------- */

.languages { padding: 88px 0; text-align: center; }

.lang-row {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 44px;
}

.lang-row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.lang-row img {
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(20, 24, 29, 0.14);
}

.lang-note {
  margin: 32px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- CTA ---------- */

.cta {
  background: var(--ink);
  color: #fff;
  padding: 96px 0;
}

.cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta h2 { font-size: clamp(30px, 3.6vw, 42px); color: #fff; }

.cta p { color: #b6bdc4; margin: 0 0 32px; }

.cta .badge-note { color: #8a929a; }

.cta-icon { border-radius: 16px; margin-bottom: 24px; }

.cta .badge svg rect:first-child { fill: #000; }

.cta .store-badges { justify-content: center; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--hairline);
  padding: 28px 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer p { margin: 0; }

.footer a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 20px;
}

.footer a:hover { color: var(--ink); }

/* ---------- Support page ---------- */

.support-hero { padding: 72px 0 56px; }

.support-hero h1 {
  font-size: clamp(34px, 4.5vw, 48px);
  margin-bottom: 16px;
}

.support-hero .lede { margin-bottom: 0; }

.support-hero a { color: var(--blue); }

.faq {
  background: var(--wash);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 72px 0 88px;
}

.faq-container { max-width: 760px; }

.faq h2 { font-size: clamp(28px, 3.4vw, 36px); margin-bottom: 8px; }

.faq-group {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 40px 0 12px;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16.5px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--hairline);
  color: var(--blue);
  font-weight: 600;
  transition: transform 180ms ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 12px;
}

.faq-body { padding: 0 22px 18px; }

.faq-body p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15.5px; }

.faq-body p:last-child { margin-bottom: 0; }

.faq-body a { color: var(--blue); }

/* ---------- Legal pages ---------- */

.legal-container { max-width: 760px; }

.legal-updated {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 20px 0 0;
}

.legal {
  background: var(--wash);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 88px;
}

.legal h2 {
  font-size: 24px;
  margin: 44px 0 14px;
}

.legal h2:first-child { margin-top: 0; }

.legal p, .legal li {
  color: var(--ink-soft);
  font-size: 15.5px;
}

.legal ul { padding-left: 22px; margin: 0 0 16px; }

.legal li { margin-bottom: 10px; }

.legal a { color: var(--blue); }

.legal strong { color: var(--ink); }

.legal-table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 12px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
  min-width: 140px;
}

.legal th {
  color: var(--ink);
  font-weight: 600;
  background: var(--wash);
}

.legal tr:last-child td { border-bottom: none; }

/* ---------- Contact ---------- */

.contact { padding: 88px 0; }

.contact-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 48px 40px;
}

.contact-card h2 { font-size: clamp(26px, 3.2vw, 34px); }

.contact-card p { color: var(--ink-soft); margin: 0 0 28px; }

.contact-note {
  font-size: 14px;
  margin: 20px 0 0 !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .nav-links { display: none; }
  .shot-raised { margin-top: 0; }
}

@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
}
