/* Domospacer: architect's drawing table. Warm paper, ink, one terracotta accent. */

@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap; src: url('/vendor/fonts/figtree-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap; src: url('/vendor/fonts/figtree-latin-ext-400.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 500; font-display: swap; src: url('/vendor/fonts/figtree-latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 500; font-display: swap; src: url('/vendor/fonts/figtree-latin-ext-500.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap; src: url('/vendor/fonts/figtree-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap; src: url('/vendor/fonts/figtree-latin-ext-600.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/vendor/fonts/instrument-serif-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/vendor/fonts/instrument-serif-latin-ext-400.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Fallback faces sized to the real fonts (ratios measured in Chrome), so text does not reflow when they arrive. */
@font-face { font-family: 'Figtree Fallback'; src: local('Arial'); size-adjust: 99.6%; }
@font-face { font-family: 'Instrument Serif Fallback'; src: local('Times New Roman'); size-adjust: 82.4%; }

:root {
  --paper: #f3ecdd;
  --paper-deep: #e9dfca;
  --sheet: #fbf7ee;
  --ink: #221e18;
  --ink-soft: #5b5446;
  --ink-faint: #6f6757;
  --rule: rgba(34, 30, 24, .16);
  --rule-strong: rgba(34, 30, 24, .42);
  --accent: #a5481f;
  --accent-deep: #84381a;
  --accent-wash: rgba(165, 72, 31, .11);
  --ok: #3e6a45;
  --serif: 'Instrument Serif', 'Instrument Serif Fallback', 'Times New Roman', serif;
  --sans: 'Figtree', 'Figtree Fallback', system-ui, sans-serif;
  --radius: 3px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background-color: var(--paper);
  /* drafting grid */
  background-image:
    linear-gradient(rgba(34, 30, 24, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 30, 24, .045) 1px, transparent 1px),
    linear-gradient(rgba(34, 30, 24, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 30, 24, .022) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(2.65rem, 7.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* Hover looks only where there is a pointer that hovers: after a tap on a phone, :hover sticks until the next tap elsewhere. */
@media (hover: hover) { a:hover { color: var(--accent-deep); } }
small, .small { font-size: .86rem; }
.muted { color: var(--ink-soft); }
.num { font-variant-numeric: tabular-nums; }
.missing { background: #f4d9b8; padding: 0 .3em; font-weight: 500; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 780px; }

/* header */
.site-head { border-bottom: 1px solid var(--rule); background: rgba(243, 236, 221, .92); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { font-family: var(--serif); font-size: 1.65rem; color: var(--ink); text-decoration: none; line-height: 1; display: inline-flex; align-items: center; gap: 10px; }
@media (hover: hover) { .brand:hover { color: var(--ink); } }
.brand svg { width: 24px; height: 24px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
@media (hover: hover) { .site-nav a:hover { color: var(--accent); } }
.site-nav .btn { color: var(--sheet); }
@media (hover: hover) { .site-nav .btn:hover { color: var(--sheet); } }
.nav-links, .nav-acts { display: flex; align-items: center; gap: 22px; }
.nav-links a[aria-current] { color: var(--accent); }
.site-nav-public a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; font-size: .95rem; }
@media (hover: hover) { .linklike:hover { color: var(--accent); } }
[hidden] { display: none !important; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: var(--sheet); font: 500 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
@media (hover: hover) { .btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--sheet); } }
.btn:disabled { background: var(--paper-deep); border-color: var(--rule-strong); color: var(--ink-faint); cursor: not-allowed; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
@media (hover: hover) { .btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--sheet); } }
.btn-quiet { background: transparent; color: var(--ink-soft); border-color: var(--rule-strong); }
@media (hover: hover) { .btn-quiet:hover { background: transparent; color: var(--accent); border-color: var(--accent); } }
.btn-danger { background: transparent; color: var(--accent); border-color: var(--accent); }
@media (hover: hover) { .btn-danger:hover { background: var(--accent); color: var(--sheet); } }
/* A finger gets the pressed look while it is down instead. */
@media (hover: none) {
  .btn:active:not(:disabled) { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--sheet); }
  .btn-line:active:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
  .btn-quiet:active:not(:disabled) { background: transparent; color: var(--accent); border-color: var(--accent); }
  .btn-danger:active:not(:disabled) { background: var(--accent); color: var(--sheet); }
}
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Consent for Google Analytics. Fixed, so showing it moves nothing on the page. Both answers look the same on purpose. */
.consent { position: fixed; z-index: 50; left: var(--gutter); right: var(--gutter); bottom: max(12px, env(safe-area-inset-bottom, 0px)); max-width: 780px; margin-inline: auto; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: var(--radius); box-shadow: 0 10px 34px rgba(34, 30, 24, .22); font-size: .84rem; line-height: 1.4; }
.consent p { flex: 1 1 100%; min-width: 0; margin: 0; }
/* Two equal answers in one row, each a 44 px touch target. */
.consent .btn-row { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent .btn { min-height: 44px; padding: 6px 10px; font-size: .88rem; }
/* "Szczegóły" stays a word in the sentence, but a finger can hit it: the padding widens what it answers to without moving the text. */
.consent p a { padding: 10px 4px; margin: -10px -4px; }
/* While the fixed box is open, the page keeps that much room under its last line (zgoda.js measures it), so it can be scrolled
   clear of the box: nothing on the page is out of reach before the visitor answers. */
body.consent-open { padding-bottom: var(--consent-room, 0px); }
/* What the page brings into view itself (an answer below a form, a focused field) stops at the top of the box, not under it. */
html.consent-open { scroll-padding-bottom: var(--consent-room, 0px); }
/* While someone types on a touch screen, the keyboard is up and the box would sit between the field, its button and the keys:
   it steps aside until the typing ends (zgoda.js). The answer it waits for and the room under the page stay. */
.consent.is-aside { visibility: hidden; }
/* On a computer a small card in the bottom-left corner, out of the way of the page. */
@media (min-width: 561px) { body:not(:has(.auth-card)) .consent { right: auto; margin-inline: 0; width: min(420px, calc(100% - 2 * var(--gutter))); } }
/* A phone held sideways has little height: one low bar along the bottom, the question beside the two answers. */
@media (min-width: 561px) and (max-height: 500px) {
  body:not(:has(.auth-card)) .consent { right: var(--gutter); width: auto; max-width: 980px; margin-inline: auto; flex-wrap: nowrap; padding: 8px 12px; bottom: max(8px, env(safe-area-inset-bottom, 0px)); }
  body:not(:has(.auth-card)) .consent p { flex: 1 1 auto; }
  body:not(:has(.auth-card)) .consent .btn-row { flex: 0 0 min(320px, 42%); }
}
/* The start page on a computer up to 800 px high (a laptop's window): the same low bar, since the card in the corner would lie
   over the box for the plan. */
@media (min-width: 561px) and (max-height: 800px) {
  body:has(.start-card) .consent { right: var(--gutter); width: auto; max-width: 980px; margin-inline: auto; flex-wrap: nowrap; padding: 8px 12px; bottom: max(8px, env(safe-area-inset-bottom, 0px)); }
  body:has(.start-card) .consent p { flex: 1 1 auto; }
  body:has(.start-card) .consent .btn-row { flex: 0 0 min(320px, 42%); }
}
/* On a phone held upright: a compact bar along the bottom edge, smaller words and the two answers side by side, so it takes
   about 110 px of a 390 px wide phone instead of a sixth of the first screen. The words stay the same. */
@media (max-width: 560px) {
  .consent { left: 0; right: 0; bottom: 0; gap: 6px; padding: 8px 12px max(8px, env(safe-area-inset-bottom, 0px)); font-size: .72rem; line-height: 1.3; border-width: 1px 0 0; border-radius: 0; box-shadow: 0 -6px 20px rgba(34, 30, 24, .16); }
  .consent .btn { min-height: 40px; padding: 4px 8px; font-size: .84rem; }
  .consent p a { padding: 8px 4px; margin: -8px -4px; }
}
/* On the sign-up and log-in pages the banner is an ordinary block under the footer: fixed, it covered the submit button on phones.
   The start page (/zacznij) has the fixed bar again, as on 14.11.2026: as a block under the footer (16.11.2026) the question sat
   far below the first screen. The box for the plan stays above the bar on a phone's first screen (the short-phone rules below). */
body:has(.auth-card) .consent { position: static; flex: none; width: min(780px, calc(100% - 2 * var(--gutter))); margin: 0 auto 24px; box-shadow: none; border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 12px 14px; }

/* landing */
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin: 0 0 12px; }
.wrap-narrow > h1 { margin-bottom: 14px; }
.updated { font-size: .82rem; color: var(--ink-soft); margin: 12px 0 0; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }

.hero { padding: clamp(22px, 2.8vw, 38px) 0 clamp(40px, 6vw, 76px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 1.6vw, 20px); }
.hero h1 { font-size: clamp(2.8rem, 4.85vw, 4.35rem); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-side { display: grid; grid-template-columns: minmax(0, 1.36fr) minmax(0, 1fr); gap: 16px clamp(28px, 4vw, 56px); align-items: start; }
.hero .lede { font-size: 1.02rem; line-height: 1.5; margin: 0; color: var(--ink-soft); }
.hero-note { margin: 10px 0 0; color: var(--ink-soft); }

.shot { margin: 0; position: relative; min-width: 0; }
.shot figcaption { font-size: .86rem; line-height: 1.4; color: var(--ink-soft); margin-top: 8px; }
.shot figcaption b { font-weight: 500; color: var(--ink); }
.shot-frame { border: 1px solid var(--rule-strong); background: var(--paper-deep); overflow: hidden; }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot-stage { position: relative; aspect-ratio: 1800 / 830; background: var(--paper-deep); border: 1px solid var(--rule-strong); overflow: hidden; }
.shot-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; opacity: 0; transition: opacity .55s ease; }
.shot-stage img.is-on { opacity: 1; }
.lp-shot .shot-stage { aspect-ratio: 16 / 10.4; }
.lp-shot .shot-stage img { opacity: 1; object-position: 50% 50%; }

/* an architect's dimension line above the picture */
.dimension {
  display: flex; align-items: center; justify-content: center; height: 16px; margin: 0 0 10px; font-size: .78rem; letter-spacing: .03em; color: var(--ink-soft);
  background:
    linear-gradient(var(--ink-soft), var(--ink-soft)) left center / 1px 13px no-repeat,
    linear-gradient(var(--ink-soft), var(--ink-soft)) right center / 1px 13px no-repeat,
    linear-gradient(var(--rule-strong), var(--rule-strong)) center / 100% 1px no-repeat;
}
.dimension span { background: var(--paper); padding: 0 12px; }

/* the title block of a drawing */
.plate { position: absolute; right: clamp(10px, 1.8vw, 20px); bottom: clamp(10px, 1.8vw, 20px); width: min(318px, 44%); margin: 0; padding: 12px 14px; background: var(--sheet); border: 1px solid var(--ink); color: var(--ink); }
.shot figcaption.plate { margin-top: 0; }
.plate-title { font-family: var(--serif); font-size: 1.28rem; line-height: 1.1; margin: 0 0 3px; }
.plate-text { margin: 0; color: var(--ink-soft); font-size: .84rem; line-height: 1.35; }
.plate-text b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.plate-hours { display: flex; margin-top: 10px; border: 1px solid var(--ink); }
.plate-hours button { flex: 1 1 0; min-height: 40px; padding: 6px 0; background: transparent; border: 0; border-left: 1px solid var(--ink); color: var(--ink); font: 500 .9rem/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.plate-hours button:first-child { border-left: 0; }
@media (hover: hover) { .plate-hours button:hover { background: var(--accent-wash); } }
.plate-hours button.is-on { background: var(--ink); color: var(--sheet); }
.plate-hours button:focus-visible { outline-offset: -4px; }
.plate-hours button.is-on:focus-visible { outline-color: var(--sheet); }

.drawing text { font-family: var(--sans); fill: var(--ink-soft); font-size: 11.5px; }
.drawing .room { font-family: var(--serif); font-size: 21px; fill: var(--ink); }
.drawing .tb { font-size: 9.5px; letter-spacing: .08em; }
.drawing .tb-big { font-family: var(--serif); font-size: 18px; fill: var(--ink); }
.drawing .wall { fill: none; stroke: var(--ink); stroke-width: 10; stroke-linejoin: miter; }
.drawing .wall-in { fill: none; stroke: var(--ink); stroke-width: 4.5; }
.drawing .thin { fill: none; stroke: var(--ink); stroke-width: 1; }
.drawing .dim { fill: none; stroke: var(--ink-soft); stroke-width: .9; }
.drawing .glass { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.2; }
.drawing .sun-path { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 5 5; }
.drawing .sun { fill: var(--accent); }
.drawing .ray { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2 4; }
.drawing .light { fill: var(--accent-wash); stroke: var(--accent); stroke-width: .8; }
.drawing .hour { fill: var(--accent); font-size: 11.5px; }

.section { padding: clamp(44px, 6.4vw, 80px) 0; border-top: 1px solid var(--rule); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; margin-bottom: clamp(24px, 3.4vw, 40px); flex-wrap: wrap; }
.section-head h2 { flex: 1 1 420px; }
.section-head p { flex: 0 1 30em; margin: 0; color: var(--ink-soft); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3.4vw, 40px); }
.step { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: baseline; align-content: start; }
.step-pic { grid-column: 1 / -1; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sheet); border: 1px solid var(--rule-strong); margin-bottom: 16px; }
.step-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.step-pic.plan-sheet { padding: 6px; }
.step-pic.plan-sheet svg { display: block; width: 100%; height: 100%; }
.step .n { font-family: var(--serif); font-size: 2.5rem; color: var(--accent); line-height: 1; }
.step p { grid-column: 1 / -1; margin: 8px 0 0; color: var(--ink-soft); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); }
.plain-list { list-style: none; margin: 18px 0 0; padding: 0; }
.split > .plain-list { margin-top: 0; }
.plain-list li { padding: 12px 0; border-top: 1px solid var(--rule); }
.plain-list li:last-child { border-bottom: 1px solid var(--rule); }
.plain-list strong { font-weight: 600; }
/* /dla-agentow-nieruchomosci: a heading with a paragraph under it in one column of a split, and the listing line, a read-only
   line to copy (public.js, data-copy), beside the picture of a link card. The text column is the wider one, so the line with
   its link fits on one row of a computer screen. */
.split-copy h2 { margin-bottom: 14px; }
.split-copy p { margin: 0 0 12px; }
.listing-demo { align-items: start; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.listing-demo .shot-frame { max-width: 560px; }
.copy-label { margin: 22px 0 6px; font-weight: 500; }
.copy-text { resize: none; line-height: 1.45; font-size: .95rem; margin-bottom: 10px; }
.copy-row { margin-bottom: 14px; }

.sun-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px clamp(28px, 5vw, 64px); align-items: start; }
.sun-copy { grid-row: 1 / span 2; }
.sun-copy h2 { margin-bottom: 18px; }
.sun-copy p:not(.eyebrow) { color: var(--ink-soft); }
.sun-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sun-pair-wide { margin-bottom: clamp(26px, 4vw, 44px); }
.sun-table { grid-column: 2; }
.h-table { margin-bottom: 14px; }

.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border: 1px solid var(--rule-strong); background: var(--sheet); }
.tile { min-width: 0; padding: clamp(18px, 2.4vw, 28px); border-bottom: 1px solid var(--rule); }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--ink-soft); font-size: .98rem; margin: 0 0 10px; }
.tile-around { grid-column: span 7; border-right: 1px solid var(--rule); }
.tile-pic { border: 1px solid var(--rule); overflow: hidden; margin-bottom: 18px; }
.tile-pic img { display: block; width: 100%; height: auto; }
.tile-phone { grid-column: span 5; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 178px); gap: 20px; align-items: center; }
.phone { border: 6px solid var(--ink); border-radius: 24px; overflow: hidden; background: var(--ink); }
.phone img { display: block; width: 100%; height: auto; border-radius: 16px; }
.tile-finish { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(18px, 3vw, 36px); align-items: start; border-bottom: 0; }
.styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.kind { min-width: 0; }
.kind-pic { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-deep); border: 1px solid var(--rule-strong); margin-bottom: 16px; }
.kind-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kind > p { color: var(--ink-soft); margin: 8px 0 0; }
.kind-links { display: flex; flex-direction: column; margin-top: 6px !important; }
.kind-links a { display: inline-flex; align-items: center; min-height: 44px; }
.kind-links a + a { border-top: 1px solid var(--rule); }
.kinds-note { margin: clamp(24px, 3vw, 36px) 0 0; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--ink-soft); }

.compare-wrap { border: 1px solid var(--ink); background: var(--sheet); overflow-x: auto; }
.compare { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; font-size: .93rem; line-height: 1.4; }
.compare th, .compare td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; line-height: 1.15; border-bottom: 1px solid var(--ink); }
.compare thead th span { color: var(--ink-soft); }
.compare tbody th { font-weight: 500; width: 16%; }
.compare th:first-child { position: sticky; left: 0; background: var(--sheet); box-shadow: 1px 0 0 var(--rule); }
.compare td { color: var(--ink-soft); }
.compare td:nth-child(2) { color: var(--ink); }
.compare td:nth-child(2), .compare thead th:nth-child(2) { background: var(--accent-wash); }
/* On a phone the wide table becomes one block per question, and each answer names its method (public.js copies the column
   names into the cells and marks the table; without it the table keeps scrolling sideways). Also on a phone held sideways:
   the table is taller than its screen, so its head would scroll away and its last column was cut. */
@media (max-width: 660px), (max-height: 500px) and (pointer: coarse) {
  .compare-wrap:has(.compare.is-labelled) { overflow-x: visible; }
  .compare.is-labelled { min-width: 0; }
  .compare.is-labelled thead { display: none; }
  .compare.is-labelled, .compare.is-labelled tbody, .compare.is-labelled tr, .compare.is-labelled th, .compare.is-labelled td { display: block; width: auto; }
  .compare.is-labelled tbody tr { border-bottom: 1px solid var(--rule-strong); padding-bottom: 6px; }
  .compare.is-labelled tbody tr:last-child { border-bottom: 0; }
  .compare.is-labelled tbody th { position: static; box-shadow: none; border-bottom: 0; padding: 14px 14px 6px; font-family: var(--serif); font-size: 1.3rem; font-weight: 400; line-height: 1.15; }
  .compare.is-labelled td { border-bottom: 0; padding: 7px 14px; }
  .compare.is-labelled td[data-label]::before { content: attr(data-label); display: block; color: var(--ink); font-weight: 500; font-size: .84rem; }
}
/* Sideways there is room for two answers next to each other under each question. */
@media (min-width: 661px) and (max-height: 500px) and (pointer: coarse) {
  .compare.is-labelled tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6px; padding: 0 6px 8px; }
  .compare.is-labelled tbody th { grid-column: 1 / -1; padding-inline: 8px; }
  .compare.is-labelled td { padding-inline: 8px; }
}

.band { background: var(--ink); color: var(--paper); border-top: 0; }
.band h2 { color: var(--sheet); }
.band-lead { color: #c9bfa9; margin: 10px 0 0; }
.band .plain-list li { border-color: rgba(243, 236, 221, .22); }
.band :focus-visible { outline-color: var(--paper); }

.titleblock { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); background: var(--sheet); border: 1px solid var(--ink); }
.titleblock > div { padding: clamp(22px, 3.5vw, 40px); }
.titleblock > div + div { border-left: 1px solid var(--ink); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
.titleblock p { margin: 0; }
.price { font-family: var(--serif); font-size: clamp(3.4rem, 8vw, 5.2rem); line-height: 1; }
.price small { font-family: var(--sans); font-size: 1rem; color: var(--ink-soft); }
.tiers td { font-family: var(--serif); font-size: 1.45rem; line-height: 1.1; color: var(--ink); white-space: nowrap; }
.tiers tbody th { width: auto; vertical-align: middle; white-space: nowrap; }
.titleblock .tiers { margin: 0; }
.read-banner { margin: 0 0 16px; padding: 10px 14px; background: var(--sheet); border-left: 2px solid var(--accent); }
.read-wait { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 6px; }
.build { display: grid; justify-items: center; gap: 4px; margin: 10px 0 14px; padding: 18px 16px 16px; background: var(--paper); border: 1px solid var(--rule); text-align: center; }
.build .bs { display: block; width: 100%; max-width: 400px; height: auto; }
.build-step { margin: 6px 0 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; color: var(--ink); }
.build-late { margin: 6px 0 0; color: var(--accent-deep); font-weight: 500; }
.bs-solid { fill: var(--ink); }
.bs-mark { fill: var(--accent); }
.bs-stroke { stroke: var(--ink); stroke-width: 1.4; fill: none; }
.bs-thin { stroke: var(--ink); stroke-width: 1; fill: none; }
.bs-box { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.bs-paint { fill: var(--accent); fill-opacity: .2; }
.bs-roof { fill: var(--paper-deep); }
.bs-flat .bs-crane, .bs-flat .bs-roof { display: none; }
.bs-part { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .45s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.bs-part.on { opacity: 1; transform: none; }
.bs-rise { transform: scaleY(.03); }
.bs-widen { transform: scaleX(.05); }
.bs-pop { transform: scale(.82); }
.bs-drop { transform: translateY(-20px); }
.bs-tool { opacity: 0; transition: opacity .3s ease; }
.bs-tool.on { opacity: 1; }
.bs-trolley { animation: bs-trolley 7s ease-in-out infinite alternate; }
.bs-hammer { transform-box: fill-box; transform-origin: 50% 100%; animation: bs-hammer .55s ease-in infinite alternate; }
.bs-roller { animation: bs-roller 1.1s ease-in-out infinite alternate; }
.bs-wrench { transform-box: fill-box; transform-origin: 0 50%; animation: bs-wrench .7s ease-in-out infinite alternate; }
@keyframes bs-trolley { to { transform: translateX(110px); } }
@keyframes bs-hammer { from { transform: rotate(-26deg); } to { transform: rotate(14deg); } }
@keyframes bs-roller { from { transform: translateY(8px); } to { transform: translateY(-26px); } }
@keyframes bs-wrench { from { transform: rotate(-22deg); } to { transform: rotate(16deg); } }
.read-result { display: grid; gap: 16px; margin-bottom: 20px; }
.read-result p { margin: 0; }
.quote-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 12px 16px; border: 1px solid var(--rule-strong); background: var(--sheet); }
.quote-strip p { flex: 1 1 260px; min-width: 0; font-size: 1.12rem; }
.frames { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.frames .shot-frame { aspect-ratio: 16 / 9; }
.frames .shot-frame img { height: 100%; object-fit: cover; }
@media (max-width: 880px) { .frames { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.model-invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 16px; background: var(--sheet); border-left: 2px solid var(--accent); }
.model-invite > div { flex: 1 1 260px; min-width: 0; }
.model-invite strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; }
.model-invite p { margin-top: 3px; }
/* what the walkthrough adds to the free preview, under it */
.order-perks { padding: 14px 16px; border: 1px solid var(--rule); background: var(--sheet); }
.order-perks h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.4rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); }
.perk-list { list-style: none; margin: 0; padding: 0; }
.perk-list li { padding: 7px 0 7px 22px; position: relative; border-top: 1px solid var(--rule); }
.perk-list li:first-child { border-top: 0; }
.perk-list li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 9px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.perk-list strong { font-weight: 600; }
.perk-demo { margin-top: 10px !important; }
.pay-promise { color: var(--ink); }
.read-level { margin: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.read-plan { display: block; width: 100%; height: auto; background: var(--sheet); border: 1px solid var(--rule); }
.rp-wall { stroke: var(--ink); stroke-linecap: square; }
.rp-gap { stroke: var(--sheet); }
.rp-glass { stroke: var(--accent); }
.rp-name, .rp-area { fill: var(--ink); text-anchor: middle; font-family: var(--sans); }
.rp-area { fill: var(--ink-soft); }
.read-rooms { list-style: none; margin: 8px 0 0; padding: 0; font-size: .95rem; }
.read-rooms li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--rule); }
.read-rooms li span:last-child { white-space: nowrap; color: var(--ink-soft); }
@media (max-width: 640px) { .read-level { grid-template-columns: minmax(0, 1fr); } }

.faq-side { position: sticky; top: 24px; align-self: start; }
.faq-side h2 { margin-bottom: 14px; }
.faq-list { min-width: 0; }
.faq details { border-top: 1px solid var(--rule); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 12px 32px 12px 0; font-weight: 500; position: relative; list-style: none; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 6px; font-family: var(--serif); font-size: 1.7rem; color: var(--accent); line-height: 1.3; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-soft); max-width: 44em; }

/* pages for one kind of search */
.lp-hero { padding: clamp(28px, 4.2vw, 56px) 0 clamp(36px, 5vw, 60px); }
.lp-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(26px, 4.6vw, 60px); align-items: center; }
.lp-copy { min-width: 0; }
.lp-copy h1 { font-size: clamp(2.5rem, 4.9vw, 3.9rem); margin-bottom: 18px; }
.answer { font-size: 1.05rem; line-height: 1.55; margin: 0 0 22px; padding-left: 16px; border-left: 2px solid var(--accent); }
.h-facts { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: clamp(18px, 2.6vw, 28px); }
.facts { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--ink); font-size: .98rem; line-height: 1.4; }
.facts th, .facts td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.facts tbody tr:last-child > * { border-bottom: 0; }
.facts tbody th { width: 27%; font-weight: 500; }
.facts td { color: var(--ink-soft); }
.facts thead th { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; border-bottom: 1px solid var(--ink); }
.facts-note { margin: 12px 0 0; }
.media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4.6vw, 60px); align-items: center; }
.media-text { min-width: 0; }
.media-text h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 14px; }
.media-text p { color: var(--ink-soft); }
.media-text .facts { margin-top: 18px; font-size: .92rem; }
.code { margin: 0 0 12px; padding: 14px; background: var(--ink); color: var(--paper); font: 13px/1.55 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.related h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 18px; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.related-list li { border-top: 1px solid var(--ink); padding: 10px 0 0; }
.related-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.related-list span { display: block; color: var(--ink-soft); font-size: .95rem; }

/* footer */
.site-foot { border-top: 1px solid var(--rule); padding: 36px 0 44px; font-size: .9rem; color: var(--ink-soft); margin-top: 40px; }
.band + .site-foot, .related + .site-foot { margin-top: 0; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-foot p { margin: 0 0 4px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot .foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 48px); }
.foot-name { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); line-height: 1.1; margin-bottom: 8px !important; }
.foot-company { margin-top: 14px !important; }
.foot-h { font-weight: 500; color: var(--ink); margin-bottom: 8px !important; }
.foot-col a { display: flex; align-items: center; min-height: 34px; color: var(--ink-soft); text-decoration: none; }
@media (hover: hover) { .foot-col a:hover { color: var(--accent); text-decoration: underline; } }

@media (max-width: 1080px) {
  .site-head .wrap:has(.site-nav-public) { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 12px; padding-bottom: 0; }
  .site-nav-public { display: contents; }
  .site-nav-public .nav-acts { grid-column: 2; grid-row: 1; justify-content: flex-end; gap: 14px; }
  .site-nav-public .nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 16px; overflow-x: auto; scrollbar-width: none; margin: 2px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); border-top: 1px solid var(--rule); }
  .site-nav-public .nav-links::-webkit-scrollbar { display: none; }
}

/* One column: the picture on top, except on the ads' landing pages (with .lp-acts), where the words, the price and the button
   come first and the film right under them, so a visitor on a phone sees what to do and what it costs on the first screen. */
@media (max-width: 980px) {
  .lp-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-grid:not(:has(.lp-acts)) .lp-shot { order: -1; }
}

@media (max-width: 880px) {
  /* The home page in one column: headline, what to upload with the price and the button, the film, then the longer words. */
  .hero-side { display: contents; }
  .hero-head { order: 1; }
  .hero-buy { order: 2; }
  .hero-shot, .hero-film { order: 3; }
  .hero-more { order: 4; }
  .sun-grid, .media { grid-template-columns: minmax(0, 1fr); }
  .sun-copy, .sun-table { grid-row: auto; grid-column: auto; }
  .media-pic { order: -1; }
  .tile-around, .tile-phone { grid-column: 1 / -1; border-right: 0; }
  .tile-finish { grid-template-columns: minmax(0, 1fr); }
  .faq-side { position: static; }
  .site-foot .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-about { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .plate { position: static; width: auto; padding: 10px 0 0; border: 0; background: transparent; }
  .plate-hours button { min-height: 44px; }
  .shot-stage { aspect-ratio: 3 / 2; }
  .tile-phone { grid-template-columns: minmax(0, 1fr) 140px; }
}

@media (max-width: 660px) {
  .steps, .kinds, .related-list { grid-template-columns: minmax(0, 1fr); }
  .step-pic { aspect-ratio: 16 / 10; }
  .related-list li { padding-bottom: 10px; }
}

@media (max-width: 560px) {
  .styles { gap: 6px; }
  .styles figcaption { font-size: .78rem; }
  .sun-pair { gap: 8px; }
  .site-nav-public .btn-sm { min-height: 44px; padding: 6px 10px; }
  .brand { font-size: 1.38rem; gap: 7px; min-height: 44px; }
  .brand svg { width: 20px; height: 20px; }
  .nav-acts { gap: 10px !important; font-size: .94rem; }
  .site-nav-public .nav-links { gap: 8px; font-size: .9rem; }
  .site-nav-public .nav-links a { font-size: .9rem; }
  /* The row scrolls sideways: a fade at the right edge shows there is more. */
  .site-nav-public .nav-links { padding-right: 44px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  .tile-phone { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .tile-phone .tile-text { justify-self: stretch; }
  .phone { width: min(230px, 70%); }
  /* A link that wraps to two lines keeps a gap to the next one, so the column does not read as one run of text. */
  .foot-col a { min-height: 44px; padding-block: 6px; line-height: 1.3; }
  .facts-wide thead { display: none; }
  .facts-wide, .facts-wide tbody, .facts-wide tr, .facts-wide th, .facts-wide td { display: block; width: auto; }
  .facts-wide tbody tr { padding: 11px 14px; border-bottom: 1px solid var(--rule); }
  .facts-wide tbody tr:last-child { border-bottom: 0; }
  .facts-wide tbody th, .facts-wide td { padding: 0; border: 0; }
  .facts-wide tbody th { width: auto; } /* the row's name takes the whole width, not the column share of the wide table */
  .facts-wide td { margin-top: 3px; }
  /* The head of a stacked table is hidden, so each value says which column it is from (public.js copies the names). */
  .facts-wide td[data-label]::before { content: attr(data-label) ": "; color: var(--ink); font-weight: 500; }
  .facts:not(.facts-wide) tbody th { width: 38%; }
}

/* Small phones: the wordmark and the two actions keep a visible gap on one row down to 320 px. */
@media (max-width: 400px) {
  .site-head .wrap:has(.site-nav-public) { column-gap: 10px; }
  .brand { font-size: 1.2rem; gap: 6px; }
  .site-nav-public .nav-acts { gap: 8px !important; }
  .site-nav-public .nav-acts a:not(.btn) { font-size: .88rem; }
  .site-nav-public .nav-acts .btn-sm { padding: 6px 8px; font-size: .84rem; }
}
@media (max-width: 340px) { .site-head .brand svg { display: none; } }

/* forms and panels */
.page { padding: clamp(28px, 5vw, 56px) 0; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); overflow-wrap: anywhere; }
.page-head p { margin: 10px 0 0; color: var(--ink-soft); }
.danger-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 4px 2px; color: var(--ink-soft); font-size: .92rem; }
.card { background: var(--sheet); border: 1px solid var(--rule-strong); padding: clamp(18px, 3.5vw, 32px); margin-bottom: 20px; }
.card h2 { font-size: 1.9rem; margin-bottom: 10px; }
.card h3 { margin-bottom: 8px; }
.auth-card { max-width: 440px; margin: 0 auto; }
.h-card { font-size: 2.3rem; margin-bottom: 18px; }
label, .label { display: block; font-weight: 500; font-size: .94rem; margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.field small { display: block; color: var(--ink-soft); margin-top: 5px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  display: block; width: 100%; min-height: 46px; padding: 10px 12px; font: 400 1rem/1.3 var(--sans); color: var(--ink);
  background: #fffdf8; border: 1px solid var(--rule-strong); border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 1px solid var(--accent); outline-offset: 0; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 400; font-size: .96rem; margin-bottom: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-error { color: var(--accent-deep); background: var(--accent-wash); border-left: 3px solid var(--accent); padding: 10px 14px; margin: 0 0 16px; font-size: .95rem; }
.form-ok { color: var(--ok); background: rgba(62, 106, 69, .1); border-left: 3px solid var(--ok); padding: 10px 14px; margin: 0 0 16px; font-size: .95rem; }
.form-foot { margin-top: 16px; font-size: .95rem; color: var(--ink-soft); }
.form-foot-rows { display: grid; justify-items: start; }
.after-summary { margin-top: 18px; }
details > summary.btn { list-style: none; width: fit-content; }
details > summary.btn::-webkit-details-marker { display: none; }

.status { display: inline-block; font-size: .8rem; font-weight: 500; padding: 3px 9px; border: 1px solid var(--rule-strong); border-radius: 2px; color: var(--ink-soft); white-space: nowrap; }
.status-review, .status-paid, .status-processing { border-color: var(--accent); color: var(--accent); }
.status-published { border-color: var(--ok); color: var(--ok); }
.status-failed { background: var(--accent); border-color: var(--accent); color: var(--sheet); }

.project-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.project-list li { border-bottom: 1px solid var(--rule); }
.project-list a { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 16px 4px; color: var(--ink); text-decoration: none; }
@media (hover: hover) { .project-list a:hover { background: var(--accent-wash); } }
.project-list .name { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; overflow-wrap: anywhere; }
.project-list .when { font-size: .86rem; color: var(--ink-soft); }

/* wizard */
.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 24px; padding: 0; border: 1px solid var(--rule-strong); background: var(--sheet); }
.stepper li + li { border-left: 1px solid var(--rule); }
.stepper button { width: 100%; height: 100%; background: none; border: 0; padding: 12px 14px; font: 400 .92rem/1.25 var(--sans); color: var(--ink-soft); text-align: left; cursor: pointer; display: flex; gap: 8px; align-items: baseline; }
.stepper button:disabled { cursor: default; color: var(--ink-faint); }
.stepper .i { font-family: var(--serif); font-size: 1.3rem; line-height: 1; }
.stepper .is-current button { background: var(--ink); color: var(--sheet); }
.stepper .is-done .i { color: var(--accent); }

.kind-choice { border: 0; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kind-choice legend { font-weight: 500; font-size: .94rem; margin-bottom: 8px; padding: 0; }
.kind-option { position: relative; margin: 0; cursor: pointer; }
.kind-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kind-option span { display: flex; align-items: center; justify-content: center; height: 100%; text-align: center; padding: 11px 6px; border: 1px solid var(--rule-strong); background: #fffdf8; font-size: .95rem; }
.kind-option input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
.kind-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.dropzone { display: block; border: 1.5px dashed var(--rule-strong); padding: clamp(26px, 5vw, 44px) 20px; text-align: center; cursor: pointer; background: #fffdf8; font-weight: 400; margin-bottom: 16px; transition: border-color .15s ease, background-color .15s ease; }
.dropzone.is-over { border-color: var(--accent); background: var(--accent-wash); }
@media (hover: hover) { .dropzone:hover { border-color: var(--accent); background: var(--accent-wash); } }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Out of sight but still in the keyboard order and the accessibility tree, unlike the hidden attribute. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap; }
.dropzone strong { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin-bottom: 4px; }
.plan-need { border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; margin: 0 0 18px; }
.plan-need p { margin: 0 0 10px; }
.plan-examples-body { display: grid; gap: 22px; margin-top: 18px; }
.plan-examples-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.read-failed .btn-row { margin-top: 18px; }
.wzory { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 16px; }
.wzory-dobre { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.wzor { margin: 0; min-width: 0; }
.wzor img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; border: 1px solid var(--rule-strong); }
.wzor-dobry img { object-fit: contain; }
.wzor figcaption { margin-top: 6px; font-size: .92rem; color: var(--ink-soft); }
.wzor figcaption strong { display: block; color: var(--ink); font-weight: 500; }
.wzor-dobry figcaption strong::before { content: '✓ '; color: var(--ok); }
.wzor-zly figcaption strong::before { content: '✕ '; color: var(--accent); }
.file-list { list-style: none; margin: 0 0 18px; padding: 0; }
.file-list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.file-list .fname { overflow-wrap: anywhere; flex: 1 1 auto; min-width: 0; }
.file-list .fsize { color: var(--ink-soft); font-size: .86rem; white-space: nowrap; }
.progress { height: 3px; background: var(--paper-deep); margin-top: 5px; }
.progress > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s linear; }
.wait-box { margin: 0 0 16px; padding: 12px 14px; background: var(--sheet); border-left: 3px solid var(--accent); }
.wait-box p { margin: 0 0 10px; }
.wait-box .progress { height: 6px; margin-top: 0; }

.guide-body { max-width: 46em; line-height: 1.6; }
.guide-body li { margin-bottom: .55em; }
.guide-plan { margin: 0; }
.guide-plan img { width: 100%; height: auto; border: 1px solid var(--rule-strong); }
.sun-tool h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); margin-bottom: 14px; }
.sun-results { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--rule); }
.sun-results li { border-bottom: 1px solid var(--rule); }
/* Each place is a whole row to choose, with an arrow, so it reads as something to press. */
.sun-pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 8px 4px; background: none; border: 0; font: 500 .98rem/1.35 var(--sans); color: var(--accent); text-align: left; cursor: pointer; }
.sun-pick::after { content: '›'; flex: none; font-size: 1.5rem; line-height: 1; }
@media (hover: hover) { .sun-pick:hover { background: var(--accent-wash); } }
.sun-result { margin-top: 22px; }
.sun-place { font-weight: 600; margin: 0 0 12px; }
.sun-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
.sun-stage canvas { display: block; width: 100%; height: auto; border: 1px solid var(--rule-strong); cursor: crosshair; touch-action: manipulation; }
.sun-side { display: grid; gap: 14px; min-width: 0; }
.sun-side input[type=range] { width: 100%; }
.sun-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.sun-legend { display: flex; align-items: center; gap: 10px; font-size: .86rem; }
.sun-legend[hidden] { display: none; }
.sun-legend i { flex: 1 1 auto; height: 10px; background: linear-gradient(90deg, rgb(42, 58, 94), rgb(158, 96, 92), rgb(233, 150, 72), rgb(255, 226, 130)); }
.sun-summary { margin: 0; font-size: 1.05rem; line-height: 1.45; padding-left: 14px; border-left: 2px solid var(--accent); }
.sun-year caption { caption-side: top; text-align: left; padding-bottom: 6px; }
.sun-year th, .sun-year td { padding: 5px 10px; font-size: .92rem; }
.sun-more { margin: 22px 0 10px; }
.sun-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; margin: 22px 0 10px; padding: 18px 20px; background: var(--sheet); border: 1px solid var(--rule-strong); }
.sun-cta h2 { font-size: 1.6rem; margin: 0 0 4px; }
.sun-cta p { margin: 0; max-width: 46em; }
@media (max-width: 760px) {
  .sun-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* One column on a phone: what changes the drawing (the mode, the hour, the day) comes right under it, so the shadows move
     in sight while a finger drags the hour. The summary and the table of the year follow. */
  .sun-stage, .sun-side { display: contents; }
  .sun-stage canvas { order: 1; }
  .sun-hint { order: 2; margin: -4px 0 0; }
  .sun-modes { order: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sun-modes .pill { line-height: 1.2; }
  #sun-hour-field, .sun-legend { order: 4; }
  #sun-hour-field { margin-bottom: 0; }
  .sun-month-field { order: 5; margin-bottom: 0; }
  .sun-summary { order: 6; }
  .sun-year { order: 7; }
}
/* A phone, upright or sideways: the address field and its button right under the title, the explanation after them (and after
   the list of places, before the result). The first screen then shows the tool itself, also above an open cookie box. */
@media (max-width: 560px), (max-height: 500px) {
  .sun-tool { padding-top: 24px; }
  .sun-tool > .wrap { display: flex; flex-direction: column; }
  .sun-tool > .wrap > h1 { margin-bottom: 16px; }
  .sun-tool > .wrap > .geo-form { margin-bottom: 14px; }
  .sun-tool > .wrap > .answer { order: 1; margin: 6px 0 0; }
  .sun-tool > .wrap > .updated { order: 1; }
  .sun-tool > .wrap > .sun-result { order: 2; }
}
/* The smallest phones: the title in two lines, as on the others. */
@media (max-width: 340px) { .sun-tool > .wrap > h1 { font-size: 2rem; } }
/* A phone held sideways: the square drawing no taller than the screen, so it can be seen whole beside the controls. */
@media (max-height: 500px) and (min-width: 561px) { .sun-stage canvas { width: min(100%, 80dvh); margin-inline: auto; } }

#map { height: 420px; height: min(420px, 75dvh); border: 1px solid var(--rule-strong); margin-bottom: 14px; background: var(--paper-deep); }
/* Low screens (a phone, upright or sideways): the map leaves room above or below it for a finger to scroll the page. */
@media (max-width: 560px), (max-height: 500px) { #map { height: 320px; height: min(320px, 62dvh); } }
.geo-form { display: flex; gap: 10px; margin-bottom: 10px; }
.geo-form input { flex: 1 1 auto; min-width: 0; }
.geo-form .btn { flex: none; white-space: nowrap; }
.geo-results { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--rule); }
.geo-results button { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule); padding: 9px 4px; font: 400 .93rem/1.35 var(--sans); color: var(--ink); cursor: pointer; }
@media (hover: hover) { .geo-results button:hover { background: var(--accent-wash); } }

.summary { margin: 0 0 22px; }
.summary > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.summary dt { color: var(--ink-soft); font-size: .92rem; }
.summary dd { margin: 0; overflow-wrap: anywhere; }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0 18px; }
.pay-total b { font-family: var(--serif); font-weight: 400; font-size: 2.4rem; line-height: 1; }
.test-note { font-size: .92rem; background: var(--accent-wash); border-left: 3px solid var(--accent); padding: 10px 14px; margin-bottom: 16px; }

.timeline { list-style: none; margin: 8px 0 22px; padding: 0; }
.timeline li { position: relative; padding: 0 0 22px 32px; color: var(--ink-faint); }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 7px; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--rule-strong); background: var(--sheet); }
.timeline li::after { content: ''; position: absolute; left: 11px; top: 22px; bottom: -3px; width: 1.5px; background: var(--rule); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--ink); border-color: var(--ink); }
.timeline li.now { color: var(--ink); font-weight: 500; }
.timeline li.now::before { background: var(--accent); border-color: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
.timeline small { display: block; color: var(--ink-soft); font-weight: 400; }
@keyframes pulse { 50% { opacity: .35; } }

/* the hidden frame in which the owner's browser draws the picture for link previews: it has to be rendered, so it is not display: none */
.thumb-frame { position: fixed; left: 0; top: 0; width: 640px; height: 360px; border: 0; opacity: 0; pointer-events: none; z-index: -1; }
.share-box { display: flex; gap: 10px; align-items: stretch; margin-bottom: 14px; }
.share-box input { flex: 1 1 auto; min-width: 0; font-size: .92rem; }
#progress-notes:not(:empty) { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule); }
.notes-list { margin: 8px 0 0; padding-left: 1.2em; color: var(--ink-soft); font-size: .95rem; }
#plan-tips { margin-bottom: 14px; }

dialog { border: 1px solid var(--ink); background: var(--sheet); color: var(--ink); padding: 26px; max-width: min(460px, calc(100vw - 32px)); width: 100%; }
dialog::backdrop { background: rgba(34, 30, 24, .45); }
dialog h3 { margin-bottom: 10px; }

/* staff */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pill { font: 400 .9rem/1 var(--sans); background: transparent; color: var(--ink-soft); border: 1px solid var(--rule-strong); padding: 8px 12px; cursor: pointer; border-radius: 2px; }
.pill[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
.staff-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
table.staff { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--sheet); }
table.staff th { text-align: left; font-weight: 500; color: var(--ink-soft); font-size: .82rem; padding: 10px 12px; border-bottom: 1px solid var(--rule-strong); }
table.staff td { padding: 11px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: break-word; }
#list-card { padding: 0; overflow-x: auto; }
#list-card #none { padding: 16px; margin: 0; }
table.staff tr.row { cursor: pointer; }
@media (hover: hover) { table.staff tr.row:hover td { background: var(--accent-wash); } }
table.staff tr.selected td { background: var(--accent-wash); }
.detail h2 { font-size: 1.7rem; overflow-wrap: anywhere; }
.detail .summary > div { grid-template-columns: 110px minmax(0, 1fr); }
pre.err { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--accent-wash); padding: 10px 12px; font-size: .85rem; margin: 0 0 14px; }

/* legal */
.legal h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.75rem; margin: 2em 0 .5em; }
.legal ol, .legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .5em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0; }
.legal th, .legal td { border: 1px solid var(--rule-strong); padding: 8px 10px; text-align: left; vertical-align: top; overflow-wrap: break-word; }
/* Words are broken only between them. Three columns of long Polish words do not fit a phone, so there such a table is stacked:
   one block per row, the first cell as its heading, the others with their column's name (public.js copies it). */
@media (max-width: 440px) {
  .legal table:has(thead th:nth-child(3)) thead { display: none; }
  .legal table:has(thead th:nth-child(3)), .legal table:has(thead th:nth-child(3)) tbody, .legal table:has(thead th:nth-child(3)) tr, .legal table:has(thead th:nth-child(3)) td { display: block; }
  .legal table:has(thead th:nth-child(3)) tr { border: 1px solid var(--rule-strong); border-bottom: 0; padding: 8px 10px; }
  .legal table:has(thead th:nth-child(3)) tr:last-child { border-bottom: 1px solid var(--rule-strong); }
  .legal table:has(thead th:nth-child(3)) td { border: 0; padding: 2px 0; }
  .legal table:has(thead th:nth-child(3)) td:first-child { font-weight: 500; color: var(--ink); }
  .legal table:has(thead th:nth-child(3)) td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; font-weight: 500; color: var(--ink); }
}
.legal blockquote { margin: 1em 0; padding: 14px 18px; background: var(--sheet); border: 1px solid var(--rule-strong); font-size: .95rem; }

@media (max-width: 880px) {
  .split, .staff-grid { grid-template-columns: minmax(0, 1fr); }
  .titleblock { grid-template-columns: minmax(0, 1fr); }
  .titleblock > div + div { border-left: 0; border-top: 1px solid var(--ink); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-nav { gap: 14px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .stepper { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stepper button { flex-direction: column; gap: 2px; padding: 9px 8px; font-size: .76rem; }
  .summary > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .btn-row .btn { flex: 1 1 auto; }
  .share-box, .geo-form { flex-direction: column; }
  table.staff thead { display: none; }
  table.staff tr { display: block; border-bottom: 1px solid var(--rule-strong); padding: 8px 0; }
  table.staff td { display: block; padding: 3px 10px; border: 0; }
  .project-list a { flex-direction: column; align-items: flex-start; gap: 6px; }
}

.embed-box { display: grid; gap: 8px; margin-top: 16px; justify-items: start; }
.embed-box textarea { width: 100%; font: 12.5px/1.5 ui-monospace, Consolas, monospace; padding: 10px; resize: vertical; box-sizing: border-box; }

/* Free preview and paid walkthrough side by side (cennik and the house and flat pages). */
.free-paid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); }
.free-paid h3 { margin: 0 0 4px; font-size: 1.15rem; }
@media (max-width: 720px) { .free-paid { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* Order form: a missing consent is marked, and the help line under the pay button. */
.check-missing { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.pay-help { margin: 12px 0 8px; }

/* silent film of the walkthrough over the still picture; the film is fetched and started by film.js only when it is in view */
.film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.film.is-live .film-video { opacity: 1; }
.film-toggle { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(34, 30, 24, .7); color: var(--sheet); cursor: pointer; }
.film-toggle[hidden] { display: none; }
/* On a phone the button sits in the film's top corner: the bottom of the first screen is where the cookie box and the browser's
   own bars are, and the hero film ends right there. The same on a phone on its side. */
@media (max-width: 560px), (max-height: 500px) { .film-toggle { top: 8px; bottom: auto; } }
/* A phone on its side: the film is never taller than the screen, so it can be seen whole, with its button. The picture keeps its
   proportions (--film-ratio is the stage's width to height), so the figure narrows to the width that fits and stands in the middle. */
@media (max-height: 500px) {
  .film { --film-ratio: 1.5385; width: 100%; max-width: calc((100vh - 40px) * var(--film-ratio)); max-width: calc((100dvh - 40px) * var(--film-ratio)); margin-inline: auto; }
  .hero-film { --film-ratio: 2.1687; }
}
@media (max-height: 500px) and (max-width: 760px) { .hero-film { --film-ratio: 1.5; } }
@media (hover: hover) { .film-toggle:hover { background: var(--ink); } }
.film-toggle:focus-visible { outline: 2px solid var(--sheet); outline-offset: -5px; }
.film-toggle::before { content: ''; width: 11px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; box-sizing: border-box; }
.film-toggle.is-paused::before { width: 0; height: 0; border: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.film-wide { max-width: 860px; margin-inline: auto; }
.film figcaption a { color: inherit; text-underline-offset: 2px; }
.hero-film .shot-stage img { object-position: 50% 50%; } /* the still of the film in the home page hero, cut as the film is */

/* sign-in with Google: Google's light button (white, grey outline, the four-colour "G"), then a line between it and the e-mail form */
.btn-google { width: 100%; gap: 12px; background: #fff; color: #1f1f1f; border-color: #747775; font-weight: 500; }
@media (hover: hover) { .btn-google:hover { background: #f7f8f8; color: #1f1f1f; border-color: #747775; } }
@media (hover: none) { .btn-google:active:not(:disabled) { background: #f1f3f4; color: #1f1f1f; border-color: #747775; } }
.btn-google:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.google-mark { flex: none; }
.google-note { margin: 10px 0 0; font-size: .92rem; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--ink-soft); font-size: .92rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--rule-strong); }

/* trying without an account: the start on the sign-up page, and the box asking a guest to save the project on an account */
.guest-start { padding: 14px 16px; border: 1px solid var(--rule-strong); background: var(--sheet); }
.guest-start p { margin: 0 0 12px; }
.guest-start .btn { width: 100%; }
.guest-save { display: grid; gap: 10px; padding: 14px 16px; margin-bottom: 20px; border-left: 2px solid var(--accent); background: var(--sheet); }
.guest-save p { margin: 0; }
.guest-save .btn-row { margin: 0; }
.guest-pay h3 { margin: 6px 0 10px; font-size: 1.4rem; }
.guest-pay .guest-save { margin-bottom: 0; }

/* drawing the plan oneself: the offer under the upload in step 1, and the way to the editor in step 4 */
.draw-choice { display: grid; gap: 10px; margin-top: 22px; padding: 14px 16px; border: 1px dashed var(--rule-strong); background: var(--sheet); }
#draw-on { border-style: solid; margin-top: 0; }
.draw-choice p, .draw-choice h2 { margin: 0; }
.draw-choice .btn-row { margin: 0; }
.draw-invite { display: grid; gap: 12px; padding: 14px 16px; background: var(--sheet); border-left: 2px solid var(--accent); }
.draw-invite p { margin: 0; }
.draw-invite .btn { justify-self: start; }
.cta-note { margin: 10px 0 0; font-size: .92rem; color: var(--ink-soft); }

/* the start page (/zacznij): the first step of a project, with the upload, before any account */
.start-card .kind-choice { margin-bottom: 18px; }
.start-card h2 { margin: 6px 0 8px; }
.start-card .dropzone { margin-top: 6px; }
.start-wait { margin: 12px 0 0; font-weight: 500; }
.start-account { margin: 18px 0 0; }
/* one line on the project page for a guest; the full box waits for the order */
.guest-bar { margin: 0 0 18px; padding: 10px 14px; border-left: 2px solid var(--accent); background: var(--sheet); font-size: .94rem; color: var(--ink-soft); }

/* the end of the examples of plans in step 1: a way to fold them from below, two screens away from their own button */
.plan-examples-end { margin: 0; }

/* a guest about to sign out: the way to keep the projects comes first */
.leave-dialog .btn-row { margin-top: 4px; }
.leave-dialog .btn-google { width: auto; }
.leave-dialog .leave-out { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }

/* Touch screens: every control at least about 44 px high for a fingertip, including the small buttons and links in a line of text. */
@media (pointer: coarse) {
  .btn-sm { min-height: 44px; }
  .brand { min-height: 44px; }
  .site-nav a, .site-nav .linklike { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
  /* The public footer's columns, also on a phone held sideways (upright phones get the same from the 560 px block). */
  .foot-col a { min-height: 44px; padding-block: 6px; line-height: 1.3; }
  /* A link on its own in a short line (under a form, the account line on the start page, the help under the order, the guest
     boxes): a 44 px high box around the words. A long one wraps inside its box. */
  .form-foot a, .start-account a, .auth-card > p.muted a, .pay-help a, #plan-offer a, .perk-demo a,
  .guest-bar a, .guest-save p a, .leave-dialog p a { display: inline-flex; align-items: center; min-height: 44px; }
  /* The two links under the log-in form are on separate rows with a gap, so a near miss does not hit the other one. */
  .form-foot-rows { gap: 6px; }
  /* A tick box answers to its whole row, at least 44 px high even when its words fit on one line. */
  .check { padding-block: 11px; margin-bottom: 2px; }
  /* The rows are only 2 px apart here, so the frame of a missing tick is drawn inside the row's own top and bottom padding
     (an outline cannot have a different offset per side): frames of neighbouring rows keep a 10 px gap and the last one does
     not run into what follows. Sideways it sits where the desktop outline does. */
  .check-missing { position: relative; outline: none; }
  .check-missing::after { content: ''; position: absolute; inset: 4px -6px; border: 2px solid var(--accent); border-radius: 4px; pointer-events: none; }
  .pill { min-height: 44px; padding: 8px 14px; }
  .sun-side input[type=range] { height: 44px; margin: 0; accent-color: var(--accent); }
  /* Leaflet's zoom buttons are 30 px even on touch, and the rows of its layers list about 27 px. */
  #map.leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }
  #map .leaflet-control-layers-list label { display: flex; align-items: center; min-height: 44px; }
  #map .leaflet-control-layers-list .layers-close { min-height: 44px; }
}
/* the close button at the end of the open map layers list, added by projekt.js */
.leaflet-control-layers .layers-close { display: block; width: 100%; margin-top: 6px; padding: 6px 10px; border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--sheet); color: var(--ink); font: 500 .85rem/1.2 var(--sans); cursor: pointer; }
/* The scrolling row of links on a touch screen: short words such as "Dom" get a wider target, the words keep their spacing. */
@media (pointer: coarse) and (max-width: 1080px) {
  .site-nav-public .nav-links { gap: 0; }
  .site-nav-public .nav-links a { flex: none; padding-inline: 6px; }
  .site-nav-public .nav-links a:first-child { margin-left: -6px; }
}

/* == landing == */
/* The first screen of an ad's landing page: the headline, one line on what to upload and that the reading is free, the price
   of the walkthrough, and the button. The film follows, and the longer explanation follows the film. */
.lp-lead { font-size: 1.08rem; line-height: 1.5; margin: 0 0 10px; color: var(--ink); }
.lp-price { margin: 0 0 18px; line-height: 1.45; color: var(--ink-soft); }
.lp-price strong { color: var(--ink); font-weight: 600; white-space: nowrap; }
.lp-acts { margin: 0; }
.lp-copy .cta-note, .hero-buy .cta-note { margin-top: 10px; }
.lp-more { margin-top: clamp(22px, 3vw, 34px); }
.lp-more .answer { max-width: 50em; margin-bottom: 0; }
.lp-more .updated { margin-top: 14px; }
/* The home page on a computer: the headline over two columns, the longer words on the left and the buying block on the right. */
.hero-more { grid-column: 1; grid-row: 1; min-width: 0; }
.hero-buy { grid-column: 2; grid-row: 1; min-width: 0; }
.hero-more .lede { margin-bottom: 10px; }
.hero-more .updated { margin-top: 10px; }
/* one column (site.css above orders them: headline, buying block, film, the longer words) */
@media (max-width: 880px) { .hero-more, .hero-buy { grid-column: auto; grid-row: auto; } }

/* How it goes and what if something goes wrong: only what the terms and the order step already promise. */
.trust { margin-top: clamp(24px, 3.4vw, 40px); padding: clamp(16px, 2.4vw, 22px) clamp(16px, 2.6vw, 26px); background: var(--sheet); border: 1px solid var(--rule-strong); }
.trust h3 { font-size: 1.45rem; margin: 0 0 12px; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px clamp(20px, 3vw, 40px); }
.trust-list li { position: relative; padding-left: 20px; color: var(--ink-soft); line-height: 1.45; }
.trust-list li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.trust-list strong { color: var(--ink); font-weight: 600; }
.trust-foot { margin: 14px 0 0; font-size: .92rem; color: var(--ink-soft); }
/* the price list on a landing page, under what is free and what is paid */
.lp-tiers { max-width: 560px; margin-top: clamp(24px, 3.4vw, 40px); scroll-margin-top: 16px; }
.band .trust { background: transparent; border-color: rgba(243, 236, 221, .3); }

@media (max-width: 720px) { .trust-list { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 560px) {
  /* Smaller headlines on a phone, so the line, the price and the button fit in the first screen with the cookie bar open. */
  .lp-copy h1 { font-size: 2.15rem; margin-bottom: 12px; }
  .hero h1 { font-size: 2.35rem; }
  .lp-copy .eyebrow, .hero-head .eyebrow { margin-bottom: 8px; }
  .lp-lead { font-size: 1rem; line-height: 1.45; margin-bottom: 8px; }
  .lp-price { margin-bottom: 14px; font-size: .95rem; }
  /* one full-width button under the price, the second way (the show home) under it */
  .lp-acts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .lp-acts .btn { width: 100%; }
  .lp-hero { padding-top: 18px; }
  .hero { padding-top: 16px; }
}
/* A short phone (a small one, or any phone once the browser's own bars take their share, e.g. 360 x 560 or 320 x 568): the
   same four things still sit above the cookie bar, with a little less air and slightly smaller words in both. */
@media (max-width: 560px) and (max-height: 620px) {
  .lp-copy .eyebrow, .hero-head .eyebrow { font-size: .68rem; letter-spacing: .08em; margin-bottom: 4px; }
  .lp-copy h1 { font-size: 1.8rem; margin-bottom: 8px; }
  .hero h1 { font-size: 1.95rem; }
  .lp-lead { font-size: .94rem; line-height: 1.38; margin-bottom: 6px; }
  .lp-price { font-size: .88rem; line-height: 1.38; margin-bottom: 10px; }
  .lp-hero { padding-top: 12px; }
  .hero { padding-top: 10px; }
  .consent { gap: 5px; padding-top: 6px; font-size: .68rem; line-height: 1.25; }
}

/* The start page: the box for the plan first, the terms under it, and help for those without a file below. */
.start-promise { margin: 0 0 12px; font-weight: 500; }
.start-card .dropzone { margin-bottom: 10px; }
.start-card #start-terms-row { margin-bottom: 4px; }
.start-help { margin-top: 18px; }
.no-file { margin-top: 22px; padding: 16px 18px; border: 1px solid var(--rule-strong); background: var(--sheet); }
.no-file h2 { font-size: 1.5rem; margin: 0 0 10px; }
.no-file ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.no-file li { padding-left: 20px; position: relative; }
.no-file li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.no-file li p { margin: 0; }
.no-file .ask-text { display: block; width: 100%; margin: 8px 0 6px; padding: 10px 12px; min-height: 0; resize: vertical; border: 1px solid var(--rule-strong); background: #fffdf8; color: var(--ink); font: .92rem/1.45 var(--sans); }
.no-file .btn-row { margin-top: 6px; gap: 8px 16px; }
.no-file-draw { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: .94rem; }
/* a link-like button in the sentence: a 44 px target whose negative margins keep the line as high as its neighbours */
.no-file-draw .linklike { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; vertical-align: middle; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
@media (hover: hover) { .no-file-draw .linklike:hover { color: var(--accent); } }
/* The start page on a phone up to 700 px high (360 x 640, 375 x 667, 390 x 664): the box for the plan stays whole above the fixed
   cookie bar on the first screen, under the price line of the chosen kind. */
@media (max-width: 560px) and (max-height: 700px) {
  .page-head:has(+ .start-card) { margin-bottom: 14px; }
  .start-card .kind-choice { margin-bottom: 12px; }
  .start-promise { margin-bottom: 8px; font-size: .94rem; line-height: 1.4; }
  .start-card .dropzone { padding-block: 18px; }
}
/* Shorter still (360 x 560, or 320 x 568): less air above the box, and a slightly smaller headline and box. The words stay. */
@media (max-width: 560px) and (max-height: 620px) {
  .page:has(.start-card) { padding-top: 12px; }
  .page-head:has(+ .start-card) h1 { font-size: 1.8rem; }
  .start-card .kind-choice legend { margin-bottom: 4px; }
  .start-card .kind-option span { padding-block: 7px; }
  .start-card .dropzone { padding-block: 12px; }
  .start-card .dropzone strong { font-size: 1.3rem; margin-bottom: 2px; }
}
/* The start page on a computer up to 640 px high: a laptop's window (1366 x 768 or 1280 x 720 less the taskbar and the browser's
   bars, some 600 to 630 px; 1920 x 1080 at 150 %, some 590 px), where the low cookie bar takes the last 70 px. Less air above the
   box for the plan, a smaller headline and a lower box keep it whole above the bar down to about 560 px, so that a file dropped
   anywhere on it lands on it (a drop on the bar would open the file in the browser). The words stay. */
@media (min-width: 561px) and (max-height: 640px) {
  .page:has(.start-card) { padding-top: 18px; }
  .page-head:has(+ .start-card) { margin-bottom: 12px; }
  .page-head:has(+ .start-card) h1 { font-size: 2.4rem; }
  .start-card .kind-choice { margin-bottom: 10px; }
  .start-promise { margin-bottom: 8px; }
  .start-card .dropzone { padding-block: 24px; }
}

/* The free sun tool: one line near the top, and the card under the result, both leading to the walkthrough of one's own home. */
.sun-plug { margin: 12px 0 0; font-size: .95rem; color: var(--ink-soft); }
.sun-cta { border-color: var(--ink); border-left: 3px solid var(--accent); }
.sun-cta h2 { max-width: 22em; }
@media (max-width: 560px) { .sun-cta .btn { width: 100%; } }

/* == pay-ui == */
/* Step 4 after the free reading (assets/projekt.js): the price, the pay button, how one pays and what happens after paying, all
   on the first screen of a phone. What the money buys follows, compact; the free preview is the second choice. */
.pay-strip { display: grid; justify-content: stretch; gap: 8px; padding: 14px 16px; }
.pay-start-row { margin-top: 4px; }
.pay-start { min-width: min(100%, 300px); min-height: 50px; font-size: 1.08rem; }
.pay-strip .pay-methods, .pay-strip .pay-promise { font-size: .9rem; line-height: 1.45; }
.pay-methods { color: var(--ink-soft); }
.read-result .order-perks { padding: 10px 14px 12px; }
.read-result .order-perks h3 { font-size: 1.2rem; margin-bottom: 2px; }
.read-result .perk-list li { padding: 4px 0 4px 22px; font-size: .92rem; line-height: 1.45; }
.read-result .perk-list li::before { top: 11px; }
.read-result .perk-demo { font-size: .92rem; }
.read-result .model-invite strong { font-size: 1.25rem; }
/* the plan as it was read, under the order */
.read-drawings { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }
.read-drawings .read-result { margin-bottom: 0; }

/* A guest's account, at the top of the order form: two fields and the way back for those who have one. */
.guest-account { margin: 0 0 18px; padding: 12px 14px 2px; border-left: 2px solid var(--accent); background: var(--paper); }
.guest-account-lede { margin: 0 0 12px; }
.guest-account .field { margin-bottom: 12px; }
.password-box { display: flex; gap: 8px; }
.password-box input { flex: 1 1 auto; min-width: 0; }
.password-toggle { flex: none; min-width: 84px; padding-inline: 14px; }
.guest-account .form-error { margin: 0 0 12px; }
.guest-account .auth-or { margin: 4px 0 12px; }
.guest-account-login { margin: 10px 0; }

/* While the free reading runs: an address for the result (guests only). */
.notify-box { margin: 0 0 16px; padding: 12px 14px; background: var(--sheet); border: 1px solid var(--rule-strong); }
.notify-form label { margin-bottom: 8px; }
.notify-row { display: flex; flex-wrap: wrap; gap: 8px; }
.notify-row input { flex: 1 1 220px; width: auto; min-width: 0; }
.notify-row .btn { flex: none; }
.notify-form .form-error { margin: 10px 0 0; }
.notify-done { margin: 0; color: var(--ok); font-weight: 500; }
/* the address given, in bold, with a way to change it */
.notify-done-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.notify-done-row .notify-done { flex: 1 1 240px; min-width: 0; }
.notify-done strong { overflow-wrap: anywhere; }
.notify-change { flex: none; }
/* An account's box asking for the confirmation link, moved from step to step (assets/projekt.js placeConfirm). */
.confirm-needed p { margin: 0 0 8px; }
#params-form .confirm-needed { margin: 4px 0 14px; }

@media (max-width: 560px) {
  .pay-start { width: 100%; }
  .notify-row .btn { flex: 1 1 100%; }
}
@media (pointer: coarse) {
  .guest-account-login a, #account-error a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* == reviews-tracking == */
/* Customer reviews on public pages (the OPINIE placeholder, server/reviews.mjs): approved ones only, as plain cards. No ratings markup. */
.review-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.review { display: flex; flex-direction: column; min-width: 0; padding: 18px 20px; background: var(--sheet); border: 1px solid var(--rule-strong); }
.review-stars { margin: 0 0 8px; color: var(--accent); font-size: 1.15rem; letter-spacing: .08em; line-height: 1.2; }
.review-text { margin: 0 0 12px; }
.review-text p { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.review-who { margin: auto 0 0; font-size: .9rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.review-name { font-weight: 500; color: var(--ink); }
.review-about { white-space: nowrap; }
.review-name:not(:empty) + .review-about::before { content: '· '; }
/* The review form (/panel/projekt/:id/opinia): five stars as radio buttons, each a 44 px target. */
.stars-field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.stars-field legend { font-weight: 500; padding: 0; margin-bottom: 6px; }
.stars-pick { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.stars-pick label { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 2rem; line-height: 1; color: var(--rule-strong); cursor: pointer; border-radius: var(--radius); -webkit-tap-highlight-color: transparent; }
.stars-pick label.is-on { color: var(--accent); }
.stars-pick input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (hover: hover) { .stars-pick label:hover { color: var(--accent-deep); } }
.stars-said { margin-left: 8px; color: var(--ink-soft); font-size: .95rem; }
.review-form textarea { min-height: 9em; resize: vertical; line-height: 1.45; }
.review-own { margin: 0 0 16px; padding: 14px 16px; border-left: 3px solid var(--rule-strong); background: #fffdf8; }
.review-own .review-who { margin-top: 0; }
.review-own .review-text p { white-space: pre-line; }
/* "Oceń spacer" under a paid project in the customer's list: its own line, beside the project link rather than inside it. */
.project-list a.review-link { display: inline-flex; justify-content: flex-start; min-height: 44px; padding: 0 4px 10px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .project-list a.review-link:hover { background: none; color: var(--accent-deep); } }
/* Moderation in /obsluga. */
.staff-reviews { list-style: none; margin: 0 0 18px; padding: 0; }
.staff-review { padding: 12px 0; border-top: 1px solid var(--rule); }
.staff-review .review-stars { font-size: .95rem; letter-spacing: 0; }
.staff-review .review-text p { white-space: pre-line; }
/* The short pages on the way to Stripe and back with Google Ads (/rejestracja/gotowe; /dziekujemy with the purchase conversion). */
.thanks-card h1 { margin-bottom: 14px; }
/* The traffic report: a heading after a table gets air above it, as it has after a paragraph. */
#stats table.staff + h3 { margin-top: 24px; }
/* On a phone its tables are lists without the head row (see the 560 px block): each value says which column it is. */
@media (max-width: 560px) {
  #stats table.staff td[data-label]::before { content: attr(data-label) ': '; color: var(--ink-soft); font-size: .84rem; }
}
