/* Tessera marketing + legal site.

   The app's own tokens, not a second identity: stone paper, clay tiles, one
   gold seam that is never restyled. Light first, because the app is; the dark
   variant is the same room with the lights down. Colours mirror
   `app/lib/core/theme/tessera_colors.dart` — change them there first. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fraunces.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --stone: #ece7de;
  --surface: #f5f1ea;
  --ink: #26221b;
  --muted: rgba(38, 34, 27, 0.56);
  --faint: rgba(38, 34, 27, 0.3);
  --border: #d6cebf;
  --gold: #c9a227;
  --radius: 18px;
  --maxw: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --stone: #14120d;
    --surface: #1d1a13;
    --ink: #eae3d2;
    --muted: rgba(234, 227, 210, 0.56);
    --faint: rgba(234, 227, 210, 0.3);
    --border: #2e2920;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Fraunces is variable: the axes are set here once, exactly as
   `TesseraTypography` sets them, or the face silently renders at 400. */
h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-variation-settings: "wght" 600, "opsz" 42, "SOFT" 20, "WONK" 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
a:hover { text-decoration-thickness: 2px; }

/* Only the inactive language is hidden, so the active one keeps whatever
   display its own rule gave it (flex, grid, block). */
html[data-lang="tr"] [lang="en"] { display: none; }
html[data-lang="en"] [lang="tr"] { display: none; }

/* ---------- Top bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--stone) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: "Fraunces", serif; font-variation-settings: "wght" 600, "opsz" 24, "SOFT" 20, "WONK" 0;
  font-size: 20px; letter-spacing: 0.5px; text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 14px; text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

.lang-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-toggle button {
  background: transparent; color: var(--muted); border: 0; cursor: pointer;
  font: 600 12px/1 inherit; font-family: inherit; padding: 9px 12px; letter-spacing: 0.5px;
  min-height: 34px;
}
.lang-toggle button[aria-pressed="true"] { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 76px 0 8px; }
.hero h1 {
  font-size: clamp(46px, 9vw, 88px); margin: 0 0 14px;
  font-variation-settings: "wght" 600, "opsz" 84, "SOFT" 20, "WONK" 0;
}
.hero .tagline {
  font-family: "Fraunces", serif; font-variation-settings: "wght" 500, "opsz" 32, "SOFT" 20, "WONK" 0;
  font-size: clamp(19px, 2.8vw, 26px); margin: 0 auto 20px; max-width: 20ch; line-height: 1.3;
}
.hero .lede { max-width: 58ch; margin: 0 auto 30px; color: var(--muted); font-size: 17px; }

.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 11px 18px; font-size: 14px;
}
.badge img { width: 26px; height: 26px; border-radius: 7px; }
.badge small { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase; }
.link-ghost { color: var(--muted); font-size: 14px; padding: 11px 4px; text-decoration: none; }
.link-ghost:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }

/* ---------- The mosaic panel ---------- */
.panel { padding: 44px 0 8px; }
.panel img { display: block; width: 100%; height: auto; }
.legend {
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center;
  margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px;
}
.legend li { display: flex; align-items: center; gap: 9px; }
.legend .key { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.legend .key.tile { background: #c96f4a; }
.legend .key.seam { background: none; border-radius: 0; height: 3px; background: var(--gold); }
.legend .key.ghost { background: none; border: 1.5px solid var(--faint); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-title { text-align: center; margin: 0 0 10px; font-size: clamp(27px, 4vw, 38px); }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 40px; max-width: 58ch; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
.card .ico { width: 26px; height: 3px; background: var(--gold); margin-bottom: 18px; }
.card h3 { margin: 0 0 8px; font-size: 20px; font-variation-settings: "wght" 600, "opsz" 20, "SOFT" 20, "WONK" 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* The one claim the product is built around gets the gold rule, the same
   furniture the in-app Unlimited strip uses. */
.creed {
  max-width: 720px; margin: 0 auto; text-align: center;
  border-top: 2px solid var(--gold); padding-top: 30px;
}
.creed h2 { margin: 0 0 12px; font-size: clamp(24px, 3.4vw, 32px); }
.creed p { margin: 0 auto; color: var(--muted); max-width: 54ch; }

/* ---------- Free / Unlimited ---------- */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 860px; margin: 0 auto; }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
.tier.paid { border-color: var(--gold); }
.tier h3 { margin: 0 0 4px; font-size: 22px; }
.tier .price { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.tier li { display: flex; gap: 10px; align-items: flex-start; }
.tier li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); margin-top: 8px; flex: none; }
.tier-note { text-align: center; color: var(--muted); font-size: 14px; margin: 22px auto 0; max-width: 52ch; }

/* ---------- Privacy summary ---------- */
.priv { max-width: 760px; margin: 0 auto; }
.priv ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.priv li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; color: var(--muted);
}
.priv li b { color: var(--ink); font-weight: 600; }
.priv li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); margin-top: 9px; flex: none; }
.priv .more { text-align: center; margin-top: 26px; }

/* ---------- Legal page ---------- */
.legal { max-width: 40rem; margin: 0 auto; padding: 32px 0 0; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 6px; }
.legal .meta { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 28px; }
.legal .lede { font-size: 17px; margin: 0 0 8px; }
.legal h2 { font-size: 21px; margin: 38px 0 10px; }
.legal p { margin: 0 0 12px; }
.legal .back { display: inline-block; margin-bottom: 24px; color: var(--muted); font-size: 14px; text-decoration: none; }
.legal .back:hover { color: var(--ink); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); margin-top: 56px; padding: 40px 0; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
footer .f-brand { display: flex; align-items: center; gap: 10px; font-family: "Fraunces", serif; letter-spacing: 0.5px; color: var(--ink); }
footer .f-brand img { width: 26px; height: 26px; border-radius: 7px; }
footer .f-links { display: flex; gap: 20px; font-size: 14px; }
footer .f-links a { color: var(--muted); text-decoration: none; }
footer .f-links a:hover { color: var(--ink); }
footer small { display: block; width: 100%; color: var(--faint); font-size: 13px; }

@media (max-width: 820px) {
  .grid, .tiers { grid-template-columns: 1fr; }
  .nav-links a { display: none; }
  .hero { padding: 52px 0 4px; }
  section { padding: 44px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
