/* The public page (§18 M11).
 *
 * Strategy: committed, not restrained. A cleaning service on the internet is
 * blue-and-white with a sparkle icon, and the second reflex away from that is
 * warm minimal beige -- which is its own monoculture. Both were rejected.
 *
 * The colour is madder red: the ground of the carpets themselves, the thing
 * being washed. It carries the page, and the price list is the one bright
 * surface on it, because the price list is what people came for. Gold is the
 * carpet's own second colour and does the pointing.
 *
 * Type is Unbounded for display only -- geometric, a little mechanical, and
 * with real Cyrillic, which most display faces lack and this page needs on
 * its second tab. The body is the system stack on purpose.
 */

:root {
  --madder: #6d1a17;
  --madder-deep: #4e100e;
  --ink: #16100f;
  --gold: #e0a32e;
  --gold-lit: #f0bd57;

  /* Chroma zero, deliberately. A warm near-white here would put the page in
     the cream/sand band every generated landing page already lives in;
     against madder, a neutral paper reads cooler and lets the red stay red. */
  --paper: #f2f2f1;
  --paper-sunk: #e6e6e4;
  --paper-ink: #1b1b1b;
  --paper-soft: #4f4f4d;

  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.2rem);
  --step-3: clamp(2.4rem, 1.7rem + 3.4vw, 4.4rem);

  --gap: clamp(3rem, 2rem + 6vw, 7rem);
  --pad: clamp(1.25rem, 0.9rem + 1.8vw, 3rem);

  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--madder);
  color: #fbf4f3;
  font: var(--step-0)/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

h1, h2, .cta, .steps strong, .price b, .price-group h3 {
  font-family: Unbounded, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--gold); color: var(--ink);
  padding: 12px 18px; border-radius: 0 0 10px 0; font-weight: 700; z-index: 10;
}
.skip:focus { left: 0; top: 0; }

:where(a, button):focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px;
}

/* ------------------------------------------------------------------ hero */
/* Full-bleed photograph, because the product is a physical object and a
   coloured rectangle where it should be is not restraint. */

.hero {
  position: relative;
  min-height: 92svh;
  display: grid; align-items: end;
  padding: var(--pad);
  isolation: isolate;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.72) contrast(1.05);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--madder-deep) 4%, rgba(109, 26, 23, .84) 46%, rgba(109, 26, 23, .55) 100%),
    linear-gradient(to right, rgba(78, 16, 14, .7), transparent 62%);
}

.hero-body { max-width: 22ch; }
@media (min-width: 720px) { .hero-body { max-width: 30ch; } }

.langs { display: flex; gap: 6px; margin-bottom: clamp(1.5rem, 6vw, 3rem); }
.langs button {
  font: inherit; font-size: .8125rem; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: rgba(251, 244, 243, .1); color: #fbf4f3;
  border: 1px solid rgba(251, 244, 243, .28);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.langs button:hover { background: rgba(251, 244, 243, .2); }
.langs button.on { background: #fbf4f3; color: var(--madder-deep); border-color: #fbf4f3; }

h1 {
  font-size: var(--step-3); font-weight: 800;
  line-height: .96; letter-spacing: -.035em;
  margin: 0 0 .5em; text-wrap: balance;
}
.lede {
  font-size: var(--step-1); line-height: 1.45;
  color: rgba(251, 244, 243, .84);
  margin: 0 0 2rem; max-width: 34ch; text-wrap: pretty;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.cta {
  display: inline-block;
  background: var(--gold); color: var(--ink);
  font-size: 1rem; font-weight: 700; letter-spacing: -.01em;
  text-decoration: none;
  padding: 16px 26px; border-radius: 999px;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.cta:hover { background: var(--gold-lit); transform: translateY(-2px); }
.cta:active { transform: translateY(0); }

.call {
  color: #fbf4f3; text-decoration: none; font-weight: 600;
  padding: 15px 22px; border-radius: 999px;
  border: 1px solid rgba(251, 244, 243, .34);
  transition: background .18s var(--ease);
}
.call:hover { background: rgba(251, 244, 243, .12); }

/* ------------------------------------------------------- the woven band */
/* An eight-point star and a hooked border -- the motif on the carpets this
   shop washes, drawn once and tiled. */

.weave {
  height: 26px;
  background-color: var(--madder-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='26' viewBox='0 0 52 26'%3E%3Cg fill='none' stroke='%23e0a32e' stroke-width='1.4' opacity='.85'%3E%3Cpath d='M13 3l4 5-4 5-4-5z'/%3E%3Cpath d='M39 3l4 5-4 5-4-5z'/%3E%3Cpath d='M0 19h6v4h8v-4h12v4h8v-4h12v4h6'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

/* ----------------------------------------------------------------- steps */

main { position: relative; }

section { padding: var(--gap) var(--pad); }

h2 {
  font-size: var(--step-2); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.05;
  margin: 0 0 1.4em; text-wrap: balance;
}

.steps-section { background: var(--madder-deep); }

.steps {
  list-style: none; counter-reset: step;
  margin: 0; padding: 0;
  display: grid; gap: 2px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  max-width: 1100px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 2rem 1.5rem 2rem 0;
  border-top: 1px solid rgba(224, 163, 46, .3);
}
/* The number is the ordering, so it is the loudest thing in the step and
   nothing else has to say "step 1". */
.steps li::before {
  content: counter(step);
  display: block;
  font-family: Unbounded, sans-serif;
  font-size: 2.6rem; font-weight: 800; line-height: 1;
  color: var(--gold); opacity: .85;
  margin-bottom: .6rem;
}
.steps strong {
  display: block; font-size: 1.0625rem; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: .35em;
}
.steps span { color: rgba(251, 244, 243, .74); font-size: .9375rem; }

/* ---------------------------------------------------------------- prices */
/* The bright surface. Everything above and below it is red so that this is
   the thing the eye lands on. */

.prices-section {
  background: var(--paper); color: var(--paper-ink);
  border-radius: 28px 28px 0 0;
}
.prices-section h2 { color: var(--paper-ink); }

.prices {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1100px;
}

.price-group h3 {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--madder); margin: 0 0 1rem;
}

/* A row of the price list, laid out as a bill: name, leader, figure. */
.price {
  display: flex; align-items: baseline; gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--paper-sunk);
  font-size: .9375rem;
}
.price span { color: var(--paper-soft); }
.price::before {
  content: ""; order: 1; flex: 1;
  border-bottom: 1px dotted var(--paper-sunk);
  transform: translateY(-.28em);
}
.price b {
  order: 2; white-space: nowrap;
  font-size: .9375rem; font-weight: 700; color: var(--paper-ink);
  font-variant-numeric: tabular-nums;
}

.note {
  max-width: 62ch; margin: 2.5rem 0 0;
  font-size: .875rem; color: var(--paper-soft);
  text-wrap: pretty;
}
.prices-section .muted { color: var(--paper-soft); }

/* --------------------------------------------------------------- closing */

.closing {
  background: var(--ink); text-align: center;
  padding-block: clamp(4rem, 3rem + 6vw, 8rem);
}
.closing h2 { margin-bottom: 1.2em; }

footer {
  background: var(--ink);
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: space-between;
  padding: 1.5rem var(--pad) calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(251, 244, 243, .12);
  font-size: .8125rem;
}
footer #brand { font-weight: 700; }
.muted { color: rgba(251, 244, 243, .55); }

/* ---------------------------------------------------------------- motion */
/* One reveal, and it enhances something already on screen: the content is
   visible with no JS and with animation off. Nothing here gates content. */

@media (prefers-reduced-motion: no-preference) {
  .hero-body > * { animation: rise .7s var(--ease) both; }
  .hero-body > *:nth-child(2) { animation-delay: .06s; }
  .hero-body > *:nth-child(3) { animation-delay: .12s; }
  .hero-body > *:nth-child(4) { animation-delay: .18s; }

  .steps li { animation: rise .6s var(--ease) both; }
  .steps li:nth-child(2) { animation-delay: .07s; }
  .steps li:nth-child(3) { animation-delay: .14s; }
  .steps li:nth-child(4) { animation-delay: .21s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
}
