/* BakeryzTech website: one quiet system. Neutral greys, near-black actions, mint only for "paid" and "ready".
   Body text 17px; numbers in a fixed-width face so amounts line up. */
:root {
  --bg: #ffffff; --soft: #f5f5f7; --line: #e5e5ea; --ink: #1d1d1f; --ink-2: #4a4a4f; --ink-3: #6e6e73;
  --dark: #1d1d1f; --dark-2: #2c2c2e; --on-dark: #ffffff; --on-dark-2: #c7c7cc;
  --mint: #a1ffcb; --mint-ink: #0b3d1e; --ok: #17642c; --wait-bg: #fff4dc; --wait: #6b4600; --link: #0066cc; --focus: #0071e3; --error: #b00020;
  --r-xl: 28px; --r-l: 24px; --r-m: 16px; --r-s: 12px;
  --wrap: 1180px; --pad: 32px;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--ink-2); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 16px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
       font: 600 17px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:active { transform: scale(.98); }
.btn--dark { background: var(--ink); color: #fff; } .btn--dark:hover { background: #000; }
.btn--light { background: var(--soft); color: var(--ink); } .btn--light:hover { background: #ebebef; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; min-height: 56px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.top .wrap { height: 64px; display: flex; align-items: center; gap: 32px; }
.brand { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.top nav { display: flex; gap: 28px; flex: 1; font-size: 15px; }
.top nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.top nav a:hover { color: #000; text-decoration: underline; text-underline-offset: 4px; }

/* sections */
.sec { padding: 112px 0; }
.sec--soft { background: var(--soft); }
.sec--dark { background: var(--dark); color: var(--on-dark); }
.sec--dark .muted { color: var(--on-dark-2); }
.eyebrow { margin: 0; font-size: 15px; font-weight: 600; color: var(--ok); }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
h1 { font-size: clamp(42px, 5.4vw, 68px); line-height: 1.03; font-weight: 700; letter-spacing: -0.04em; }
h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: 21px; line-height: 1.45; color: var(--ink-2); max-width: 32ch; margin: 0; }
.head { display: grid; gap: 14px; max-width: 680px; margin-bottom: 48px; }
.head p { margin: 0; font-size: 19px; }

/* hero */
.hero { padding: 96px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero__text { display: grid; gap: 24px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* the payslip: the page's one signature object */
.stage { margin: 0; background: var(--soft); border-radius: var(--r-xl); padding: 48px; display: flex; justify-content: center; }
.slip { width: 100%; max-width: 400px; background: #fff; border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.3); padding: 28px; display: grid; gap: 12px; font-size: 15px; }
.slip__top { display: flex; justify-content: space-between; align-items: baseline; }
.slip__label { color: var(--ink-3); font-size: 13px; }
.slip__name { margin: 0; font-size: 20px; font-weight: 600; }
.row { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #ececf0; padding-top: 10px; }
.row--total { border-top: 2px solid var(--ink); padding-top: 12px; align-items: baseline; font-weight: 600; }
.slip .row--total .num { font-size: 28px; letter-spacing: -0.02em; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.tag--paid { background: var(--mint); color: var(--mint-ink); }
.tag--wait { background: var(--wait-bg); color: var(--wait); }
.tag--final { color: var(--ok); padding: 0; }

/* the hero animation: words centered above, the film full width below */
.hero--film .wrap { grid-template-columns: minmax(0, 1fr); gap: 56px; }
.hero--film .hero__text { justify-items: center; text-align: center; }
.hero--film .lead { max-width: 46ch; }
.hero--film .actions { justify-content: center; }
.film { position: relative; margin: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--soft); aspect-ratio: 16 / 9; box-shadow: 0 40px 80px -48px rgba(0,0,0,.35); }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film__toggle { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(29,29,31,.72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.film__toggle:hover { background: rgba(29,29,31,.9); }
.film__toggle svg[hidden] { display: none; }
.film__sound { right: 72px; }
@media (max-width: 639px) { .film { border-radius: var(--r-l); } .hero--film .hero__text { text-align: left; justify-items: start; } .hero--film .actions { justify-content: stretch; } }

/* payroll window */
.window { background: #fff; border-radius: var(--r-l); box-shadow: 0 30px 60px -36px rgba(0,0,0,.28); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
.window__list { border-right: 1px solid #ececf0; }
.window__bar { padding: 20px 24px; border-bottom: 1px solid #ececf0; font-weight: 600; }
.run { padding: 16px 24px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #ececf0; }
.run:first-of-type { border-top: 0; }
.run.is-open { background: #f4fbf6; }
.run small { display: block; color: var(--ink-3); font-size: 14px; }
.run > span:last-child { text-align: right; }
.window__open { padding: 24px 28px; display: grid; gap: 12px; align-content: start; }
.window__title { display: flex; justify-content: space-between; align-items: center; font-size: 20px; font-weight: 600; }
.fake-btn { justify-self: start; margin-top: 8px; background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 15px; }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--soft); border-radius: var(--r-l); padding: 28px; display: grid; gap: 10px; align-content: start; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.25); }
.card p { margin: 0; color: var(--ink-2); }

/* editions */
.editions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.edition { background: var(--dark-2); border-radius: var(--r-l); padding: 32px; display: grid; gap: 12px; align-content: start; }
.edition--light { background: #fff; color: var(--ink); }
.edition__name { margin: 0; font-weight: 600; font-size: 19px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.edition__price { margin: 0; font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.edition p:last-child { margin: 0; color: var(--on-dark-2); }
.edition--light p:last-child { color: var(--ink-2); }
.addons { margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.addons div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #3a3a3c; }
.addons dt { margin: 0; } .addons dd { margin: 0; color: var(--on-dark-2); text-align: right; }
.fine { margin: 24px 0 0; font-size: 15px; }

/* estimate */
.price .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.price form { display: grid; gap: 24px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.choice { position: relative; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 20px; border-radius: var(--r-m); background: var(--soft); cursor: pointer; font-weight: 600; }
.choice input[type="radio"] { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.choice small { margin-left: auto; color: var(--ink-2); font-weight: 400; font-size: 15px; }
.choice:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.field input { height: 48px; border: 1px solid #d2d2d7; border-radius: var(--r-s); padding: 0 14px; font: 400 17px var(--sans); color: var(--ink); background: #fff; width: 100%; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.check { display: flex; align-items: flex-start; gap: 14px; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.check a { color: var(--link); }
.summary { background: var(--soft); border-radius: var(--r-xl); padding: 36px; display: grid; gap: 14px; }
.summary .row:first-child { border-top: 0; padding-top: 0; }
.summary .row--total .big { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; font-family: var(--sans); }
.summary small { display: block; color: var(--ink-2); font-size: 14px; font-weight: 400; }
.summary p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* questions */
.faq .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.faq dl { margin: 0; }
.faq dl div { padding: 20px 0; border-bottom: 1px solid #d2d2d7; }
.faq dt { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.faq dd { margin: 0; color: var(--ink-2); }

/* footer */
.foot { padding: 48px 0 64px; font-size: 14px; color: var(--ink-3); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.foot a { color: var(--ink-3); min-height: 44px; display: inline-flex; align-items: center; }
.foot strong { color: var(--ink); font-size: 15px; }

/* phones and tablets */
@media (max-width: 900px) {
  .hero .wrap, .window, .price .wrap, .faq .wrap { grid-template-columns: minmax(0, 1fr); }
  .cards, .editions, .addons { grid-template-columns: minmax(0, 1fr); }
  .window__list { border-right: 0; border-bottom: 1px solid #ececf0; }
  .stage { padding: 28px; }
}
@media (max-width: 639px) {
  :root { --pad: 16px; }
  .top nav { display: none; }
  .top .wrap { justify-content: space-between; }
  .sec { padding: 72px 0; }
  .hero { padding: 48px 0 56px; }
  .actions .btn { width: 100%; min-height: 52px; }
  .lead { font-size: 17px; }
  .stage { padding: 20px; border-radius: var(--r-l); }
  .slip { padding: 20px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .summary { padding: 24px; }
  .head { margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; } .card:hover { transform: none; }
}
