/* Fluentora website — shared styles. No external fonts or scripts, so pages make no third-party requests. */

:root {
  --paper: #f6f5f1;
  --surface: #ffffff;
  --surface-muted: #efede7;
  --ink: #15171a;
  --ink-soft: #5b5f66;
  --line: #e4e2db;
  --teal: #0b7a6e;
  --teal-soft: #ddf1ee;
  --coral: #d4532e;
  --coral-soft: #fbe6de;
  --on-teal: #ffffff;
  --todo-bg: #fff3c4;
  --todo-ink: #6b4d00;

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 22px;
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1013;
    --surface: #171a1f;
    --surface-muted: #1f232a;
    --ink: #f2f1ed;
    --ink-soft: #a3a7ad;
    --line: #2b2f37;
    --teal: #3ccbb7;
    --teal-soft: #12302c;
    --coral: #ff8a65;
    --coral-soft: #3a211a;
    --on-teal: #05231f;
    --todo-bg: #3d3210;
    --todo-ink: #ffe08a;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 26px; font-size: 15px; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); margin: 0 0 14px; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-soft); max-width: 34em; }
em.accent { font-style: italic; color: var(--teal); }

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid transparent;
}
.button.primary { background: var(--ink); color: var(--paper); }
.button.primary[aria-disabled="true"] { cursor: default; }
.button.ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.button svg { width: 20px; height: 20px; }
.meta { font-size: 14px; color: var(--ink-soft); }

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

.hero { padding: 80px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero-art { position: relative; height: 640px; }
.hero-art::before {
  content: ""; position: absolute; inset: 8% -10% 6% 6%;
  background: radial-gradient(closest-side, var(--teal-soft), transparent 75%);
  z-index: -1;
}

.phone {
  position: absolute;
  width: 290px;
  border-radius: 46px;
  padding: 10px;
  background: #0b0c0e;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 40px 80px -30px rgba(10, 30, 28, 0.45), 0 18px 36px -18px rgba(0, 0, 0, 0.35);
}
.phone img { border-radius: 37px; width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; }
.phone.front { left: 4%; top: 0; z-index: 2; }
.phone.back { right: 0; top: 70px; width: 250px; transform: rotate(4deg); opacity: 0.96; }

/* ---------- Sections ---------- */

section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--ink-soft); font-size: 1.12rem; margin: 16px 0 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.feature .icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--teal-soft); color: var(--teal);
}
.feature .icon svg { width: 22px; height: 22px; }
.feature p { color: var(--ink-soft); margin: 10px 0 0; font-size: 16px; }
.feature.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 200px; gap: 24px; align-items: center; }
.feature.wide img { border-radius: 24px; border: 6px solid #0b0c0e; }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); background: var(--paper); }
.panel .tag {
  display: inline-block; font-size: 13px; font-weight: 650; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.panel.ai .tag { background: #ece4fb; color: #6a35b5; }
.panel.local .tag { background: var(--surface-muted); color: var(--ink-soft); }
@media (prefers-color-scheme: dark) { .panel.ai .tag { background: #2a2140; color: #c9adff; } }
.panel ul { margin: 16px 0 0; padding-left: 20px; color: var(--ink-soft); }
.panel li + li { margin-top: 6px; }
.panel p { color: var(--ink-soft); margin: 12px 0 0; }

.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.privacy-grid h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 650; letter-spacing: 0; margin-bottom: 6px; }
.privacy-grid p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.privacy-grid .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); margin-bottom: 16px; }

.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 1.08rem;
  display: flex; justify-content: space-between; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--ink-soft); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); margin: 12px 0 0; }

.cta { text-align: center; }
.cta img { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 24px; box-shadow: 0 18px 40px -18px rgba(11, 122, 110, 0.6); }
.cta .actions { justify-content: center; }
.cta .lede { margin: 18px auto 0; }

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

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

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

.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 12px; }
.legal .updated { color: var(--ink-soft); margin: 0 0 40px; }
.legal h2 { font-size: 1.6rem; margin: 48px 0 12px; }
.legal h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 650; letter-spacing: 0; margin: 28px 0 8px; }
.legal p, .legal li { color: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 8px; }
.legal .summary {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 26px; margin-bottom: 8px;
}
.legal .summary p { margin: 0; }
.legal .summary ul { margin: 12px 0 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 16px 0; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 650; }
.toc { columns: 2; column-gap: 32px; padding: 0; list-style: none; margin: 0 0 8px; font-size: 15px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }

/* Placeholders that must be filled in before publishing. */
.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 1px 6px; border-radius: 5px; font-weight: 600; }

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

@media (max-width: 960px) {
  .hero { padding-top: 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { height: 540px; max-width: 520px; width: 100%; margin: 0 auto; }
  .phone { width: 240px; }
  .phone.back { width: 210px; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-column: span 2; }
  .privacy-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { gap: 16px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  section { padding: 72px 0; }
  .hero-art { height: 470px; }
  .phone { width: 210px; border-radius: 38px; padding: 8px; }
  .phone img { border-radius: 31px; }
  .phone.front { left: 0; }
  .phone.back { width: 180px; top: 56px; }
  .features, .split, .privacy-grid { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; grid-template-columns: 1fr; }
  .feature.wide img { max-width: 220px; }
  .toc { columns: 1; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
