/* EmberLight: local Satoshi font, warm neutral surfaces, charcoal identity and orange accents. */

@font-face {
  font-family: 'Satoshi';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('assets/fonts/satoshi-variable.woff2') format('woff2');
}

:root {
  --text-xs: 0.75rem;
  --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;
  --text-6xl: 3.75rem;
  --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-xl: 0.75rem;
  --rounded-full: 9999px;

  --color-brand: #c43a10;
  --color-brand-dark: #a1300d;
  --color-brand-tint: #fff1ea;
  --color-brand-soft: #ffebe1;
  --color-accent: #ff9f43;
  --color-ember: #f04e1c;
  --color-text-link: var(--color-brand);
  --color-page: #fff8f4;
  --color-page-tint: #fdf1ea;
  --color-surface: #f8ebe3;
  --color-border: #f0dfd4;
  --color-text-heading: #1a1412;
  --color-text-strong: #1a1412;
  --color-text-primary: #2a201c;
  --color-text-muted: #66574f;
  --color-success: #2a8a29;
  --color-success-tint: #e8f5e8;
  --color-error: #df2e1b;

  --typography-headings-font-family: 'Satoshi', sans-serif;
  --typography-body-font-family: 'Satoshi', sans-serif;
  --typography-components-button-font-family: 'Satoshi', sans-serif;

  --shadow-card: 0 1px 2px rgba(17, 17, 17, 0.04), 0 8px 24px rgba(17, 17, 17, 0.06);
  --topbar-height: 64px;
}

*,
*::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: var(--color-page);
  -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 from the original page, as in the platform's Section and HeroSection
   variants: a thick stroke behind the lower part of the emphasised words, and the last word
   glued to the closing mark, so the mark never wraps onto a line of its own. */

.heading__highlight {
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-repeat: no-repeat;
  background-size: 100% 0.3em;
  background-position: 0 85%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* The accent stroke draws itself from left to right half a second after its section reaches
   the middle of the window; app.js times each part of a split stroke by its width, so the whole
   stroke runs as one even line. Without scripting, or with reduced motion, the stroke is
   simply there. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .heading__highlight {
    background-size: 0 0.3em;
    transition: background-size var(--stroke-duration, 0.5s) linear var(--stroke-delay, 0.5s);
  }

  .is-seen .heading__highlight {
    background-size: 100% 0.3em;
  }
}

.heading__nowrap {
  white-space: nowrap;
}

/* The closing mark of every heading in the ember orange; the accent is too light for text. */
.heading__mark {
  color: var(--color-ember);
}

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

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--topbar-height);
  background: color-mix(in srgb, var(--color-page) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.topbar__logo {
  color: var(--color-text-strong);
  text-decoration: none;
}

.topbar__logo .wordmark {
  font-size: 28px;
}

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

.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 12px;
  border-radius: var(--rounded);
  font-size: var(--text-base);
  text-decoration: none;
  color: var(--color-text-muted);
}

.menu a:hover {
  color: var(--color-text-strong);
}

/* Buttons: red with white text, square corners, uppercase, as in the design. */

.btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-brand);
  border-radius: var(--rounded);
  background: #ffffff;
  font-family: var(--typography-components-button-font-family);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-brand);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

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

.btn--sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: var(--text-sm);
}

.btn--lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: var(--text-base);
}

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

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

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn__arrow {
  width: 18px;
  height: 18px;
}

/* Hero */

/* The hero opens the rhythm of the section backgrounds with the warmer shade. */
.hero {
  padding: 56px 0 48px;
  background: var(--color-page-tint);
}

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

/* The line above the main heading says the name, how to pronounce it and what it means. */
.hero__eyebrow {
  margin: 0 0 16px;
  color: var(--color-brand-dark);
  font-size: 0.875rem;
  font-weight: 400;
  text-wrap: balance;
}

.hero h1 {
  margin-bottom: 24px;
  font-size: var(--text-6xl);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

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

.hero__note {
  margin: 0 0 24px;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

/* The websites are cut out of their dark background, so a soft shadow lifts them off the
   page as in the design. */
.hero__visual {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(17, 17, 17, 0.14)) drop-shadow(0 2px 4px rgba(17, 17, 17, 0.08));
}

/* Sections: thin lines between them, and a short red line above each heading. */

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

/* Every other section a shade warmer, so the page has a quiet rhythm and the white cards
   lift a little off it. */
.section--tint {
  background: var(--color-page-tint);
}

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

.section h2::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin-bottom: 16px;
  background: var(--color-brand);
}

.section__lead {
  max-width: 60em;
  margin: -16px 0 32px;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

.section__note {
  max-width: 44em;
  margin: 32px auto 0;
  font-size: var(--text-lg);
  text-align: center;
  color: var(--color-text-muted);
}

.section__note strong {
  color: var(--color-text-strong);
}

.section--center {
  text-align: center;
}

.section--center h2::before {
  margin-right: auto;
  margin-left: auto;
}

/* How it works: number, icon, title and text in four columns, red arrows between them. */

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

.step {
  position: relative;
}

.step+.step::before {
  content: "";
  position: absolute;
  top: 58px;
  left: -40px;
  width: 32px;
  height: 20px;
  background: var(--color-brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='10' x2='28' y2='10'/%3E%3Cpolyline points='20 3 28 10 20 17'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='10' x2='28' y2='10'/%3E%3Cpolyline points='20 3 28 10 20 17'/%3E%3C/svg%3E") center / contain no-repeat;
}

.step__number {
  display: block;
  margin-bottom: 8px;
  font-family: var(--typography-headings-font-family);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1;
  color: var(--color-brand);
}

.step__icon {
  display: block;
  width: auto;
  height: 72px;
  margin-bottom: 20px;
  color: var(--color-text-strong);
}

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

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

/* Cards */

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

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

.cards--4 {
  grid-template-columns: repeat(4, minmax(0, 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;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
}

/* A small picture of the benefit above each card's title. */
.card__visual {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  margin-bottom: 16px;
}

.card__icon {
  width: 44px;
  height: 36px;
  color: var(--color-brand);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--rounded-full);
  background: #ffffff;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.chip--timer {
  padding: 6px 16px;
  border-color: transparent;
  background: var(--color-brand-soft);
  font-family: var(--typography-headings-font-family);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-brand);
}

.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);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--rounded-lg);
  font-size: var(--text-sm);
  line-height: var(--leading-tight);
  color: var(--color-text-muted);
}

.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);
}

/* Examples: what the person said, their website with a message it brought, who they are. */

.example {
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.card .example__answer {
  min-height: 3em;
  margin-bottom: 12px;
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

.example__preview {
  position: relative;
  margin-bottom: 40px;
}

.example__preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--rounded);
  box-shadow: 0 0 0 1px var(--color-border);
}

/* The message overlaps the bottom of the website, as a notification on top of it. */
.notice {
  position: absolute;
  right: 12px;
  bottom: -28px;
  left: 28px;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--rounded-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.notice__body {
  min-width: 0;
}

.card .notice__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--color-text-strong);
}

.notice__head strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.card .notice__text {
  display: -webkit-box;
  overflow: hidden;
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Pricing: both steps in one tinted panel, the arrow between them. */

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

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

.price-plan .price-plan__when {
  margin-bottom: 4px;
  font-family: var(--typography-headings-font-family);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.price-plan .price-plan__amount {
  margin-bottom: 8px;
  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);
  color: var(--color-text-strong);
}

.price-plan__unit {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: 0;
}

.price-plan .price-plan__promise {
  font-weight: 700;
  color: var(--color-text-strong);
}

.price-plan__arrow {
  width: 32px;
  height: 32px;
  color: var(--color-brand);
}

/* Questions: one line each with a red plus; an open answer turns the plus into a minus. */

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

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 12px 0 4px;
  border: 0;
  background: none;
  font-family: var(--typography-headings-font-family);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--leading-snug);
  text-align: left;
  color: var(--color-text-heading);
  cursor: pointer;
}

.faq__plus {
  display: inline-flex;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-brand);
}

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

.faq__item.is-open .faq__plus line:first-child {
  opacity: 0;
}

/* 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 {
  max-width: 48em;
  margin: 0;
  padding-bottom: 14px;
  font-size: var(--text-base);
  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__plus {
  display: none;
}

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

.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;
}

@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__plus line {
    transition: opacity 0.2s ease;
  }
}

/* Contact and the closing card */

.contact__story {
  max-width: 40em;
  margin: 0 auto 40px;
  font-size: var(--text-lg);
  line-height: 2;
  color: var(--color-text-muted);
}

/* A link that names a way to reach us, with its icon, kept on one line. */
.tag-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 2px;
  padding: 1px 10px;
  border: 1px solid var(--color-brand);
  border-radius: var(--rounded);
  background: #ffffff;
  line-height: var(--leading-normal);
  white-space: nowrap;
  text-decoration: none;
  color: var(--color-brand);
  transition: background 0.2s ease;
}

.tag-link:hover {
  background: var(--color-brand-tint);
}

.tag-link__icon {
  width: 16px;
  height: 16px;
}

.try-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 40px;
  border: 1px solid var(--color-brand);
  border-radius: var(--rounded-lg);
  background: #ffffff;
}

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

.section .try-card h2::before {
  display: none;
}

.try-card p {
  margin: 0 0 24px;
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.try-card strong {
  color: var(--color-text-strong);
}

/* Footer */

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

.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__logo {
  display: inline-block;
  margin-bottom: 8px;
  color: #ffffff;
  text-decoration: none;
}

.footer__logo .wordmark {
  font-size: 26px;
}

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

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

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

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

.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);
}

.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: 52px;
  padding: 0 16px;
  border: 1px solid var(--color-text-muted);
  border-radius: var(--rounded);
  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-brand);
  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);
}

/* Privacy Policy and Terms and Conditions dialog. Wider than the Try for free dialog, because
   the texts are long; it scrolls when they don't fit the window. */
#legal {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
}

.legal h2 {
  margin: 0 0 8px;
  padding-right: 32px;
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
}

.legal h3 {
  margin: 20px 0 4px;
  padding-right: 0;
  font-size: var(--text-base);
  line-height: var(--leading-snug);
}

#legal .legal p {
  margin: 0 0 8px;
}

.legal strong {
  color: var(--color-text-primary);
}

.legal .legal__updated {
  margin: 20px 0 0;
  font-size: var(--text-sm);
}

/* 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: var(--color-page);
    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;
  }
}

/* Tablets: the hero stacks, four in a row become two, and the arrows between steps go. */

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .step+.step::before {
    display: none;
  }

  .cards--3 {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

/* Narrow screens */

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

  .hero {
    padding: 40px 0 32px;
  }

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

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

  .section {
    padding: 48px 0;
  }

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

  .steps,
  .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 .price-plan__amount {
    font-size: var(--text-4xl);
  }

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

  .try-card {
    padding: 24px;
  }

  .modal__body {
    padding: 24px;
  }

  .signup__row {
    flex-direction: column;
  }
}

/* EmberLight identity — implementation of the approved moodboard. */
:root {
  --color-brand: #D44210;
  --color-brand-dark: #B6350C;
  --color-brand-tint: #FFF0E5;
  --color-brand-soft: #FFE0C6;
  --color-accent: #FF6418;
  --color-ember: #FF6418;
  --color-page: #FDFBF8;
  --color-page-tint: #F7F4EF;
  --color-surface: #F4F1EC;
  --color-border: #E9E4DD;
  --color-text-heading: #1F1F1F;
  --color-text-strong: #1F1F1F;
  --color-text-primary: #353535;
  --color-text-muted: #6B6965;
  --rounded-lg: 12px;
  --rounded-xl: 18px;
  --shadow-card: 0 10px 32px rgba(45, 35, 20, .07);
  --topbar-height: 80px;
}

.wordmark {
  display: block;
  width: 160px;
  height: auto;
}

.topbar__logo .wordmark {
  width: 160px;
}

.footer__logo .wordmark {
  width: 160px;
}

.topbar {
  background: rgba(253, 251, 248, .96);
}

.hero {
  background: var(--color-page);
  padding: 80px 0 72px;
}

.hero h1 {
  font-size: clamp(44px, 5.2vw, 72px);
  letter-spacing: -.045em;
}

.btn {
  border-radius: 9999px;
  text-transform: none;
  letter-spacing: 0;
}

.btn--primary {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.btn--lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 18px;
}

.btn--primary .btn__arrow {
  margin-left: 8px;
}

.section {
  border-color: rgba(100, 80, 60, .07);
}

.section h2::before {
  background: var(--color-accent);
}

.card {
  border-color: var(--color-border);
  box-shadow: 0 3px 18px rgba(45, 35, 20, .035);
}

.price-plan {
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 3px 18px rgba(45, 35, 20, .035);
}

.try-card {
  border-color: var(--color-border);
  box-shadow: var(--shadow-card);
  border-radius: 18px;
}

.footer {
  background: #1F1F1F;
}

@media(max-width:900px) {
  .hero {
    padding: 48px 0;
  }

  .wordmark,
  .topbar__logo .wordmark {
    width: 140px;
  }
}

@media(max-width:480px) {
  .hero h1 {
    font-size: 44px;
  }

  .hero__inner {
    gap: 32px;
  }
}