/* Fluany site. Colors come from the extension (src/components/base.css, content overlay). */
:root {
  --bg: #fffbf5;
  --surface: #ffffff;
  --soft: #f4ede4;
  --ink: #2a2420;
  --muted: #6b625b;
  --line: rgba(42, 36, 32, 0.14);
  --coral: #ff6b6b;
  --cta: #c63f31;
  --cta-hover: #b8392c;
  --cta-ink: #ffffff;
  --link: #a3271d;
  --hl-line: #e2554a;
  --ok: #1f7a46;
  --err: #b42318;
  --focus: #2563eb;
  --shot-shadow: 0 1px 2px rgba(42, 36, 32, 0.08), 0 12px 32px rgba(42, 36, 32, 0.12);
  --radius: 14px;
  --gutter: 16px;
  --max: 1080px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-head: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1a18;
    --surface: #26221f;
    --soft: #2b2623;
    --ink: #f3ece4;
    --muted: #b3a89e;
    --line: rgba(243, 236, 228, 0.16);
    --cta: #ff7b6e;
    --cta-hover: #ff9488;
    --cta-ink: #1d1a18;
    --link: #ff8a7e;
    --hl-line: #ff8a7e;
    --ok: #6fd39b;
    --err: #ff9b8f;
    --focus: #7aa7ff;
    --shot-shadow: 0 0 0 1px rgba(243, 236, 228, 0.1), 0 12px 32px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

a {
  color: var(--link);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 8px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font: 700 19px/1 var(--font-head);
  min-height: 44px;
}

.langs {
  display: flex;
  gap: 2px;
  font-size: 15px;
}

.langs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
}

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

.langs a[aria-current='page'] {
  color: var(--ink);
  font-weight: 600;
}

.langs .full {
  display: none;
}

@media (min-width: 520px) {
  .langs .short {
    display: none;
  }
  .langs .full {
    display: inline;
  }
}

/* Buttons */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--cta);
  color: var(--cta-ink);
  font-weight: 650;
  font-size: 17px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.cta:hover {
  background: var(--cta-hover);
}

.cta svg {
  flex: none;
}

.note {
  color: var(--muted);
  font-size: 15px;
}

/* Same mark the extension draws on words you are learning. */
.hl {
  text-decoration: underline dotted 3px var(--hl-line);
  text-underline-offset: 7px;
}

/* Hero */
.hero {
  display: grid;
  gap: 32px;
  padding-top: 24px;
  padding-bottom: 56px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.hero h1 {
  font-size: clamp(34px, 8.5vw, 58px);
}

.lead {
  font-size: clamp(18px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 34ch;
}

.hero .cta {
  margin-top: 8px;
}

.shot {
  border-radius: var(--radius);
  box-shadow: var(--shot-shadow);
  background: #fff;
  overflow: hidden;
}

.hero .shot {
  max-width: 560px;
  width: 100%;
  justify-self: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 5fr 6fr;
    align-items: center;
    gap: 56px;
    padding-top: 48px;
    padding-bottom: 96px;
  }
  .hero .shot {
    justify-self: end;
  }
}

/* Features */
.features {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-bottom: 64px;
}

.feature {
  display: grid;
  gap: 20px;
  align-items: center;
}

.feature h2 {
  font-size: clamp(26px, 5vw, 34px);
  margin-bottom: 10px;
}

.feature p {
  color: var(--muted);
  max-width: 40ch;
}

.feature .shot {
  width: 100%;
}

.feature-card .shot {
  max-width: 360px;
}

@media (min-width: 760px) {
  .features {
    gap: 96px;
    padding-bottom: 88px;
  }
  .feature {
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
  }
  .feature.flip .feature-text {
    order: 2;
  }
  .feature-card {
    grid-template-columns: 1fr 1fr;
  }
  .feature-card .shot {
    justify-self: center;
  }
}

/* Decks: a plain line of text, not another screenshot block. */
.decks {
  font-size: clamp(19px, 2.6vw, 23px);
  line-height: 1.45;
  max-width: 36ch;
  padding-bottom: 72px;
}

.decks strong {
  font-weight: 650;
}

@media (min-width: 760px) {
  .decks {
    padding-bottom: 104px;
  }
}

/* FAQ */
.faq {
  max-width: 720px;
  padding-bottom: 64px;
}

.faq > h2 {
  font-size: clamp(26px, 5vw, 34px);
  margin-bottom: 16px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}

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

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

.faq summary::after {
  content: '+';
  font: 400 26px/1 var(--font);
  color: var(--muted);
  flex: none;
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details p {
  color: var(--muted);
  padding: 0 0 18px;
  max-width: 60ch;
}

/* Email signup */
.signup {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 64px;
  scroll-margin-top: 16px;
}

.signup h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.signup > p {
  color: var(--muted);
}

.signup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.signup input[type='email'] {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.signup input[type='email']:focus-visible {
  outline-offset: 1px;
}

.signup button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font: 600 16px/1 var(--font);
  cursor: pointer;
}

.signup button:disabled {
  opacity: 0.6;
  cursor: default;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status {
  display: none;
  margin-top: 12px;
  font-weight: 600;
}

.status.is-shown,
.status:target {
  display: block;
}

.status-ok {
  color: var(--ok);
}

.status-err {
  color: var(--err);
}

@media (min-width: 760px) {
  .signup {
    padding: 32px 36px;
    margin-bottom: 96px;
  }
}

/* Closing call */
.end {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 8px 0 80px;
}

.end h2 {
  font-size: clamp(24px, 4.5vw, 30px);
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 24px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.foot a {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

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

/* Text pages (privacy, support, 404) */
.doc {
  max-width: 700px;
  padding-top: 24px;
  padding-bottom: 80px;
}

.doc h1 {
  font-size: clamp(32px, 7vw, 44px);
  margin-bottom: 8px;
}

.doc .meta {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 32px;
}

.doc .summary {
  font-size: 19px;
  margin-bottom: 8px;
}

.doc h2 {
  font-size: 22px;
  margin: 36px 0 10px;
}

.doc p + p {
  margin-top: 12px;
}

.doc ul {
  padding-left: 1.2em;
  margin: 8px 0 0;
}

.doc li + li {
  margin-top: 6px;
}

.doc code {
  font-size: 0.92em;
  background: var(--soft);
  padding: 1px 5px;
  border-radius: 5px;
  overflow-wrap: anywhere;
}

.doc kbd {
  font: inherit;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
