/* Guroo homepage: the middle of the page, between the painted hero and the same corner at evening.
   Paper, ink and type. Colour comes from the painting and is spent sparingly: the awning's red is for the one
   action, the sky's blue is for links, and everything else is ink on paper. */
:root {
  /* ---- ground and ink ---- */
  --slip: #fffaf1;                        /* paper lying on the paper: receipts, fields, anything that is a sheet */
  --ink-quiet: #6f5a46;                   /* captions and notes, 5.6:1 on --paper */
  --tone: #cdb99a;                        /* data that gives context and is not the subject */
  --chair: #b39871;                       /* an empty seat */
  --error: #b02f1b;                       /* a field that needs fixing, or a line that fails; 5.6:1 on --paper */
  --rule: rgb(43 26 12 / .16);            /* hairlines between rows */
  --rule-firm: rgb(43 26 12 / .72);       /* the line a figure stands on */


  /* ---- type: Gloock speaks, Geist Sans explains ---- */
  --type-statement: clamp(2.5rem, 1.3rem + 5.2vw, 5.5rem);      /* the page's two or three loudest lines */
  --type-heading: clamp(2.125rem, 1.35rem + 3.2vw, 3.5rem);     /* every section's h2 */
  --type-subheading: clamp(1.375rem, 1.2rem + .8vw, 1.75rem);   /* h3, list items, a figure's row names */
  --type-lede: clamp(1.1875rem, 1.05rem + .6vw, 1.375rem);      /* the first paragraph of a section */
  --type-standfirst: clamp(1.1875rem, .95rem + .85vw, 1.625rem); /* the paragraphs under a statement-sized heading */
  --type-body: clamp(1.0625rem, 1rem + .2vw, 1.125rem);
  --type-small: clamp(1rem, .92rem + .35vw, 1.25rem);          /* a slip's lines; on wide screens, the terms and the reasons behind them */
  --type-caption: clamp(.9375rem, .86rem + .2vw, 1rem);        /* the smallest size an owner has to read */

  /* ---- measure and space ---- */
  --measure: 34rem;                       /* about 65 characters of body text */
  --column-gap: clamp(16px, 2.4vw, 32px);
  --space-section: clamp(56px, 6.6vw, 96px);    /* each side of a section, so two sections sit about 190 px apart on a wide screen */
  --space-block: clamp(36px, 5vw, 64px);        /* between a section's copy and its figure */
  --space-heading: clamp(18px, 2.2vw, 28px);    /* from a heading to the text it introduces */

  /* ---- generated tiles: the shadow under the hero's tear, the tear as a mask, and the paper grain ---- */
  --tear-shadow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='34' viewBox='0 0 640 34'%3E%3Cdefs%3E%3CclipPath id='p'%3E%3Cpolygon points='0,34 0,7.4 4,6.6 8,8.8 12,6.2 16,8.3 20,5.9 24,7.5 28,6.1 32,6 36,7 40,4.1 44,3.9 48,6.1 52,4.5 56,3 60,5.4 64,5 68,2.4 72,3.2 76,2.3 80,2.9 84,3.9 88,2.7 92,4.5 96,2.9 100,3.6 104,5.9 108,5.1 112,5.6 116,6.6 120,6.7 124,6.9 128,6.3 132,8.8 136,9.9 140,10.3 144,9.6 148,9 152,9.2 156,10.3 160,10.4 164,8.8 168,9.2 172,9.6 176,10 180,10.8 184,9.8 188,8.3 192,10.6 196,9.4 200,9.6 204,8.6 208,9.2 212,9.1 216,10.2 220,8.2 224,9.5 228,8.4 232,9.9 236,7.9 240,8.5 244,8.7 248,9.4 252,7.5 256,8.5 260,7.6 264,7.5 268,7.8 272,8.9 276,7 280,8 284,5.2 288,7 292,4.8 296,3.8 300,5 304,5.1 308,2 312,2.4 316,3.6 320,2.1 324,1.6 328,1.2 332,1.2 336,2.7 340,4 344,4.2 348,3 352,1.9 356,3.2 360,5 364,5.6 368,5.6 372,4.8 376,6.2 380,6.5 384,7.4 388,6.7 392,9.1 396,9.3 400,7.4 404,8 408,9.8 412,8.1 416,10.2 420,8.9 424,9.4 428,9.3 432,7.7 436,7.8 440,7.6 444,8.8 448,8.7 452,6.9 456,9 460,7.6 464,7 468,7.6 472,9.2 476,8 480,8.3 484,9.3 488,9.5 492,9 496,8.1 500,8.7 504,9.8 508,9.5 512,9 516,8.3 520,8.3 524,9.4 528,8.8 532,7 536,9 540,9.4 544,8.8 548,8.9 552,8.7 556,7.3 560,7.9 564,6.4 568,5.4 572,6 576,5.7 580,7.4 584,6.6 588,6.2 592,6.4 596,5 600,6.3 604,6.9 608,6.2 612,5.9 616,6.6 620,6.5 624,7.8 628,6.3 632,6.3 636,7 640,7.4 640,34'/%3E%3C/clipPath%3E%3Cfilter id='a' x='-10%25' y='-300%25' width='120%25' height='700%25'%3E%3CfeGaussianBlur stdDeviation='1.1'/%3E%3C/filter%3E%3Cfilter id='b' x='-10%25' y='-300%25' width='120%25' height='700%25'%3E%3CfeGaussianBlur stdDeviation='4.5'/%3E%3C/filter%3E%3C/defs%3E%3Cg clip-path='url(%23p)' fill='none' stroke='%233a2410'%3E%3Cpolyline points='-44,5 -40,6.3 -36,6.9 -32,6.2 -28,5.9 -24,6.6 -20,6.5 -16,7.8 -12,6.3 -8,6.3 -4,7 0,7.4 4,6.6 8,8.8 12,6.2 16,8.3 20,5.9 24,7.5 28,6.1 32,6 36,7 40,4.1 44,3.9 48,6.1 52,4.5 56,3 60,5.4 64,5 68,2.4 72,3.2 76,2.3 80,2.9 84,3.9 88,2.7 92,4.5 96,2.9 100,3.6 104,5.9 108,5.1 112,5.6 116,6.6 120,6.7 124,6.9 128,6.3 132,8.8 136,9.9 140,10.3 144,9.6 148,9 152,9.2 156,10.3 160,10.4 164,8.8 168,9.2 172,9.6 176,10 180,10.8 184,9.8 188,8.3 192,10.6 196,9.4 200,9.6 204,8.6 208,9.2 212,9.1 216,10.2 220,8.2 224,9.5 228,8.4 232,9.9 236,7.9 240,8.5 244,8.7 248,9.4 252,7.5 256,8.5 260,7.6 264,7.5 268,7.8 272,8.9 276,7 280,8 284,5.2 288,7 292,4.8 296,3.8 300,5 304,5.1 308,2 312,2.4 316,3.6 320,2.1 324,1.6 328,1.2 332,1.2 336,2.7 340,4 344,4.2 348,3 352,1.9 356,3.2 360,5 364,5.6 368,5.6 372,4.8 376,6.2 380,6.5 384,7.4 388,6.7 392,9.1 396,9.3 400,7.4 404,8 408,9.8 412,8.1 416,10.2 420,8.9 424,9.4 428,9.3 432,7.7 436,7.8 440,7.6 444,8.8 448,8.7 452,6.9 456,9 460,7.6 464,7 468,7.6 472,9.2 476,8 480,8.3 484,9.3 488,9.5 492,9 496,8.1 500,8.7 504,9.8 508,9.5 512,9 516,8.3 520,8.3 524,9.4 528,8.8 532,7 536,9 540,9.4 544,8.8 548,8.9 552,8.7 556,7.3 560,7.9 564,6.4 568,5.4 572,6 576,5.7 580,7.4 584,6.6 588,6.2 592,6.4 596,5 600,6.3 604,6.9 608,6.2 612,5.9 616,6.6 620,6.5 624,7.8 628,6.3 632,6.3 636,7 640,7.4 644,6.6 648,8.8 652,6.2 656,8.3 660,5.9 664,7.5 668,6.1 672,6 676,7 680,4.1 684,3.9' stroke-width='9' stroke-opacity='.16' filter='url(%23b)' transform='translate(0 3)'/%3E%3Cpolyline points='-44,5 -40,6.3 -36,6.9 -32,6.2 -28,5.9 -24,6.6 -20,6.5 -16,7.8 -12,6.3 -8,6.3 -4,7 0,7.4 4,6.6 8,8.8 12,6.2 16,8.3 20,5.9 24,7.5 28,6.1 32,6 36,7 40,4.1 44,3.9 48,6.1 52,4.5 56,3 60,5.4 64,5 68,2.4 72,3.2 76,2.3 80,2.9 84,3.9 88,2.7 92,4.5 96,2.9 100,3.6 104,5.9 108,5.1 112,5.6 116,6.6 120,6.7 124,6.9 128,6.3 132,8.8 136,9.9 140,10.3 144,9.6 148,9 152,9.2 156,10.3 160,10.4 164,8.8 168,9.2 172,9.6 176,10 180,10.8 184,9.8 188,8.3 192,10.6 196,9.4 200,9.6 204,8.6 208,9.2 212,9.1 216,10.2 220,8.2 224,9.5 228,8.4 232,9.9 236,7.9 240,8.5 244,8.7 248,9.4 252,7.5 256,8.5 260,7.6 264,7.5 268,7.8 272,8.9 276,7 280,8 284,5.2 288,7 292,4.8 296,3.8 300,5 304,5.1 308,2 312,2.4 316,3.6 320,2.1 324,1.6 328,1.2 332,1.2 336,2.7 340,4 344,4.2 348,3 352,1.9 356,3.2 360,5 364,5.6 368,5.6 372,4.8 376,6.2 380,6.5 384,7.4 388,6.7 392,9.1 396,9.3 400,7.4 404,8 408,9.8 412,8.1 416,10.2 420,8.9 424,9.4 428,9.3 432,7.7 436,7.8 440,7.6 444,8.8 448,8.7 452,6.9 456,9 460,7.6 464,7 468,7.6 472,9.2 476,8 480,8.3 484,9.3 488,9.5 492,9 496,8.1 500,8.7 504,9.8 508,9.5 512,9 516,8.3 520,8.3 524,9.4 528,8.8 532,7 536,9 540,9.4 544,8.8 548,8.9 552,8.7 556,7.3 560,7.9 564,6.4 568,5.4 572,6 576,5.7 580,7.4 584,6.6 588,6.2 592,6.4 596,5 600,6.3 604,6.9 608,6.2 612,5.9 616,6.6 620,6.5 624,7.8 628,6.3 632,6.3 636,7 640,7.4 644,6.6 648,8.8 652,6.2 656,8.3 660,5.9 664,7.5 668,6.1 672,6 676,7 680,4.1 684,3.9' stroke-width='2.4' stroke-opacity='.3' filter='url(%23a)' transform='translate(0 .6)'/%3E%3C/g%3E%3C/svg%3E");
  --tear-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='18' viewBox='0 0 640 18'%3E%3Cpolygon points='0,18 0,7.4 4,6.6 8,8.8 12,6.2 16,8.3 20,5.9 24,7.5 28,6.1 32,6 36,7 40,4.1 44,3.9 48,6.1 52,4.5 56,3 60,5.4 64,5 68,2.4 72,3.2 76,2.3 80,2.9 84,3.9 88,2.7 92,4.5 96,2.9 100,3.6 104,5.9 108,5.1 112,5.6 116,6.6 120,6.7 124,6.9 128,6.3 132,8.8 136,9.9 140,10.3 144,9.6 148,9 152,9.2 156,10.3 160,10.4 164,8.8 168,9.2 172,9.6 176,10 180,10.8 184,9.8 188,8.3 192,10.6 196,9.4 200,9.6 204,8.6 208,9.2 212,9.1 216,10.2 220,8.2 224,9.5 228,8.4 232,9.9 236,7.9 240,8.5 244,8.7 248,9.4 252,7.5 256,8.5 260,7.6 264,7.5 268,7.8 272,8.9 276,7 280,8 284,5.2 288,7 292,4.8 296,3.8 300,5 304,5.1 308,2 312,2.4 316,3.6 320,2.1 324,1.6 328,1.2 332,1.2 336,2.7 340,4 344,4.2 348,3 352,1.9 356,3.2 360,5 364,5.6 368,5.6 372,4.8 376,6.2 380,6.5 384,7.4 388,6.7 392,9.1 396,9.3 400,7.4 404,8 408,9.8 412,8.1 416,10.2 420,8.9 424,9.4 428,9.3 432,7.7 436,7.8 440,7.6 444,8.8 448,8.7 452,6.9 456,9 460,7.6 464,7 468,7.6 472,9.2 476,8 480,8.3 484,9.3 488,9.5 492,9 496,8.1 500,8.7 504,9.8 508,9.5 512,9 516,8.3 520,8.3 524,9.4 528,8.8 532,7 536,9 540,9.4 544,8.8 548,8.9 552,8.7 556,7.3 560,7.9 564,6.4 568,5.4 572,6 576,5.7 580,7.4 584,6.6 588,6.2 592,6.4 596,5 600,6.3 604,6.9 608,6.2 612,5.9 616,6.6 620,6.5 624,7.8 628,6.3 632,6.3 636,7 640,7.4 640,18'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1.5 0 0 0 -.25  1.5 0 0 0 -.25  1.5 0 0 0 -.25  0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- the ground ----
   The paper carries a faint grain, blended so that its average stays the flat colour of the hero's torn edge.
   The painting is a sheet lying on this paper, so it drops a soft shadow along its tear. */
main { position: relative; background-color: var(--paper); background-image: var(--grain); background-size: 220px 220px; background-blend-mode: soft-light; }
/* The paper warms down the page. Those colour rules are in sections_deferred.css. */
main::before { content: ''; position: absolute; left: 0; right: 0; top: -17px; z-index: 3; height: 34px; background: var(--tear-shadow) repeat-x left top / 640px 34px; pointer-events: none; }

/* ---- a section ---- */
.section { position: relative; padding-block: var(--space-section); }
.section__inner { max-width: var(--frame); margin-inline: auto; padding-inline: var(--gutter); }
.section h2 { font-size: var(--type-heading); line-height: 1.04; letter-spacing: -.016em; }
.section h3 { font-size: var(--type-subheading); line-height: 1.15; }
.section p { max-width: var(--measure); font-size: var(--type-body); line-height: 1.6; }
.section p + p { margin-top: .9em; }
.section h2 + p, .section h2 + div { margin-top: var(--space-heading); }
.section a:not(.button) { color: var(--sky-deep); }
.section :focus-visible { outline-color: var(--sky); }
/* An in-page link moves focus to its section so Tab and screen readers follow. The section is not a control, so it draws no ring. */
[tabindex='-1']:focus { outline: none; }
/* Gloock draws its plus at the height of a lowercase x and as thin as a hairline, so in "10+" and "$1M+" it reads as a
   speck. The plus is set in Geist Sans at the weight of Gloock's stems, raised to the middle of the figures. */
.plus { font-family: var(--sans); font-weight: 500; font-size: .8em; vertical-align: .08em; letter-spacing: 0; margin-left: .02em; }

/* ---- figures ----
   A figure's caption is small, quiet and a full sentence. Numbers are tabular wherever they line up. */
.section figure { margin: var(--space-block) 0 0; }
.section figcaption { max-width: var(--measure); color: var(--ink-quiet); font-size: var(--type-caption); line-height: 1.45; }
.section dl, .section dd { margin: 0; }
.section abbr { text-decoration: none; }

/* A figure plays once as it scrolls into view. section_figures.js marks the ones still below the fold as waiting;
   without the script, or with reduced motion, every figure is simply shown. */

/* ---- the register slip ----
   Numbers that were counted at the register are printed on a slip, the same paper as the hero's receipt. */
.slip { --tooth: 7px; position: relative; padding: 22px 22px calc(24px + var(--tooth)); background: var(--slip); color: var(--ink); font-variant-numeric: tabular-nums;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x; }
.slip dl > div { display: flex; align-items: baseline; gap: 10px; }
.slip dt { display: flex; flex: 1; align-items: baseline; gap: 10px; }
.slip dt::after { content: ''; flex: 1; min-width: 20px; border-bottom: 1.5px dotted rgb(43 26 12 / .5); translate: 0 -4px; }

/* ---- #problem: the room ----
   The heading at the page's loudest size, the two paragraphs side by side, and each night drawn as one long table
   of twelve seats. Twelve guests are a Sunday; five stand for the 43% that Tuesday and Thursday each did. */
.problem h2 { font-size: var(--type-statement); line-height: 1; letter-spacing: -.022em; }
.problem__copy { margin-top: clamp(22px, 3vw, 40px); }
.problem__copy p { font-size: var(--type-standfirst); line-height: 1.45; }
.problem__copy p + p { margin-top: .75em; }
.room { display: grid; gap: clamp(24px, 3vw, 40px); }
/* The rule under each night is its table: the name, the guests and the figure all stand on it. */
.room > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: var(--column-gap); border-bottom: 2px solid var(--ink); }
.room dt, .room dd span { font: 400 var(--type-subheading)/1.1 var(--serif); letter-spacing: -.012em; }
.room dd { display: contents; }
.room__seats { display: block; grid-column: 1 / -1; width: 100%; height: auto; margin-top: 6px; overflow: hidden; }
.room__guest--1 { fill: var(--ink); }
.room__guest--2 { fill: #40291a; }
.room__guest--3 { fill: #553a26; }
/* An empty seat is a whole chair, back, seat and legs, so it reads as a chair even at a phone's 29 pixels. */
.room__chair { fill: var(--chair); }
.problem figcaption { margin-top: clamp(22px, 2.6vw, 32px); }
@media (min-width: 860px) {
  .problem__copy { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--column-gap); }
  .problem__copy p { max-width: none; margin: 0; }
  .problem__copy p:first-child { grid-column: 1 / 7; }
  .problem__copy p + p { grid-column: 7 / 13; margin: 0; padding-left: var(--column-gap); }
  .room > div { grid-template-columns: minmax(0, 2fr) minmax(0, 8fr) minmax(0, 2fr); align-items: end; }
  .problem figcaption { margin-left: calc((100% - 2 * var(--column-gap)) / 6 + var(--column-gap)); }
  .room dt { grid-area: 1 / 1; padding-bottom: .3em; }
  .room__seats { grid-area: 1 / 2; margin: 0; }
  .room dd span { grid-area: 1 / 3; padding-bottom: .12em; font-size: clamp(2.25rem, 1rem + 2.6vw, 3.5rem); line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
}

/* ---- #how: the four things one guest meets ----
   The illustrated steps share a rule. Text-only steps start at their own rules.
   The text comes first in the source, so a screen reader hears the step before its picture. */
.how__steps { --stage: auto; --offer: min(60%, 220px); --reel: 136px; display: grid; gap: clamp(64px, 9vw, 88px); margin: var(--space-block) 0 0; padding: 0; list-style: none; counter-reset: step; }
.step { display: flex; flex-direction: column; counter-increment: step; }
.step__figure { order: -1; margin: 0; }
.section .step__figure { margin: 0; }
.step__stage { display: flex; align-items: flex-end; height: var(--stage); padding-top: 8px; border-bottom: 2px solid var(--ink); }
.step__figure figcaption { margin-top: 10px; }
.video-playback { min-height: 44px; margin: 0; padding: 0; border: 0; background: none; color: var(--sky-deep); font: inherit; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.step__text { margin-top: clamp(22px, 2.4vw, 30px); }
/* The number hangs above its heading in Gloock, quiet, because the order is the point of the list. */
.step__text::before { content: counter(step); display: block; margin-bottom: 6px; color: var(--ink-quiet); font: 400 var(--type-subheading)/1 var(--serif); font-variant-numeric: tabular-nums; }
.section .step h3 { font-size: clamp(1.375rem, 1.15rem + .55vw, 1.625rem); line-height: 1.18; letter-spacing: -.01em; }
.step p { margin-top: 12px; }
.section .step h3 + p { margin-top: 12px; }
.step--text-only { border-top: 2px solid var(--ink); }

/* The offer is a printed sheet lying on the paper, the same way the hero's receipt lies on the painting. */
.step__offer { width: var(--offer); height: auto; margin-bottom: 14px; border-radius: 2px; rotate: -1.6deg; box-shadow: 0 14px 22px -12px rgb(58 36 16 / .5), 0 1px 2px rgb(58 36 16 / .22); }

/* The ads are three real reels held like phones: one plays, two wait behind it. */
.reels { position: relative; width: calc(var(--reel) * 2.1); height: calc(var(--reel) * 16 / 9 + 10px); }
.reel { position: absolute; bottom: 10px; display: block; width: var(--reel); height: auto; aspect-ratio: 9 / 16; border-radius: 14px; background: var(--ink); object-fit: cover; box-shadow: 0 16px 26px -14px rgb(58 36 16 / .55), 0 1px 2px rgb(58 36 16 / .2); }
.reel--front { left: calc(var(--reel) * .55); z-index: 2; }
.reel--behind { width: calc(var(--reel) * .84); bottom: 18px; filter: saturate(.85) brightness(.92); }
.reel--left { left: calc(var(--reel) * .2); rotate: -7deg; transform-origin: 100% 100%; }
.reel--right { right: calc(var(--reel) * .2); rotate: 7deg; transform-origin: 0 100%; }

@media (min-width: 600px) {
  .how__steps { --offer: 236px; --reel: 168px; --stage: calc(var(--reel) * 16 / 9 + 28px); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--column-gap); }
  /* Two steps share a row, so the first one's rule runs across the gap to meet the second's. */
  .step:nth-child(odd) .step__stage { margin-right: calc(-1 * var(--column-gap)); }
}
@media (min-width: 1100px) {
  .how__steps { --offer: clamp(208px, 16.5vw, 248px); --reel: clamp(148px, 12vw, 182px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step:has(+ .step .step__stage) .step__stage { margin-right: calc(-1 * var(--column-gap)); }
  .step__text { padding-right: clamp(0px, 1.2vw, 20px); }
  /* Captions hold two lines so the illustrated steps align. */
  .step__figure figcaption { min-height: calc(2em * 1.45); }
  .how__steps:has(> .step--text-only) { row-gap: 0; grid-template-rows: var(--stage) auto; }
  .how__steps:has(> .step--text-only) > .step:has(.step__figure) { grid-row: span 2; }
  .step--text-only { grid-column: 3 / -1; }

  @supports (grid-template-rows: subgrid) {
    .how__steps:has(> .step--text-only) { grid-template-rows: var(--stage) auto auto; }
    .how__steps:has(> .step--text-only) > .step:has(.step__figure) { display: grid; grid-row: 1 / 4; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); }
    .step--text-only:nth-last-child(2) { grid-row: 1; }
    .step--text-only:last-child { grid-row: 2 / 4; }
    .how__steps:has(> .step--text-only) .step__figure { display: grid; grid-row: 1 / 3; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); }
    .how__steps:has(> .step--text-only) .step:has(.step__figure) .step__text { grid-row: 3; }
  }
}

/* ---- #proof: Southern Spice ----
   The case right after the mechanism, so its numbers read as the steps working. The campaign is printed on a register
   slip, because those dollars were counted at the register. The growth is the restaurant's own Clover months, drawn from
   zero, with the two months the copy names in ink and the others in tone. */
.proof h2 { font-size: var(--type-statement); line-height: 1; letter-spacing: -.022em; }
.proof__story { font-size: var(--type-standfirst); line-height: 1.45; }
.section .proof__story { max-width: 38rem; margin-top: clamp(22px, 3vw, 40px); font-size: var(--type-standfirst); }
.section .proof__campaign { margin-top: .9em; font-size: var(--type-lede); line-height: 1.5; }

/* The slip lies straight on the paper: its lines are small type, and small type set at an angle renders soft. */
.section .proof__slip { width: min(100%, 23rem); margin-top: var(--space-block); filter: drop-shadow(0 10px 11px rgb(58 36 16 / .2)) drop-shadow(0 1px 1px rgb(58 36 16 / .18)); }
.proof__slip .slip { padding: 22px 22px calc(26px + var(--tooth)); }
.proof__slip figcaption { padding-bottom: 14px; border-bottom: 1.5px dashed rgb(43 26 12 / .32); color: var(--ink-soft); }
.proof__slip dl { display: grid; gap: 10px; padding-top: 16px; }
.section .proof__slip dl > div { align-items: last baseline; }
.proof__slip dt { font-size: var(--type-small); line-height: 1.3; }
.proof__slip dd { font: 400 1.875rem/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.proof__slip .slip__total { margin-top: 4px; padding-top: 14px; border-top: 1.5px solid var(--ink); }
.proof__slip .slip__total dt::after { content: none; }
.proof__slip .slip__total dd { font-size: 2.5rem; }
.section .slip__date { margin-top: 14px; color: var(--ink-quiet); font-size: var(--type-caption); }

/* The growth: one bar a month, standing on the rule. */
.section .proof__growth { margin-top: var(--space-block); }
.growth__ends { display: flex; justify-content: space-between; gap: var(--column-gap); margin-bottom: clamp(14px, 2vw, 24px); }
.section .growth__ends p { display: grid; max-width: none; color: var(--ink-quiet); font-size: var(--type-caption); line-height: 1.35; }
.growth__ends p > span:first-child { color: var(--ink-proof-caption); }
.section .growth__ends p:last-child { margin: 0; text-align: right; }
.growth__ends strong { color: var(--ink); font: 400 clamp(2rem, 1.2rem + 3.2vw, 4rem)/1.05 var(--serif); letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.proof__growth { --bar-gap: clamp(6px, 1.4vw, 18px); --bar-inset: 0%; }
.growth { --chart: clamp(180px, 24vw, 320px); display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--bar-gap); height: var(--chart); margin: 0; padding: 0; border-bottom: 2px solid var(--ink); list-style: none; }
.growth li { position: relative; outline-offset: 4px; }
.growth li::before { content: ''; position: absolute; left: var(--bar-inset); right: var(--bar-inset); bottom: 0; height: calc(var(--share) * 100%); border-radius: 4px 4px 0 0; background: var(--tone); }
.growth .growth__cited::before { background: var(--ink); }
/* Every month carries its own figure, rounded to the dollar, small and inside the top of its bar, so the two headline
   figures above the chart stay the loudest numbers. On a phone the bars are narrow, so the figure runs up the bar. */
.growth__amount { position: absolute; left: 50%; bottom: calc(var(--share) * 100% - 10px); z-index: 1; color: var(--ink); font-size: .8125rem; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; writing-mode: vertical-rl; rotate: 180deg; translate: -50% 100%; }
.growth__cited .growth__amount { color: var(--slip); }
@media (min-width: 600px) { .growth__amount { bottom: calc(var(--share) * 100% - 26px); writing-mode: horizontal-tb; rotate: none; translate: -50% 0; font-size: var(--type-caption); } }
.growth__month { position: absolute; left: 0; right: 0; top: calc(100% + 10px); color: var(--ink-quiet); font-size: var(--type-caption); line-height: 1; text-align: center; }
/* The exact Clover figure for a month shows on hover, or on a tap, which focuses the bar. */
.growth__value { position: absolute; left: 50%; bottom: calc(var(--share) * 100% + 8px); z-index: 2; padding: 6px 9px; border-radius: 6px; background: var(--ink); color: var(--slip); font-size: var(--type-caption); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; translate: -50% 4px; opacity: 0; pointer-events: none; transition: opacity .15s ease, translate .2s var(--ease-out); }
.growth li:first-child .growth__value { left: 0; translate: 0 4px; }
.growth li:last-child .growth__value { left: auto; right: 0; translate: 0 4px; }
.growth li:focus .growth__value { opacity: 1; translate: -50% 0; }
.growth li:first-child:focus .growth__value, .growth li:last-child:focus .growth__value { translate: 0 0; }
@media (hover: hover) and (pointer: fine) {
  .growth li:hover::before { background: var(--ink-soft); }
  .growth li:hover .growth__amount { color: var(--tone); }
  .growth .growth__cited:hover::before { background: var(--ink); }
  .growth li:hover .growth__value { opacity: 1; translate: -50% 0; pointer-events: auto; }
  .growth li:first-child:hover .growth__value, .growth li:last-child:hover .growth__value { translate: 0 0; }
  .growth__value::after { content: ''; position: absolute; inset: 0 0 -8px; }
}
.growth li[data-value-dismissed] .growth__value { opacity: 0; pointer-events: none; }
.growth li:focus:not(:focus-visible) { outline: none; }
.section .proof__growth figcaption { margin-top: calc(var(--type-caption) + 26px); }
/* On a phone each month is a row: the bar runs to the right from the month's name, and its value reads level inside it. */
@media (max-width: 599px) {
  .growth { height: auto; grid-template-columns: none; grid-auto-rows: 34px; gap: 8px; margin-left: 2.6em; border-bottom: 0; border-left: 2px solid var(--ink); }
  .growth li::before { top: 0; bottom: 0; left: 0; right: auto; width: calc(var(--share) * 100%); height: auto; border-radius: 0 4px 4px 0; }
  .growth__amount { top: 50%; bottom: auto; left: calc(var(--share) * 100% - 10px); font-size: .875rem; writing-mode: horizontal-tb; rotate: none; translate: -100% -50%; }
  .growth__month { top: 50%; left: auto; right: calc(100% + 10px); text-align: right; translate: 0 -50%; }
  .growth li .growth__value, .growth li:first-child .growth__value, .growth li:last-child .growth__value { top: 50%; bottom: auto; left: 10px; right: auto; box-shadow: 0 0 0 1.5px var(--slip); translate: 0 -50%; }
  .growth li:focus .growth__value, .growth li:first-child:focus .growth__value, .growth li:last-child:focus .growth__value { translate: 0 -50%; }
  .section .proof__growth figcaption { margin-top: 18px; }
}

.section .proof__note { margin-top: var(--space-block); }
.proof__quote { margin: var(--space-block) 0 0; }
.section .proof__quote p { max-width: 22ch; font: 400 clamp(1.875rem, 1.2rem + 2.6vw, 3.25rem)/1.1 var(--serif); letter-spacing: -.016em; text-indent: -.42em; text-wrap: balance; }
.proof__quote footer { margin-top: clamp(16px, 2vw, 24px); color: var(--ink-quiet); font-size: var(--type-body); }

/* The ad that ran for the restaurant stands beside its numbers, at the size of a phone held up to the reader, so the
   work and the result are read together. */
.section .proof__ad { width: min(78%, 320px); margin: var(--space-block) auto 0; }
.proof__film { position: relative; overflow: hidden; aspect-ratio: 9 / 16; border-radius: 18px; background: var(--ink); box-shadow: 0 24px 40px -20px rgb(58 36 16 / .6), 0 1px 2px rgb(58 36 16 / .22); }
.proof__film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.section .proof__ad figcaption { margin-top: 12px; padding-top: 10px; border-top: 2px solid var(--ink); }

/* The dining room: the guests of #problem come back a third time, at full size, as the result. One room of forty seats,
   in April and in October, filled in proportion to the orders on Clover. Every row is a table standing on its rule. */
.section .proof__dining { margin-top: calc(var(--space-block) * 1.4); }
.dining { display: grid; gap: clamp(36px, 5vw, 64px); }
.dining__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; max-width: none; margin-bottom: clamp(14px, 2vw, 24px); }
.section .dining__label span { color: var(--ink-quiet); font-size: var(--type-caption); }
.details-page .dining__label span:last-child { color: var(--ink-proof-caption); }
.section .dining__label span:first-child { flex-basis: 100%; color: var(--ink-soft); font-size: var(--type-body); }
.dining__label strong { font: 400 clamp(2.75rem, 1.6rem + 4.4vw, 5.5rem)/.95 var(--serif); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.dining__room { display: block; width: 100%; height: auto; overflow: visible; }
.dining__table { fill: none; stroke: var(--ink); stroke-width: 2.4; }
/* Every guest is cut at the top of the table's rule, so each one sits on the same line as the chairs. */
.dining .room__guest { clip-path: url(#guest-seat); }
.section .proof__dining figcaption { max-width: 44rem; margin-top: clamp(18px, 2.4vw, 28px); }
@media (min-width: 760px) { .dining { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (min-width: 960px) {
  .proof__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--column-gap); align-items: start; }
  .proof h2 { grid-column: 1 / 8; }
  .section .proof__story { grid-column: 1 / 8; }
  .section .proof__campaign { grid-column: 1 / 6; grid-row: 3; }
  /* The ad ends level with the slip, so the slip never stands alone beside bare paper. Only the film leans; its caption
     stays straight. */
  .section .proof__ad { grid-column: 10 / 13; grid-row: 1 / 4; align-self: end; justify-self: end; width: min(100%, 340px); margin: 0; }
  .proof__film { rotate: 1.2deg; }
  /* The slip is printed beside the paragraph it belongs to, level with it, between the story and the ad. */
  .section .proof__slip { grid-column: 6 / 10; grid-row: 3; width: 100%; max-width: 23rem; margin-top: .9em; }
  .section .proof__dining, .section .proof__growth { grid-column: 1 / 13; }
  /* Wide columns would make slabs of the bars, so a bar takes the middle of its month. */
  .proof__growth { --bar-inset: 16%; }
  /* The two end figures line up with the edges of the April and October bars. */
  .growth__ends { padding-inline: calc((100% - 6 * var(--bar-gap)) / 7 * .16); }
  .section .proof__note { grid-column: 1 / 5; margin-top: var(--space-block); padding-top: .4em; }
  .proof__quote { grid-column: 6 / 13; }
}

/* ---- shared by the forms in the middle ---- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* A field is a line to write on: slip paper with an ink rule under it, the way every figure here stands on a rule.
   Its text is 17 px or larger, so iOS never zooms in on focus. */
.entry { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.entry > label, .choices legend { display: block; margin-bottom: 8px; padding: 0; color: var(--ink-soft); font-size: var(--type-caption); line-height: 1.3; }
.entry__field { display: flex; align-items: center; border-bottom: 2px solid var(--ink); border-radius: 6px 6px 0 0; background: var(--slip); transition: border-color .15s ease, box-shadow .15s ease; }
.entry__field input { flex: 1; width: 100%; min-width: 0; min-height: 52px; margin: 0; padding: 12px 14px; border: 0; border-radius: inherit; background: none; color: var(--ink); font: 400 1.0625rem/1.3 var(--sans); outline: none; }
.entry__field input::placeholder { color: var(--ink-quiet); }
.entry__field select { flex: 1; width: 100%; min-width: 0; min-height: 52px; margin: 0; padding: 12px 14px; border: 0; border-radius: inherit; background: none; color: var(--ink); font: 400 1.0625rem/1.3 var(--sans); outline: none; }
.entry__field select:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.entry__field input:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.entry__field:focus-within { border-color: var(--sky); box-shadow: 0 2px 0 var(--sky); }
.entry__field:has([aria-invalid='true']) { border-color: var(--error); box-shadow: 0 2px 0 var(--error); }
.entry__error { display: block; margin-top: 7px; color: var(--error); font-size: var(--type-caption); line-height: 1.35; }
.entry__error:empty { display: none; }

/* ---- #guarantee: the terms ----
   The promise is prose at the standfirst size. The refund and requirements sit together under a firm rule. */
.section .guarantee__promise { margin-top: var(--space-heading); }
.guarantee__promise p { font-size: var(--type-standfirst); line-height: 1.45; }
.section .guarantee__promise p { max-width: 36rem; font-size: var(--type-standfirst); }
.section .guarantee__promise p + p { margin-top: .75em; }
.terms { margin-top: var(--space-block); border-top: 2px solid var(--ink); }
.terms__row { padding-block: 18px 22px; border-bottom: 1px solid var(--rule); }
.section .terms h3 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.4375rem); line-height: 1.2; letter-spacing: -.01em; }
.section .terms__row p, .terms__requirements { margin-top: 8px; }
.terms__requirements { margin-bottom: 0; padding: 0; list-style: none; }
.terms__requirements li { position: relative; padding: 5px 0 5px 22px; font-size: max(var(--type-body), var(--type-small)); line-height: 1.5; text-wrap: pretty; }
/* An en dash marks each requirement. It is type, so it renders the same weight on every line, which a thin box does not. */
.terms__requirements li::before { content: '–'; position: absolute; left: 0; top: 5px; color: var(--ink); }
/* On a wide screen the terms sit beside display type, so they read a step above body text. */
.section .terms__row p, .section .guarantee__reason p { font-size: max(var(--type-body), var(--type-small)); }
.guarantee__reason { margin-top: var(--space-block); }
.section .guarantee__reason h3 + p { margin-top: 12px; }

/* On a phone the guarantee stays one compact agreement: the promise a step smaller, the rows closer together. */
@media (max-width: 959px) {
  .section .guarantee__promise p { font-size: var(--type-lede); line-height: 1.5; }
  .terms { margin-top: 28px; }
  .terms__row { padding-block: 12px 14px; }
  .terms__requirements li { padding-block: 3px; }
  .guarantee__reason { margin-top: 32px; }
}
@media (min-width: 960px) {
  .guarantee__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--column-gap); align-items: start; }
  .guarantee h2, .section .guarantee__promise, .guarantee__reason { grid-column: 1 / 7; }
  /* The terms start level with the promise, so the two are read as one agreement: what we promise, and what it takes. */
  .terms { grid-column: 8 / 13; grid-row: 2 / 4; margin-top: var(--space-heading); }
}

/* ---- #math: the calculator ----
   The owner's numbers go in, the target comes out at display size, a slow night is drawn with one chair per empty table,
   and the arithmetic prints on a register slip. Numbers change the moment a field does; the only motion is guests sitting
   down or getting up, because that is the answer changing. */
.math h2 { font-size: var(--type-statement); line-height: 1; letter-spacing: -.022em; }
.section .math__standfirst { max-width: 38rem; margin-top: clamp(22px, 3vw, 40px); font-size: var(--type-standfirst); line-height: 1.45; }
.math__inner { display: grid; grid-template-columns: minmax(0, 1fr); }

/* The fields. Two take typing and sit side by side; the two that are a small choice are buttons, so a phone only
   opens its keyboard for the two numbers that need it. */
.calculator { display: grid; gap: 24px; margin-top: 28px; }
.calculator__numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.calculator .entry__field input { min-height: 58px; padding: 12px 14px 10px; font: 400 1.75rem/1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.entry__field--dollars::before { content: '$'; padding-left: 14px; color: var(--ink-quiet); font: 400 1.75rem/1 var(--serif); }
.calculator .entry__field--dollars input { padding-left: 3px; }
.choices { min-width: 0; margin: 0; padding: 0; border: 0; }
.choices__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.choices__row--seven { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.choices label { position: relative; display: block; -webkit-tap-highlight-color: transparent; }
.choices input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choices label > span { display: grid; place-items: center; min-height: 50px; border: 1.5px solid rgb(43 26 12 / .56); border-radius: 8px; background: var(--slip); color: var(--ink); font: 400 1.3125rem/1 var(--serif); font-variant-numeric: tabular-nums; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .16s var(--ease-out); }
.choices input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--slip); }
.choices input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.choices label:active > span { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .choices input:not(:checked):hover + span { border-color: var(--ink); } }

/* The answer. On a phone it sits above the fields, so it stays in sight while the keyboard is up. */
.result { display: block; order: -1; margin-top: var(--space-block); }
.math__inner > h2, .math__standfirst { order: -2; }
.result__target span { display: block; color: var(--ink-soft); font-size: var(--type-body); }
.result__target strong { display: block; margin-top: 4px; font: 400 clamp(3.5rem, 2.2rem + 5.4vw, 6rem)/.95 var(--serif); letter-spacing: -.025em; font-variant-numeric: tabular-nums; transition: color .2s ease; }
.section .result__tables { max-width: 30rem; margin-top: 14px; font-size: var(--type-lede); line-height: 1.45; font-variant-numeric: tabular-nums; }
.section .result__verdict, .section .result__prompt { max-width: 32rem; margin-top: 8px; font: 400 var(--type-subheading)/1.2 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.result__prompt:empty { display: none; }
.section .result__note { max-width: 30rem; margin-top: 12px; color: var(--ink-math-caption); font-size: var(--type-caption); line-height: 1.45; }
.section .night figcaption { color: var(--ink-math-caption); }

/* Not a fit is said as plainly as a fit: the verdict keeps its size, and the target it can't reach steps back to ink-quiet. */
.math[data-fit='over'] .result__target strong { color: var(--ink-quiet); }
.math[data-fit='over'] .math__slip li:last-child strong { color: var(--error); }
/* A plan that does not work is not one to text, so the form steps out of the page until the numbers fit. */
.math[data-fit='over'] .plan__fold { display: none; }

/* When a field is empty, the prompt takes the place of the stale result. */
.math[data-state='incomplete'] :is(.result > :not(.result__prompt), .night, .math__slip, .plan__fold) { display: none; }

/* One slow night. Each row of twelve chairs stands on its table's rule. */
.section .night { margin-top: var(--space-block); }
.night__rows { display: grid; gap: clamp(8px, 1.4vw, 14px); }
.night__row { width: calc(var(--cells) / 12 * 100%); border-bottom: 2px solid var(--ink); }
.night__row--missing { margin-top: 6px; border-bottom: 2px dashed rgb(43 26 12 / .42); }
.night__seats { display: block; width: 100%; height: auto; overflow: hidden; }
.night__chair { fill: var(--chair); transition: opacity .18s ease var(--delay, 0ms); }
.night__guest { opacity: 0; translate: 0 12px; transition: opacity .26s var(--ease-out) var(--delay, 0ms), translate .42s var(--ease-out) var(--delay, 0ms); }
.night__guest--1 { fill: var(--ink); }
.night__guest--2 { fill: #40291a; }
.night__guest--3 { fill: #553a26; }
.night__guest--missing { fill: var(--tone); }
.is-seated .night__guest { opacity: 1; translate: 0 0; }
.is-seated .night__chair { opacity: 0; }
.is-waiting .night__guest { opacity: 0; translate: 0 12px; }
.is-waiting .night__chair { opacity: 1; }
.night figcaption { margin-top: 14px; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .night__guest, .night__chair { transition: none; } }

/* The arithmetic, printed on the register slip that #proof uses for the campaign. */
.section .math__slip { width: min(100%, 27rem); margin-top: var(--space-block); filter: drop-shadow(0 10px 11px rgb(58 36 16 / .2)) drop-shadow(0 1px 1px rgb(58 36 16 / .18)); }
.math__slip .slip { padding: 22px 22px calc(24px + var(--tooth)); }
.math__slip figcaption { padding-bottom: 14px; border-bottom: 1.5px dashed rgb(43 26 12 / .32); color: var(--ink-soft); }
.math__slip ol { margin: 0; padding: 0; list-style: none; counter-reset: line; }
.math__slip li { position: relative; padding: 12px 0 12px 1.75em; border-bottom: 1.5px dotted rgb(43 26 12 / .38); font-size: var(--type-small); line-height: 1.5; counter-increment: line; }
.math__slip li:last-child { border-bottom: 1.5px solid var(--ink); }
.math__slip li::before { content: counter(line); position: absolute; left: 0; top: 12px; color: var(--ink-quiet); font-family: var(--serif); }
.math__slip li strong { font-weight: 600; transition: color .2s ease; }

/* Text me this plan, and every lead form after it. Ink, not the awning's red: the red is kept for booking the call. */
.section .plan__fold { margin-top: var(--space-block); }
.section .plan { margin-top: 6px; }

/* A secondary capture folds to one quiet line: a button in ink outline that opens its fields in place. It is a native
   details element, so it opens with a tap, Enter or Space, with or without the script. */
.fold__open { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 22px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); font: 500 1rem/1.2 var(--sans); list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .16s ease, color .16s ease, scale .16s var(--ease-out); }
.fold__open::-webkit-details-marker { display: none; }
.fold__open::after { content: ''; width: 9px; height: 9px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; rotate: 45deg; translate: 0 -3px; transition: rotate .25s var(--ease-out), translate .25s var(--ease-out); }
.fold[open] > .fold__open::after { rotate: 225deg; translate: 0 2px; }
.fold__open:active { scale: .97; }
.fold__open:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .fold__open:hover { background: var(--ink); color: var(--slip); } }
.fold::details-content { block-size: 0; overflow: clip; transition: block-size .34s var(--ease-out), content-visibility .34s allow-discrete; }
.fold[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) { .fold::details-content, .fold__open::after { transition: none; } }
.plan__fields, .lead__fields { display: grid; gap: 16px; margin-top: 18px; }
.consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 16px; padding-block: 10px; color: var(--ink-soft); font-size: var(--type-caption); line-height: 1.45; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.consent input { display: grid; place-content: center; width: 24px; height: 24px; margin: 0; border: 1.5px solid rgb(43 26 12 / .56); border-radius: 6px; background: var(--slip); appearance: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.consent input::after { content: ''; width: 11px; height: 6px; border-bottom: 2px solid var(--slip); border-left: 2px solid var(--slip); rotate: -45deg; translate: 0 -1px; opacity: 0; transition: opacity .12s ease; }
.consent input:checked { border-color: var(--ink); background: var(--ink); }
.consent input:checked::after { opacity: 1; }
.consent input:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.plan__send, .lead__send { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin-top: 16px; padding: 12px 28px; border: 0; border-radius: 999px; background: var(--ink); color: var(--slip); font: 500 1rem/1.2 var(--sans); cursor: pointer; transition: transform .16s var(--ease-out), background-color .16s ease, opacity .2s ease; }
.plan__send:active, .lead__send:active { transform: scale(.97); }
.plan__send:disabled, .lead__send:disabled { opacity: .55; cursor: progress; }
.plan__send:focus-visible, .lead__send:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .plan__send:hover:not(:disabled), .lead__send:not(.button--primary):hover:not(:disabled) { background: #40291a; } }
.section .plan__status, .lead__status { margin-top: 14px; font-size: var(--type-body); line-height: 1.5; }
.plan__status:empty { display: none; }
.lead__status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.plan[data-state='sending'] .plan__status, .lead[data-state='sending'] .lead__status { color: var(--ink-quiet); }
.plan[data-state='failed'] .plan__status, .lead[data-state='failed'] .lead__status { color: var(--error); }
/* Sent: the fields have done their job, so the confirmation takes their place. */
.plan[data-state='sent'] .plan__fields, .plan[data-state='sent'] .consent, .plan[data-state='sent'] .plan__send,
.lead[data-state='sent'] .lead__fields, .lead[data-state='sent'] .consent, .lead[data-state='sent'] .lead__send { display: none; }
.section .plan[data-state='sent'] .plan__status, .lead[data-state='sent'] .lead__status { margin-top: 12px; padding: 18px 0 20px; border-block: 2px solid var(--ink); font: 400 var(--type-subheading)/1.25 var(--serif); }

@media (min-width: 600px) {
  .calculator, .result, .night, .math__inner > .plan__fold { max-width: 40rem; }
  .calculator__numbers { gap: 18px; }
  .plan__fields, .lead__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan .entry--wide, .lead .entry--wide { grid-column: 1 / -1; }
  .plan__send, .lead__send { width: auto; }
}

@media (min-width: 960px) {
  .math__inner { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--column-gap); align-items: start; }
  .math__inner > * { order: 0; }
  /* The question and the fields on the left; the answer on the right from the first line, level with the heading, so the
     page never leaves half of it bare and a change on one side shows on the other. */
  .math h2 { grid-column: 1 / 7; grid-row: 1; }
  .section .math__standfirst { grid-column: 1 / 7; grid-row: 2; }
  .calculator { grid-column: 1 / 7; grid-row: 3; max-width: none; margin-top: var(--space-block); }
  .result { grid-column: 8 / 13; grid-row: 1 / 3; align-self: start; max-width: none; margin: 0; }
  /* The arithmetic prints beside the fields it is worked from, under the answer; the slow night is drawn under the
     fields. Both columns then end close together, so neither leaves a band of bare paper beside the other. */
  .section .math__slip { grid-column: 8 / 13; grid-row: 3; justify-self: start; width: 100%; max-width: 27rem; }
  .section .night { grid-column: 1 / 7; grid-row: 4; align-self: start; max-width: none; margin-top: var(--space-block); }
  .section .math__inner > .plan__fold { grid-column: 8 / 13; grid-row: 4; max-width: none; margin-top: var(--space-block); }
}
