/* The landing page is one object: the Markdown file a text turns into, held
   over a room where calls were once routed by hand. Every later section is
   another piece of the same stationery. Square corners, flat fills, three inks. */

.landing {
  --ground: #0d0e10;
  --ground-2: #15171a;
  --paper: #e8e8e4;
  --paper-2: #d6d6d0;
  --paper-ink: #17181a;
  --paper-soft: #55565a;
  --light: #edebe5;
  --light-soft: #a9a7a0;
  --green: #3ddc97;
  --green-ink: #052a19;
  --mist: #cfe3d8;

  --t-display: clamp(40px, 5vw, 72px);
  --t-head: clamp(28px, 3vw, 44px);
  --t-lede: clamp(20px, 1.6vw, 23px);
  --t-body: 17px;
  --t-small: 14px;

  --wrap: 1180px;
  --gutter: max(24px, calc((100vw - var(--wrap)) / 2));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --band: 72px;

  background: var(--ground);
  color: var(--light);
  font-size: var(--t-body);
  overflow-x: clip;
  color-scheme: dark;
}

:where(.landing) img {
  height: auto;
}

.landing main {
  position: relative;
  z-index: 1;
}

.landing h2,
.landing h3 {
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.landing :focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* One button shape for the whole page: a solid rectangle. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  background: var(--paper-ink);
  color: var(--paper);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s;
}

.button:hover {
  background: #000;
  transform: translateY(-2px);
}

.button:active,
.cell:active,
.dialog button:active {
  transform: translateY(1px) scale(0.98);
}

.link {
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  transition: text-underline-offset 0.18s;
}

.link:hover {
  text-underline-offset: 7px;
}

/* ── Hero: the file over a dim room ────────────────────────────────────── */

.hero {
  position: relative;
  background: var(--ground);
}

.hero-pin {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px var(--gutter);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.55);
  opacity: var(--photo, 1);
  animation: drift 36s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.14) translate(-2%, -1.5%); }
}

.file {
  position: relative;
  width: min(940px, 100%);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  grid-template-areas:
    "title title"
    "facts live"
    "more live"
    "lede live"
    "foot foot";
  grid-template-rows: auto auto auto 1fr auto;
  column-gap: 44px;
  row-gap: 28px;
  padding: 32px;
  background: var(--paper);
  color: var(--paper-ink);
  transform-origin: 0 100%;
  will-change: transform;
}

.file-body {
  display: contents;
}

.file-title {
  grid-area: title;
  display: flex;
  justify-content: space-between;
  font-size: var(--t-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.file-title span {
  display: inline-block;
  animation: word-in 0.9s var(--ease) both;
}

.file-title span:nth-child(2) { animation-delay: 0.08s; }
.file-title span:nth-child(3) { animation-delay: 0.16s; }

@keyframes word-in {
  from { opacity: 0; transform: translateY(28px); }
}

.file-facts {
  grid-area: facts;
  font-size: var(--t-lede);
  font-weight: 650;
  line-height: 1.2;
}

.try-more {
  grid-area: more;
  display: grid;
  justify-items: start;
  gap: 8px;
}

.try-more p {
  font-size: var(--t-small);
  font-weight: 650;
  color: var(--paper-soft);
}

.try-more button {
  padding: 8px 12px;
  border: 0;
  background: var(--paper-2);
  color: var(--paper-ink);
  font-size: var(--t-small);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s;
}

.try-more button:hover {
  background: #c9c9c2;
  transform: translateX(4px);
}

.try-more button:active {
  transform: translateX(4px) scale(0.98);
}

.file-lede {
  grid-area: lede;
  align-self: end;
  max-width: 34ch;
  font-size: var(--t-body);
  line-height: 1.45;
}

.file-live {
  grid-area: live;
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.try {
  font-size: var(--t-small);
  font-weight: 650;
  color: var(--paper-soft);
}

.try-input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 2px solid var(--paper-ink);
  border-radius: 0;
  background: #fff;
  color: var(--paper-ink);
  font-size: var(--t-body);
  transition: outline-color 0.18s;
}

.try-input:focus {
  outline: none;
  outline: 4px solid var(--green);
}

.file-name {
  font-size: var(--t-small);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.file-text {
  margin: 0;
  min-height: 212px;
  padding: 16px 18px;
  background: var(--ground);
  color: var(--light);
  font: var(--t-small)/1.6 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.file-text code {
  font: inherit;
}

.file-text .changed {
  color: var(--green);
}

.file-foot {
  grid-area: foot;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.credit {
  font-size: var(--t-small);
  color: var(--paper-soft);
  text-decoration: none;
}

.credit:hover {
  color: var(--paper-ink);
}

/* Screens that pass behind the shrinking card; only when it is pinned. */
.hero-pass {
  display: none;
}

.hero.is-pinned .hero-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  pointer-events: none;
}

.hero.is-pinned .file {
  pointer-events: auto;
}

.hero.is-pinned .hero-pass {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10svh;
  padding: 8svh var(--gutter) 22svh;
}

.hero-pass img {
  width: 60%;
  justify-self: end;
}

.hero-pass img + img {
  width: 44%;
  margin-right: 22%;
}

/* ── Showcase: one plate, three places ─────────────────────────────────── */

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 88svh;
  background: var(--paper);
  color: var(--paper-ink);
}

.plate {
  display: grid;
  place-items: center;
  padding: 40px;
}

.plate img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: left top;
  background: var(--ground);
  transition: opacity 0.25s;
}

.plate img.is-tall {
  object-fit: contain;
  object-position: center;
}

.plate img.is-swapping {
  opacity: 0;
}

.showcase-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 40px var(--gutter) 40px 24px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}

.tabs button {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--paper-soft);
  font-size: var(--t-body);
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline transparent 3px;
  text-underline-offset: 8px;
  transition: color 0.18s, text-decoration-color 0.18s;
}

.tabs button:hover {
  color: var(--paper-ink);
}

.tabs button[aria-selected="true"] {
  color: var(--paper-ink);
  font-weight: 750;
  text-decoration-color: var(--paper-ink);
}

.showcase-copy h2 {
  font-size: var(--t-head);
  font-weight: 750;
}

.showcase-copy p {
  max-width: 36ch;
  margin-top: 24px;
  font-size: var(--t-lede);
  line-height: 1.4;
}

.cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.cell {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 24px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.18s var(--ease), background 0.18s;
}

.cell-ink {
  background: var(--paper-ink);
  color: var(--paper);
}

.cell-ink:hover {
  background: #000;
}

.cell-tone {
  background: var(--paper-2);
  color: var(--paper-ink);
}

.cell-tone:hover {
  background: #c9c9c2;
}

/* ── Journey: one text on a printed slip ───────────────────────────────── */

.journey {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: start;
  padding: 128px var(--gutter) 96px;
  background: var(--ground);
  color: var(--light);
}

.journey-text {
  grid-column: 1 / 6;
}

.journey-text h2 {
  font-size: var(--t-display);
  font-weight: 800;
}

.journey-text > p {
  max-width: 30ch;
  margin-top: 24px;
  font-size: var(--t-lede);
  line-height: 1.4;
}

.tipped {
  width: 62%;
  margin: 56px 0 0;
  padding: 10px 10px 14px;
  background: var(--paper);
  color: var(--paper-soft);
  transform: rotate(-2deg);
}

.tipped figcaption {
  margin-top: 10px;
  font-size: var(--t-small);
}

.slip {
  position: relative;
  grid-column: 7 / 12;
  max-width: 480px;
  padding: 36px 32px 48px;
  background: var(--paper);
  color: var(--paper-ink);
  font-variant-numeric: tabular-nums;
}

/* The bottom edge is torn off the roll. */
.slip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14'%3E%3Cpath d='M0 0h20L10 14z' fill='%23e8e8e4'/%3E%3C/svg%3E") repeat-x 0 0 / 20px 14px;
}

.slip h3 {
  margin-top: 28px;
  font-size: var(--t-body);
  font-weight: 750;
  letter-spacing: 0;
}

.slip h3:first-child {
  margin-top: 0;
}

.stop {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
  font-size: var(--t-body);
  line-height: 1.35;
}

.stop span:first-child {
  flex: 0 1 auto;
}

.stop span:last-child {
  flex: none;
}

.dots {
  flex: 1 1 24px;
  min-width: 24px;
  border-bottom: 4px dotted var(--paper-soft);
  transform: translateY(-4px);
}

.stop.total {
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  margin: 28px -32px 0;
  padding: 8px 32px;
  background: var(--paper-ink);
  color: var(--paper);
  font-weight: 700;
}

/* ── Sheets: what happens to your notes ────────────────────────────────── */

.sheets {
  padding-top: 72px;
  background: var(--ground);
  color: var(--light);
}

.sheets-title {
  padding: 0 var(--gutter) 48px;
  font-size: var(--t-display);
  font-weight: 800;
}

.sheet {
  --i: 0;
  position: sticky;
  top: calc(var(--i) * var(--band));
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: var(--band) auto 1fr auto;
  column-gap: 24px;
  height: calc(100svh - var(--i) * var(--band));
  min-height: 560px;
  padding-left: var(--gutter);
}

.sheet:nth-of-type(2) { --i: 1; }
.sheet:nth-of-type(3) { --i: 2; }
.sheet:nth-of-type(4) { --i: 3; }

.sheet h3 {
  grid-column: 1 / 7;
  grid-row: 1;
  align-self: center;
  font-size: var(--t-head);
  font-weight: 750;
}

.sheet-points {
  grid-column: 1 / 6;
  grid-row: 2;
  display: grid;
  gap: 14px;
  margin: 0;
  padding-top: 32px;
}

.sheet-points div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  font-size: var(--t-body);
}

.sheet-points dt {
  font-weight: 750;
}

.sheet-points dd {
  margin: 0;
}

.sheet > p {
  grid-column: 1 / 6;
  grid-row: 4;
  align-self: end;
  max-width: 40ch;
  padding-bottom: 56px;
  font-size: var(--t-lede);
  line-height: 1.5;
}

.sheet-pic {
  grid-column: 7 / -1;
  grid-row: 2 / -1;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: left top;
}

.sheet-accent {
  background: var(--green);
  color: var(--green-ink);
}

.sheet-paper {
  background: var(--paper);
  color: var(--paper-ink);
}

.sheet-ink {
  background: var(--ground-2);
  color: var(--light);
}

.sheet-mist {
  background: var(--mist);
  color: var(--paper-ink);
}

/* A text thread, the way a phone shows it. */
.sms {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 40px clamp(20px, 4vw, 56px);
  background: var(--ground);
}

.bubble {
  max-width: 78%;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: var(--t-body);
  line-height: 1.4;
}

.bubble.out {
  align-self: flex-end;
  background: var(--green);
  color: var(--green-ink);
  border-bottom-right-radius: 6px;
}

.bubble.in {
  align-self: flex-start;
  background: #23262b;
  color: var(--light);
  border-bottom-left-radius: 6px;
}

/* ── The menu card of text commands ────────────────────────────────────── */

.menu-wrap {
  display: grid;
  justify-items: center;
  padding: 136px 16px;
  background: var(--green);
}

.menu-card {
  position: relative;
  width: min(640px, 100%);
  padding: 64px;
  background: var(--paper);
  color: var(--paper-ink);
  text-align: center;
}

/* Scalloped top and bottom, like a printed card. */
.menu-card::before,
.menu-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23e8e8e4'/%3E%3C/svg%3E") repeat-x 0 0 / 24px 12px;
}

.menu-card::before {
  bottom: 100%;
}

.menu-card::after {
  top: 100%;
  transform: scaleY(-1);
}

.menu-card h2 {
  font-size: var(--t-head);
  font-weight: 800;
}

.menu-note {
  margin-top: 12px;
  font-size: var(--t-body);
  color: var(--paper-soft);
}

.menu-group {
  margin-top: 56px;
}

.menu-group h3 {
  font-size: var(--t-lede);
  font-weight: 750;
}

.menu-group dl {
  width: min(440px, 100%);
  margin: 8px auto 0;
  text-align: left;
}

.menu-group dl div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-top: 16px;
  font-size: var(--t-body);
}

.menu-group dt {
  font-weight: 650;
}

.menu-group dd {
  margin: 0;
  color: var(--paper-soft);
  text-align: right;
}

.menu-close {
  margin-top: 56px;
  font-size: var(--t-body);
  line-height: 1.6;
}

/* ── Where your notes live ─────────────────────────────────────────────── */

.facts {
  display: grid;
  grid-template-columns: calc(34vw - var(--gutter)) 1fr;
  column-gap: 0;
  row-gap: 120px;
  align-items: start;
  padding: 144px var(--gutter);
  background: var(--ground);
  color: var(--light);
}

.fact-pairs {
  display: grid;
  gap: 20px;
  margin: 0;
  max-width: 180px;
}

.fact-pairs dt {
  font-size: var(--t-small);
  color: var(--light-soft);
}

.fact-pairs dd {
  margin: 2px 0 0;
  font-size: var(--t-body);
}

.facts-lede {
  max-width: 90%;
  font-size: var(--t-lede);
  line-height: 1.38;
}

.facts-word {
  font-size: var(--t-body);
  font-weight: 650;
}

.facts-lists {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
}

.facts-lists ul {
  width: 300px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts-lists li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
  font-size: var(--t-body);
}

.facts-lists li span:last-child {
  color: var(--light-soft);
}

/* ── The first step, already open ──────────────────────────────────────── */

.close {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  min-height: 90svh;
  padding: 40px var(--gutter);
  background: var(--green);
  color: var(--green-ink);
}

.close-text {
  grid-column: 1 / 7;
  align-self: end;
}

.close-text h2 {
  font-size: var(--t-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.close-text p {
  max-width: 36ch;
  margin-top: 20px;
  font-size: var(--t-body);
  line-height: 1.45;
}

/* The app's own sign-up card, at true size. */
.dialog {
  grid-column: 8 / 13;
  align-self: center;
  display: grid;
  gap: 18px;
  width: min(440px, 100%);
  padding: 28px;
  border-radius: 12px;
  background: var(--ground-2);
  color: var(--light);
  box-shadow: 0 24px 64px -16px rgb(5 42 25 / 0.55); /* taste-skill-ignore: the open dialog of the data-ui fragment */
}

.dialog-title {
  font-size: var(--t-lede);
  font-weight: 650;
}

.dialog-field {
  display: grid;
  gap: 6px;
}

.dialog-field span {
  font-size: var(--t-small);
  font-weight: 560;
  color: var(--light-soft);
}

.dialog-field input {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #33373e;
  border-radius: 8px;
  background: #0a0b0c;
  color: var(--light);
}

.dialog-field input:focus {
  outline: none;
  border-color: var(--green);
  outline: 3px solid rgb(61 220 151 / 0.3);
}

.dialog button {
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--green-ink);
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s;
}

.dialog button:hover {
  background: #5ff0ad;
  transform: translateY(-2px);
}

/* ── Footer: the back of the card ──────────────────────────────────────── */

.foot {
  position: sticky;
  bottom: 0;
  z-index: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 100svh;
  padding: 40px var(--gutter) 20px;
  background: var(--paper);
  color: var(--paper-ink);
}

.foot-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 2fr;
  gap: 24px;
}

.foot-cols p {
  font-size: var(--t-small);
  line-height: 1.5;
  color: var(--paper-soft);
}

.foot-cols p + p {
  margin-top: 6px;
}

.foot-cols p:first-child {
  color: var(--paper-ink);
  font-weight: 650;
}

.foot-cols a {
  color: var(--paper-ink);
  text-underline-offset: 3px;
}

.wordmark {
  grid-row: 3;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  overflow: visible;
}

.wordmark text {
  fill: var(--paper-ink);
  font-family: var(--font);
  font-size: 250px;
  font-weight: 800;
}

.legal {
  grid-row: 4;
  font-size: var(--t-small);
  color: var(--paper-soft);
}

/* ── Entrances, only when script runs and motion is welcome ────────────── */

.motion .rise {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}

.motion .rise.is-in {
  opacity: 1;
  transform: none;
}

.motion .tipped.rise.is-in {
  transform: rotate(-2deg);
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo,
  .file-title span {
    animation: none;
  }
}

/* ── Tablet ────────────────────────────────────────────────────────────── */

@media (max-width: 1020px) {
  .file {
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }

  .journey-text {
    grid-column: 1 / 7;
  }

  .slip {
    grid-column: 7 / 13;
  }

  .close-text {
    grid-column: 1 / 13;
  }

  .dialog {
    grid-column: 1 / 13;
    grid-row: 1;
    justify-self: end;
  }
}

/* ── Phone ─────────────────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .landing {
    --gutter: 16px;
    --band: 52px;
    --t-display: 44px;
    --t-head: 28px;
    --t-lede: 19px;
  }

  .hero-pin {
    padding: 16px;
  }

  .file {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "facts" "live" "more" "lede" "foot";
    grid-template-rows: none;
    row-gap: 20px;
    padding: 20px;
  }

  .file-title {
    display: block;
  }

  .file-text {
    min-height: 0;
  }

  .file-foot {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "button button" "credit link";
    margin: 0 -20px -20px;
    row-gap: 14px;
  }

  .file-foot .button {
    grid-area: button;
    height: 56px;
  }

  .file-foot .credit {
    grid-area: credit;
    padding-left: 20px;
    padding-bottom: 18px;
  }

  .file-foot .link {
    grid-area: link;
    padding-right: 20px;
    padding-bottom: 18px;
  }

  .showcase {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .plate {
    padding: 16px;
  }

  .showcase-text {
    gap: 28px;
    padding: 8px 16px 48px;
  }

  .tabs {
    gap: 4px 20px;
  }

  .showcase-copy p {
    font-size: var(--t-body);
    margin-top: 16px;
  }

  .cells {
    grid-template-columns: 1fr;
  }

  .cell {
    height: 60px;
  }

  .journey {
    grid-template-columns: 1fr;
    row-gap: 56px;
    padding: 88px 16px 104px;
  }

  .journey-text,
  .slip {
    grid-column: 1;
  }

  .slip {
    max-width: none;
    padding: 28px 22px 40px;
  }

  .stop.total {
    margin-inline: -22px;
    padding-inline: 22px;
  }

  .tipped {
    width: 86%;
  }

  .sheets {
    padding-top: 88px;
  }

  .sheet {
    grid-template-columns: 1fr;
    grid-template-rows: var(--band) auto auto auto;
    height: auto;
    min-height: 70svh;
    padding-right: var(--gutter);
  }

  .sheet h3 {
    grid-column: 1;
  }

  .sheet-points {
    grid-column: 1;
    grid-row: 3;
    padding-top: 20px;
  }

  .sheet-points div {
    grid-template-columns: 104px 1fr;
  }

  .sheet-pic {
    grid-column: 1;
    grid-row: 2;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .sheet .sms {
    aspect-ratio: auto;
    padding: 24px 16px;
  }

  .sheet > p {
    grid-column: 1;
    grid-row: 4;
    align-self: start;
    padding: 20px 0 40px;
    font-size: var(--t-body);
  }

  .menu-wrap {
    padding: 88px 10px;
  }

  .menu-card {
    padding: 44px 24px;
  }



  .facts {
    grid-template-columns: 1fr;
    row-gap: 40px;
    padding: 96px 16px;
  }

  .facts-lede {
    order: -1;
    max-width: none;
  }

  .fact-pairs {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }

  .facts-word {
    margin-top: 24px;
  }

  .facts-lists ul {
    width: 100%;
  }

  .close {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    row-gap: 40px;
    min-height: 84svh;
    padding: 56px 16px 32px;
  }

  .close-text {
    grid-column: 1;
    align-self: start;
  }



  .dialog {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    justify-self: stretch;
    width: 100%;
  }

  .dialog button {
    height: 52px;
  }

  .foot {
    padding: 40px 16px 20px;
  }

  .foot-cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  .foot-cols > div:last-child {
    grid-column: 1 / -1;
  }
}
