/* Planote web: ortak stil (açık / koyu tema). */
:root {
  --bg: #fffdf7;
  --bg-soft: #fff6dc;
  --card: #ffffff;
  --text: #1c1b1f;
  --muted: #5f5b66;
  --line: #ece6d6;
  --brand: #ffb300;
  --brand-2: #ff8f00;
  --brand-ink: #3b2a00;
  --accent: #6750a4;
  --ok: #2e7d32;
  --shadow: 0 10px 30px rgba(60, 40, 0, .08);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141316;
    --bg-soft: #1f1c16;
    --card: #1e1d21;
    --text: #ece8f0;
    --muted: #a9a3b1;
    --line: #2d2b31;
    --brand-ink: #1c1400;
    --accent: #cfbcff;
    --ok: #81c784;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141316;
  --bg-soft: #1f1c16;
  --card: #1e1d21;
  --text: #ece8f0;
  --muted: #a9a3b1;
  --line: #2d2b31;
  --brand-ink: #1c1400;
  --accent: #cfbcff;
  --ok: #81c784;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }

/* ---------------------------------------------------------------- üst */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
nav.links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
nav.links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
nav.links a:hover { color: var(--text); }
select.lang {
  background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 6px 8px; font: inherit; font-size: 14px;
}
@media (max-width: 760px) {
  nav.links a.hide-sm { display: none; }
  nav.links { gap: 12px; }
}

/* ---------------------------------------------------------------- düğmeler */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-ink); box-shadow: 0 8px 22px rgba(255, 143, 0, .3);
}
.btn.ghost { border-color: var(--line); background: var(--card); }
.btn svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- giriş */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: var(--bg-soft); color: var(--brand-2); font-weight: 700; font-size: 13px;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
}
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; margin: 18px 0; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note-small { margin-top: 16px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- telefon */
.phone {
  width: min(330px, 100%); margin: 0 auto; aspect-ratio: 9 / 18.5;
  border-radius: 42px; padding: 12px; background: #111;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .25), inset 0 0 0 2px #333;
}
.screen {
  height: 100%; border-radius: 32px; overflow: hidden; background: #fffefa; color: #1c1b1f;
  font-size: 13px; line-height: 1.45; position: relative;
  background-image: repeating-linear-gradient(transparent 0 23px, rgba(0, 0, 0, .06) 23px 24px);
  background-position: 0 74px;
}
.screen .bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 6px; font-weight: 700; font-size: 12px; background: #fffefa; }
.screen .title { padding: 4px 18px 8px; font-size: 20px; font-weight: 800; background: #fffefa; }
.screen .body { padding: 0 18px; }
.blk { margin: 0 0 4px; min-height: 24px; }
.blk.todo { display: flex; gap: 8px; align-items: center; }
.box { width: 15px; height: 15px; border-radius: 4px; border: 2px solid #9e9aa5; flex: none; }
.box.on { background: var(--brand); border-color: var(--brand); position: relative; }
.box.on::after { content: ""; position: absolute; left: 3px; top: 0; width: 4px; height: 8px; border: solid #3b2a00; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.blk.done span { text-decoration: line-through; color: #8a8590; }
.prog { margin: 6px 0 10px; }
.prog .track { height: 9px; border-radius: 9px; background: #efe9da; overflow: hidden; }
.prog .fill { height: 100%; width: 66%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 9px; }
.prog small { color: #6b6672; font-size: 11px; }
.tbl { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: 12px; background: #fff; }
.tbl th { background: #fff3cd; text-align: left; }
.tbl th, .tbl td { border: 1px solid #e8e1cf; padding: 3px 6px; }
.math { background: #f4f0ff; border-radius: 10px; padding: 8px 10px; font-family: "Roboto Mono", ui-monospace, monospace; font-size: 12px; margin: 6px 0 10px; }
.math b { color: #6750a4; float: right; }
.slash {
  position: absolute; left: 18px; right: 18px; bottom: 18px; background: #fff; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18); padding: 8px; font-size: 12px;
}
.slash div { padding: 6px 8px; border-radius: 8px; display: flex; gap: 8px; }
.slash div.on { background: #fff3cd; font-weight: 700; }
.slash kbd { margin-left: auto; color: #8a8590; font-family: inherit; }

/* ---------------------------------------------------------------- bölümler */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--bg-soft); font-size: 22px; margin-bottom: 14px;
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.split h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; margin: 0 0 14px; }
.split p { color: var(--muted); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }
.illus { max-width: 440px; margin: 0 auto; }

/* ---------------------------------------------------------------- planlar */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 820px; margin: 0 auto; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }
.plan h3 { font-size: 22px; margin: 0 0 4px; }
.plan.pro { border: 2px solid var(--brand); position: relative; }
.plan .tag { position: absolute; top: -12px; right: 18px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 0; }
.plan li { padding: 7px 0 7px 28px; position: relative; border-top: 1px solid var(--line); }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 800; }

/* ---------------------------------------------------------------- sss / metin */
details.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 0 20px; margin-bottom: 10px;
}
details.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; gap: 12px; }
details.faq summary::after { content: "+"; margin-left: auto; color: var(--brand-2); font-size: 22px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding: 0 0 18px; color: var(--muted); }

.doc { padding: 48px 0 72px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 21px; margin: 34px 0 10px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc .callout {
  background: var(--bg-soft); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  border-radius: 14px; padding: 16px 18px; margin: 20px 0;
}
.doc ol.steps { counter-reset: s; list-style: none; padding: 0; }
.doc ol.steps li { counter-increment: s; position: relative; padding: 4px 0 14px 46px; }
.doc ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; background: var(--brand); color: var(--brand-ink);
}
.cmds { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 15px; }
.cmds th, .cmds td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmds code, .doc code {
  background: var(--bg-soft); padding: 2px 7px; border-radius: 7px;
  font-family: "Roboto Mono", ui-monospace, monospace; font-size: .92em;
}
.table-scroll { overflow-x: auto; }

/* ---------------------------------------------------------------- alt */
footer.bottom { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
footer.bottom .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
footer.bottom a { text-decoration: none; }
footer.bottom a:hover { color: var(--text); }
footer.bottom .made { margin-left: auto; display: flex; align-items: center; gap: 8px; }
footer.bottom .made img { height: 22px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc ol { padding-left: 22px; }

/* ---------------------------------------------------------------- ekran görüntüsü galerisi (assets/gallery.js) */
.gallery { position: relative; }
.gl-stage { position: relative; }
.gallery .shots {
  display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 24px; padding: 10px 24px 22px;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}
.gallery .shots::-webkit-scrollbar { display: none; }
.gallery.at-start .shots { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.gallery.at-end .shots { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
.gallery.fits .shots { -webkit-mask-image: none; mask-image: none; justify-content: center; }
.gallery .shots img {
  flex: none; height: auto; scroll-snap-align: center; cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery .shots img:hover { transform: translateY(-4px); }
.gl-btn {
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  background: color-mix(in srgb, var(--card) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  color: var(--text); cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: opacity .25s, transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.gl-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gl-btn:hover { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); box-shadow: 0 12px 30px color-mix(in srgb, var(--brand) 45%, transparent); }
.gl-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 3px; }
.gl-btn:disabled { opacity: 0; pointer-events: none; }
/* Arrows sit in the faded edges, centred on the images (the strip has 10px top / 22px bottom padding). */
.gl-prev, .gl-next { position: absolute; top: calc(50% - 6px); z-index: 2; transform: translateY(-50%); opacity: .9; }
.gl-prev { left: 6px; } .gl-next { right: 6px; }
.gallery:hover .gl-prev:not(:disabled), .gallery:hover .gl-next:not(:disabled) { opacity: 1; }
.gl-prev:hover { transform: translateY(-50%) translateX(-2px) scale(1.06); }
.gl-next:hover { transform: translateY(-50%) translateX(2px) scale(1.06); }
.gl-prev:active, .gl-next:active { transform: translateY(-50%) scale(.94); }
.gallery.fits .gl-prev, .gallery.fits .gl-next, .gallery.fits .gl-dots { display: none; }
@media (hover: none) { .gl-prev, .gl-next { display: none; } }
.gl-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.gl-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: color-mix(in srgb, var(--muted) 45%, transparent); transition: width .25s, background .25s;
}
.gl-dots button[aria-current="true"] { width: 26px; background: var(--brand); }
.gl-viewer {
  position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 56px 16px;
  background: rgba(8, 6, 14, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.gl-viewer.on { display: grid; animation: gl-in .2s ease; }
@keyframes gl-in { from { opacity: 0; } }
.gl-viewer img { max-width: min(1200px, 100%); max-height: calc(100vh - 112px); width: auto; height: auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.gl-viewer .gl-btn { position: absolute; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; box-shadow: none; }
.gl-viewer .gl-btn:hover { background: var(--brand); color: var(--brand-ink); }
.gl-close { top: 14px; right: 14px; width: 44px; height: 44px; }
.gl-close svg { width: 18px; height: 18px; }
.gl-vprev { left: 14px; top: 50%; transform: translateY(-50%); }
.gl-vprev:hover, .gl-vprev:active { transform: translateY(-50%) scale(1.06); }
.gl-vnext { right: 14px; top: 50%; transform: translateY(-50%); }
.gl-vnext:hover, .gl-vnext:active { transform: translateY(-50%) scale(1.06); }
.gl-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .75); font-size: 14px; font-weight: 700; letter-spacing: .06em; }
@media (prefers-reduced-motion: reduce) { .gallery .shots img, .gl-dots button { transition: none; } .gl-viewer.on { animation: none; } }
