:root {
  --bg: #0e0e10;
  --surface: #17171a;
  --surface-2: #1f1f24;
  --border: #2a2a31;
  --text: #f4f4f6;
  --muted: #9a9aa3;
  --accent: #ffd400;
  --accent-ink: #111;
  --danger: #ff5a5a;
  --stage-a: #141418;
  --stage-b: #17171a;
  --shadow: 0 10px 40px rgba(0,0,0,0.5);
}
:root[data-theme="light"] {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f0f0f3;
  --border: #d8d8de;
  --text: #1a1a1f;
  --muted: #66666e;
  --accent: #ffc400;
  --accent-ink: #111;
  --danger: #d93636;
  --stage-a: #e8e8ec;
  --stage-b: #f0f0f3;
  --shadow: 0 10px 40px rgba(0,0,0,0.12);
}
.theme-toggle {
  position: fixed; top: 14px; right: 14px; z-index: 50;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1; transition: border-color .15s, background .15s;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle--inline { position: static; width: 34px; height: 34px; flex: 0 0 auto; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

/* ============ landing ============ */
.landing .wrap { max-width: 920px; margin: 0 auto; padding: 32px 20px 80px; }
.landing .wrap.narrow { max-width: 420px; }
.landing h1 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 6px; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px; text-decoration: none; color: var(--text); display: block;
  transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card h2 { margin: 12px 0 4px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card-visual { height: 72px; border-radius: 8px; background: linear-gradient(180deg, #2a2a31, #17171a);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.card-visual.uzun { aspect-ratio: 530 / 25; height: auto; max-height: 60px; }
.card-visual.oto  { aspect-ratio: 312 / 22; height: auto; max-height: 60px; }
.card-visual.motor{ aspect-ratio: 250 / 26; height: auto; max-height: 60px; }

.row { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.btn-primary, .btn-secondary, .btn-link {
  display: inline-block; padding: 12px 20px; border-radius: 10px; text-decoration: none;
  font-weight: 600; border: 1px solid transparent; cursor: pointer; font-size: 15px;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-link { background: transparent; color: var(--muted); }

/* ============ editor ============ */
.editor-page { height: 100vh; height: 100dvh; overflow: hidden; display: grid;
  grid-template-rows: auto minmax(140px, 38vh) 1fr; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .editor-page { grid-template-columns: 1fr 320px; grid-template-rows: auto 1fr;
    grid-template-areas: "top top" "stage side"; }
  .topbar { grid-area: top; }
  .canvas-stage { grid-area: stage; }
  .toolbar { grid-area: side; border-left: 1px solid var(--border); border-top: 0; }
}
.topbar { display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); gap: 10px;
  flex-wrap: nowrap; min-width: 0; }
.topbar .back { color: var(--muted); text-decoration: none; white-space: nowrap; }
.topbar .plate-label { font-size: 13px; color: var(--muted);
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.topbar #saveBtn { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 600px) {
  .topbar { padding: 8px 10px; gap: 8px; }
  .topbar .back { font-size: 13px; }
  .topbar .plate-label { font-size: 11px; }
  .topbar #saveBtn { padding: 10px 12px; font-size: 13px; }
}
.canvas-stage { display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, var(--stage-a), var(--stage-a) 10px, var(--stage-b) 10px, var(--stage-b) 20px);
  overflow: auto; padding: 20px; }
#canvasWrap { background: transparent; box-shadow: var(--shadow); }
.toolbar { background: var(--surface); padding: 14px; overflow-y: auto;
  border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 16px; }
.tool-group { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border); }
.tool-group:last-child { border: 0; }
.tool-group label { font-size: 12px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.05em; }
.tool-group button, .tool-group select {
  padding: 10px 12px; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; font-size: 14px; cursor: pointer;
}
.tool-group button:hover { border-color: var(--accent); }
.tool-group .danger { color: var(--danger); }
.tool-group .inline { display: flex; gap: 8px; }
.tool-group .inline button, .align-grid button { min-height: 40px; min-width: 40px; }
.tool-group input[type=range] { width: 100%; }
.palette { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.palette .sw { width: 100%; aspect-ratio: 1; border-radius: 4px; border: 1px solid var(--border);
  cursor: pointer; padding: 0; }
.palette .sw.active { outline: 2px solid var(--accent); outline-offset: 1px; }
.align-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.align-grid button { padding: 10px 0; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex;
  align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal[hidden] { display: none !important; }
.modal-box { background: var(--surface); border-radius: 16px; padding: 24px;
  max-width: 520px; width: 100%; border: 1px solid var(--border); }
.modal-box h3 { margin: 0 0 12px; }
.code-out { font-family: ui-monospace, Menlo, monospace; font-size: 42px;
  letter-spacing: 0.15em; text-align: center; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin: 12px 0; color: var(--accent); }
.symbol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px; max-height: 400px; overflow-y: auto; margin: 12px 0; }
.symbol-grid button { background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px; cursor: pointer; aspect-ratio: 1; }
.symbol-grid button:hover { border-color: var(--accent); }
.symbol-grid svg, .symbol-grid img { max-width: 100%; max-height: 100%; }

/* staff */
.staff-form { display: flex; gap: 8px; margin: 20px 0; }
.staff-form input { flex: 1; padding: 14px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text); border-radius: 10px;
  font-size: 22px; letter-spacing: 0.2em; text-align: center; font-family: ui-monospace, monospace; }
.staff-card { background: var(--surface); padding: 16px; border-radius: 12px;
  border: 1px solid var(--border); margin-top: 16px; }
.svg-preview { background: #fff; border-radius: 6px; padding: 8px; margin: 12px 0;
  overflow: auto; }
.svg-preview svg { max-width: 100%; height: auto; display: block; }
.error { color: var(--danger); }
.strip-toggle { display: flex; align-items: center; gap: 10px; padding: 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  margin: 12px 0; cursor: pointer; }
.strip-toggle input { width: 18px; height: 18px; }
.strip-toggle small { color: var(--muted); display: block; font-size: 12px; }

/* ============ v2 (2026-07-29): marka + galeri + WhatsApp ============ */
.hero { text-align: center; padding: 12px 0 8px; }
.brand-kicker { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.35em;
  color: var(--accent); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { max-width: 520px; margin: 10px auto 0; font-size: 15px; line-height: 1.55; }
.hero-demo { margin: 26px auto 6px; max-width: 560px; }
.demo-strip { aspect-ratio: 530 / 60; background: #0a0a0c; border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); overflow: hidden; }
.demo-strip span { color: #fff; font-size: clamp(22px, 5.5vw, 38px); letter-spacing: 0.18em;
  animation: stripGlow 3s ease-in-out infinite alternate; }
@keyframes stripGlow { from { text-shadow: 0 0 0 rgba(255,212,0,0); }
  to { text-shadow: 0 0 22px rgba(255,212,0,0.55); } }
.section-title { font-size: 17px; margin: 40px 0 4px; }
.card h3 { margin: 12px 0 4px; font-size: 18px; }
.card-visual { background: #0a0a0c; }
.card-visual span { font-family: 'Russo One', sans-serif; color: #fff;
  font-size: 14px; letter-spacing: 0.22em; }
.tpl-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
@media (min-width: 700px) { .tpl-grid { grid-template-columns: 1fr 1fr; } }
.tpl-card { display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px; text-decoration: none; color: var(--text);
  transition: transform .15s ease, border-color .15s ease; }
.tpl-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.tpl-card span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.tpl-preview { border-radius: 6px; overflow: hidden; background: #0a0a0c;
  border: 1px solid var(--border); }
.tpl-preview svg { display: block; width: 100%; height: auto; }
.site-footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  color: var(--muted); font-size: 14px; }
.site-footer a { color: var(--accent); text-decoration: none; }

/* sonuç modalı — WhatsApp */
.result-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.btn-wa { display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #25d366; color: #fff; font-weight: 700; font-size: 16px;
  padding: 15px 20px; border-radius: 12px; text-decoration: none;
  transition: filter .15s ease; }
.btn-wa:hover { filter: brightness(1.08); }
.result-shop { text-align: center; background: var(--surface-2);
  border: 1px dashed var(--border); border-radius: 10px; padding: 12px 14px; }
.result-shop strong { display: block; font-size: 14px; }
.result-shop span { font-size: 12.5px; color: var(--muted); }
