/* Defter — the esnaf's till drawer. Oak body, felt compartments, brass plates, paper slips. */

@font-face {
  font-family: 'Mona Sans';
  src: url('../fonts/monasans-latin.woff2') format('woff2');
  font-weight: 200 900; font-stretch: 75% 125%; font-display: swap;
  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: 'Mona Sans';
  src: url('../fonts/monasans-latin-ext.woff2') format('woff2');
  font-weight: 200 900; font-stretch: 75% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --felt-base: #2a6350;      /* multiplied by the grey felt texture → about #1d4537 on screen */
  --felt: #1d4537;
  --felt-deep: #143327;
  --felt-ink: #f2eee4;
  --felt-ink-2: #bdd1c5;
  --oak: #b4875a;
  --oak-dark: #5b3b1f;
  --oak-ink: #24170a;
  --brass: #c9a24c;
  --brass-hi: #eed58f;
  --brass-lo: #8a6824;
  --brass-ink: #281b07;
  --paper: #f5f1e7;
  --paper-2: #ebe4d4;
  --ink: #1b1e1c;
  --ink-2: #4a4f4a;
  --rule: #cdc2ab;
  --carbon: #24398c;
  --red: #ad2f1c;
  --lamp: rgba(255, 214, 150, .11);
  --shadow: 0 1px 1px rgba(8, 18, 13, .35), 0 16px 30px -14px rgba(4, 10, 7, .65);
  --wall: inset 0 20px 24px -16px rgba(0, 0, 0, .62), inset 12px 0 18px -14px rgba(0, 0, 0, .5), inset -12px 0 18px -14px rgba(0, 0, 0, .38), inset 0 -2px 0 rgba(255, 230, 190, .07);
  --gap: clamp(10px, 1.15vw, 18px);
  --pad: clamp(20px, 4.2vw, 68px);
  --rail: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--rail) + 12px); scrollbar-color: var(--brass-lo) var(--oak-dark); }
html:not(.anim) { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Mona Sans', ui-sans-serif, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: clamp(16px, .32vw + 12.6px, 18px);
  line-height: 1.55;
  color: var(--felt-ink);
  background: var(--oak-dark) url('../img/oak.jpg') 0 0 / 768px repeat;
  font-variation-settings: normal;
  overflow-x: clip;
}
::selection { background: var(--brass); color: var(--brass-ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--oak-dark); }
::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--brass-lo), var(--brass), var(--brass-lo)); border-radius: 6px; border: 2px solid var(--oak-dark); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--brass-hi); outline-offset: 3px; border-radius: 3px; }
.slip :focus-visible, .price :focus-visible { outline-color: var(--carbon); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brass); color: var(--brass-ink); padding: .6rem 1rem; border-radius: 4px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.2vw + .4rem, 5rem); font-stretch: 116%; font-weight: 820; line-height: .98; letter-spacing: -.028em; }
h2 { font-size: clamp(2rem, 3vw + .6rem, 3.6rem); font-stretch: 112%; font-weight: 790; line-height: 1.02; letter-spacing: -.022em; }
h3 { font-size: clamp(1.08rem, .3vw + 1rem, 1.3rem); font-stretch: 104%; font-weight: 680; line-height: 1.2; letter-spacing: -.005em; }
p { margin: 0; }
.lead, .sec__lead { font-size: clamp(1.05rem, .35vw + .96rem, 1.28rem); line-height: 1.5; color: var(--felt-ink-2); max-width: 60ch; }
.note { font-size: .84rem; line-height: 1.45; color: var(--felt-ink-2); max-width: 70ch; }
.slip .note, .zslip .note { color: var(--ink-2); }
.msg { font-size: .92rem; font-weight: 600; min-height: 1.4em; }
.msg.is-err { color: #ffb4a3; }
.slip .msg.is-err { color: var(--red); }

/* ---------- buttons ---------- */
.btn {
  --b: var(--brass);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .62rem 1.2rem; border-radius: 5px; border: 0;
  font: inherit; font-weight: 720; font-stretch: 110%; font-size: .98rem; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), filter .2s var(--ease), background-color .2s var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--brass {
  color: var(--brass-ink);
  background: linear-gradient(180deg, var(--brass-hi) 0%, var(--brass) 50%, #b08a3e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 250, 230, .65), inset 0 -1px 0 rgba(60, 40, 5, .35), 0 1px 2px rgba(0, 0, 0, .45), 0 8px 16px -8px rgba(0, 0, 0, .6);
  text-shadow: 0 1px 0 rgba(255, 245, 210, .45);
}
.btn--brass:hover { filter: brightness(1.07) saturate(1.05); }
.btn--brass:active { transform: translateY(1px); filter: brightness(.96); }
.btn--ghost { color: inherit; background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: rgba(255, 255, 255, .07); }
.slip .btn--ghost:hover, .price .btn--ghost:hover { background: rgba(27, 30, 28, .06); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- the rail (header) ---------- */
.rail {
  position: sticky; top: 0; z-index: 50; height: var(--rail);
  display: flex; align-items: center; gap: clamp(12px, 2vw, 32px);
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, rgba(255, 228, 180, .12), rgba(40, 22, 6, .28)), url('../img/oak.jpg') 0 -200px / 768px repeat;
  box-shadow: 0 1px 0 rgba(255, 230, 190, .25) inset, 0 6px 14px -4px rgba(0, 0, 0, .55);
  color: var(--oak-ink);
}
.brand { text-decoration: none; flex: none; }
.brand__plate {
  display: inline-block; padding: .38rem .9rem .34rem; border-radius: 3px;
  font-weight: 820; font-stretch: 125%; letter-spacing: .16em; font-size: 1.02rem; color: var(--brass-ink);
  background: linear-gradient(180deg, var(--brass-hi), var(--brass) 52%, #b08a3e);
  box-shadow: inset 0 1px 0 rgba(255, 250, 230, .7), inset 0 -1px 0 rgba(60, 40, 5, .4), 0 1px 2px rgba(0, 0, 0, .5);
  text-shadow: 0 1px 0 rgba(255, 245, 210, .55), 0 -1px 0 rgba(70, 45, 5, .35);
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(10px, 1.6vw, 26px); }
.nav a { font-weight: 640; font-stretch: 106%; text-decoration: none; font-size: .96rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="true"] { border-bottom-color: var(--oak-ink); }
.rail__tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--oak-ink); }
.lang button { font: inherit; font-size: .82rem; font-weight: 720; font-stretch: 112%; letter-spacing: .04em; padding: .42rem .6rem; min-height: 36px; min-width: 40px; border: 0; background: transparent; color: var(--oak-ink); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--oak-ink); color: var(--paper); }
.motion-toggle { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--oak-ink); box-shadow: inset 0 0 0 1.5px var(--oak-ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.motion-toggle svg { width: 22px; height: 22px; }
.motion-toggle[aria-pressed="false"] { opacity: .65; }
.motion-toggle[aria-pressed="false"] svg path { fill: none; stroke: currentColor; stroke-width: 1.5; }
.rail__menu { display: none; }
.rail__cta { min-height: 40px; padding: .45rem 1rem; }

/* ---------- the insert: every section is a compartment routed into one oak body ---------- */
main { display: grid; gap: var(--gap); padding: var(--gap); }
.comp {
  position: relative; border-radius: 4px; min-width: 0;
  background: radial-gradient(120% 70% at 28% 0%, var(--lamp), transparent 62%), url('../img/felt.jpg') 0 0 / 512px repeat, var(--felt-base);
  background-blend-mode: normal, multiply, normal;
  box-shadow: var(--wall);
}
.sec__in { padding: clamp(56px, 8vw, 128px) var(--pad); max-width: 1500px; margin: 0 auto; }
.sec h2 + .sec__lead { margin-top: 1.1rem; }

/* well = a smaller compartment routed deeper, oak lip around it */
.well {
  position: relative; border-radius: 3px;
  background: var(--felt-deep);
  border: 9px solid var(--oak);
  border-image: url('../img/oak.jpg') 48 / 9px round;
  box-shadow: var(--wall);
}

/* ---------- paper ---------- */
.slip {
  position: relative; color: var(--ink); background: var(--paper);
  border-radius: 3px; padding: clamp(18px, 2vw, 28px);
  box-shadow: var(--shadow);
  caret-color: var(--carbon);
}
.slip--perf::before {
  content: ''; position: absolute; left: 0; right: 0; top: -5px; height: 10px; pointer-events: none;
  background: radial-gradient(circle at 7px 5px, var(--felt) 3.1px, transparent 3.7px) 0 0 / 14px 10px repeat-x;
}
.slip__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: .5rem; }
.slip__title { font-size: .86rem; font-stretch: 125%; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
.slip__no { font-size: .8rem; color: var(--ink-2); font-weight: 600; }
.slip__no output { color: var(--red); font-weight: 700; letter-spacing: .02em; }
.slip__meta { font-size: .84rem; color: var(--ink-2); margin: .55rem 0 .4rem; }

.field { display: grid; gap: .2rem; margin-top: .85rem; border: 0; padding: 0; min-width: 0; }
.field--row { grid-template-columns: 1fr 1fr; gap: 1rem; }
.field--row > div { display: grid; gap: .2rem; min-width: 0; }
.field label, .field legend { font-size: .74rem; font-weight: 700; font-stretch: 118%; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 0; }
.slip input[type="text"], .slip input[type="email"], .slip input[type="tel"], .slip input[type="number"], .slip select, .slip textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 1.04rem; font-weight: 560; color: var(--carbon);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--rule); border-radius: 0;
  padding: .38rem 0 .32rem; min-height: 40px; transition: border-color .2s var(--ease);
}
.slip textarea { border: 1.5px solid var(--rule); border-radius: 3px; padding: .6rem .7rem; line-height: 1.5; resize: vertical; background: rgba(255, 255, 255, .45); }
.slip select { appearance: none; padding-right: 1.6rem; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2324398c' stroke-width='2'/%3E%3C/svg%3E") right .2rem center / 12px 8px no-repeat; }
.slip select option { color: var(--ink); background: var(--paper); }
.slip input:hover, .slip select:hover { border-bottom-color: var(--ink-2); }
.slip input:focus-visible, .slip select:focus-visible, .slip textarea:focus-visible { outline: 2px solid var(--carbon); outline-offset: 3px; border-bottom-color: var(--carbon); }
.slip input[aria-invalid="true"] { border-bottom-color: var(--red); }
.slip input::placeholder { color: #5f635d; }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* pill radios on paper */
.rates, .seg, .tone { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.rates legend, .seg legend, .tone legend { width: 100%; margin-bottom: .3rem; }
.rates label, .seg label, .tone label { position: relative; cursor: pointer; }
.rates input, .seg input, .tone input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rates span, .seg span, .tone span {
  display: inline-flex; align-items: center; min-height: 38px; padding: .3rem .85rem; border-radius: 999px;
  font-weight: 680; font-size: .92rem; box-shadow: inset 0 0 0 1.5px var(--rule); color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.rates input:checked + span, .seg input:checked + span, .tone input:checked + span { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.rates input:focus-visible + span, .seg input:focus-visible + span, .tone input:focus-visible + span { outline: 2px solid var(--carbon); outline-offset: 2px; }

/* ---------- HERO: the open drawer ---------- */
.drawer { min-height: calc(100svh - var(--rail) - 2 * var(--gap)); display: grid; }
.drawer__grid {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, 1fr);
  grid-template-rows: auto 1fr;
}
.comp--head { grid-column: 1; grid-row: 1; padding: clamp(26px, 3vw, 46px) clamp(22px, 3.6vw, 60px) clamp(22px, 2.2vw, 34px); display: grid; align-content: start; gap: clamp(14px, 1.5vw, 22px); }
.comp--pad { grid-column: 2; grid-row: 1 / span 2; padding: clamp(22px, 2.4vw, 36px) clamp(16px, 2vw, 32px); display: grid; align-items: center; }
.comp--tray { grid-column: 1; grid-row: 2; padding: clamp(16px, 1.8vw, 26px) clamp(16px, 2.6vw, 40px) clamp(14px, 1.6vw, 22px); overflow: visible; }
.comp--head h1 { max-width: 13ch; }
.quick { display: grid; gap: .45rem; max-width: 560px; margin-top: .3rem; }
.quick label { font-size: .78rem; font-weight: 700; font-stretch: 118%; letter-spacing: .08em; text-transform: uppercase; color: var(--felt-ink-2); }
.quick__row { display: flex; gap: .5rem; }
.quick input {
  flex: 1; min-width: 0; min-height: 48px; font: inherit; font-size: 1rem; color: var(--ink); caret-color: var(--carbon);
  background: var(--paper); border: 0; border-radius: 4px; padding: .5rem .85rem; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .18);
}
.quick input::placeholder { color: #5f635d; }
.quick input:focus-visible { outline: 3px solid var(--brass-hi); outline-offset: 2px; }
.quick input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--red); }
.quick .msg { min-height: 0; }
.quick .msg:empty { display: none; }

.pad { position: relative; width: 100%; max-width: 480px; margin: 0 auto; }
.pad__stack span { position: absolute; inset: 10px 4px -8px; background: var(--paper-2); border-radius: 3px; box-shadow: var(--shadow); }
.pad__stack span:first-child { transform: rotate(1.6deg); inset: 14px 0 -12px 8px; background: #e2dac8; }
.pad__stack span:last-child { transform: rotate(-.8deg); }
#invoiceForm { position: relative; z-index: 1; }
.totals { margin: 1rem 0 0; display: grid; gap: .15rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-weight: 640; }
.totals__grand { border-top: 1.5px solid var(--ink); margin-top: .3rem; padding-top: .35rem; font-size: 1.1rem !important; }
.totals__grand dt { color: var(--ink); font-weight: 720; }
.totals__grand dd { font-weight: 800; }
.slip__lands { margin-top: .5rem; font-size: .88rem; font-weight: 640; color: var(--carbon); }
.slip__perf { margin: 1rem -6px .9rem; border-top: 2px dashed var(--rule); }
.btn--cut { width: 100%; }
#invoiceForm .note { margin-top: .5rem; font-size: .78rem; }
#invoiceForm .msg { margin-top: .5rem; min-height: 0; }
#invoiceForm .msg:empty { display: none; }

/* ---------- trays (coin wells) ---------- */
.tray { position: relative; }
.tray__cap { display: grid; gap: .1rem; justify-items: start; }
.tray__title { font-size: .8rem; font-stretch: 125%; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; color: var(--felt-ink); }
.tray__sum { font-size: .9rem; color: var(--felt-ink-2); }
.tray__sum output { color: var(--brass-hi); font-weight: 760; font-size: 1.15rem; margin-left: .3rem; }
.tray__stage { position: relative; height: clamp(150px, 22vh, 250px); margin-top: .4rem; }
.tray__stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.tray__labels { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.tray__labels li { text-align: center; display: grid; gap: .05rem; padding: .2rem 0; border-radius: 3px; transition: background-color .3s var(--ease); }
.tray__labels .w { font-size: .7rem; font-weight: 720; font-stretch: 118%; letter-spacing: .07em; text-transform: uppercase; color: var(--felt-ink-2); }
.tray__labels .v { font-size: .98rem; font-weight: 720; color: var(--felt-ink); font-variant-numeric: tabular-nums; }
.tray__labels li.is-hit { background: rgba(238, 213, 143, .16); }
.tray__labels li.is-low .v { color: #ffb4a3; }
.tray__labels li .flag { font-size: .68rem; font-weight: 700; color: #ffb4a3; letter-spacing: .04em; }
.tray__note { margin-top: .4rem; font-size: .78rem; color: var(--felt-ink-2); }
/* CSS fallback: coin stacks drawn as columns of coin edges */
.tray__fallback[hidden] { display: none; }
.tray__fallback { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; align-items: end; padding: 0 0 8px; }
.tray__fallback .cell { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; border-radius: 4px; background: var(--felt-deep); box-shadow: var(--wall); }
.tray__fallback .coins {
  position: relative; width: min(64%, 84px); height: calc(var(--n, 0) * 4.2px); margin-bottom: 14px; border-radius: 0 0 50% 50% / 0 0 10px 10px;
  background: repeating-linear-gradient(to top, #7e5e1d 0 1px, var(--brass) 1px 3.4px, var(--brass-hi) 3.4px 4.2px);
  transition: height .45s var(--ease);
}
.tray__fallback .coins::before { content: ''; position: absolute; left: 0; right: 0; top: -9px; height: 18px; border-radius: 50%; background: radial-gradient(ellipse at 40% 40%, var(--brass-hi), var(--brass) 60%, var(--brass-lo)); opacity: var(--top, 0); }
.tray--month .tray__stage { height: clamp(240px, 40vh, 460px); }
@media (max-width: 640px) { .tray--month .tray__stage { height: 230px; } }

.late { position: absolute; top: -18px; right: clamp(16px, 2.6vw, 40px); z-index: 2; }
.late__slip {
  display: inline-flex; gap: .45rem; align-items: baseline; flex-wrap: wrap; max-width: 30ch;
  background: var(--paper); color: var(--ink); padding: .45rem .75rem; border-radius: 2px; font-size: .8rem;
  box-shadow: var(--shadow); transform: rotate(2.4deg);
}
.late__slip b { color: var(--red); font-stretch: 120%; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }

/* ---------- 1. three moves: one strip of tear-off coupons ---------- */
.coupons { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--paper); color: var(--ink); border-radius: 3px; box-shadow: var(--shadow); }
.coupon { position: relative; padding: clamp(22px, 2.6vw, 40px); display: grid; gap: .55rem; align-content: start; }
.coupon + .coupon { border-left: 2px dashed var(--rule); }
.coupon__n { font-size: clamp(2.6rem, 4vw, 4.2rem); font-weight: 820; font-stretch: 125%; line-height: 1; color: var(--carbon); }
.coupon h3 { font-size: clamp(1.4rem, 1.6vw, 1.9rem); font-stretch: 116%; font-weight: 800; }
.coupon p { color: var(--ink-2); max-width: 34ch; }

/* ---------- 2. one invoice, four places ---------- */
.four__pin { padding: clamp(40px, 5vw, 80px) var(--pad); min-height: calc(100svh - var(--rail) - var(--gap)); display: grid; align-content: center; gap: clamp(24px, 3vw, 44px); max-width: 1600px; margin: 0 auto; }
.four__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem 3rem; align-items: end; }
.four__head .sec__lead { margin: 0; }
.four__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px) minmax(0, 1fr); grid-template-rows: auto auto; gap: var(--gap) clamp(16px, 2.4vw, 40px); align-items: stretch; }
.four__slip { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.four__bin[data-bin="ar"] { grid-column: 1; grid-row: 1; }
.four__bin[data-bin="vat"] { grid-column: 1; grid-row: 2; }
.four__bin[data-bin="cash"] { grid-column: 3; grid-row: 1; }
.four__bin[data-bin="close"] { grid-column: 3; grid-row: 2; }
.four__lines { margin: .6rem 0 0; display: grid; }
.four__lines div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .2rem; border-bottom: 1px solid var(--rule); transition: background-color .3s var(--ease); }
.four__lines dt { color: var(--ink-2); font-size: .92rem; }
.four__lines dd { margin: 0; font-weight: 740; font-size: 1.08rem; color: var(--carbon); }
.four__lines div.is-on { background: rgba(201, 162, 76, .22); }
.four__bin { padding: clamp(16px, 1.8vw, 26px); display: grid; gap: .4rem; align-content: start; min-height: 170px; }
.four__bin { position: relative; border-radius: 3px; background: var(--felt-deep); border: 9px solid var(--oak); border-image: url('../img/oak.jpg') 48 / 9px round; box-shadow: var(--wall); }
.four__bin h3 { font-size: .8rem; font-stretch: 125%; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; color: var(--felt-ink-2); }
.bin__v { font-size: clamp(1.4rem, 2vw, 2.1rem); font-weight: 800; font-stretch: 108%; color: var(--brass-hi); line-height: 1.1; }
.bin__t { font-size: .9rem; color: var(--felt-ink-2); }
.four__chip { position: absolute; z-index: 5; pointer-events: none; padding: .3rem .6rem; border-radius: 2px; font-weight: 760; font-size: .95rem; color: var(--ink); background: #f3c9c0; box-shadow: var(--shadow); font-variant-numeric: tabular-nums; }
.four__chip[data-c="vat"] { background: #f2e3a6; }
.four__chip[data-c="cash"] { background: #cfe0f1; }
.four__chip[data-c="close"] { background: var(--paper); }

/* ---------- 3. e-Fatura ---------- */
.ef { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 72px); }
.ef__col { display: grid; gap: .9rem; align-content: start; }
.ef__col h3 { font-size: clamp(1.5rem, 2vw, 2.1rem); font-stretch: 114%; font-weight: 800; }
.ef__col p { color: var(--felt-ink-2); max-width: 58ch; }
.ef__path { width: 100%; max-width: 440px; height: auto; margin-top: .4rem; overflow: visible; }
.ef__nodes rect { fill: var(--paper); }
.ef__wire { fill: none; stroke: var(--brass); stroke-width: 2.5; stroke-dasharray: 6 5; }
.ef__path text { fill: var(--ink); font-size: 13px; font-weight: 700; text-anchor: middle; font-family: inherit; }
.ef__facts { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.ef__fact { border-top: 2px solid var(--brass); padding-top: 1rem; display: grid; gap: .5rem; align-content: start; }
.ef__fact p { color: var(--felt-ink-2); font-size: .98rem; }
.ef__fact--ph { border-top-style: dashed; }

/* ---------- 4. expense sorter ---------- */
.sorter { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.sorter__pile { display: grid; gap: 1rem; }
.pile { position: relative; min-height: 290px; }
.receipt {
  position: absolute; inset: 0 0 auto 0; color: var(--ink); background: var(--paper); border-radius: 2px;
  padding: 18px 20px 20px; box-shadow: var(--shadow); display: grid; gap: .35rem;
  transform-origin: 50% 0;
}
.receipt:nth-child(1) { z-index: 3; }
.receipt:nth-child(2) { z-index: 2; transform: translate(6px, 10px) rotate(1.2deg); background: var(--paper-2); }
.receipt:nth-child(3) { z-index: 1; transform: translate(-4px, 18px) rotate(-1deg); background: #e2dac8; }
.receipt:nth-child(n+4) { display: none; }
.receipt__vendor { font-size: .74rem; font-weight: 720; font-stretch: 120%; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.receipt__label { font-size: 1.35rem; font-weight: 780; font-stretch: 108%; line-height: 1.15; }
.receipt__rows { display: grid; gap: .1rem; margin-top: .3rem; border-top: 1px dashed var(--rule); padding-top: .45rem; font-size: .92rem; }
.receipt__rows div { display: flex; justify-content: space-between; }
.receipt__rows dd { margin: 0; font-weight: 700; }
.receipt__sug { margin-top: .5rem; font-size: .86rem; color: var(--carbon); font-weight: 650; }
.receipt__count { font-size: .78rem; color: var(--ink-2); }
.pile__done { padding: 1.4rem; border: 2px dashed rgba(242, 238, 228, .35); border-radius: 4px; color: var(--felt-ink-2); display: grid; gap: .4rem; }
.pile__done strong { color: var(--felt-ink); font-size: 1.15rem; }
.sorter__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.2rem; }
.bins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.bin {
  position: relative; text-align: left; font: inherit; color: var(--felt-ink); cursor: pointer;
  min-height: 132px; padding: 14px 14px 12px; display: grid; align-content: space-between; gap: .4rem;
  border-radius: 3px; background: var(--felt-deep); border: 9px solid var(--oak); border-image: url('../img/oak.jpg') 48 / 9px round; box-shadow: var(--wall);
  transition: background-color .25s var(--ease);
}
.bin[data-cat="malzeme"], .bin[data-cat="kira"], .bin[data-cat="personel"], .bin[data-cat="vergi"] { grid-column: span 2; }
.bin:hover { background: #1a3f31; }
.bin__name { font-size: .78rem; font-weight: 780; font-stretch: 125%; letter-spacing: .1em; text-transform: uppercase; color: var(--felt-ink-2); }
.bin__total { font-size: clamp(1.2rem, 1.6vw, 1.6rem); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--felt-ink); }
.bin__count { font-size: .8rem; color: var(--felt-ink-2); }
.bin__edges { position: absolute; left: 12px; right: 12px; top: 8px; height: 10px; display: flex; gap: 3px; pointer-events: none; }
.bin__edges i { flex: 1; max-width: 26px; height: 4px; background: var(--paper-2); border-radius: 1px; opacity: .8; }
.bin.is-suggested { background: #24503f; }
.bin__sug { margin-left: .5rem; color: var(--brass-hi); letter-spacing: .04em; text-transform: none; font-stretch: 100%; }
.bin.is-hit { background: #2c5c49; }

/* ---------- 5. the month in the drawer ---------- */
.month__pin { padding: clamp(32px, 4vw, 64px) var(--pad) clamp(28px, 3vw, 48px); min-height: calc(100svh - var(--rail) - var(--gap)); display: grid; align-content: center; gap: clamp(18px, 2.4vw, 32px); max-width: 1640px; margin: 0 auto; }
.month__head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1rem 3rem; align-items: end; }
.month__head .sec__lead { margin: 0; }
.month__body { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: clamp(18px, 2.6vw, 44px); align-items: stretch; }
.ticker { display: grid; align-content: start; gap: .6rem; padding: clamp(16px, 1.8vw, 26px); border-radius: 3px; background: var(--felt-deep); border: 9px solid var(--oak); border-image: url('../img/oak.jpg') 48 / 9px round; box-shadow: var(--wall); }
.ticker__day { font-size: clamp(2.6rem, 4.4vw, 4.6rem); font-weight: 830; font-stretch: 122%; line-height: .95; color: var(--felt-ink); letter-spacing: -.02em; }
.ticker__day span:last-child { font-size: .42em; font-stretch: 118%; letter-spacing: .02em; color: var(--felt-ink-2); }
.ticker__bal { font-size: .9rem; color: var(--felt-ink-2); font-weight: 650; text-transform: uppercase; letter-spacing: .08em; font-stretch: 118%; }
.ticker__bal output { display: block; font-size: clamp(1.6rem, 2.2vw, 2.3rem); color: var(--brass-hi); font-weight: 820; letter-spacing: 0; text-transform: none; font-stretch: 105%; }
.ticker__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; min-height: 132px; align-content: start; }
.ticker__list li { display: flex; justify-content: space-between; gap: .8rem; padding: .5rem .65rem; background: var(--paper); color: var(--ink); border-radius: 2px; font-size: .88rem; box-shadow: var(--shadow); }
.ticker__list li b { font-weight: 760; white-space: nowrap; }
.ticker__list li.out b { color: var(--red); }
.ticker__list li.in b { color: #1d6b40; }
.ticker__list li.quiet { background: transparent; color: var(--felt-ink-2); box-shadow: inset 0 0 0 1px rgba(242, 238, 228, .25); }
.floor { display: grid; gap: .35rem; margin-top: .4rem; border-top: 1px solid rgba(242, 238, 228, .2); padding-top: .8rem; }
.floor label { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 700; font-stretch: 118%; letter-spacing: .07em; text-transform: uppercase; color: var(--felt-ink-2); }
.floor output { color: var(--felt-ink); }
.floor__warn { font-size: .9rem; font-weight: 650; color: #ffcdbf; min-height: 2.6em; }
.month__scrub { height: 6px; border-radius: 3px; background: rgba(0, 0, 0, .3); overflow: hidden; }
.month__scrub-bar { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 1)); background: linear-gradient(90deg, var(--brass-lo), var(--brass-hi)); }
.ledger { margin: 0 var(--pad) clamp(28px, 3vw, 48px); max-width: 1500px; }
.ledger summary { cursor: pointer; font-weight: 700; color: var(--felt-ink); padding: .6rem 0; }
.ledger__scroll { overflow-x: auto; margin-top: .6rem; }
.ledger__table { width: 100%; border-collapse: collapse; background: var(--paper); color: var(--ink); font-size: .9rem; border-radius: 3px; }
.ledger__table caption { text-align: left; padding: .6rem .8rem; font-size: .8rem; color: var(--ink-2); caption-side: top; }
.ledger__table th, .ledger__table td { text-align: left; padding: .45rem .8rem; border-bottom: 1px solid var(--rule); }
.ledger__table th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; font-stretch: 118%; color: var(--ink-2); }
.ledger__table td:nth-child(3), .ledger__table td:nth-child(4), .ledger__table th:nth-child(3), .ledger__table th:nth-child(4) { text-align: right; }
.ledger__table .neg { color: var(--red); }
html:not(.anim) .ledger summary { pointer-events: auto; }

/* ---------- 6. November outlook ---------- */
.outlook__body { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.outlook__chart { display: grid; gap: .8rem; }
#outChart { width: 100%; height: auto; overflow: visible; }
#outChart .grid line { stroke: rgba(242, 238, 228, .14); }
#outChart .grid text, #outChart .axis text { fill: var(--felt-ink-2); font-size: 12px; font-family: inherit; }
#outChart .floorline { stroke: #ff9b85; stroke-width: 1.5; stroke-dasharray: 6 5; }
#outChart .floortext { fill: #ffb4a3; font-size: 12px; font-weight: 700; font-family: inherit; }
#outChart .area { fill: rgba(201, 162, 76, .16); }
#outChart .line { fill: none; stroke: var(--brass-hi); stroke-width: 3; stroke-linejoin: round; }
#outChart .under { fill: rgba(255, 120, 95, .22); }
#outChart .lowdot { fill: var(--paper); stroke: var(--red); stroke-width: 3; }
#outChart .lowtext { fill: var(--felt-ink); font-size: 13px; font-weight: 700; font-family: inherit; }
.outlook__read { font-size: 1.05rem; font-weight: 600; color: var(--felt-ink); min-height: 3em; max-width: 64ch; }
.outlook__opts { border: 0; padding: 0; margin: 0; display: grid; gap: .8rem; min-width: 0; }
.outlook__opts legend { font-size: .8rem; font-weight: 780; font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; color: var(--felt-ink-2); margin-bottom: .4rem; }
.switch { position: relative; display: flex; gap: .8rem; align-items: center; cursor: pointer; padding: .7rem .8rem; border-radius: 4px; background: rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 1px rgba(242, 238, 228, .14); }
.switch input { position: absolute; opacity: 0; width: 46px; height: 26px; margin: 0; cursor: pointer; }
.switch span { display: flex; align-items: center; gap: .8rem; font-weight: 600; font-size: .96rem; }
.switch span::before { content: ''; flex: none; width: 46px; height: 26px; border-radius: 13px; background: var(--oak-dark); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5); transition: background-color .25s var(--ease); background-image: radial-gradient(circle at 13px 13px, var(--paper) 9px, transparent 9.5px); }
.switch input:checked + span::before { background-color: var(--brass-lo); background-image: radial-gradient(circle at 33px 13px, var(--brass-hi) 9px, transparent 9.5px); }
.switch input:focus-visible + span::before { outline: 3px solid var(--brass-hi); outline-offset: 2px; }

/* ---------- 7. receivables ---------- */
.ar { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.ar__list { list-style: none; margin: 0; padding: clamp(14px, 1.6vw, 22px) clamp(14px, 1.6vw, 22px) clamp(14px, 1.6vw, 22px) clamp(28px, 3vw, 44px); display: grid; gap: .6rem; border-radius: 3px; background: var(--felt-deep); border: 9px solid var(--oak); border-image: url('../img/oak.jpg') 48 / 9px round; box-shadow: var(--wall); overflow: visible; }
.ar__item { position: relative; }
.ar__btn {
  width: 100%; text-align: left; font: inherit; cursor: pointer; border: 0; color: var(--ink); background: var(--paper);
  border-radius: 2px; padding: .75rem .9rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .8rem; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), background-color .2s var(--ease);
}
.ar__btn[aria-pressed="true"] { background: #fffaf0; box-shadow: 0 0 0 3px var(--brass), var(--shadow); }
.ar__who { font-weight: 760; }
.ar__amt { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.ar__meta { font-size: .84rem; color: var(--ink-2); }
.ar__state { font-size: .8rem; font-weight: 760; text-align: right; color: var(--ink-2); }
.ar__item.is-late .ar__btn { transform: translateX(-38px) rotate(-1.2deg); }
.ar__item.is-late .ar__state { color: var(--red); letter-spacing: .06em; text-transform: uppercase; font-stretch: 118%; }
.ar__compose { display: grid; gap: .8rem; }
.tone { margin: 0; border: 0; padding: 0; }
.tone legend { font-size: .74rem; font-weight: 700; font-stretch: 118%; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ar__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ar__actions .msg, .zslip__actions .msg { min-height: 0; }

/* ---------- 8. bank matching ---------- */
.match { margin-top: clamp(32px, 4vw, 56px); background: var(--paper); color: var(--ink); border-radius: 3px; box-shadow: var(--shadow); padding: clamp(12px, 1.6vw, 22px); }
.match__head, .match__row { display: grid; grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr); gap: 1rem; align-items: center; }
.match__head { font-size: .74rem; font-weight: 720; font-stretch: 118%; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: .2rem .6rem .6rem; border-bottom: 2px solid var(--ink); }
.match__rows { list-style: none; margin: 0; padding: 0; }
.match__row { padding: .8rem .6rem; border-bottom: 1px solid var(--rule); }
.match__bank { font-stretch: 86%; font-size: .92rem; display: grid; gap: .1rem; }
.match__bank b { font-weight: 720; letter-spacing: .02em; }
.match__bank span { color: var(--ink-2); font-size: .84rem; }
.match__amt { font-variant-numeric: tabular-nums; font-weight: 760; }
.match__amt.neg { color: var(--red); }
.match__mid { display: flex; align-items: center; justify-content: center; gap: .35rem; font-size: .8rem; font-weight: 720; color: #1d6b40; text-align: center; }
.match__mid svg { width: 20px; height: 20px; flex: none; }
.match__row.is-pending .match__mid { color: var(--carbon); }
.match__book { display: grid; gap: .1rem; font-size: .92rem; }
.match__book b { font-weight: 720; }
.match__book span { color: var(--ink-2); font-size: .84rem; }
.match__choose { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; align-items: center; }
.match__choose .btn { min-height: 38px; padding: .35rem .8rem; font-size: .88rem; }
.match__choose select { font: inherit; font-size: .88rem; min-height: 38px; color: var(--carbon); background: transparent; border: 1.5px solid var(--rule); border-radius: 3px; padding: .2rem .4rem; max-width: 100%; }

/* ---------- 9. month end ---------- */
.close__pin { padding: clamp(36px, 4.4vw, 72px) var(--pad); min-height: calc(100svh - var(--rail) - var(--gap)); display: grid; align-content: center; gap: clamp(20px, 2.6vw, 36px); max-width: 1600px; margin: 0 auto; }
.close__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; }
.close__head .sec__lead { margin: 0; }
.close__stage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 440px); gap: clamp(24px, 4vw, 72px); align-items: center; }
.close__drawer { position: relative; aspect-ratio: 16 / 10; max-width: 100%; border-radius: 4px; overflow: hidden; background: url('../img/oak.jpg') 0 0 / 768px; box-shadow: var(--shadow); }
.close__cells { position: absolute; inset: 5%; display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3.2%; }
.close__cells span { border-radius: 3px; background: url('../img/felt.jpg') 0 0 / 300px, var(--felt-base); background-blend-mode: multiply; box-shadow: var(--wall); }
.close__front {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 0; align-content: center;
  background: linear-gradient(180deg, rgba(255, 230, 190, .16), rgba(40, 22, 6, .38)), url('../img/oak.jpg') 120px 40px / 768px;
  box-shadow: inset 0 1px 0 rgba(255, 235, 200, .3), inset 0 -10px 24px rgba(0, 0, 0, .35);
}
.close__pull { width: 34%; height: 18px; border-radius: 9px; background: linear-gradient(180deg, var(--brass-hi), var(--brass) 50%, var(--brass-lo)); box-shadow: 0 2px 2px rgba(0, 0, 0, .45), 0 10px 18px -6px rgba(0, 0, 0, .55); }
.close__plate { margin-top: 1.4rem; padding: .45rem 1rem; border-radius: 3px; font-weight: 820; font-stretch: 125%; letter-spacing: .16em; font-size: clamp(.8rem, 1.2vw, 1.05rem); color: var(--brass-ink); background: linear-gradient(180deg, var(--brass-hi), var(--brass) 52%, #b08a3e); box-shadow: inset 0 1px 0 rgba(255, 250, 230, .7), 0 1px 2px rgba(0, 0, 0, .5); }
.zslip { position: relative; background: var(--paper); color: var(--ink); padding: 26px 26px 22px; border-radius: 2px; box-shadow: var(--shadow); display: grid; gap: .5rem; }
.zslip::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 8px; background: linear-gradient(135deg, var(--paper) 4px, transparent 0) 0 0 / 10px 8px repeat-x, linear-gradient(225deg, var(--paper) 4px, transparent 0) 0 0 / 10px 8px repeat-x; }
.zslip__title { font-size: .9rem; font-stretch: 125%; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.zslip__meta { text-align: center; font-size: .8rem; color: var(--ink-2); border-bottom: 1.5px dashed var(--rule); padding-bottom: .6rem; }
.zslip__lines { margin: 0; display: grid; }
.zslip__lines div { display: flex; align-items: baseline; gap: .5rem; padding: .28rem 0; font-size: .95rem; }
.zslip__lines dt { color: var(--ink-2); }
.zslip__lines div::after { content: none; }
.zslip__lines .lead-dots { flex: 1; border-bottom: 1.5px dotted var(--rule); transform: translateY(-.25em); min-width: 1rem; }
.zslip__lines dd { margin: 0; font-weight: 740; }
.zslip__lines .is-sum { border-top: 1.5px solid var(--ink); margin-top: .3rem; padding-top: .5rem; }
.zslip__lines .is-sum dt, .zslip__lines .is-sum dd { color: var(--ink); font-weight: 820; font-size: 1.05rem; }
.zslip__open { display: grid; gap: .3rem; font-size: .88rem; border-top: 1.5px dashed var(--rule); padding-top: .6rem; }
.zslip__open p { display: flex; justify-content: space-between; gap: .6rem; }
.zslip__open .late-word { color: var(--red); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .74rem; font-stretch: 118%; }
.zslip__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .4rem; }

/* ---------- 10. accountant ---------- */
.musavir__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.musavir__in .note { margin-top: 1.2rem; }
.parcel__list { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; }
.parcel__list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.parcel__list b { font-weight: 760; }

/* ---------- 11. security ---------- */
.locks { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 80px); }
.locks li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 1rem; padding: 1.3rem 0; border-top: 1px solid rgba(242, 238, 228, .2); }
.locks svg { width: 30px; height: 30px; color: var(--brass-hi); }
.locks h3 { margin-bottom: .3rem; }
.locks p { color: var(--felt-ink-2); font-size: .96rem; }

/* ---------- 12. pricing ---------- */
.price__scroll { overflow-x: auto; margin-top: clamp(32px, 4vw, 56px); border-radius: 3px; box-shadow: var(--shadow); }
.price { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; background: var(--paper); color: var(--ink); }
.price th, .price td { padding: .9rem 1.1rem; border-bottom: 1px solid var(--rule); text-align: center; vertical-align: middle; }
.price tbody th { text-align: left; font-weight: 640; color: var(--ink); font-size: .96rem; }
.price thead th { padding-top: 1.4rem; vertical-align: bottom; }
.price__name { display: block; font-size: clamp(1.3rem, 1.8vw, 1.9rem); font-weight: 820; font-stretch: 118%; }
.price__for { display: block; font-size: .84rem; color: var(--ink-2); font-weight: 560; margin-top: .2rem; }
.price td { color: var(--ink-2); font-size: .95rem; }
.price .price__lift { background: #fffcf4; box-shadow: inset 1px 0 0 var(--rule), inset -1px 0 0 var(--rule); }
.price thead .price__lift { box-shadow: inset 1px 0 0 var(--rule), inset -1px 0 0 var(--rule), inset 0 5px 0 var(--brass); }
.price svg { width: 22px; height: 22px; margin: 0 auto; }
.price .yes { color: #1d6b40; }
.price .no { color: #8b8f88; }
.price__cta td { border-bottom: 0; padding-bottom: 1.4rem; }
.price ~ .note, .price__scroll + .note { margin-top: 1rem; }

/* ---------- 13. faq ---------- */
.faq__list { margin-top: clamp(28px, 3.4vw, 48px); display: grid; gap: .6rem; max-width: 960px; }
.faq__list details { background: var(--paper); color: var(--ink); border-radius: 2px; box-shadow: var(--shadow); }
.faq__list summary { cursor: pointer; list-style: none; padding: 1.05rem 3rem 1.05rem 1.2rem; font-weight: 700; font-size: 1.04rem; position: relative; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ''; position: absolute; right: 1.2rem; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--carbon); border-bottom: 2.5px solid var(--carbon); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq__list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__list details p { padding: 0 1.2rem 1.2rem; color: var(--ink-2); max-width: 70ch; }

/* ---------- 14. trial ---------- */
.deneme__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 560px); gap: clamp(28px, 5vw, 88px); align-items: start; }
.deneme__copy { position: sticky; top: calc(var(--rail) + 40px); }
.trial { display: grid; gap: .2rem; }
.consent { display: flex; gap: .7rem; align-items: flex-start; margin: 1.1rem 0 .9rem; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--carbon); flex: none; }
.trial__out { display: grid; gap: .5rem; margin-top: .6rem; }
.trial__out label { font-size: .74rem; font-weight: 700; font-stretch: 118%; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.trial__out .btn { justify-self: start; }

/* ---------- footer: the drawer front ---------- */
.front { position: relative; margin: 0 var(--gap) var(--gap); border-radius: 4px; color: var(--paper); background: linear-gradient(180deg, rgba(255, 230, 190, .1), rgba(30, 16, 4, .62)), url('../img/oak.jpg') 300px 0 / 768px; box-shadow: inset 0 1px 0 rgba(255, 235, 200, .3), 0 10px 30px -10px rgba(0, 0, 0, .6); padding: 72px max(16px, env(safe-area-inset-right, 0px)) 44px max(16px, env(safe-area-inset-left, 0px)); }
.front__pull { position: absolute; left: 50%; top: 22px; width: min(260px, 40%); height: 18px; transform: translateX(-50%); border-radius: 9px; background: linear-gradient(180deg, var(--brass-hi), var(--brass) 50%, var(--brass-lo)); box-shadow: 0 2px 2px rgba(0, 0, 0, .45), 0 10px 18px -6px rgba(0, 0, 0, .55); }
.front__in { max-width: 1200px; margin: 0 auto; display: grid; gap: 1rem; justify-items: center; text-align: center; }
.front__brand { font-weight: 830; font-stretch: 125%; letter-spacing: .2em; font-size: 1.2rem; color: var(--brass-hi); }
.front__in p { max-width: 64ch; color: #efe6d6; }
.front__links { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.6rem; }
.front__links a { font-weight: 650; color: var(--paper); }

/* ---------- the rail plate (one live readout: date and the example till) ---------- */
.plate {
  margin-left: auto; display: flex; align-items: baseline; gap: .6rem; white-space: nowrap;
  padding: .32rem .75rem .34rem; border-radius: 3px; color: var(--brass-ink);
  background: linear-gradient(180deg, var(--brass-hi), var(--brass) 52%, #b08a3e);
  box-shadow: inset 0 1px 0 rgba(255, 250, 230, .7), inset 0 -1px 0 rgba(60, 40, 5, .4), 0 1px 2px rgba(0, 0, 0, .45);
  text-shadow: 0 1px 0 rgba(255, 245, 210, .5);
}
.plate__tag { font-size: .66rem; font-weight: 780; font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; }
.plate__day { font-weight: 800; font-stretch: 118%; font-size: .84rem; letter-spacing: .03em; }
.plate__bal { font-weight: 820; font-size: 1rem; min-width: 7.2ch; text-align: right; }
.plate + .rail__tools { margin-left: 0; }
@media (max-width: 1240px) { .plate { display: none; } .plate + .rail__tools { margin-left: auto; } }

/* ---------- motion helpers (only with .anim) ---------- */
.anim .four__bin .bin__v, .anim .four__bin .bin__t { transition: opacity .4s var(--ease); }
.anim .four__bin:not(.is-filled) .bin__v { opacity: .5; }
.fly-slip { position: fixed; z-index: 60; pointer-events: none; background: var(--paper); color: var(--ink); border-radius: 2px; box-shadow: var(--shadow); padding: .6rem .8rem; font-weight: 760; font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav ul { gap: 14px; }
  .nav a { font-size: .9rem; }
  .four__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .four__slip { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: min(420px, 100%); }
  .four__bin[data-bin="ar"] { grid-column: 1; grid-row: 2; }
  .four__bin[data-bin="vat"] { grid-column: 2; grid-row: 2; }
  .four__bin[data-bin="cash"] { grid-column: 1; grid-row: 3; }
  .four__bin[data-bin="close"] { grid-column: 2; grid-row: 3; }
  .bins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bin[data-cat] { grid-column: span 1; }
  .bin[data-cat="malzeme"] { grid-column: span 2; }
}
@media (max-width: 980px) {
  .rail__menu { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; font: inherit; font-weight: 700; font-size: .9rem; color: var(--oak-ink); background: transparent; border: 0; box-shadow: inset 0 0 0 1.5px var(--oak-ink); border-radius: 4px; min-height: 38px; padding: 0 .7rem; cursor: pointer; }
  .rail__menu svg { width: 20px; height: 20px; }
  .rail__tools { margin-left: 0; }
  .nav { position: absolute; top: var(--rail); left: 0; right: 0; background: linear-gradient(180deg, rgba(40, 22, 6, .2), rgba(40, 22, 6, .35)), url('../img/oak.jpg') 0 0 / 768px; box-shadow: 0 12px 20px -8px rgba(0, 0, 0, .6); padding: .6rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: .75rem 0; font-size: 1.05rem; border-bottom: 1px solid rgba(36, 23, 10, .25); }
  .drawer__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .comp--head, .comp--pad, .comp--tray { grid-column: 1; grid-row: auto; }
  .comp--pad { padding-block: 32px; }
  .four__head, .month__head, .close__head { grid-template-columns: minmax(0, 1fr); }
  .month__body { grid-template-columns: minmax(0, 1fr); }
  .ef, .sorter, .outlook__body, .ar, .close__stage, .musavir__in, .deneme__in { grid-template-columns: minmax(0, 1fr); }
  .ef__facts { grid-template-columns: minmax(0, 1fr); }
  .locks { grid-template-columns: minmax(0, 1fr); }
  .deneme__copy { position: static; }
  .close__stage { justify-items: center; }
  .close__drawer { width: min(560px, 100%); }
  .zslip { width: min(440px, 100%); }
}
@media (max-width: 640px) {
  :root { --rail: 58px; }
  .rail { gap: 8px; }
  .rail__cta { display: none; }
  .brand__plate { font-size: .9rem; padding: .32rem .62rem .3rem; letter-spacing: .12em; }
  .rail__menu span { display: none; }
  .rail__menu { padding: 0 .55rem; }
  .lang button { min-width: 36px; padding: .4rem .45rem; }
  .motion-toggle { width: 36px; height: 36px; }
  .quick__row { flex-direction: column; }
  .quick__row .btn { width: 100%; }
  .field--row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .field--row > div + div { margin-top: .85rem; }
  .coupons { grid-template-columns: minmax(0, 1fr); }
  .coupon + .coupon { border-left: 0; border-top: 2px dashed var(--rule); }
  .four__stage { grid-template-columns: minmax(0, 1fr); }
  .four__bin[data-bin] { grid-column: 1; grid-row: auto; min-height: 0; }
  .four__slip { grid-row: auto; }
  .bins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bin { min-height: 112px; padding: 10px; }
  .bin[data-cat="malzeme"] { grid-column: span 2; }
  .tray__labels .w { font-size: .58rem; letter-spacing: .03em; }
  .tray__labels .v { font-size: .78rem; }
  .late { position: static; margin-top: .6rem; }
  .match__head { display: none; }
  .match__row { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .match__mid { justify-content: flex-start; }
  .ar__list { padding-left: 34px; }
  .ar__item.is-late .ar__btn { transform: translateX(-26px) rotate(-1deg); }
  .sec__in { padding-block: 64px; }
  .ef__path { max-width: 100%; }
}

/* ---------- reduced motion: a complete static page ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* additions: day picker (static page), ledger muted, till-count reveal */
.daypick { display: grid; gap: .35rem; }
.daypick label { font-size: .82rem; font-weight: 700; font-stretch: 118%; letter-spacing: .07em; text-transform: uppercase; color: var(--felt-ink-2); }
.anim .daypick { display: none; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: var(--oak-dark); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .5); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--oak-dark); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--brass-hi), var(--brass) 55%, var(--brass-lo)); box-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--brass-hi), var(--brass) 55%, var(--brass-lo)); }
input[type="range"]:focus-visible { outline: 3px solid var(--brass-hi); outline-offset: 2px; }
.ledger__table .muted { color: var(--ink-2); font-size: .82rem; }
.anim .zslip { --reveal: 1; }
.anim .zslip__lines > div { opacity: clamp(0, calc(var(--reveal) * 13 - var(--i, 0)), 1); }
.anim .zslip__open { opacity: clamp(0, calc(var(--reveal) * 13 - 10), 1); }
.moves .sec__in { min-height: calc(100svh - var(--rail) - var(--gap)); display: grid; align-content: center; }
