/* alperensaglam.github.io: the hub and every app page (lokma-app, drawluma-site,
   biverba-privacy, puzzlelens) share this file. App pages set --app, --app-ink
   and --app-tint on <body> to take their own colour. */

@font-face {
  font-family: "Mona Sans";
  src: url("/assets/fonts/mona-sans.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --band: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6a6a6f;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.16);
  --accent: #0a5bd7;
  --app: var(--accent);
  --app-ink: var(--accent);
  --app-tint: #eef4ff;
  --radius: 14px;
  --icon-radius: 22.37%;
  --shadow-icon: 0 1px 2px rgba(0, 0, 0, 0.12), 0 8px 20px -6px rgba(0, 0, 0, 0.28);
  --shadow-shot: 0 2px 6px rgba(0, 0, 0, 0.08), 0 30px 60px -24px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --page: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --font: "Mona Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

/* Per-app colours: vivid for marks and tints, ink for text and links (4.5:1 on white). */
.app-lokma { --app: #f26b1d; --app-ink: #b4470b; --app-tint: #fff4ec; }
.app-drawluma { --app: #ff4b72; --app-ink: #c4163f; --app-tint: #fff0f3; }
.app-puzzlelens { --app: #3a63d9; --app-ink: #2f55c8; --app-tint: #eff3ff; }
.app-biverba { --app: #f2a33a; --app-ink: #14213a; --app-tint: #eff2f7; }
.app-watchntalk { --app: #f2b45a; --app-ink: #8a5a12; --app-tint: #fbf5ea; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--app-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
::selection { background: color-mix(in srgb, var(--app) 26%, transparent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--app-ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }

/* One language at a time; site.js sets show-tr / show-en on <html> before paint. */
html.show-tr [data-lang="en"], html.show-en [data-lang="tr"] { display: none !important; }
html:not(.js) [data-lang="en"] { display: none; }

.skip { position: absolute; left: 12px; top: -48px; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; z-index: 20; }
.skip:focus { top: 12px; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease); }
.bar.is-stuck { border-bottom-color: var(--line); }
.bar-in { display: flex; align-items: center; gap: 20px; max-width: var(--page); height: 64px; margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 680; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.brand-app { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); text-decoration: none; font-weight: 650; }
.brand-app img { width: 28px; height: 28px; border-radius: var(--icon-radius); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.crumb-sep { width: 1px; height: 20px; background: var(--line-strong); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 520; transition: color 0.2s, background-color 0.2s; }
.nav a:hover { color: var(--ink); background: var(--band); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.lang { display: inline-flex; padding: 3px; margin-left: 6px; border-radius: 10px; background: var(--band); }
.lang button { appearance: none; min-width: 40px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); font: 650 13px/1 var(--font); letter-spacing: 0.02em; cursor: pointer; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 2px 6px -2px rgba(0, 0, 0, 0.12); }
@media (max-width: 720px) { .nav .nav-wide { display: none; } }
/* On phones the app's own hero names it; the bar keeps only its icon. */
@media (max-width: 520px) { .brand-app span { display: none; } .bar-in { gap: 14px; } }

/* ---------- hub: hero and icon shelf ---------- */
.hero { max-width: var(--page); margin: 0 auto; padding: clamp(40px, 6.5vw, 76px) var(--gutter) 0; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; font-weight: 780; letter-spacing: -0.035em; max-width: 13ch; }
.hero .intro { margin-top: 22px; max-width: 46ch; color: var(--ink-2); font-size: clamp(18px, 2vw, 21px); line-height: 1.5; }
.shelf { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; }
.shelf a { display: grid; justify-items: start; gap: 12px; padding: 10px 8px 12px 0; color: var(--ink); text-decoration: none; }
.shelf img { width: clamp(60px, 8vw, 96px); height: clamp(60px, 8vw, 96px); border-radius: var(--icon-radius); box-shadow: var(--shadow-icon); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.shelf a:hover img { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 16px 28px -10px rgba(0, 0, 0, 0.34); }
.shelf strong { font-size: 15px; font-weight: 650; line-height: 1.2; }
.shelf span { display: block; margin-top: 2px; color: var(--ink-3); font-size: 13px; font-weight: 450; }
@media (max-width: 560px) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; } }

/* ---------- hub: product bands ---------- */
.products { margin-top: clamp(48px, 6vw, 72px); }
.product { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.product:nth-child(even) { background: var(--band); border-top-color: transparent; }
.product-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(32px, 6vw, 88px); max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.product:nth-child(even) .product-copy { order: 2; }
.product-icon { width: 76px; height: 76px; border-radius: var(--icon-radius); box-shadow: var(--shadow-icon); transform-origin: 50% 80%; }
.product-icon.lift { animation: lift 0.9s var(--ease); }
@keyframes lift { 0% { transform: none; } 35% { transform: translateY(-10px) scale(1.04); } 100% { transform: none; } }
.product h2 { margin-top: 22px; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.04; font-weight: 780; letter-spacing: -0.032em; }
.product .tagline { margin-top: 8px; color: var(--app-ink); font-size: clamp(19px, 2.2vw, 23px); font-weight: 620; letter-spacing: -0.012em; }
.product .about { margin-top: 18px; max-width: 48ch; color: var(--ink-2); font-size: 17px; line-height: 1.62; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 20px 0 0; padding: 0; list-style: none; color: var(--ink-3); font-size: 14px; font-weight: 500; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--app); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--app) 70%, #000); }
.status.review::before { background: linear-gradient(90deg, var(--app) 50%, transparent 50%); }
.status.web::before { background: transparent; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 28px; }
.badge { display: inline-flex; border-radius: 9px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.badge img { height: 44px; width: auto; }
.badge:hover { transform: translateY(-1px); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--app-ink); font-weight: 620; font-size: 16px; text-decoration: none; }
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow:hover span { text-decoration: underline; text-underline-offset: 0.2em; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 640; font-size: 15px; transition: transform 0.3s var(--ease), background-color 0.2s; }
.btn:hover { background: #000; transform: translateY(-1px); }
.product-shot { position: relative; justify-self: center; width: min(100%, 340px); }
.product-shot::before { content: ""; position: absolute; inset: 12% -14% -6%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--app) 30%, transparent), transparent); z-index: 0; }
.product-shot img { position: relative; z-index: 1; width: 100%; border-radius: 30px; box-shadow: var(--shadow-shot); }
@media (max-width: 860px) {
  .product-in { grid-template-columns: 1fr; }
  .product:nth-child(even) .product-copy { order: 0; }
  .product-shot { width: min(78%, 320px); }
}

/* ---------- hub: support index and contact ---------- */
.section { max-width: var(--page); margin: 0 auto; padding: clamp(64px, 9vw, 112px) var(--gutter) 0; }
.section h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.06; font-weight: 760; letter-spacing: -0.03em; }
.section .lede { margin-top: 14px; max-width: 56ch; color: var(--ink-2); font-size: 18px; line-height: 1.55; }
.index { width: 100%; margin-top: 32px; border-collapse: collapse; font-size: 16px; }
.index th { padding: 0 16px 12px 0; color: var(--ink-3); font-size: 13px; font-weight: 600; text-align: left; letter-spacing: 0.01em; }
.index td { padding: 16px 16px 16px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.index tr:last-child td { border-bottom: 1px solid var(--line); }
.index .who { display: flex; align-items: center; gap: 12px; font-weight: 650; color: var(--ink); }
.index .who img { width: 36px; height: 36px; border-radius: var(--icon-radius); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.14); }
.index a { font-weight: 560; }
@media (max-width: 720px) {
  .index thead { display: none; }
  .index, .index tbody, .index tr, .index td { display: block; }
  .index tr { padding: 16px 0; border-top: 1px solid var(--line); }
  .index tr:last-child { border-bottom: 1px solid var(--line); }
  .index td { padding: 4px 0; border: 0 !important; }
  .index td:first-child { margin-bottom: 8px; }
  .index td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 132px; color: var(--ink-3); font-size: 14px; }
}
.contact-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.contact-band .mail { display: inline-block; margin-top: 18px; font-size: clamp(20px, 2.6vw, 26px); font-weight: 650; letter-spacing: -0.015em; color: var(--ink); }
.contact-band .tip { margin-top: 12px; color: var(--ink-3); font-size: 15px; max-width: 44ch; }
@media (max-width: 760px) { .contact-band { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { max-width: var(--page); margin: clamp(72px, 10vw, 120px) auto 0; padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-3); font-size: 14px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .spacer { flex: 1; }

/* ---------- app pages ---------- */
.app-hero { background: var(--app-tint); }
.app-hero-in { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; max-width: 880px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) var(--gutter) clamp(28px, 4vw, 40px); }
.app-hero img.icon { width: 88px; height: 88px; border-radius: var(--icon-radius); box-shadow: var(--shadow-icon); }
.app-hero .titles { flex: 1 1 260px; }
.app-hero .app-name { font-size: clamp(32px, 5vw, 46px); line-height: 1.05; font-weight: 780; letter-spacing: -0.032em; color: var(--ink); }
.app-hero .tagline { margin-top: 6px; color: var(--app-ink); font-size: 19px; font-weight: 600; }
.tabs { display: flex; gap: 4px; max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; color: var(--ink-3); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2.5px; border-radius: 2px; background: var(--app); }
.tabs-wrap { background: var(--app-tint); border-bottom: 1px solid var(--line); }

.doc { max-width: 880px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) var(--gutter) 0; }
.doc > [data-lang] { max-width: 68ch; }
.doc h1 { font-size: clamp(30px, 4.4vw, 40px); line-height: 1.08; font-weight: 760; letter-spacing: -0.03em; margin-bottom: 10px; }
.doc h2 { margin: 44px 0 12px; font-size: 24px; line-height: 1.2; font-weight: 720; letter-spacing: -0.02em; }
.doc h3 { margin: 28px 0 8px; font-size: 18px; line-height: 1.3; font-weight: 680; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink-2); line-height: 1.7; }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { margin: 12px 0; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--app); }
.doc strong, .doc b { color: var(--ink); font-weight: 650; }
.doc .updated, .doc .muted, .doc .meta, .doc .sub { color: var(--ink-3); font-size: 15px; }
.doc .lede { color: var(--ink-2); font-size: 19px; line-height: 1.6; }
.doc .callout, .doc .card { margin: 22px 0; padding: 18px 20px; border-radius: var(--radius); background: var(--band); }
.doc .callout > :first-child, .doc .card > :first-child { margin-top: 0; }
.doc .card h3 { margin-top: 0; }
.doc .card .card-title { margin: 0 0 8px; font-size: 18px; line-height: 1.3; font-weight: 680; letter-spacing: -0.01em; }
.doc details { border-top: 1px solid var(--line); }
.doc details:last-of-type { border-bottom: 1px solid var(--line); }
.doc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 0; color: var(--ink); font-weight: 620; cursor: pointer; list-style: none; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease); }
.doc details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.doc details > :not(summary) { margin: 0 0 18px; }
.doc table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 10px 12px 10px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink-2); }
.doc th { color: var(--ink); font-weight: 650; }
.doc .scroll { overflow-x: auto; }
.doc code, .doc kbd { padding: 1px 6px; border-radius: 6px; background: var(--band); font-size: 0.92em; }
.steps { list-style: none; counter-reset: step; padding: 0 !important; margin: 20px 0 8px !important; }
.steps > li { position: relative; padding: 0 0 22px 52px; counter-increment: step; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--app-tint); color: var(--app-ink); font-weight: 720; font-size: 15px; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--app) 35%, transparent); }
.steps > li > strong:first-child { display: block; color: var(--ink); }
/* Classes the original app pages already use, so their content moves over untouched. */
.doc .lead { color: var(--ink-2); font-size: 19px; line-height: 1.6; }
.doc .contact { margin: 22px 0; padding: 20px; border-radius: var(--radius); background: var(--app-tint); }
.doc .contact .label { color: var(--ink-3); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.doc .contact .email { display: inline-block; margin: 4px 0 8px; color: var(--ink); font-size: 20px; font-weight: 650; }
.doc .button { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; padding: 0 18px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 640; font-size: 15px; }
.doc .button:hover { background: #000; }
.doc .links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 8px; }
.doc .links a { font-weight: 560; }
.doc hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }
.mailbox { margin: 18px 0; padding: 20px; border-radius: var(--radius); background: var(--app-tint); }
.mailbox a.mail { font-size: 20px; font-weight: 650; color: var(--ink); }
.mailbox p { margin-top: 8px; }

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