/*
 * Recalline privacy and support site.
 *
 * The palette is lifted from the app's tokens so the site reads as the same
 * product: #050812 ground, #39ddf5 path cyan, Geist for text and Geist Mono for
 * the small structural labels the app also sets in mono.
 *
 * Self-hosted fonts, no external request, no JavaScript.
 */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #050812;
  --surface: #0b1020;
  --surface-raised: #121829;
  --border: #1e2740;
  --text: #f4f7fb;
  --text-muted: #929caf;
  --accent: #39ddf5;
  --accent-dim: #33c7dd;
  --ink-on-accent: #04212b;
  --measure: 42rem;
  --radius: 14px;

  color-scheme: dark;
}

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

html {
  /* Nothing on this site is wide enough to need it, and a policy page that
     scrolls sideways on a phone is a broken policy page. */
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  /* A very quiet wash of the path cyan, so the page is not a flat black slab. */
  background-image: radial-gradient(90rem 50rem at 50% -20rem, rgb(57 221 245 / 7%), transparent 70%);
  background-repeat: no-repeat;
}

/* ── Skip link ───────────────────────────────────────────────────────────── */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--ink-on-accent);
  font-weight: 600;
  z-index: 10;
}

.skip:focus {
  left: 0;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgb(5 8 18 / 80%);
}

.site-header nav {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-family: 'Geist Mono', ui-monospace, Menlo, monospace;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  /* 44 px tall at this font size, so the header links are real touch targets. */
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
}

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

.nav-links a[aria-current='page'] {
  color: var(--accent);
}

.nav-links .lang {
  border: 1px solid var(--border);
  color: var(--text);
}

/* ── Layout ──────────────────────────────────────────────────────────────── */

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

h1 {
  font-size: clamp(1.85rem, 6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  /* Turkish headings are long; never let one push the page sideways. */
  overflow-wrap: break-word;
}

h2 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-dim);
}

/* Keyboard users must always be able to see where they are. */
a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

code {
  font-family: 'Geist Mono', ui-monospace, Menlo, monospace;
  font-size: 0.85em;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  border-radius: 5px;
  /* Long identifiers must wrap rather than widen the page. */
  overflow-wrap: anywhere;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--text);
}

.effective {
  font-family: 'Geist Mono', ui-monospace, Menlo, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ── Home ────────────────────────────────────────────────────────────────── */

.hero .tagline {
  font-family: 'Geist Mono', ui-monospace, Menlo, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 2rem 0;
}

.card {
  display: block;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 120ms ease, background 120ms ease;
}

.card:hover {
  border-color: var(--accent-dim);
  background: var(--surface-raised);
}

.card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--accent);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.other-locale {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq-item {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.faq-item h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--accent);
}

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

/* ── Contact ─────────────────────────────────────────────────────────────── */

.contact {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--ink-on-accent);
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  /* Wraps rather than overflows if a Turkish label runs long on a 320 px screen. */
  max-width: 100%;
  overflow-wrap: break-word;
}

.button:hover {
  background: var(--accent-dim);
  color: var(--ink-on-accent);
}

.email-plain {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  overflow-wrap: anywhere;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Narrow screens ──────────────────────────────────────────────────────── */

@media (width <= 22rem) {
  body {
    font-size: 16px;
  }

  main {
    padding-inline: 1rem;
  }

  .site-header nav {
    padding-inline: 1rem;
  }
}
