/* Tokens come from frontend/design-system/themes/platform00000.css; the fonts are in
   /shared/fonts/fonts.css. */

:root {
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --tracking-tight: -0.025em;
  --tracking-wide: 0.025em;
  --rounded: 0.25rem;
  --rounded-lg: 0.5rem;
  --rounded-full: 9999px;

  --color-brand: #336099;
  --color-brand-dark: #294d7a;
  --color-brand-light: #d6dfeb;
  --color-accent: #fdbf54;
  --color-surface: #eeeceb;
  --color-border: #d8d9da;
  --color-text-heading: #000000;
  --color-text-primary: #000000;
  --color-text-muted: #3c4045;
  --color-text-link: #336099;
  --color-error: #df2e1b;
  --color-success: #38b437;

  --typography-headings-font-family: 'Poppins', sans-serif;
  --typography-body-font-family: 'Alegreya Sans', sans-serif;
  --typography-mono-font-family: 'Roboto Mono', monospace;
  --typography-components-button-font-family: 'Poppins', sans-serif;

  --spacing-button-sm-padding-x: 1rem;
  --spacing-button-sm-min-height: 32px;
  --spacing-button-lg-padding-x: 2rem;
  --spacing-button-lg-min-height: 48px;
  --border-radius-button-sm-border-radius: 0.125rem;
  --border-radius-button-lg-border-radius: 0.125rem;

  --topbar-height: 52px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--typography-body-font-family);
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: var(--color-text-link);
}

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--typography-headings-font-family);
  font-weight: 700;
  color: var(--color-text-heading);
}

/* Heading emphasis, as in the platform's Section and HeroSection variants */

.heading__highlight {
  /* Thick accent stroke painted behind the lower part of the glyphs */
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-repeat: no-repeat;
  background-size: 100% 0.35em;
  background-position: 0 85%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.heading__nowrap {
  white-space: nowrap;
}

h2 .heading__mark {
  color: var(--color-accent);
}

/* The period stays in the text; the hero shows it as the square accent dot on the baseline. */
h1 .heading__mark {
  display: inline-block;
  width: 0.16em;
  height: 0.16em;
  margin-left: 0.16em;
  overflow: hidden;
  color: transparent;
  background-color: var(--color-accent);
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--topbar-height);
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

/* The bar spans the window; its content keeps the page's content width. */
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

/* Texts in the bar never wrap; below the width they need, the menu folds instead. */
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.25em;
  min-width: 0;
  white-space: nowrap;
}

.topbar__mark {
  flex: none;
  width: auto;
  height: 32px;
  margin-right: 4px;
}

.topbar__name {
  font-weight: 700;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar__toggle {
  display: none;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--rounded);
  background: #ffffff;
  font-size: var(--text-base);
  cursor: pointer;
}

.menu {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--rounded);
  font-size: var(--text-base);
  white-space: nowrap;
  text-decoration: none;
  color: var(--color-text-muted);
}

.menu a:hover {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

/* Buttons follow the platform's button tokens */

.btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  border: 1px solid var(--color-brand);
  background: #ffffff;
  font-family: var(--typography-components-button-font-family);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-brand);
}

.btn:hover {
  background: var(--color-brand-light);
}

.btn--sm {
  min-height: var(--spacing-button-sm-min-height);
  padding: 0 var(--spacing-button-sm-padding-x);
  border-radius: var(--border-radius-button-sm-border-radius);
  font-size: var(--text-sm);
}

.btn--lg {
  min-height: var(--spacing-button-lg-min-height);
  padding: 0 var(--spacing-button-lg-padding-x);
  border-radius: var(--border-radius-button-lg-border-radius);
  font-size: var(--text-lg);
}

.btn--primary {
  background: var(--color-brand);
  color: #ffffff;
}

.btn--primary:hover {
  border-color: var(--color-brand-dark);
  background: var(--color-brand-dark);
}

/* While a form is being sent. */
.btn:disabled {
  cursor: progress;
  opacity: 0.7;
}

/* Hero */

.hero {
  padding: 112px 0 96px;
  border-bottom: 1px solid var(--color-border);
}

.hero h1 {
  margin-bottom: 24px;
  font-size: var(--text-5xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.lead {
  max-width: 58ch;
  margin: 0 0 16px;
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

.hero__note {
  margin: 0 0 32px;
  font-family: var(--typography-mono-font-family);
  font-size: var(--text-sm);
  color: var(--color-brand);
}

/* Sections */

.section {
  padding: 80px 0;
  /* Anchored sections stop below the sticky top bar. */
  scroll-margin-top: var(--topbar-height);
}

.section--surface {
  background: var(--color-surface);
}

/* A section that only holds one card needs less room around it. */
.section--compact {
  padding: 40px 0;
}

.section h2 {
  margin-bottom: 32px;
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-align: center;
}

/* Centred under the centred section heading. */
.section__lead {
  max-width: 60ch;
  margin: -12px auto 32px;
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  text-align: center;
  color: var(--color-text-muted);
}

/* Hero: the text with the original page's build animation beside it */

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.hero__visual img {
  display: block;
  width: 100%;
  height: auto;
}
/* How it works: four steps side by side, each with its scene from the original page */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: var(--rounded-full);
  background: var(--color-brand-light);
  font-family: var(--typography-headings-font-family);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-brand-dark);
}

/* The scenes are 264 × 72; they only shrink when the column is narrower. */
.step__scene img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 16px;
}

.step h3 {
  margin-bottom: 4px;
  font-size: var(--text-base);
  line-height: var(--leading-snug);
}

.step p {
  margin: 0;
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* Cards */

.cards {
  display: grid;
  gap: 16px;
}

.cards--2 {
  grid-template-columns: repeat(2, 1fr);
}

.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--rounded-lg);
  background: #ffffff;
}

.card h3 {
  margin-bottom: 8px;
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
}

/* The original sections' icons, in a light brand circle */
.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: var(--rounded-full);
  background: var(--color-brand-light);
  color: var(--color-brand);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

/* Small pieces of the product above each benefit, in the same language as the examples:
   chips and a chat bubble. The fixed height keeps the headings in one line. */
.card__visual {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  gap: 6px;
  min-height: 64px;
  margin-bottom: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--rounded-full);
  background: #ffffff;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--color-text-primary);
}

/* A state that is fine: a green check or dot in front of the text. */
.chip--ok {
  gap: 6px;
}

.chip--ok svg {
  width: 14px;
  height: 14px;
  color: var(--color-success);
}

.chip__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--rounded-full);
  background: var(--color-success);
}

/* A settings switch, turned off. */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--rounded-lg);
  background: #ffffff;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

.toggle__switch {
  position: relative;
  flex: none;
  width: 32px;
  height: 18px;
  border-radius: var(--rounded-full);
  background: var(--color-border);
}

.toggle__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: var(--rounded-full);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.chip--timer {
  padding: 6px 16px;
  border-color: var(--color-brand-light);
  background: var(--color-brand-light);
  font-family: var(--typography-mono-font-family);
  font-size: var(--text-xl);
  color: var(--color-brand-dark);
}

/* The guide speaks in the brand colour, so it reads as a different voice from the
   owners' answers in the examples. */
.guide-bubble {
  position: relative;
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--color-brand);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: #ffffff;
}

.guide-bubble::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 18px;
  width: 0;
  height: 0;
  border-top: 7px solid var(--color-brand);
  border-right: 7px solid transparent;
  border-left: 7px solid transparent;
}

.example__preview {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
}

/* What the owner answered to the opening questions, as a chat message above their
   website. */
.card .example__answer {
  position: relative;
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--color-brand-light);
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: var(--color-text-primary);
}

/* What the website brought: a new inquiry, as a notification on the owner's phone. */
.notice {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.notice__icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--color-brand);
}

.notice__body {
  min-width: 0;
}

.card .notice__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 2px;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--color-text-primary);
}

.notice__head span {
  flex: none;
  color: var(--color-text-muted);
}

.card .notice__text {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--color-text-muted);
}

/* The tail points down at the website made from the answer. */
.example__answer::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 24px;
  width: 0;
  height: 0;
  border-top: 8px solid var(--color-brand-light);
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
}

/* A closing sentence under a section's cards, centred like the heading above them */
.section__note {
  max-width: 60ch;
  margin: 32px auto 0;
  text-align: center;
  color: var(--color-text-muted);
}

/* Pricing: one blue block read left to right, the free month first, then the price. */

.price-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  padding: 40px;
  border-radius: var(--rounded-lg);
  background: var(--color-brand);
  color: #ffffff;
}

.price-plan p {
  margin: 0;
}

.price-plan .price-plan__amount {
  margin-bottom: 16px;
  font-family: var(--typography-headings-font-family);
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.price-plan__unit {
  font-size: var(--text-2xl);
}

/* Right under "30 days", as part of the offer. */
.price-plan .price-plan__promise {
  margin: -8px 0 16px;
  font-weight: 700;
}

/* "free" and "after that" lead each half, in the accent colour. */
.price-plan .price-plan__when {
  margin-bottom: 4px;
  font-family: var(--typography-headings-font-family);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent);
}

.price-plan__step p:last-child {
  color: rgba(255, 255, 255, 0.8);
}

/* Level with the big numbers under the labels. */
.price-plan__arrow {
  width: 40px;
  height: 40px;
  margin-top: 39px;
  color: var(--color-accent);
}

/* FAQ */

/* A readable line length, centred under the centred heading. */
.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq__item {
  border-top: 1px solid var(--color-border);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--color-border);
}

/* The whole question row is the button, so the answer opens wherever it is clicked. The
   small bottom padding keeps an open answer close to its question. */
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0 4px;
  border: 0;
  background: none;
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  text-align: left;
  cursor: pointer;
}

/* Points right when closed and turns down when open, as in the platform accordion. */
.faq__chevron {
  display: inline-flex;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.faq__chevron svg {
  width: 100%;
  height: 100%;
}

.faq__item.is-open .faq__chevron {
  transform: rotate(90deg);
}

/* The answer's row grows from nothing to its full height; the inner box clips it meanwhile. */
.faq__answer {
  display: grid;
  grid-template-rows: 1fr;
}

.faq__answer-inner {
  overflow: hidden;
}

.faq__answer p {
  margin: 0;
  padding-bottom: 20px;
  color: var(--color-text-muted);
}

/* Without JS every answer stays open and the question is plain text. app.js marks the
   list ready, and only then are the answers folded. */
.faq:not(.is-ready) .faq__question {
  cursor: default;
}

.faq:not(.is-ready) .faq__chevron {
  display: none;
}

.faq.is-ready .faq__item:not(.is-open) .faq__question {
  padding-bottom: 20px;
}

.faq.is-ready .faq__item:not(.is-open) .faq__answer {
  grid-template-rows: 0fr;
}

.faq.is-ready .faq__item:not(.is-open) .faq__answer-inner {
  visibility: hidden;
}

/* app.js turns the motion on with the first click, so the answers fold on load without
   moving. */
@media (prefers-reduced-motion: no-preference) {
  .faq.is-animated .faq__question {
    transition: padding-bottom 0.2s ease;
  }

  .faq.is-animated .faq__answer {
    transition: grid-template-rows 0.2s ease;
  }

  .faq.is-animated .faq__answer-inner {
    transition: visibility 0.2s;
  }

  .faq.is-animated .faq__chevron {
    transition: transform 0.2s ease;
  }
}

/* Contact */

/* The examples' story goes on here: the reader is invited to tell theirs, and the ways
   to reach us are links inside the sentences. One step larger than body text. */
.contact__story {
  max-width: 60ch;
  margin: 0 auto;
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  text-align: center;
}

.tag-link {
  margin: 0 4px;
  padding: 1px 8px 1px 6px;
  border: 1px solid var(--color-brand);
  border-radius: var(--rounded);
  background: transparent;
  white-space: nowrap;
  text-decoration: none;
  color: var(--color-text-link);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tag-link:hover {
  background: #ffffff;
}

.tag-link__icon {
  width: auto;
  height: 0.9em;
  margin-right: 4px;
  vertical-align: -0.1em;
}

/* Its own section after the contacts: the card that offers to try it now (the fake
   door). White with a blue outline, the text on top and the button centred below it. */
.try-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  /* As wide as the questions above it, and centred like them. */
  max-width: 720px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--color-brand);
  border-radius: var(--rounded-lg);
  background: #ffffff;
}

.try-card__text {
  width: 100%;
}

/* The section's heading, sized like the others, but close to its sentence. */
.section .try-card h2 {
  margin-bottom: 8px;
}

.try-card p {
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
}

/* Footer follows the platform's FooterSection */

.footer {
  padding: 64px 0 32px;
  background: var(--color-text-heading);
  color: #ffffff;
}

/* The brand-blue link colour is unreadable on the black footer. */
.footer a {
  color: #ffffff;
}

.footer a:hover {
  text-decoration: none;
}

.footer__content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.footer__section h3 {
  margin-bottom: 16px;
  font-size: var(--text-lg);
  color: #ffffff;
}

/* "Dive brightly.in the world of web" has the size of the footer's "Contact" heading. The
   wordmark is sized as one of its words: its lowercase letters match the x-height of
   the heading font, and its baseline sits on theirs (in logo-light.svg the baseline is
   89 of 112 units high). That leaves it below the brand manual's 136px minimum width. */
.footer__brand {
  display: flex;
  align-items: baseline;
  gap: 0.25em;
  margin-bottom: 16px;
  font-family: var(--typography-headings-font-family);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #ffffff;
}

/* Baseline alignment puts the image's bottom on the text baseline, so it moves down by
   the part of the wordmark below its own baseline. */
.footer__logo {
  position: relative;
  top: 0.23em;
  display: block;
}

.footer__logo img {
  display: block;
  width: auto;
  height: 1.1em;
}

.footer__section p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.8);
}

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.footer__bottom p {
  margin: 0;
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.6);
}

.footer__bottom a {
  color: inherit;
}

/* "Try for free" dialog. The body carries the padding, so a click on the dialog element
   itself is a click on the backdrop. */

.modal {
  width: min(560px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--rounded-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.modal__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px;
}

/* The right padding keeps the heading clear of the close button. */
.modal__body h3 {
  padding-right: 32px;
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
}

.modal__body p {
  margin: 0;
  color: var(--color-text-muted);
}

/* E-mail form in the dialog; the field follows the platform's Input (lg). */

.signup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.signup[hidden] {
  display: none;
}

.signup > p:first-child {
  margin-bottom: 8px;
}

.signup__label {
  font-size: var(--text-sm);
  font-weight: 700;
}

.signup__row {
  display: flex;
  gap: 8px;
}

.signup__field {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--color-text-muted);
  border-radius: var(--border-radius-button-lg-border-radius);
  font: inherit;
  color: var(--color-text-primary);
  transition: border-color 0.2s ease;
}

.signup__field:hover {
  border-color: var(--color-brand);
}

.signup__field:focus {
  border-color: var(--color-brand-dark);
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.signup__field[aria-invalid="true"] {
  border-color: var(--color-error);
}

.signup .signup__message {
  font-size: var(--text-sm);
  color: var(--color-error);
}

.signup__message:empty {
  display: none;
}

/* "Did you mean …?" offers the corrected address as a link-like button. */
.signup__suggestion {
  padding: 0;
  border: 0;
  background: none;
  text-decoration: underline;
  color: var(--color-text-link);
  cursor: pointer;
}

.signup .signup__note {
  font-size: var(--text-sm);
}

/* Off-screen rather than display: none, so bots still find and fill it. */
.signup__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

/* After sending: a green check, the new heading and the address we'll write to. */
.signup__thanks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.signup__thanks[hidden] {
  display: none;
}

.signup__check {
  width: 48px;
  height: 48px;
  color: var(--color-success);
}

.modal__body .signup__email {
  color: var(--color-text-primary);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--rounded-full);
  background: transparent;
  font-size: var(--text-2xl);
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
}

.modal__close:hover {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

/* Below the width the full menu needs, it folds under the Menu button (see app.js). */

@media (max-width: 1020px) {
  .topbar__toggle {
    display: block;
  }

  .topbar__nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 16px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
  }

  .topbar.is-open .topbar__nav {
    display: flex;
  }

  .menu {
    flex-direction: column;
  }

  .menu a {
    justify-content: center;
  }

  .topbar__nav .btn {
    align-self: center;
  }
}

/* Four in a row get too narrow on tablets. */

@media (max-width: 900px) {
  .steps,
  .cards--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Narrow screens */

@media (max-width: 760px) {
  .wrap {
    padding: 0 16px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero h1 {
    font-size: var(--text-4xl);
  }

  .lead {
    font-size: var(--text-lg);
  }

  .section {
    padding: 48px 0;
  }

  .section--compact {
    padding: 24px 0;
  }

  .section h2 {
    margin-bottom: 24px;
    font-size: var(--text-2xl);
  }

  .steps,
  .cards--2,
  .cards--3,
  .cards--4 {
    grid-template-columns: 1fr;
  }

  /* The two halves stack, and the arrow turns to point down. */
  .price-plan {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }

  .price-plan__amount {
    font-size: var(--text-4xl);
  }

  .price-plan__arrow {
    margin-top: 0;
    transform: rotate(90deg);
  }

  .try-card {
    padding: 24px;
  }

  .modal__body {
    padding: 24px;
  }

  .signup__row {
    flex-direction: column;
  }
}
