/* ============================================================
   Fluent — thefluent.app
   Design system: a web translation of the apps' flat "panel"
   language (Theme/Panels.swift): graphite background, flat
   #1A1D24 panels, hairline rows, icon pills, right-aligned
   values, gender-colour accents. No blur, no gloss.
   ============================================================ */

:root {
  --bg:        #0B0D12;
  --panel:     #1A1D24;
  --panel-2:   #232833;
  --hairline:  rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);
  --text:      #F2F4F8;
  --muted:     #9BA3B2;
  --dim:       #667082;

  --blue:      #3B82F6;   /* masculine · primary accent */
  --red:       #F43F5E;   /* feminine  */
  --green:     #22C55E;   /* neuter    */
  --purple:    #A855F7;   /* der/die   */
  --gold:      #F5A623;   /* PRO crown */

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(38px, 5.4vw, 62px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 21px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.lede { color: var(--muted); font-size: 19px; max-width: 58ch; }

/* ---------- panels (the core surface) ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
}

.panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--hairline);
  font-size: 18px;
  font-weight: 700;
}
.panel-header .value { color: var(--muted); font-size: 15px; font-weight: 600; }

.rows { list-style: none; }
.rows li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
}
.rows li + li { border-top: 1px solid var(--hairline); }
.rows .value { margin-left: auto; color: var(--muted); font-size: 15px; text-align: right; }

/* icon pill — the little rounded-square glyph holder from the app */
.ipill {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  font-size: 17px;
  background: color-mix(in srgb, var(--pc, var(--blue)) 16%, transparent);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--panel);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 600;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-ghost   { background: var(--panel); border: 1px solid var(--hairline-strong); color: var(--text); }

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.96);
  border-bottom: 1px solid var(--hairline);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  margin-right: auto;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 24px; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.site-nav .btn { padding: 9px 16px; font-size: 14px; border-radius: 11px; }

/* ---------- hero ---------- */

.hero { padding: 84px 0 40px; overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  gap: 48px;
  align-items: center;
}

.lang-pills { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 30px; }
.lang-pills .chip strong { color: var(--text); font-weight: 700; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-note { margin-top: 22px; color: var(--dim); font-size: 14px; }

/* phone fan */
.phone-fan {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 560px;
}
.phone-fan .phone { position: absolute; bottom: -80px; }
.phone-fan .phone:nth-child(1) {
  transform: translateX(-64%) rotate(-7deg) scale(0.82);
  z-index: 1; opacity: 0.65;
}
.phone-fan .phone:nth-child(2) { position: relative; bottom: -40px; z-index: 3; }
.phone-fan .phone:nth-child(3) {
  transform: translateX(64%) rotate(7deg) scale(0.82);
  z-index: 2; opacity: 0.65;
}

/* ---------- phone frame ---------- */

.phone {
  width: var(--pw, 270px);
  border-radius: calc(var(--pw, 270px) * 0.168);
  padding: 9px;
  background: #05060a;
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 30px 70px -32px rgba(0, 0, 0, 0.85);
}
.phone img {
  width: 100%;
  border-radius: calc(var(--pw, 270px) * 0.135);
}

/* ---------- stat band ---------- */

.stat-band { margin: 56px auto 0; }
.stat-band .panel {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.stat-band .stat {
  padding: 22px 12px;
  text-align: center;
}
.stat-band .stat + .stat { border-left: 1px solid var(--hairline); }
.stat-band b { display: block; font-size: 27px; letter-spacing: -0.02em; }
.stat-band span { font-size: 13.5px; color: var(--muted); }

/* ---------- sections ---------- */

section { padding: 78px 0; }
.section-head { max-width: 700px; margin-bottom: 46px; }

/* apps grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.app-card { overflow: hidden; display: flex; flex-direction: column; }
.app-card .shot-crop {
  margin: 14px 14px 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 0.72;
  border: 1px solid var(--hairline);
}
.app-card .shot-crop img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.app-card .meta { padding: 15px 16px 17px; display: grid; gap: 3px; }
.app-card h3 { font-size: 17px; }
.app-card .lang { color: var(--muted); font-size: 13.5px; }
.app-card .facts { margin-top: 8px; font-size: 13px; color: var(--dim); display: grid; gap: 2px; }
.app-card .facts b { color: var(--muted); font-weight: 600; }

.art { font-weight: 700; }
.art.m { color: var(--blue); }
.art.f { color: var(--red); }
.art.n { color: var(--green); }

/* ---------- annotated feature blocks ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.feature + .feature { margin-top: 92px; }
.feature.flip .f-media { order: 2; }
.feature.flip .f-copy  { order: 1; }

.f-copy .legend { margin-top: 26px; }
.f-copy .legend .rows li { padding: 12px 18px; font-size: 15.5px; color: var(--muted); }
.f-copy .legend .rows li b { color: var(--text); font-weight: 600; }

.f-media { display: flex; justify-content: center; }

/* annotated shot = phone + numbered pins */
.shot { position: relative; width: fit-content; }
.pin {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: #fff;
  background: var(--pc, var(--blue));
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc, var(--blue)) 30%, transparent),
              0 4px 14px rgba(0, 0, 0, 0.5);
  z-index: 4;
}

.num {
  display: inline-flex;
  flex: none;
  align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 12.5px; font-weight: 700;
  color: #fff;
  background: var(--pc, var(--blue));
}

/* duo shots (quiz + stats) */
.duo { display: flex; gap: 22px; align-items: flex-start; }
.duo .phone:nth-child(2) { margin-top: 54px; }

/* ---------- modes ---------- */

.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.mode-card .rows li { color: var(--muted); font-size: 15.5px; }
.mode-card .rows li b { color: var(--text); }
.mode-tag {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.mode-tag.open   { background: color-mix(in srgb, var(--blue) 18%, transparent);  color: var(--blue); }
.mode-tag.guided { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }

/* ---------- languages cloud ---------- */

.cloud { display: flex; flex-wrap: wrap; gap: 10px; max-width: 860px; }

/* ---------- offline / trust ---------- */

.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust-grid .panel { padding: 24px 22px; }
.trust-grid .ipill { margin-bottom: 14px; width: 42px; height: 42px; font-size: 21px; }
.trust-grid h3 { font-size: 18px; margin-bottom: 8px; }
.trust-grid p { color: var(--muted); font-size: 15.5px; }

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

.cta-panel {
  text-align: center;
  padding: 66px 30px;
  background:
    radial-gradient(90% 140% at 50% 0%, color-mix(in srgb, var(--blue) 14%, transparent) 0%, transparent 60%),
    var(--panel);
}
.cta-panel h2 { margin-bottom: 14px; }
.cta-panel p { color: var(--muted); max-width: 54ch; margin: 0 auto 30px; }
.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  background: #000;
  border: 1px solid var(--hairline-strong);
  text-align: left;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.store-badge:hover { filter: brightness(1.25); transform: translateY(-1px); }
.store-badge .apple { width: 25px; height: 25px; flex: none; }
.store-badge .play { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 11.5px; color: var(--muted); }
.store-badge b { font-size: 18px; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--hairline);
  padding: 34px 0 44px;
  font-size: 14.5px;
  color: var(--dim);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
}
footer .brand { font-size: 16px; margin-right: auto; }
footer .brand img { width: 24px; height: 24px; }
footer a:hover { color: var(--text); }

/* ---------- legal pages ---------- */

.legal-main { padding: 64px 0 90px; }
.legal-main .doc { max-width: 760px; }
.legal-main h1 { font-size: clamp(32px, 4.5vw, 44px); margin-bottom: 8px; }
.legal-main .updated { color: var(--dim); font-size: 14.5px; margin-bottom: 40px; }
.legal-main h2 { font-size: 21px; margin: 38px 0 12px; }
.legal-main p, .legal-main li { color: var(--muted); font-size: 16px; }
.legal-main ul { padding-left: 22px; margin: 10px 0; }
.legal-main a { color: var(--blue); }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .apps-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-band .panel { grid-template-columns: repeat(3, 1fr); }
  .stat-band .stat:nth-child(4) { border-left: none; }
  .stat-band .stat:nth-child(n+4) { border-top: 1px solid var(--hairline); }
  .trust-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero { padding-top: 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 26px; }
  .phone-fan { min-height: 480px; margin-top: 10px; }
  .phone-fan .phone { --pw: 220px; }
  .feature { grid-template-columns: 1fr; gap: 30px; }
  .feature.flip .f-media { order: 1; }
  .feature.flip .f-copy  { order: 2; }
  .nav-links { display: none; }
  .modes-grid { grid-template-columns: 1fr; }
  .duo { justify-content: center; }
  .duo .phone { --pw: 190px; }
}

@media (max-width: 620px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-band .panel { grid-template-columns: repeat(2, 1fr); }
  .stat-band .stat { border-left: none !important; }
  .stat-band .stat:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .phone-fan .phone:nth-child(1), .phone-fan .phone:nth-child(3) { display: none; }
  .phone-fan { min-height: auto; }
  .phone-fan .phone:nth-child(2) { bottom: 0; }
  .hero { padding-bottom: 64px; }
}
