/* Konuşan Sahneler — shared styles. Pure CSS, no external fonts/CDNs.
   Self-hosted Inter (variable) is the only font asset; zero network requests. */

@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  font-named-instance: "Regular";
  src: url("/fonts/InterVariable.woff2") format("woff2");
}

:root {
  /* Palette pulled from the app icon: warm honey/orange, peach, soft cream. */
  --bg: #fbf2e3;            /* soft cream, matches icon background */
  --bg-2: #f6e7cf;          /* deeper cream for gradient base */
  --surface: #ffffff;
  --surface-soft: #fffaf2;
  --ink: #3a322a;
  --ink-soft: #564b40;
  --muted: #8a7d6d;
  --accent: #f0a93a;        /* honey */
  --accent-strong: #e07c2b; /* orange */
  --accent-deep: #b5611c;   /* readable accent for links on cream */
  --peach: #fbcaa3;
  --teal: #6fb7ab;          /* soft teal secondary accent */
  --border: #ecdcc4;
  --border-soft: #f3e7d3;
  --ring: rgba(224, 124, 43, 0.35);
  --shadow-sm: 0 1px 2px rgba(94, 64, 28, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(120, 76, 24, 0.28);
  --shadow-lg: 0 24px 60px -24px rgba(120, 76, 24, 0.42);
  --radius: 18px;
  --radius-lg: 26px;
  --max: 760px;
  --max-wide: 940px;
  --font: "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 50% -10%, #fdf6ea 0%, rgba(253, 246, 234, 0) 60%),
    radial-gradient(820px 460px at 100% 0%, rgba(240, 169, 58, 0.10) 0%, rgba(240, 169, 58, 0) 55%),
    radial-gradient(760px 520px at 0% 12%, rgba(111, 183, 171, 0.10) 0%, rgba(111, 183, 171, 0) 55%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-deep);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

strong {
  color: var(--ink);
  font-weight: 650;
}

/* ----------------------------------------------------------------------
   Site header
---------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 242, 227, 0.78);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink);
  text-decoration: none;
}

.brand__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: block;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(120, 76, 24, 0.06);
}

.brand__name {
  font-size: 1.05rem;
  line-height: 1.1;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-nav a {
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--ink-soft);
  padding: 7px 10px;
  border-radius: 10px;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--ink);
  background: rgba(224, 124, 43, 0.10);
  text-decoration: none;
}

/* ---- Language toggle (segmented control) ---- */
.lang-toggle {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: #f1e3cd;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(120, 76, 24, 0.08);
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  padding: 5px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.lang-toggle button:hover {
  color: var(--ink);
}

.lang-toggle button[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 4px 12px -3px rgba(224, 124, 43, 0.55);
}

.lang-toggle button:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------------
   Landing hero
---------------------------------------------------------------------- */
.hero {
  text-align: center;
  padding: 64px 22px 24px;
  max-width: var(--max-wide);
  margin: 0 auto;
}

.hero__icon {
  width: 116px;
  height: 116px;
  border-radius: 28px;
  display: block;
  margin: 0 auto 26px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(120, 76, 24, 0.05);
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(240, 169, 58, 0.14);
  border: 1px solid rgba(240, 169, 58, 0.30);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--ink);
}

.hero .tagline {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2.6vw, 1.28rem);
  line-height: 1.55;
}

.hero .publisher {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- Feature pills under hero ---- */
.features {
  max-width: var(--max-wide);
  margin: 28px auto 4px;
  padding: 0 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex: 0 0 auto;
}
.pill:nth-child(2n) .pill__dot { background: var(--accent); }
.pill:nth-child(3n) .pill__dot { background: var(--peach); }

/* ----------------------------------------------------------------------
   Cards / link blocks
---------------------------------------------------------------------- */
.cards {
  max-width: var(--max-wide);
  margin: 44px auto 0;
  padding: 0 22px;
  display: grid;
  gap: 18px;
}

@media (min-width: 620px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.card:hover,
.card:focus-visible {
  text-decoration: none;
  border-color: var(--peach);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card:hover::before,
.card:focus-visible::before {
  opacity: 1;
}

.card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(240, 169, 58, 0.14);
  color: var(--accent-strong);
}
.card__icon svg { width: 22px; height: 22px; }

.card .card-title {
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.card .card-sub {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.card__arrow {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card:hover .card__arrow { gap: 9px; }
.card__arrow span { transition: gap 0.18s ease; }

/* ---- Contact strip ---- */
.contact {
  max-width: var(--max-wide);
  margin: 40px auto 0;
  padding: 22px;
  text-align: center;
  color: var(--ink-soft);
}
.contact a { font-weight: 600; }

/* ----------------------------------------------------------------------
   Footer
---------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 28px;
}
.site-footer__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 26px 22px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer__inner .dot { color: var(--border); }

/* ----------------------------------------------------------------------
   Legal / policy pages
---------------------------------------------------------------------- */
.legal {
  max-width: var(--max);
}

.legal__head {
  margin: 24px 0 0;
}

.legal h1 {
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 6px 0 6px;
  line-height: 1.12;
}

.legal .meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 14px 0 30px;
  padding: 16px 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 2px;
}

.legal .meta p {
  margin: 0;
}

.legal h2 {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 38px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  color: var(--ink);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }

.legal p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.legal ul,
.legal ol {
  margin: 0 0 16px;
  padding-left: 1.35em;
  color: var(--ink-soft);
}
.legal ul ul,
.legal ol ul {
  margin: 8px 0 4px;
}

.legal li {
  margin-bottom: 7px;
}
.legal li::marker {
  color: var(--accent-strong);
}

.legal code {
  background: rgba(240, 169, 58, 0.12);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent-deep);
}

.legal .note {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px 14px 14px 8px;
  padding: 14px 18px;
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  box-shadow: var(--shadow-sm);
}

.legal .note p {
  margin: 0;
  color: var(--ink-soft);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--muted);
  margin-top: 8px;
}
.back-link:hover { color: var(--accent-strong); text-decoration: none; }

/* ----------------------------------------------------------------------
   Language switching: show only the active language's blocks
---------------------------------------------------------------------- */
[data-lang="en"] [lang="en"],
[data-lang="tr"] [lang="tr"] {
  display: revert;
}
[data-lang="en"] [lang="tr"],
[data-lang="tr"] [lang="en"] {
  display: none;
}
/* Before JS runs, default to Turkish to avoid a flash of both languages. */
html:not([data-lang]) [lang="en"] { display: none; }

/* 404 */
.error-hero {
  text-align: center;
  padding: 80px 22px;
  max-width: var(--max);
  margin: 0 auto;
}
.error-hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--accent-strong);
  letter-spacing: -0.04em;
}
