/* MateSplit — site styles
   Refined, calm, trustworthy. Deep emerald + warm paper, expressive serif
   display (Fraunces) paired with a clean technical body (IBM Plex Sans). */

:root {
  --ink: #15201A;
  --ink-2: #4A554D;
  --ink-3: #8A938C;
  --paper: #F6F7F5;
  --paper-2: #EEF1ED;
  --surface: #FFFFFF;
  --line: #E2E6E0;
  --emerald: #0E7A5F;
  --emerald-deep: #0A5C47;
  --mint: #2DD4A7;
  --mint-soft: #D6EFE7;
  --amber: #B7791F;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1080px;
  --shadow: 0 1px 2px rgba(20, 32, 26, .04), 0 12px 30px rgba(20, 32, 26, .06);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  /* soft atmosphere */
  background-image:
    radial-gradient(60rem 40rem at 85% -10%, rgba(45, 212, 167, .14), transparent 60%),
    radial-gradient(50rem 40rem at -10% 10%, rgba(14, 122, 95, .08), transparent 55%);
  background-attachment: fixed;
}

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

a { color: var(--emerald-deep); text-decoration-color: rgba(14, 122, 95, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--emerald); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  background: rgba(246, 247, 245, .8);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; display: block; box-shadow: 0 4px 12px rgba(14,122,95,.28); }
.brand .name { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.brand .name b { color: var(--emerald); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px;
  padding: 8px 13px; border-radius: 9px; transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a.active { color: var(--emerald); background: var(--mint-soft); }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: var(--surface); margin-left: 8px;
}
.lang-toggle button {
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .02em;
  border: 0; background: transparent; color: var(--ink-3); padding: 7px 12px; cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-toggle button[aria-pressed="true"] { background: var(--emerald); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 64px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--emerald-deep); background: var(--mint-soft);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 26px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(45,212,167,.25); }
.hero h1 {
  font-family: var(--serif); font-weight: 600; font-optical-sizing: auto;
  font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -.025em;
  max-width: 16ch;
}
.hero h1 em { font-style: italic; color: var(--emerald); }
.hero p.lede {
  font-size: clamp(18px, 2.4vw, 22px); color: var(--ink-2); max-width: 56ch;
  margin-top: 22px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 13px 22px; border-radius: 13px;
  transition: transform .12s ease, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--emerald); color: #fff; box-shadow: 0 8px 20px rgba(14,122,95,.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(14,122,95,.34); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--paper-2); }

/* ---------- Feature grid ---------- */
.section { padding: 60px 0; }
.section h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.02em; line-height: 1.1; margin-bottom: 10px;
}
.section .sub { color: var(--ink-2); max-width: 60ch; margin-bottom: 38px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--mint-soft); color: var(--emerald); margin-bottom: 16px;
}
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 7px; letter-spacing: -.01em; }
.card p { color: var(--ink-2); font-size: 15.5px; }

.callout {
  margin-top: 8px; background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
  color: #fff; border-radius: 24px; padding: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  box-shadow: 0 20px 50px rgba(10,92,71,.35);
}
.callout h2 { font-family: var(--serif); color: #fff; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.02em; }
.callout p { color: rgba(255,255,255,.86); margin-top: 8px; max-width: 48ch; }

/* ---------- Legal / prose ---------- */
.page-head { padding: 64px 0 18px; }
.page-head h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -.025em; line-height: 1.05;
}
.page-head .meta { color: var(--ink-3); font-size: 15px; margin-top: 14px; }

.prose { max-width: 760px; padding-bottom: 80px; }
.tldr {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--emerald);
  border-radius: var(--radius-sm); padding: 20px 22px; margin: 26px 0 36px; box-shadow: var(--shadow);
}
.tldr strong { color: var(--emerald-deep); }
.prose h2 {
  font-family: var(--serif); font-weight: 600; font-size: 25px; letter-spacing: -.01em;
  margin: 40px 0 12px; padding-top: 8px;
}
.prose h3 { font-size: 18px; font-weight: 600; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16.5px; }
.prose p { margin: 12px 0; }
.prose ul { margin: 12px 0 12px 4px; padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose strong { color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.contact-box {
  background: var(--paper-2); border-radius: var(--radius-sm); padding: 20px 22px; margin-top: 18px;
}
.contact-box a { font-weight: 600; }

/* FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 20px; margin: 12px 0; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 17px; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--emerald); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding: 0 0 18px; font-size: 16px; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 36px 0; flex-wrap: wrap;
}
.foot .brand .name { font-size: 18px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--emerald); }
.foot .copy { color: var(--ink-3); font-size: 13.5px; width: 100%; padding-top: 6px; }

/* ---------- Language visibility ---------- */
[data-lang] { display: none; }
body.lang-en [data-lang="en"] { display: revert; }
body.lang-tr [data-lang="tr"] { display: revert; }
/* keep inline elements inline when shown */
span[data-lang], a[data-lang], b[data-lang] { }
body.lang-en span[data-lang="en"], body.lang-tr span[data-lang="tr"] { display: inline; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
  .hero { padding: 64px 0 44px; }
  .callout { padding: 32px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand .name { font-size: 19px; }
  .nav-links a { padding: 8px 9px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
}
