/* Produkt-Sprint — one stylesheet, no build step.
   Tokens first; components use classes only (no element selectors inside
   sections) so spacing rules never fight over specificity. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url("fonts/bricolage-grotesque.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url("fonts/instrument-sans.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url("fonts/instrument-sans-italic.woff2") format("woff2-variations");
}

:root {
  color-scheme: light;
  --paper: #f3f5f8;
  --sheet: #ffffff;
  --ink: #15213b;
  --muted: #56617a;
  --rule: #d5dbe5;
  --grid: #e3e8ef;
  --marker: #ffd43b;
  --marker-soft: #fff1b0;
  --ok: #1f7a4d;
  --error: #b42318;

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Modular scale, ratio 1.25 from 17px body */
  --step--1: 0.85rem;
  --step-0: 1.0625rem;
  --step-1: 1.33rem;
  --step-2: 1.66rem;
  --step-3: 2.08rem;
  --step-4: clamp(2.3rem, 5vw, 3.25rem);
  --step-5: clamp(2.9rem, 8.2vw, 6.1rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 36rem;
  --wide: 72rem;
  --radius-s: 6px;
  --radius-m: 12px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--ink); color: var(--paper); padding: 0.5rem 0.9rem; z-index: 10;
}
.skip:focus { left: 0.5rem; }

.wrap { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { font-family: var(--font-display); font-weight: 650; font-size: 1.05rem; text-decoration: none; line-height: 1.15; }
.brand-sub { display: block; font-family: var(--font-body); font-weight: 450; font-size: var(--step--1); color: var(--muted); }
.nav { display: flex; gap: 1.4rem; margin-left: auto; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.lang { margin: 0; font-size: 0.95rem; color: var(--muted); white-space: nowrap; }
.lang a { text-decoration: none; }
.lang [aria-current="true"] { color: var(--ink); font-weight: 600; }
@media (max-width: 52rem) {
  .nav { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 26rem) {
  .site-header .wrap { gap: 0.9rem; }
  .brand { font-size: 0.95rem; white-space: nowrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  border-radius: var(--radius-s); border: 2px solid var(--ink);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #22325a; border-color: #22325a; }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--sheet); }
.btn-small { min-height: 2.4rem; padding: 0.45rem 0.95rem; font-size: 0.92rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-title {
  margin: 0; max-width: 15ch;
  font-family: var(--font-display); font-size: var(--step-5);
  font-weight: 760; font-stretch: 88%; line-height: 0.95; letter-spacing: -0.025em;
}
.hero-body {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem clamp(2rem, 5vw, 4rem); margin-top: 1.6rem; align-items: start;
}
@media (max-width: 52rem) { .hero-body { grid-template-columns: 1fr; } }
.hero-lede { margin: 0; max-width: var(--measure); font-size: var(--step-1); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-by { margin: 1.2rem 0 0; color: var(--muted); font-size: 0.95rem; }

/* The week: the one expressive element of the page. */
.week {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-m);
  overflow: hidden;
}
.day { border-left: 1px solid var(--grid); min-height: 14.5rem; display: flex; flex-direction: column; }
.day:first-child { border-left: 0; }
.day-name {
  margin: 0; padding: 0.8rem 0.9rem 0.7rem; border-bottom: 1px solid var(--grid);
  font-family: var(--font-display); font-weight: 650; font-size: 1.05rem;
}
.day-date { display: block; font-family: var(--font-body); font-weight: 450; font-size: var(--step--1); color: var(--muted); }
.slots {
  flex: 1; margin: 0; padding: 0.7rem; list-style: none; display: flex; flex-direction: column; gap: 0.5rem;
  background-image: repeating-linear-gradient(to bottom, transparent 0 2.4rem, var(--grid) 2.4rem calc(2.4rem + 1px));
}
.slot {
  padding: 0.55rem 0.7rem; border-radius: var(--radius-s);
  background: #eef2f8; border-left: 3px solid var(--ink);
  font-size: 0.9rem; line-height: 1.3;
}
.slot-you { background: var(--sheet); border: 1px dashed var(--muted); border-left: 3px dashed var(--muted); color: var(--muted); }
.day-live .day-name { background: var(--marker); border-bottom-color: #e8bd1f; }
.slot-live {
  margin-top: auto; padding: 0.9rem 0.8rem; border: 0; border-radius: var(--radius-s);
  background: var(--marker); color: var(--ink);
  font-family: var(--font-display); font-weight: 760; font-size: var(--step-2); line-height: 1;
}
.slot-live small { display: block; margin-top: 0.35rem; font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; line-height: 1.3; }

/* Load sequence: the week fills day by day, Friday lands last. */
@media (prefers-reduced-motion: no-preference) {
  .slot { animation: slot-in 420ms cubic-bezier(.2,.7,.2,1) both; }
  .day:nth-child(1) .slot { animation-delay: 150ms; }
  .day:nth-child(2) .slot { animation-delay: 400ms; }
  .day:nth-child(3) .slot { animation-delay: 650ms; }
  .day:nth-child(4) .slot { animation-delay: 900ms; }
  .day:nth-child(5) .slot { animation-delay: 1150ms; }
  .day-live .slot-live { animation: live-in 600ms cubic-bezier(.2,.7,.2,1) 1450ms both; }
  .day-live .day-name { animation: marker-in 500ms ease-out 1450ms both; }
}
@keyframes slot-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes live-in { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes marker-in { from { background-color: var(--sheet); } to { background-color: var(--marker); } }

@media (max-width: 52rem) {
  .week { grid-template-columns: 1fr; }
  .day { border-left: 0; border-top: 1px solid var(--grid); min-height: 0; flex-direction: row; }
  .day:first-child { border-top: 0; }
  .day-name { width: 6.5rem; flex: none; border-bottom: 0; border-right: 1px solid var(--grid); }
  .slots { background-image: none; }
  .slot-live { margin-top: 0; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--rule); }
.section-title {
  margin: 0 0 0.9rem; max-width: 22ch;
  font-family: var(--font-display); font-size: var(--step-4);
  font-weight: 720; font-stretch: 92%; line-height: 1.04; letter-spacing: -0.015em;
}
.section-intro { margin: 0; max-width: var(--measure); color: var(--muted); font-size: var(--step-1); line-height: 1.45; }
.subhead { margin: 0 0 0.5rem; font-family: var(--font-display); font-size: var(--step-1); font-weight: 680; line-height: 1.2; }
.prose { margin: 0; max-width: var(--measure); }
.prose + .prose { margin-top: 0.8rem; }

/* Audience: three plain columns hung from a rule, not cards. */
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.column { border-top: 3px solid var(--ink); padding-top: 1rem; }
@media (max-width: 52rem) { .columns { grid-template-columns: 1fr; gap: 1.8rem; } }

/* Scope: what is already built vs. what the week produces. */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; margin-top: 2.5rem; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } }
.ticks { margin: 0.8rem 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 0.55rem 0 0.55rem 1.9rem; border-bottom: 1px solid var(--rule); }
.ticks li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.95rem;
  width: 0.95rem; height: 0.55rem; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: rotate(-45deg);
}
.ticks-open li::before {
  top: 0.85rem; width: 0.9rem; height: 0.9rem; transform: none;
  border: 2px dashed var(--muted); border-radius: 50%;
}
.owner-note { margin: 1.2rem 0 0; padding: 0.9rem 1rem; background: var(--marker-soft); border-radius: var(--radius-s); max-width: var(--measure); }

/* Process: a real sequence, so it is numbered. */
.steps { margin: 2.5rem 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 1rem;
  padding: 1.4rem 0; border-top: 1px solid var(--rule); align-items: baseline;
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step::before {
  content: counter(step); font-family: var(--font-display); font-weight: 760; font-size: var(--step-3); line-height: 1;
}
.step-cost { font-weight: 600; white-space: nowrap; }
.step .prose { color: var(--muted); }
@media (max-width: 40rem) {
  .step { grid-template-columns: 3rem minmax(0, 1fr); }
  .step-cost { grid-column: 2; }
}

/* Projects: alternating rows, screenshots framed like a browser window. */
.projects { margin-top: 3rem; display: grid; gap: clamp(3rem, 7vw, 5rem); }
.project { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.project-flip .project-media { order: 2; }
@media (max-width: 52rem) {
  .project { grid-template-columns: 1fr; }
  .project-flip .project-media { order: 0; }
}
.frame { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-m); overflow: hidden; box-shadow: 0 18px 40px -24px rgba(21, 33, 59, 0.35); }
.frame-bar { height: 1.9rem; border-bottom: 1px solid var(--grid); display: flex; align-items: center; gap: 0.4rem; padding: 0 0.8rem; }
.frame-bar span { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--rule); }
.project-name { margin: 0; font-family: var(--font-display); font-size: var(--step-3); font-weight: 720; font-stretch: 92%; line-height: 1.05; }
.project-kind { margin: 0.35rem 0 0.9rem; color: var(--muted); }
.project-facts { margin: 1rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.project-facts li { padding: 0.25rem 0.6rem; border: 1px solid var(--rule); border-radius: 999px; font-size: 0.85rem; background: var(--sheet); }
.project-link { display: inline-block; margin-top: 1.1rem; font-weight: 600; }
.project-note { margin: 0.6rem 0 0; font-size: var(--step--1); color: var(--muted); }

.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 52rem) { .phones { grid-template-columns: 1fr; } }
.phone-pair { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
@media (max-width: 30rem) { .phone-pair { grid-template-columns: 1fr; } .phone { max-width: 13rem; } }
.phone { border: 6px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--ink); }

/* Price: laid out like the quote a client would receive. */
.quote { margin-top: 2.5rem; max-width: 46rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: clamp(1.2rem, 4vw, 2.2rem); }
.quote-table { width: 100%; border-collapse: collapse; }
.quote-table th, .quote-table td { padding: 0.85rem 0; border-bottom: 1px solid var(--grid); text-align: left; vertical-align: baseline; }
.quote-table th { font-weight: 500; padding-right: 1rem; }
.quote-table td { text-align: right; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.quote-table .quote-main th, .quote-table .quote-main td { font-family: var(--font-display); font-size: var(--step-2); font-weight: 720; }
.quote-marker { padding: 0 0.15em; background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 94%, transparent 94%); }
@media (max-width: 40rem) {
  .quote-table .quote-main th, .quote-table .quote-main td { font-size: var(--step-1); }
}
.quote-table small { display: block; font-weight: 400; font-size: 0.88rem; color: var(--muted); font-family: var(--font-body); }
.quote-foot { margin: 1rem 0 0; font-size: 0.92rem; color: var(--muted); }

/* Checklist + request form */
.request { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); margin-top: 2.5rem; align-items: start; }
@media (max-width: 52rem) { .request { grid-template-columns: 1fr; } }
.checklist { margin: 0.8rem 0 0; padding: 0; list-style: none; }
.checklist li { border-bottom: 1px solid var(--rule); }
.checklist label { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.7rem; padding: 0.7rem 0; cursor: pointer; }
.checklist input { width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; accent-color: var(--ink); }
.checklist-hint { margin: 0.9rem 0 0; font-size: 0.92rem; color: var(--muted); }

.form { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: clamp(1.2rem, 4vw, 2rem); display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 40rem) { .field-row { grid-template-columns: 1fr; } }
.field-label { font-weight: 600; font-size: 0.95rem; }
.field-label small { font-weight: 400; color: var(--muted); }
.input {
  width: 100%; min-height: 2.9rem; padding: 0.6rem 0.75rem;
  border: 1.5px solid #b9c2d1; border-radius: var(--radius-s); background: var(--sheet); color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);
}
.input:focus { outline: 3px solid var(--marker); outline-offset: 0; border-color: var(--ink); }
textarea.input { min-height: 8rem; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-legal { margin: 0; font-size: 0.88rem; color: var(--muted); }
.form-status { margin: 0; padding: 0.8rem 1rem; border-radius: var(--radius-s); font-weight: 500; }
.form-status[hidden] { display: none; }
.form-status-ok { background: #e3f3ea; color: var(--ok); }
.form-status-error { background: #fdecea; color: var(--error); }

/* FAQ */
.faq { margin-top: 2rem; max-width: 46rem; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item:first-child { border-top: 1px solid var(--rule); }
.faq-q { list-style: none; cursor: pointer; padding: 1.1rem 2.2rem 1.1rem 0; position: relative; font-weight: 600; font-size: 1.08rem; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: "+"; position: absolute; right: 0.3rem; top: 0.85rem; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.faq-item[open] .faq-q::after { content: "\2212"; }
.faq-a { margin: 0 0 1.2rem; max-width: var(--measure); color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 2.2rem 0 3rem; font-size: 0.93rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* Legal and thank-you pages */
.page { padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem; }
.page-title { margin: 0 0 1.5rem; font-family: var(--font-display); font-size: var(--step-4); font-weight: 720; line-height: 1.05; }
.legal { max-width: 44rem; }
.legal h2 { margin: 2rem 0 0.5rem; font-family: var(--font-display); font-size: var(--step-1); font-weight: 680; }
.legal p, .legal ul { margin: 0 0 0.8rem; }
