/* Peaktimize panel — the website's design language: Outfit headings, Archivo text, night bands, hairline rules.
   Copper is for action buttons only. Service colours mark services; invoice states have their own colours. */

@font-face { font-family: "Outfit Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/outfit-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/outfit-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/archivo-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/archivo-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #F4F6F9; --white: #FFFFFF; --concrete: #D3D9E1; --line-ui: #6B7586;
  --ink: #0B1220; --night: #070A10; --ink-2: #121A28;
  --slate: #4A5568; --slate-dark: #C3CCD8;
  --red: #D4875A; --red-press: #E39B71;
  --c-seo: #466A2C; --c-geo: #2F5F86; --c-web: #0E6A6E; --c-reklam: #A3324F; --c-produksiyon: #6A5848;
  --state-late: #B23B2E; --state-paid: #2E6B3A;
  --font: "Archivo Variable", Archivo, system-ui, "Segoe UI", Arial, sans-serif;
  --font-head: "Outfit Variable", Outfit, system-ui, "Segoe UI", Arial, sans-serif;
  --r: 6px; --gutter: clamp(1rem, 4vw, 2.5rem); --max: 76rem;
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.6; font-variant-numeric: tabular-nums; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 300; }
h1 b, h2 b, h3 b { font-weight: 800; }
p { margin: 0 0 var(--s-3); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--white); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s-4); top: -4rem; z-index: 10; background: var(--white); color: var(--ink); padding: var(--s-2) var(--s-4); border-radius: var(--r); }
.skip:focus { top: var(--s-4); }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.muted { color: var(--slate); }
.small { font-size: .875rem; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.875rem; padding: 0 var(--s-5); border: 0; border-radius: var(--r); background: var(--red); color: var(--night); font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--red-press); }
.btn--sm { min-height: 2.25rem; padding: 0 var(--s-4); font-size: .9375rem; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-ui); }
.btn--line:hover { background: var(--white); }
.on-ink .btn--line { color: var(--white); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5); }
.on-ink .btn--line:hover { background: rgb(255 255 255 / .08); }
.link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; font-weight: 500; }
.link:hover { text-decoration-thickness: 2px; }
.btn-text { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .25em; }

/* ---------- top band (night) ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--white); }
.band__topo { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.band__topo .ring { fill: none; stroke: rgb(195 204 216 / .22); stroke-width: 1; vector-effect: non-scaling-stroke; }
.band__topo .route { fill: none; stroke: var(--white); stroke-width: 2; stroke-dasharray: 7 7; vector-effect: non-scaling-stroke; }
.band__topo .stop { fill: var(--night); stroke: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke; }
.band__topo .stop.is-last { fill: var(--white); }
.band__topo text { fill: var(--slate-dark); font: 500 13px var(--font); }
.bar { display: flex; align-items: center; gap: var(--s-5); min-height: 4.5rem; }
.brand { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: -0.03em; text-decoration: none; color: var(--white); white-space: nowrap; }
.brand b { font-weight: 800; } .brand span { font-weight: 300; }
.nav { display: flex; gap: var(--s-1) var(--s-5); margin-left: var(--s-5); overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--slate-dark); text-decoration: none; padding: var(--s-2) 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--white); }
.bar__end { margin-left: auto; display: flex; align-items: center; gap: var(--s-4); white-space: nowrap; }
.bar__co { color: var(--slate-dark); font-size: .9375rem; }
.bar__out { color: var(--slate-dark); font-size: .9375rem; }
@media (max-width: 860px) {
  .bar { flex-wrap: wrap; gap: 0 var(--s-4); padding-top: var(--s-3); }
  .nav { order: 3; width: 100%; margin: 0; padding-bottom: var(--s-2); }
  .bar__co { display: none; }
}
.band__body { padding-block: var(--s-6) var(--s-7); }
.band--hero .band__body { min-height: 17rem; display: flex; flex-direction: column; justify-content: flex-end; padding-block: var(--s-7) var(--s-7); }
@media (min-width: 900px) { .band--hero .band__body { min-height: 19rem; } }
.band h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem); font-weight: 800; }
.band .lead { font-family: var(--font-head); font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); font-weight: 300; color: var(--slate-dark); margin: var(--s-2) 0 var(--s-5); }
.band--page h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); font-weight: 300; }
.band--page h1 b { font-weight: 800; }

/* ---------- main ---------- */
main { padding-block: var(--s-7) var(--s-8); }
.sec + .sec { margin-top: var(--s-7); }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-3); border-bottom: 2px solid var(--ink); margin-bottom: var(--s-2); }
.sec__head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; }
.grid2 { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .grid2 { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s-8); } .grid2--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* big numbers on ruled rows ("Bu ay") */
.metrics { margin: 0; }
.metric { display: grid; grid-template-columns: max-content 1fr; align-items: baseline; gap: var(--s-2) var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--concrete); }
.metric dt { grid-column: 1 / -1; color: var(--slate); font-size: .9375rem; }
.metric dd { margin: 0; }
.metric__v { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); line-height: 1; letter-spacing: -0.03em; }
.metric__d { font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.up { color: var(--state-paid); } .down { color: var(--state-late); } .flat { color: var(--slate); }

/* balance */
.bal { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); padding: var(--s-4) 0 var(--s-5); border-bottom: 1px solid var(--concrete); }
.bal__k { color: var(--slate); font-size: .9375rem; display: block; }
.bal__v { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; }
.bal__v--late { color: var(--state-late); }
.bal + .bal { border-left: 0; }

/* ruled lists (works) */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 7.5rem max-content 1fr; gap: var(--s-2) var(--s-4); align-items: baseline; padding: var(--s-3) 0; border-bottom: 1px solid var(--concrete); }
.row__date { color: var(--slate); font-size: .9375rem; white-space: nowrap; }
@media (max-width: 640px) { .row { grid-template-columns: auto 1fr; } .row__t { grid-column: 1 / -1; } }
.pill { display: inline-flex; align-items: center; min-height: 1.5rem; padding: 0 .55rem; border-radius: 999px; background: var(--c, var(--slate)); color: var(--white); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
[data-c="seo"] { --c: var(--c-seo); } [data-c="geo"] { --c: var(--c-geo); } [data-c="web"] { --c: var(--c-web); } [data-c="reklam"] { --c: var(--c-reklam); } [data-c="produksiyon"] { --c: var(--c-produksiyon); }

/* timeline (Yapılan işler, ledger style) */
.tl { list-style: none; margin: 0; padding: 0; }
.tl__i { position: relative; display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s-1) var(--s-5); padding: var(--s-4) 0 var(--s-4) 0; border-bottom: 1px solid var(--concrete); }
.tl__date { color: var(--slate); white-space: nowrap; padding-top: .1rem; }
.tl__svc { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 700; font-size: .875rem; color: var(--c); }
.tl__svc::before { content: ""; width: .625rem; height: .625rem; border-radius: 50%; background: var(--c); }
.tl__t { font-weight: 600; font-size: 1.0625rem; margin: var(--s-1) 0 0; }
.tl__d { color: var(--slate); margin: var(--s-1) 0 0; }
.tl__d p { margin: 0; }
@media (max-width: 640px) { .tl__i { grid-template-columns: 1fr; } }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: var(--s-3) var(--s-4); margin: 0 0 var(--s-5); }
.downloads { display: flex; gap: var(--s-4); align-items: center; }
.downloads span { color: var(--concrete); }

/* forms */
.field { display: grid; gap: var(--s-1); }
.field label { font-size: .9375rem; font-weight: 600; }
.input, select.input { min-height: 2.75rem; padding: 0 var(--s-3); border: 1px solid var(--line-ui); border-radius: var(--r); background: var(--white); color: var(--ink); font: inherit; }
textarea.input { padding: var(--s-2) var(--s-3); min-height: 6rem; }
.input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.form { display: grid; gap: var(--s-4); max-width: 26rem; }
.alert { padding: var(--s-3) var(--s-4); border-left: 3px solid var(--state-late); background: var(--white); margin-bottom: var(--s-4); }
.note { padding: var(--s-3) var(--s-4); border-left: 3px solid var(--ink); background: var(--white); margin-bottom: var(--s-4); }

/* ledger (Faturalar, "Defter") */
.ledger { background: var(--white); border: 1px solid var(--concrete); border-radius: var(--r); padding: var(--s-5) var(--s-5) var(--s-6); }
.ledger table { width: 100%; border-collapse: collapse; }
.ledger th { text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); font-weight: 600; padding: 0 var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--concrete); }
.ledger td { padding: var(--s-4) var(--s-3) var(--s-4) 0; border-bottom: 1px solid var(--concrete); vertical-align: baseline; }
.ledger .num { text-align: right; white-space: nowrap; }
.ledger tfoot td { border-bottom: 0; border-top: 3px double var(--ink); padding-top: var(--s-5); vertical-align: baseline; }
.ledger__total { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 1.6rem + 1.8vw, 2.75rem); letter-spacing: -0.02em; }
.st { font-weight: 600; white-space: nowrap; }
.st--odendi { color: var(--state-paid); } .st--gecikti { color: var(--state-late); } .st--kismen, .st--bekliyor { color: var(--slate); }
@media (max-width: 640px) {
  .ledger { padding: var(--s-4); }
  .ledger thead { display: none; }
  .ledger tr { display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--concrete); }
  .ledger td { border: 0; padding: 0; }
  .ledger tfoot tr { border-top: 3px double var(--ink); border-bottom: 0; padding-top: var(--s-4); }
  .ledger tfoot td { border: 0; padding: 0; }
}

/* report page */
.report { max-width: 52rem; }
.report section { margin-top: var(--s-7); }
.report h2 { font-size: 1.5rem; font-weight: 700; padding-bottom: var(--s-3); border-bottom: 2px solid var(--ink); margin-bottom: var(--s-4); }
.report .prose p { max-width: 62ch; }
.cmp { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--concrete); text-align: right; white-space: nowrap; }
.cmp th:first-child, .cmp td:first-child { text-align: left; white-space: normal; }
.cmp th { font-size: .8125rem; color: var(--slate); font-weight: 600; }
.cmp td:nth-child(2) { font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* footer */
.foot { border-top: 1px solid var(--concrete); padding-block: var(--s-5); color: var(--slate); font-size: .875rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); justify-content: space-between; }

/* sign-in screens */
.auth { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.auth main { display: grid; align-items: start; }
.auth .card { background: var(--white); border: 1px solid var(--concrete); border-radius: var(--r); padding: var(--s-6); max-width: 30rem; }
.auth h1 { font-size: 2rem; font-weight: 300; margin-bottom: var(--s-4); }
.auth h1 b { font-weight: 800; }

/* admin */
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--concrete); }
.admin-table th, .admin-table td { padding: var(--s-3); border-bottom: 1px solid var(--concrete); text-align: left; vertical-align: top; }
.admin-table th { font-size: .8125rem; color: var(--slate); }
.admin-grid { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.box { background: var(--white); border: 1px solid var(--concrete); border-radius: var(--r); padding: var(--s-5); }
.box h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: var(--s-4); }
.inline-form { display: inline; }
.warn { color: var(--state-late); font-weight: 600; }

/* utilities (CSP allows no inline styles) */
.m-0 { margin: 0; } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }
.pt-3 { padding-top: var(--s-3); } .pt-4 { padding-top: var(--s-4); }
.mw-44 { max-width: 44rem; } .mw-52 { max-width: 52rem; }
.fs-lg { font-size: 1.125rem; } .num-big { font-size: 1.25rem; letter-spacing: .04em; }
.row--3 { grid-template-columns: 1fr auto auto; } .row--2 { grid-template-columns: auto 1fr; }
.h-page { font-size: 2.25rem; } .h-admin { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); font-weight: 700; }
.h-ledger { font-size: 1.75rem; font-weight: 700; margin-bottom: var(--s-5); }
.ledger__label { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; }
.cmp th.cmp__label { font-size: 1rem; color: var(--ink); font-weight: 500; }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; justify-content: space-between; }
fieldset.field { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
fieldset.field legend { font-size: .9375rem; font-weight: 600; margin-bottom: var(--s-2); }

/* phones: the route stays as a quiet backdrop behind the title */
@media (max-width: 860px) {
  .band__topo .route, .band__topo .stop { display: none; }
  .band__topo text { display: none; }
  .band__topo .ring { stroke: rgb(195 204 216 / .14); }
}
/* phones: each invoice as two lines (what + amount, due + status) and the PDF link */
@media (max-width: 640px) {
  .ledger tbody tr { grid-template-columns: 1fr auto; grid-template-areas: "d a" "v s" "p p"; }
  .ledger tbody td:nth-child(1) { grid-area: d; }
  .ledger tbody td:nth-child(2) { grid-area: v; color: var(--slate); font-size: .9375rem; }
  .ledger tbody td:nth-child(2)::before { content: "Son ödeme: "; }
  .ledger tbody td:nth-child(3) { grid-area: a; text-align: right; font-weight: 600; }
  .ledger tbody td:nth-child(4) { grid-area: s; justify-self: end; }
  .ledger tbody td:nth-child(5) { grid-area: p; text-align: left; }
}
