/* Klembara Solutions v3, direction A: the inner pages (websites, contact, 404).
   Linked after style.css and built only from its tokens, buttons, header and
   footer. One plain heading band, then content. */

/* Heading band (paper, under the blue header): the H1 and one line, nothing
   drawn behind it. Ink #15161A on paper 16.6:1, the line #3E3F43 9.2:1. */
.pg-band { background: var(--paper); color: var(--ink); padding: clamp(36px, 5vw, 64px) 0 clamp(52px, 6.5vw, 96px); }
.pg-band h1 {
  max-width: 15ch;
  font-size: clamp(2.6rem, 1.4rem + 3.8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
}
.pg-lede {
  margin-top: 22px;
  max-width: 36em;
  font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem);
  line-height: 1.5;
  color: var(--body-p);
}
.ws-band .pg-lede { text-wrap: balance; }
/* contact/#sent and #not-sent: the landing lines after a form post made with
   scripting off */
.pg-sent { display: none; }
.pg-sent:target {
  display: block; position: relative; margin: 24px 0 0; max-width: 46rem;
  padding: 16px 20px; border-radius: 10px;
  background: var(--paper2); color: var(--ink); font-weight: 500; line-height: 1.45;
}
.pg-sent:focus { outline: 3px solid var(--blue); outline-offset: 3px; }
.pg-sent a { color: var(--blue-deep); text-underline-offset: 3px; }

/* Section heads and grounds */
.pg-h2 { max-width: 20ch; }
.pg-dark { background: var(--char); padding: clamp(56px, 6vw, 88px) 0; }
.pg-paper { background: var(--paper); color: var(--ink); padding: clamp(56px, 6vw, 88px) 0; }
/* A paper section straight after the paper band steps up to the card ground
   so the two never run together (ground, not a rule). */
.pg-band + .pg-paper { background: var(--card); }

/* A plate on paper: the site's depth recipe (style.css :root), white with
   the faint tonal fill, top highlight, contact and ambient shadow. No edge. */
.pg-card {
  border-radius: 16px;
  background: #FFFFFF var(--plate-fill);
  box-shadow: var(--plate-shadow);
}

/* An ink button for paper grounds (the blue one stays the page's single action) */
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--char3); }

/* Closer band (websites, 404) */
.pg-close {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 64px; align-items: center;
}
/* Closer (owner 2026-10-20, "this section does not need to be so tall"): a
   one-line question in a smaller size and a shorter band (padding below). */
.pg-close h2 { font-size: clamp(1.9rem, 1.2rem + 2vw, 2.8rem); line-height: 1.08; letter-spacing: -0.025em; max-width: 20ch; text-wrap: balance; }
.pg-close .btn { margin-top: 24px; }
.pg-dark:has(> .pg-close) { padding: clamp(40px, 4.5vw, 64px) 0; }
.pg-close .contact-lines { margin-top: 0; }

/* ---------- Contact ---------- */
.pg-form-area { margin-top: 20px; }
.pg-form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); color: var(--ink); }
.pg-form .f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pg-form .f-field { display: grid; gap: 8px; }
.pg-form .f-field > label { font-size: 15px; font-weight: 500; color: var(--ink); }
.pg-form input[type="text"], .pg-form input[type="email"], .pg-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid #8F8D85; border-radius: 6px;
  background: #FDFCFA; color: var(--ink);
  font: 400 16px/1.4 var(--font);
}
.pg-form textarea { min-height: 132px; resize: vertical; }
.pg-form input:focus, .pg-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.pg-form .btn { justify-self: start; min-width: 140px; }
.pg-form .btn:disabled { opacity: .7; cursor: progress; }

/* Message states: a sunken tile with the blue bar, the same as the how line */
.pg-status, .form-done {
  position: relative; margin-top: 16px; padding: 16px 20px 16px 26px; border-radius: 10px;
  background: var(--paper2); color: var(--ink); line-height: 1.45;
}
.form-done { margin-top: 0; font-weight: 500; }
.pg-status p + p { margin-top: 8px; }
.pg-status a, .form-done a { color: var(--blue-deep); font-weight: 500; text-underline-offset: 3px; }
.form-done:focus { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Contact page direction A (owner's pick, 2026-10-20): a centred band
   (eyebrow, H1, one line), then on the card ground one white plate holding
   the form (7fr) and a rail (5fr) with three numbered steps and the direct
   lines. Stacks below 900, form first. */
.ck-band { background: var(--paper); color: var(--ink); padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 3vw, 40px); }
.ck-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ck-eyebrow { font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-deep); }
.ck-band h1 {
  margin-top: 18px; max-width: 16ch;
  font-size: clamp(2.6rem, 1.4rem + 3.8vw, 4.6rem);
  line-height: 1.02; letter-spacing: -0.032em; text-wrap: balance;
}
.ck-lede {
  margin-top: 22px; max-width: 34em;
  font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.5;
  color: var(--body-p); text-wrap: balance;
}
.ck-head .pg-sent:target { margin-top: 22px; text-align: left; }

/* Ground and the one plate (the site's depth recipe, no edge) */
.ck-ground { background: var(--card); color: var(--ink); padding: clamp(40px, 5vw, 64px) 0; }
.ck-plate {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr);
  border-radius: 16px;
  background: #FFFFFF var(--plate-fill);
  box-shadow: var(--plate-shadow);
}
.ck-col { padding: clamp(24px, 3.2vw, 40px); }
.ck-h { font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.01em; }

/* Form: the plate is the card, so the form carries no fill or padding */
.ck-plate .pg-form-area { margin-top: 18px; }
.ck-plate .pg-form { margin: 0; padding: 0; }

/* Rail: steps, then the direct lines straight under them */
.ck-rail { display: flex; flex-direction: column; }
.ck-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 22px; }
.ck-steps li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 14px; align-items: start; }
.ck-disc {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: #FFFFFF;
  font-weight: 700; font-size: 16px; line-height: 1; font-variant-numeric: tabular-nums;
  box-shadow: var(--contact);
}
.ck-steps p { padding-top: 6px; font-size: 1.08rem; font-weight: 500; line-height: 1.35; color: var(--ink); text-wrap: pretty; }
.ck-rail .pg-direct { margin-top: 32px; }
.ck-rail .contact-lines a:hover { text-decoration: none; color: var(--blue-deep); }

@media (min-width: 900px) {
  .ck-plate { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

@media (max-width: 640px) {
  .ck-band { padding-top: 28px; padding-bottom: 24px; }
  .ck-band h1 { font-size: 2.5rem; }
  .ck-lede { margin-top: 16px; }
  .ck-plate { margin-left: calc(-1 * var(--gut) + 8px); margin-right: calc(-1 * var(--gut) + 8px); }
  .ck-col { padding: 22px 18px; }
  .ck-plate .pg-form { gap: 16px; }
  .ck-steps { gap: 18px; }
  .ck-steps p { font-size: 1.05rem; }
}

/* ---------- 404 ---------- */
.pg-lost { margin-top: 28px; max-width: 40em; padding: 14px 18px 16px; border-radius: 10px; background: var(--paper2); }
.pg-lost[hidden] { display: none; }
.pg-lost-label { font-size: 15px; font-weight: 500; color: var(--body-p); }
.pg-lost-path { margin-top: 4px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }

.pg-links {
  list-style: none; margin: clamp(28px, 3vw, 40px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.pg-links a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center;
  height: 100%; padding: 22px 24px; text-decoration: none; color: var(--ink);
}
.pg-links a:hover { transform: translateY(-2px); box-shadow: var(--plate-shadow-lift); }
.pg-links b { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }
.pg-links span { grid-column: 1; color: var(--body-p); line-height: 1.45; }
.pg-links svg { grid-column: 2; grid-row: 1 / 3; width: 22px; height: 22px; color: var(--blue); stroke-width: 2; }
.pg-home { margin-top: 28px; }

/* Entry motion: the lists rise in once on websites. Animation, not transition,
   so the hover lift keeps its own timing; fill is backwards only, so a card
   holds no transform once it has arrived. */
@media (prefers-reduced-motion: no-preference) {
  .js .pg-rise:not(.in) > * { opacity: 0; }
  .js .pg-rise.in > * { animation: pg-rise .6s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 110ms) backwards; }
  .pg-links a { transition: transform .18s ease, box-shadow .18s ease; }
  .btn-ink { transition: background-color .15s ease; }
}
@keyframes pg-rise { from { opacity: 0; transform: translateY(14px); } }
.no-anim .pg-rise > * { animation: none !important; opacity: 1 !important; }

/* Responsive */
@media (max-width: 960px) {
  .pg-close { grid-template-columns: minmax(0, 1fr); }
  .pg-close h2 { max-width: 16ch; }
}

@media (max-width: 640px) {
  .pg-band { padding-top: 28px; padding-bottom: 48px; }
  .pg-band h1 { font-size: 2.5rem; }
  .pg-lede { margin-top: 16px; }
  .pg-dark, .pg-paper { padding-top: 56px; padding-bottom: 56px; }
  .pg-close .btn { width: 100%; margin-top: 24px; }
  .pg-close .contact-lines { gap: 6px; }
  .pg-form { margin-left: calc(-1 * var(--gut) + 8px); margin-right: calc(-1 * var(--gut) + 8px); padding: 22px 18px; gap: 16px; }
  .pg-form .f-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pg-form .btn { justify-self: stretch; }
  .pg-links { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pg-links a { padding: 18px 18px 20px; }
  .pg-links b { font-size: 1.2rem; }
  .pg-home { width: 100%; }
}

/* Contact: the direct lines under the steps */
.pg-direct { margin-top: 36px; gap: 8px; }
.pg-direct li { color: var(--body-p); }
.pg-direct a { color: var(--ink); }
.pg-direct .lab { color: var(--mut-p); }
@media (max-width: 640px) { .pg-direct { margin-top: 28px; gap: 4px; } }

/* ---------- Websites, reworked 2026-10-20 ----------
   Band with the price; "the first screen" drawing (the page's one showpiece);
   his three columns as glyph tiles; the home's lead flow; how it works. */

/* Band (owner reference, 2026-10-20 evening): centred. Eyebrow, H1, his
   two-line sub, then one row: the button, then the price block.
   Eyebrow #0A5CB5 on paper 6.0:1; note #6B6A64 on paper 4.9:1. */
.ws-band { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ws-eyebrow { font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-deep); }
.pg-band.ws-top h1 { margin-top: 18px; max-width: 22ch; text-wrap: balance; }
.ws-sub {
  margin-top: 22px; max-width: 40em;
  font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.5; color: var(--body-p); text-wrap: balance;
}
.ws-sub span { display: block; margin-top: 2px; font-size: .9em; }
.ws-act {
  margin-top: clamp(28px, 3vw, 40px);
  display: flex; align-items: center; justify-content: center; gap: 28px; text-align: left;
}
.ws-act .btn { flex: none; }
.ws-price-k { font-size: 15px; font-weight: 500; line-height: 1.2; color: var(--body-p); }
.ws-price-n {
  margin-top: 4px; font-size: 3.2rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.ws-price-note { margin-top: 8px; max-width: 30em; font-size: 14px; line-height: 1.4; color: var(--mut-p); }

/* The first screen: one paper run with the band (no card step), the three
   callouts in a row above a drawn browser frame, a leader from each down to
   the part it names. */
.pg-band.ws-top { padding-bottom: clamp(40px, 4.5vw, 64px); }
.pg-band + .pg-paper.ws-first { background: var(--paper); padding-top: 0; }
.ws-shot { position: relative; max-width: 1040px; margin: 0 auto; }
/* The leaders' SVG is drawn on an 800-unit grid. The stage's top padding
   (9 percent of the width = 72 units) is the gap the leaders cross, so the
   whole stage scales with its width and every leader stays on its part. */
.ws-stage { position: relative; padding-top: 9%; }
.ws-frame {
  position: relative;
  border-radius: 16px; overflow: hidden; background: #FDFCFA;
  box-shadow: var(--contact), var(--ambient);
}
svg.ws-draw { display: block; width: 100%; height: auto; stroke: none; }
.ws-draw .dg { fill: none; stroke: #4A4945; stroke-width: 1.9; }
.ws-draw .dg-w { stroke: #FFFFFF; }
.ws-draw .hl { fill: #DDE9F8; }
.ws-leads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* 1.15 units is 1.5px at the full 1040px width (the scale is uniform). */
.ws-leads .ldi { fill: none; stroke: var(--blue); stroke-width: 1.15; stroke-linecap: butt; }
.ws-leads .ldd { fill: var(--blue); stroke: none; }

/* Callouts: three equal columns inside an 8 percent side inset, so their
   centres fall at 22, 50 and 78 percent, where the leaders start. */
.ws-calls {
  list-style: none; margin: 0; padding: 0 8%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ws-call { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ws-call .tile { width: 40px; height: 40px; }
.ws-call .tile svg { width: 21px; height: 21px; }
.ws-call-t { font-size: 17px; font-weight: 500; line-height: 1.25; color: var(--ink); }

/* His three columns, on paper (owner 2026-10-20, "the websites page is too
   dark": this section left charcoal so the dark run is How it works, the
   closer and the footer, as on the other pages). White plates with the depth
   recipe, a bare coloured glyph (no tile) beside each heading, by meaning:
   blue for the writing, blue for search, amber for the work. */
.ws-cols {
  list-style: none; margin: clamp(24px, 2.6vw, 36px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.ws-cols li {
  padding: 22px 24px 24px; border-radius: 16px; background: #FFFFFF var(--plate-fill);
  box-shadow: var(--plate-shadow);
}
.ws-h2 { max-width: none; }
.ws-col-h { display: flex; align-items: center; gap: 14px; }
.ws-col-h .tile { width: 28px; height: 28px; border-radius: 0; background: none; box-shadow: none; color: var(--blue); }
.ws-col-h .marks { display: flex; align-items: center; gap: 10px; height: 28px; flex: none; }
.ws-col-h .marks img { width: 28px; height: 28px; object-fit: contain; }
.ws-cols li:nth-child(3) .tile { background: none; color: #BF7F0C; }
.ws-col-h .tile svg { width: 28px; height: 28px; }
.ws-col-h h3 { font-size: 1.25rem; line-height: 1.2; color: var(--ink); }
.ws-cols p { margin-top: 14px; color: var(--body-p); font-size: 16px; line-height: 1.5; }
.pg-paper .leads { margin-top: clamp(48px, 5vw, 72px); }

/* The light lead-flow rules (.pg-paper .flow and friends) live in style.css,
   shared with the home Websites section. */

/* Entry: the frame and its parts fade and lift in, then the callouts arrive
   one by one (callout, its leader draws down, then the dot and the part it
   names turn blue). Over by about 2.4s, entry only. The markup holds the
   finished state; without JS, with reduced motion, or in the no-paint
   fallback nothing is held back. */
@media (prefers-reduced-motion: no-preference) {
  .js .ws-frame { transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
  .js .ws-shot:not(.in) .ws-frame { opacity: 0; transform: translateY(16px); }
  .js .ws-draw .dp { transition: opacity .4s ease calc(180ms + var(--d) * 80ms), transform .45s cubic-bezier(.2, .7, .2, 1) calc(180ms + var(--d) * 80ms); }
  .js .ws-shot:not(.in) .dp { opacity: 0; transform: translateY(10px); }

  .js .ws-call { transition: opacity .3s ease calc(800ms + var(--i) * 400ms), translate .35s cubic-bezier(.2, .7, .2, 1) calc(800ms + var(--i) * 400ms); }
  .js .ws-shot:not(.in) .ws-call { opacity: 0; translate: 0 -8px; }
  .js .ws-leads .ldi { stroke-dasharray: 1 1; transition: stroke-dashoffset .42s cubic-bezier(.4, 0, .2, 1) calc(980ms + var(--i) * 400ms); }
  .js .ws-shot:not(.in) .ldi { stroke-dashoffset: 1; }
  .js .ws-draw .hl, .js .ws-leads .ldd { transition: opacity .3s ease calc(1380ms + var(--i) * 400ms); }
  .js .ws-shot:not(.in) .hl, .js .ws-shot:not(.in) .ldd { opacity: 0; }
}
.no-anim .ws-shot *, .no-anim .ws-frame { transition: none !important; }

/* 960px and under: the callouts stay a row above the frame, with no leaders
   (the blue parts in the drawing keep the same order); a list on phones. */
@media (max-width: 960px) {
  .ws-leads { display: none; }
  .ws-stage { padding-top: 24px; }
  .ws-calls { padding: 0; gap: 12px 20px; }
  .ws-cols { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 640px) {
  .ws-sub span { margin-top: 6px; }
  .ws-act { flex-direction: column; gap: 20px; text-align: center; }
  .ws-price-n { font-size: 2.8rem; }
  .ws-frame { border-radius: 12px; }
  .ws-calls { grid-template-columns: minmax(0, 1fr); gap: 10px; justify-items: start; width: max-content; max-width: 100%; margin: 0 auto; }
  .ws-call { flex-direction: row; gap: 14px; text-align: left; }
  .ws-call .tile { width: 36px; height: 36px; }
  .ws-call .tile svg { width: 19px; height: 19px; }
  .ws-call-t { font-size: 1.05rem; }
  .ws-cols li { padding: 18px 18px 20px; }
  .ws-col-h h3 { font-size: 1.15rem; }
  .ws-cols p { margin-top: 12px; font-size: 15.5px; }
}

/* Hosting line under the three columns. */
.ws-host { margin-top: 28px; font-size: 1.05rem; color: var(--sub-c); }
