@import url("/static/fonts/fonts.css");

:root {
  --ink: #141414;
  --ink-2: #3d3b37;
  --muted: #6f6b63;
  --line: #e7e3da;
  --line-2: #d9d4c8;
  --paper: #f7f5f0;
  --card: #ffffff;
  --clay: #d97757;
  --clay-strong: #b4552f;
  --clay-soft: #fbeee8;
  --ok: #1f7a4d;
  --ok-soft: #e7f4ec;
  --warn: #9a6200;
  --warn-soft: #fbf1dc;
  --err: #b42318;
  --err-soft: #fdecea;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20,20,20,.04), 0 8px 24px rgba(20,20,20,.05);
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.55; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- butonlar ve form ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  padding: 11px 18px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .08s ease, background .15s; }
.btn:hover { background: #2a2a2a; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-clay { background: var(--clay); border-color: var(--clay); }
.btn-clay:hover { background: var(--clay-strong); border-color: var(--clay-strong); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: #fff; }
.btn-danger { background: transparent; color: var(--err); border-color: #f0c7c2; }
.btn-danger:hover { background: var(--err-soft); }
.btn-sm { padding: 7px 12px; font-size: 13.5px; }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 13px; color: var(--muted); }
.input { width: 100%; border: 1px solid var(--line-2); background: #fff; border-radius: var(--radius-sm); padding: 11px 13px; }
.input:focus { border-color: var(--ink); outline: none; }
.input.code { font-family: var(--mono); letter-spacing: .3em; font-size: 22px; text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack > * + * { margin-top: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.mono { font-family: var(--mono); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { margin-top: 4px; accent-color: var(--ink); }

.alert { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; border: 1px solid; }
.alert-err { background: var(--err-soft); border-color: #f3c9c4; color: var(--err); }
.alert-ok { background: var(--ok-soft); border-color: #bfe3cd; color: var(--ok); }
.alert-warn { background: var(--warn-soft); border-color: #f0dcae; color: var(--warn); }
.alert-info { background: #fff; border-color: var(--line); color: var(--ink-2); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #f0ede6; color: var(--ink-2); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-err { background: var(--err-soft); color: var(--err); }
.pill-idle { background: #f0ede6; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }
.card h2 { font-size: 19px; }
.card h3 { font-size: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }

.bar { height: 8px; border-radius: 999px; background: #efece5; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--ink); border-radius: 999px; transition: width .4s ease; }
.bar.warn > span { background: var(--warn); }
.bar.err > span { background: var(--err); }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-ghost .spinner, .spinner.dark { border-color: rgba(20,20,20,.15); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- herkese açık sayfalar ---------- */
.site-nav { display: flex; align-items: center; justify-content: space-between; max-width: 1120px; margin: 0 auto; padding: 22px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 650; font-size: 18px; text-decoration: none; letter-spacing: -.01em; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); position: relative; flex: none; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; top: 9px; }
.brand-mark::before { left: 5px; background: #fff; }
.brand-mark::after { right: 5px; background: var(--clay); }
.brand small { font-family: var(--body); font-weight: 500; font-size: 12.5px; color: var(--muted); margin-left: 2px; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14.5px; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.lang { font-size: 13px; color: var(--muted); text-decoration: none; border: 1px solid var(--line-2); padding: 4px 8px; border-radius: 8px; }

.hero { max-width: 1120px; margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--clay-strong); background: var(--clay-soft); padding: 5px 11px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.03; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--clay); }
.hero .lead { font-size: 18px; color: var(--ink-2); margin: 20px 0 28px; max-width: 34em; }
.hero-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

.convo { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px rgba(20,20,20,.08); padding: 18px; font-size: 14px; }
.convo-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; padding: 2px 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.convo-top .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.msg { padding: 10px 13px; border-radius: 12px; margin-bottom: 10px; max-width: 92%; }
.msg.me { background: var(--ink); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.msg.ai { background: #f4f2ec; border-bottom-left-radius: 4px; }
.msg .src { display: inline-block; margin-top: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--clay-strong); background: #fff; border: 1px solid #f1d9cf; border-radius: 6px; padding: 1px 6px; }

.section { max-width: 1120px; margin: 0 auto; padding: 56px 24px; }
.section h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.section .sub { color: var(--ink-2); font-size: 17px; max-width: 40em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; counter-reset: s; }
.step { padding: 22px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 14.5px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.feature { padding: 22px; }
.feature h3 { font-size: 16.5px; margin: 12px 0 6px; }
.feature p { color: var(--ink-2); font-size: 14.5px; }
.ficon { width: 36px; height: 36px; border-radius: 10px; background: var(--clay-soft); color: var(--clay-strong); display: grid; place-items: center; }
.ficon svg { width: 19px; height: 19px; }
.price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; margin-top: 28px; }
.price { padding: 28px; }
.price .amount { font-family: var(--display); font-size: 52px; font-weight: 650; letter-spacing: -.03em; }
.price .amount small { font-size: 16px; color: var(--muted); font-weight: 500; font-family: var(--body); letter-spacing: 0; }
.ticks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; font-size: 14.5px; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a4d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; }
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-in { max-width: 1120px; margin: 0 auto; padding: 26px 24px 40px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.footer-in a { color: var(--muted); margin-right: 16px; }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth { width: 100%; max-width: 420px; }
.auth .card { padding: 30px; }
.auth h1 { font-size: 26px; margin-bottom: 8px; }
.auth .brand { margin-bottom: 26px; justify-content: center; }

.legal { max-width: 760px; margin: 0 auto; padding: 24px 24px 60px; }
.legal h1 { font-size: 34px; margin-bottom: 8px; }
.legal h2 { font-size: 20px; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 10px; }

/* ---------- uygulama kabuğu ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); background: #fbfaf7; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.side .brand { padding: 4px 8px 20px; }
.side a.nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.side a.nav svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.side a.nav:hover { background: #f1eee7; }
.side a.nav.on { background: var(--ink); color: #fff; }
.side a.nav.on svg { color: #fff; }
.side .grow { flex: 1; }
.side .who { border-top: 1px solid var(--line); padding: 14px 8px 0; font-size: 13px; color: var(--muted); word-break: break-all; }
.main { padding: 32px 40px 60px; max-width: 1100px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; }
.page-head p { color: var(--muted); margin-top: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat .k { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat .v { font-family: var(--display); font-size: 28px; font-weight: 650; margin-top: 4px; letter-spacing: -.02em; }
.stat .d { font-size: 13px; color: var(--muted); margin-top: 2px; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: grid; grid-template-columns: 32px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; padding-top: 4px; }
.checklist .n { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--muted); }
.checklist li.done .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.checklist li.done .n::after { content: "✓"; }
.checklist li.done .n span { display: none; }
.checklist h3 { font-size: 15.5px; font-family: var(--body); font-weight: 600; letter-spacing: 0; }
.checklist p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fbfaf7; position: sticky; top: 0; }
.table td { padding: 10px 12px; border-bottom: 1px solid #f1eee7; vertical-align: middle; }
.table tr:hover td { background: #fcfbf8; }
.table .name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.table .name a, .table .name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ext { flex: none; width: 34px; height: 22px; border-radius: 5px; background: #f0ede6; color: var(--ink-2); font-size: 10px; font-weight: 700; display: grid; place-items: center; text-transform: uppercase; letter-spacing: .02em; }
.ext.dir { background: var(--clay-soft); color: var(--clay-strong); }
.crumbs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 14px; margin-bottom: 12px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span.sep { color: var(--line-2); }

.drop { border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 30px; text-align: center; background: #fcfbf8; transition: background .15s, border-color .15s; }
.drop.over { background: var(--clay-soft); border-color: var(--clay); }
.drop h3 { font-size: 17px; margin-bottom: 6px; }
.uplist { margin-top: 14px; display: grid; gap: 8px; }
.upitem { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px; }
.upitem .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upitem .bar { grid-column: 1 / -1; height: 5px; }

.copybox { display: flex; gap: 8px; align-items: stretch; }
.copybox .input { font-family: var(--mono); font-size: 12.5px; }
.steps-inline { counter-reset: si; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps-inline li { position: relative; padding-left: 38px; font-size: 14.5px; color: var(--ink-2); }
.steps-inline li::before { counter-increment: si; content: counter(si); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: #f0ede6; color: var(--ink); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.kbd { font-family: var(--mono); font-size: 12.5px; background: #f0ede6; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }
.provider-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.provider { border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px; background: #fff; cursor: pointer; text-align: left; font-weight: 600; font-size: 14px; }
.provider small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; margin-top: 2px; }
.provider.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; opacity: 0; transition: all .25s; z-index: 50; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
dialog { border: 0; border-radius: var(--radius); padding: 0; max-width: 520px; width: calc(100% - 32px); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(20,20,20,.35); }
dialog .card-pad { padding: 26px; }
.mob-top { display: none; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .steps, .features, .price-wrap, .grid2, .grid3 { grid-template-columns: 1fr; }
  .nav-links a.hide-m { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side { display: none; position: fixed; inset: 0; z-index: 40; height: auto; }
  .side.open { display: flex; }
  .mob-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fbfaf7; position: sticky; top: 0; z-index: 30; }
  .main { padding: 22px 18px 50px; }
  .provider-grid { grid-template-columns: 1fr 1fr; }
  .table .hide-m { display: none; }
}
.nav-links a.btn, .nav-links a.btn:hover { color: #fff; }
