/* The plain design of the landing, shown to half the visitors while the design experiment
   runs (apps/api/src/observability/landing-design.ts). It dresses the same document that
   landing.css lays out: white paper, hairlines, one grotesque, black ink, square corners
   and a single highlighter. Where the other design has Sicilian artwork this one has one
   pattern, a matrix of small square dots: sparse as dotted paper behind the receipt, and
   dense in blocks that drift across the coloured stage and the closing.

   Every rule is scoped to <html data-design="clean">, which the Worker sets, so without
   that attribute this file changes nothing. The scope also outranks landing.css at every
   width: a property that landing.css changes by breakpoint is repeated here by breakpoint. */
:root[data-design='clean'] {
  --serif: var(--sans);
  --cream: #fff;
  --cream-deep: #f6f6f6;
  --ink: #0a0a0a;
  --sea: #0a0a0a;
  --night-sea: #0a0a0a;
  --terracotta: #6f6f6f;
  --line: #e4e4e4;
  /* Amber is the highlighter. Orange is blended with it on the stage and in the closing. */
  --lemon: #ffb224;
  --bougainvillea: #ffb224;
  --orange: #ff7a1a;
  --periwinkle: #8c9ef5;
  --pink: #f7a6c6;
  --landing-muted: #6b6b6b;
  --paper: #fff;
  --soft: #f3f3f3;
  --hairline: #efefef;
  --body: #555;
  --go: #22a559;
  /* The one pattern, as tiles: dotted paper (a dot every 20px), and the dot matrix (a dot
     every 10px) in soft ink, ink, white, the highlighter and orange. */
  --paper-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Crect width='2' height='2' fill='%230a0a0a' fill-opacity='.26'/%3E%3C/svg%3E");
  --matrix-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Crect width='3' height='3' fill='%230a0a0a' fill-opacity='.2'/%3E%3C/svg%3E");
  --matrix-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Crect width='3' height='3' fill='%230a0a0a' fill-opacity='.55'/%3E%3C/svg%3E");
  --matrix-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Crect width='3' height='3' fill='%23fff' fill-opacity='.34'/%3E%3C/svg%3E");
  --matrix-lime: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Crect width='3' height='3' fill='%23ffb224'/%3E%3C/svg%3E");
  --matrix-orange: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Crect width='3' height='3' fill='%23ff7a1a'/%3E%3C/svg%3E");
}

/* Type: the grotesque everywhere; headings medium. DM Sans already draws its large sizes
   close together, so the headings are tracked far less than the serif ones were. */
:root[data-design='clean'] h1,
:root[data-design='clean'] h2,
:root[data-design='clean'] h3 {
  font-weight: 500;
  letter-spacing: 0;
}
:root[data-design='clean'] h2 {
  font-size: clamp(30px, 3.1vw, 42px);
  line-height: 1.12;
}
:root[data-design='clean'] mark {
  padding: 0 0.14em;
}
:root[data-design='clean'] .eyebrow {
  letter-spacing: 0.1em;
}
:root[data-design='clean'] button:focus-visible,
:root[data-design='clean'] a:focus-visible,
:root[data-design='clean'] [tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
:root[data-design='clean'] .site-footer a:focus-visible {
  outline-color: #fff;
}
:root[data-design='clean'] .feature-head p:not(.eyebrow),
:root[data-design='clean'] .pricing-lead,
:root[data-design='clean'] .feature-table td:last-child {
  color: var(--body);
}

/* Buttons: square and black. */
:root[data-design='clean'] .button {
  font-weight: 500;
  transition: background 120ms ease;
}
:root[data-design='clean'] .demo-row .button-primary {
  color: var(--ink);
  background: var(--lemon);
  border-color: var(--lemon);
  font-weight: 600;
}
:root[data-design='clean'] .demo-row .button-primary:hover {
  background: #ffc247;
}
:root[data-design='clean'] .button-primary:hover {
  background: #2e2e2e;
}
/* The demo call's field. */
:root[data-design='clean'] .demo-row input[aria-invalid='true'] {
  border-color: #b42318;
}
:root[data-design='clean'] .call-status[data-tone='error'] {
  color: #b42318;
}
:root[data-design='clean'] .call-stop {
  color: #fff;
  background: #b42318;
  border-color: #b42318;
}

/* Header */
:root[data-design='clean'] .site-header {
  background: rgb(255 255 255 / 0.9);
}
:root[data-design='clean'] .wordmark {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--ink);
}
:root[data-design='clean'] .site-nav {
  color: #52525b;
}
:root[data-design='clean'] .site-nav a {
  border-bottom-color: var(--hairline);
}
:root[data-design='clean'] .site-nav a:hover,
:root[data-design='clean'] .login-link:hover {
  color: var(--ink);
}
:root[data-design='clean'] .login-link {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  background: var(--soft);
}
:root[data-design='clean'] .login-link:hover {
  background: #e8e8e8;
}
:root[data-design='clean'] .header-start {
  min-height: 38px;
  padding-block: 7px;
  font-size: 13px;
}

/* Where a section's top hairline meets the frame's vertical ones, a small square marks
   the corner, as on a drawing sheet. */
:root[data-design='clean'] .feature,
:root[data-design='clean'] .rules,
:root[data-design='clean'] .pricing {
  position: relative;
}
:root[data-design='clean'] .feature::before,
:root[data-design='clean'] .feature::after,
:root[data-design='clean'] .rules::before,
:root[data-design='clean'] .rules::after,
:root[data-design='clean'] .pricing::before,
:root[data-design='clean'] .pricing::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: -5px;
  width: 9px;
  height: 9px;
  border: 1px solid #cfcfcf;
  background: #fff;
}
:root[data-design='clean'] .feature::before,
:root[data-design='clean'] .rules::before,
:root[data-design='clean'] .pricing::before {
  left: -5px;
}
:root[data-design='clean'] .feature::after,
:root[data-design='clean'] .rules::after,
:root[data-design='clean'] .pricing::after {
  right: -5px;
}

/* Hero: one sentence on white, between two patches of dotted paper with a few cells filled in. */
:root[data-design='clean'] .hero-accent {
  display: none;
}
:root[data-design='clean'] .hero::before,
:root[data-design='clean'] .hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
:root[data-design='clean'] .hero::before {
  top: -40px;
  right: -40px;
  width: 322px;
  height: 322px;
  background:
    var(--paper-dots) 0 0 / 20px 20px,
    linear-gradient(var(--lemon), var(--lemon)) 160px 40px / 40px 40px no-repeat,
    linear-gradient(var(--orange), var(--orange)) 200px 0 / 40px 40px no-repeat,
    linear-gradient(var(--orange), var(--orange)) 200px 80px / 40px 40px no-repeat,
    linear-gradient(var(--periwinkle), var(--periwinkle)) 240px 120px / 40px 40px no-repeat,
    linear-gradient(var(--soft), var(--soft)) 80px 80px / 40px 40px no-repeat;
  -webkit-mask-image: radial-gradient(circle at 55% 40%, #000 30%, transparent 72%);
  mask-image: radial-gradient(circle at 55% 40%, #000 30%, transparent 72%);
}
:root[data-design='clean'] .hero::after {
  bottom: -40px;
  left: -40px;
  width: 282px;
  height: 282px;
  background:
    var(--paper-dots) 0 0 / 20px 20px,
    linear-gradient(var(--periwinkle), var(--periwinkle)) 40px 120px / 40px 40px no-repeat,
    linear-gradient(var(--pink), var(--pink)) 80px 200px / 40px 40px no-repeat,
    linear-gradient(var(--lemon), var(--lemon)) 80px 160px / 40px 40px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 120px 160px / 40px 40px no-repeat;
  -webkit-mask-image: radial-gradient(circle at 45% 60%, #000 30%, transparent 72%);
  mask-image: radial-gradient(circle at 45% 60%, #000 30%, transparent 72%);
}
@media (min-width: 561px) {
  :root[data-design='clean'] .hero {
    padding-inline: 56px;
  }
}
@media (min-width: 561px) and (max-width: 1100px) {
  :root[data-design='clean'] .hero {
    padding-inline: 44px;
  }
}
@media (max-width: 560px) {
  :root[data-design='clean'] .hero::before,
  :root[data-design='clean'] .hero::after {
    display: none;
  }
}
/* The title and the field stay above the patches. */
:root[data-design='clean'] .hero-copy {
  z-index: 1;
}
:root[data-design='clean'] .hero h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.1;
  letter-spacing: 0;
}
@media (max-width: 560px) {
  :root[data-design='clean'] .hero h1 {
    font-size: clamp(28px, 8vw, 42px);
  }
}

/* The rules card: white, a hairline and a neutral shadow. */
:root[data-design='clean'] .rules-card {
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.04),
    0 16px 40px rgb(0 0 0 / 0.07);
}

:root[data-design='clean'] .feature-table td {
  border-bottom-color: var(--hairline);
}
:root[data-design='clean'] .pill {
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 500;
}
:root[data-design='clean'] .pill-booked {
  color: #17663a;
  background: #e2f6e7;
}
:root[data-design='clean'] .pill-moved {
  color: #7a5a00;
  background: #fdf3c4;
}
:root[data-design='clean'] .pill-call {
  color: #b42318;
  background: #fde7e4;
}
@media (max-width: 420px) {
  :root[data-design='clean'] .pill {
    padding-inline: 7px;
  }
}

/* The dot matrix in blocks. A layer is cut into a few rectangles that overlap, square like
   everything else on the page, and moves one cell at a time, so the dots stay put and the
   blocks travel through them. It is
   larger than its surface by the distance it travels. */
:root[data-design='clean'] .feature-stage::before,
:root[data-design='clean'] .feature-stage::after,
:root[data-design='clean'] .art-night::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: -240px;
  pointer-events: none;
  background-size: 10px 10px;
  -webkit-mask-image:
    linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000),
    linear-gradient(#000, #000);
  mask-image:
    linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000),
    linear-gradient(#000, #000);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size:
    320px 240px,
    240px 320px,
    200px 200px,
    280px 160px;
  mask-size:
    320px 240px,
    240px 320px,
    200px 200px,
    280px 160px;
  -webkit-mask-position:
    40px 120px,
    240px 240px,
    560px 80px,
    320px 560px;
  mask-position:
    40px 120px,
    240px 240px,
    560px 80px,
    320px 560px;
  /* Where two blocks overlap, the overlap is cut out. */
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: clean-drift-a 32s steps(24) infinite alternate;
}
:root[data-design='clean'] .feature-stage::after {
  background-position: 5px 5px;
  -webkit-mask-size:
    200px 280px,
    280px 160px,
    160px 160px,
    0 0;
  mask-size:
    200px 280px,
    280px 160px,
    160px 160px,
    0 0;
  -webkit-mask-position:
    120px 440px,
    640px 200px,
    880px 600px,
    0 0;
  mask-position:
    120px 440px,
    640px 200px,
    880px 600px,
    0 0;
  animation-name: clean-drift-b;
  animation-duration: 40s;
}
@keyframes clean-drift-a {
  to {
    transform: translate(240px, 240px);
  }
}
@keyframes clean-drift-b {
  to {
    transform: translate(-240px, 0);
  }
}
@keyframes clean-drift-up {
  to {
    transform: translate(0, -240px);
  }
}

/* Feature: the example rests on one block of amber running into orange, the dot matrix crossing it,
   instead of the sunlit wall. */
:root[data-design='clean'] .feature-art {
  display: none;
}
/* The highlighter runs into orange across the stage. */
:root[data-design='clean'] .feature-stage {
  background: var(--lemon) linear-gradient(115deg, #ffc23d 0%, var(--lemon) 30%, var(--orange) 100%);
}
:root[data-design='clean'] .feature-stage::before {
  background-image: var(--matrix-soft);
}
:root[data-design='clean'] .feature-stage::after {
  background-image: var(--matrix-ink);
}
:root[data-design='clean'] .feature-card {
  z-index: 1;
}
:root[data-design='clean'] .feature-card-head h3 {
  font-size: 19px;
  font-weight: 600;
}

/* Rules: plain squares where the other design has majolica tiles. */
:root[data-design='clean'] .rules .feature-head h2 {
  font-size: clamp(28px, 2.6vw, 36px);
}
:root[data-design='clean'] .sq-1,
:root[data-design='clean'] .sq-5,
:root[data-design='clean'] .sq-9,
:root[data-design='clean'] .sq-10,
:root[data-design='clean'] .sq-13,
:root[data-design='clean'] .sq-15 {
  background-image: none;
  background-color: var(--soft);
}
:root[data-design='clean'] .sq-1,
:root[data-design='clean'] .sq-12 {
  border-color: transparent;
  background: var(--ink);
}
:root[data-design='clean'] .sq-9 {
  background-color: var(--lemon);
}
/* Three squares are enough behind the card: the highlighter and the dots at one corner,
   ink at the opposite one. */
:root[data-design='clean'] .sq-1,
:root[data-design='clean'] .sq-2,
:root[data-design='clean'] .sq-5,
:root[data-design='clean'] .sq-6,
:root[data-design='clean'] .sq-13,
:root[data-design='clean'] .sq-15,
:root[data-design='clean'] .sq-16 {
  display: none;
}
:root[data-design='clean'] .sq-3,
:root[data-design='clean'] .sq-8,
:root[data-design='clean'] .sq-16 {
  background-image: var(--matrix-ink);
  background-size: 10px 10px;
  background-position: 4px 4px;
}
:root[data-design='clean'] .story-bubble {
  border-color: transparent;
  border-radius: 3px;
}
:root[data-design='clean'] .story-bubble-person {
  color: var(--ink);
  background: var(--soft);
  border-bottom-right-radius: 0;
}
:root[data-design='clean'] .diff-old {
  color: #b42318;
  background: #fde7e4;
  text-decoration-color: rgb(180 35 24 / 0.5);
}
:root[data-design='clean'] .diff-new {
  color: #17663a;
  background: #e2f6e7;
}

/* Pricing: the plan as a plain card on dotted paper. */
:root[data-design='clean'] .pricing-copy h2 {
  font-size: clamp(28px, 2.6vw, 36px);
}
:root[data-design='clean'] .pricing-guarantee {
  border-color: var(--line);
  color: var(--ink);
  background: #fafafa;
}
:root[data-design='clean'] .pricing-guarantee .icon {
  color: var(--go);
}
:root[data-design='clean'] .pricing-art {
  display: none;
}
:root[data-design='clean'] .pricing-stage {
  justify-content: center;
  background:
    var(--paper-dots) 9px 9px / 20px 20px,
    #fafafa;
}
:root[data-design='clean'] .receipt {
  border: 1px solid var(--line);
  background: #fff;
  filter: none;
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.04),
    0 16px 40px rgb(0 0 0 / 0.07);
}
:root[data-design='clean'] .receipt-paper {
  padding: 30px 28px;
  background: #fff;
  -webkit-mask: none;
  mask: none;
}
:root[data-design='clean'] .receipt-head {
  border-bottom: 1px solid var(--line);
}
:root[data-design='clean'] .receipt-brand {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.045em;
}
:root[data-design='clean'] .receipt-lines > div::after {
  border-bottom-color: #cfcfcf;
}
:root[data-design='clean'] .receipt-total {
  border-top: 1px solid var(--line);
}
:root[data-design='clean'] .receipt-stamp {
  padding: 6px 12px;
  border: 0;
  font-weight: 500;
  color: var(--ink);
  background: var(--lemon);
  transform: none;
}
:root[data-design='clean'] .receipt-thanks {
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
}
@media (min-width: 561px) {
  :root[data-design='clean'] .pricing-stage {
    min-height: 600px;
  }
}
@media (min-width: 561px) and (max-width: 1100px) {
  :root[data-design='clean'] .pricing-stage {
    min-height: 540px;
  }
}
@media (max-width: 560px) {
  :root[data-design='clean'] .pricing-stage {
    padding-top: 32px;
  }
  :root[data-design='clean'] .receipt {
    margin: 0 auto;
  }
  :root[data-design='clean'] .receipt-paper {
    padding-inline: 18px;
  }
}

/* Closing: the last line on black. White squares step down from the page above it, the
   frame's hairlines run on through, and the dot matrix drifts on the side away from the
   words. */
:root[data-design='clean'] .site-footer {
  background: var(--ink);
}
:root[data-design='clean'] .art-night {
  border-top: 0;
  overflow: hidden;
}
:root[data-design='clean'] .art-night::before {
  inset: -240px -240px -240px 52%;
  background-image: var(--matrix-lime), var(--matrix-orange);
  background-position:
    0 0,
    5px 5px;
  animation-name: clean-drift-up;
}
:root[data-design='clean'] .art-night > img {
  display: none;
}
:root[data-design='clean'] .art-night::after {
  inset: 0 auto auto 0;
  width: 200px;
  height: 80px;
  background:
    linear-gradient(#fff, #fff) 0 0 / 120px 40px no-repeat,
    linear-gradient(#fff, #fff) 0 40px / 40px 40px no-repeat,
    linear-gradient(#262626, #262626) 160px 0 / 40px 40px no-repeat;
}
:root[data-design='clean'] .closing {
  position: relative;
  z-index: 1;
  bottom: auto;
  left: auto;
  width: var(--frame);
  margin-inline: auto;
  padding: 128px 56px 104px;
  border-inline: 1px solid #222;
  text-align: left;
  transform: none;
}
:root[data-design='clean'] .closing h2 {
  max-width: 640px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.1;
  color: #fff;
  text-shadow: none;
}
:root[data-design='clean'] .evening-actions {
  justify-content: flex-start;
}
:root[data-design='clean'] .evening-button {
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}
:root[data-design='clean'] .evening-button:hover {
  background: var(--lemon);
  border-color: var(--lemon);
}
:root[data-design='clean'] .evening-access {
  color: #fff;
  text-shadow: none;
}
:root[data-design='clean'] .invitation-note {
  color: #a3a3a3;
  text-shadow: none;
}
@media (max-width: 1100px) {
  :root[data-design='clean'] .closing {
    padding-inline: 44px;
  }
}
/* On a narrow page the words take the width, and the dot matrix the strip below them, in
   blocks small enough to sit whole inside it. */
@media (max-width: 800px) {
  :root[data-design='clean'] .art-night::before {
    inset: auto -240px -170px;
    height: 400px;
    -webkit-mask-size:
      200px 160px,
      160px 200px,
      240px 120px,
      120px 120px;
    mask-size:
      200px 160px,
      160px 200px,
      240px 120px,
      120px 120px;
    -webkit-mask-position:
      160px 160px,
      320px 240px,
      440px 120px,
      640px 200px;
    mask-position:
      160px 160px,
      320px 240px,
      440px 120px,
      640px 200px;
    animation-name: clean-drift-b;
  }
  :root[data-design='clean'] .closing {
    padding-bottom: 190px;
  }
}
@media (max-width: 560px) {
  :root[data-design='clean'] .art-night::after {
    width: 120px;
    height: 48px;
    background:
      linear-gradient(#fff, #fff) 0 0 / 72px 24px no-repeat,
      linear-gradient(#fff, #fff) 0 24px / 24px 24px no-repeat,
      linear-gradient(#262626, #262626) 96px 0 / 24px 24px no-repeat;
  }
  :root[data-design='clean'] .closing {
    padding: 96px 24px 180px;
  }
}
:root[data-design='clean'] .footer-bar {
  border-top: 1px solid #222;
}
:root[data-design='clean'] .footer-bar .wordmark {
  color: #fff;
}
:root[data-design='clean'] .footer-parent,
:root[data-design='clean'] .footer-brand p,
:root[data-design='clean'] .footer-copyright {
  color: #a3a3a3;
}
:root[data-design='clean'] .footer-parent:hover {
  color: var(--lemon);
}
