/* A light page with the product in focus. Lime marks what starts something; the project colours paint the time. */

:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #14171c;
  --ink-2: #4b5363;
  --ink-3: #6b7385;
  --line: #e3e5ea;
  --line-2: #d4d8e0;
  --lime: #b6f36b;
  --lime-hover: #a6e85a;
  --lime-ink: #1f3308;
  --lime-text: #346a09;
  --dark: #14171c;
  --dark-ink: #f2f3f7;
  --dark-ink-2: #aab2c0;
  --teal: #2dd4bf;
  --purple: #8b7cff;
  --coral: #f0566b;
  --gutter: clamp(1rem, 4vw, 2.75rem);
  --page: 75rem;
  --bar: 4.25rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

main {
  overflow-x: clip;
}

img,
svg {
  display: block;
}

a {
  color: var(--lime-text);
  text-underline-offset: 0.18em;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2.5px solid var(--ink);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: calc(var(--bar) + 1rem);
}

.muted {
  color: var(--ink-3);
}

.icon {
  width: 1.375rem;
  height: 1.375rem;
  flex: none;
}

/* Hidden until it has focus, then the first thing on the page. */
.skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.625rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s;
}

.button--primary {
  background: var(--lime);
  color: var(--lime-ink);
}

.button--primary:hover {
  background: var(--lime-hover);
}

.button--ghost {
  border-color: var(--line-2);
  background: transparent;
  color: var(--ink);
}

.button--ghost:hover {
  border-color: #b9bfca;
  background: var(--surface);
}

.button--ghost-dark {
  border-color: rgb(255 255 255 / 0.24);
  color: var(--dark-ink);
}

.button--ghost-dark:hover {
  background: rgb(255 255 255 / 0.08);
}

.button--small {
  min-height: 2.5rem;
  padding: 0 1.125rem;
  font-size: 0.875rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgb(20 23 28 / 0.06);
  background: rgb(246 247 249 / 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--page);
  height: var(--bar);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.topbar__nav {
  display: flex;
  gap: 1.5rem;
  margin-left: 1rem;
}

.topbar__nav a,
.topbar__language {
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.topbar__nav a:hover,
.topbar__language:hover {
  color: var(--ink);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-left: auto;
}

.topbar__language {
  margin-right: 0.5rem;
}

.menu {
  display: none;
  position: relative;
}

.menu__toggle {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.menu__toggle::-webkit-details-marker {
  display: none;
}

.menu[open] .menu__toggle {
  background: var(--surface);
}

.menu__panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  display: grid;
  min-width: 14rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 24px 48px -24px rgb(20 23 28 / 0.35);
}

.menu__panel a {
  padding: 0.75rem 0.875rem;
  border-radius: 0.625rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.menu__panel a:hover {
  background: var(--bg);
}

/* Below this width the four sections and the actions no longer fit on one line, so the sections move into the menu. */
@media (max-width: 920px) {
  .topbar__nav,
  .topbar__actions > .topbar__language {
    display: none;
  }

  .topbar__inner {
    gap: 0.75rem;
  }

  .topbar__actions {
    gap: 0.5rem;
  }

  .menu {
    display: block;
  }
}

@media (max-width: 440px) {
  .brand__name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .topbar__actions .button--small {
    padding: 0 0.875rem;
  }
}

@media (max-width: 359px) {
  .topbar__actions {
    gap: 0.375rem;
  }

  .topbar__actions .button--small {
    padding: 0 0.6875rem;
  }
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(2rem, 4vw, 3rem);
}

.hero h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 1.25rem + 3vw, 3.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero__lead {
  max-width: 33rem;
  margin-bottom: 2rem;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.375rem 0.8125rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #3d4452;
  font-size: 0.84375rem;
  line-height: 1.4;
}

/* The pictures of the app, drawn in HTML and scaled with the frame they sit in. */

.showcase {
  position: relative;
}

.showcase--hero {
  padding: 0 0 28% 9%;
}

.laptop__lid {
  width: 94%;
  margin: 0 auto;
  padding: 1.6% 1.6% 2.2%;
  border-radius: 1.125rem 1.125rem 0.375rem 0.375rem;
  background: #1b1f27;
  box-shadow: 0 40px 70px -40px rgb(20 23 28 / 0.55);
}

.laptop__screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #f3f4f7;
  container-type: inline-size;
}

.laptop__base {
  height: 0.875rem;
  border-radius: 0 0 0.875rem 0.875rem;
  background: linear-gradient(#d9dce3, #b8bdc7);
  box-shadow: 0 18px 30px -18px rgb(20 23 28 / 0.5);
}

.app {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--ink);
  font-size: 11px;
  font-size: 2.05cqi;
  line-height: 1.35;
}

.app__bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 1.1em;
  height: 2.7em;
  padding: 0 1.2em;
  border-bottom: 1px solid #e5e7ed;
  background: var(--surface);
}

.app__logo {
  width: 1.5em;
  height: 1.5em;
  margin-right: 0.4em;
}

.app__tab {
  color: #566070;
  font-size: 0.95em;
}

.app__tab--active {
  padding: 0.2em 0.75em;
  border-radius: 999px;
  background: #eef0f4;
  color: var(--ink);
  font-weight: 600;
}

.app__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 1.1em 1.3em;
}

.app__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.8em;
}

.app__date {
  font-size: 1.4em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app__total {
  font-size: 1.3em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.app__total span {
  margin-right: 0.3em;
  color: #7d8696;
  font-size: 0.7em;
  font-weight: 500;
}

.app__band {
  width: 100%;
  height: 2.6em;
}

.app__hours {
  display: flex;
  justify-content: space-between;
  margin: 0.35em 0 0.9em;
  color: #7d8696;
  font-size: 0.8em;
  font-variant-numeric: tabular-nums;
}

.app__columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14.5em;
  gap: 0.9em;
  min-height: 0;
}

.app__entries {
  display: grid;
  gap: 0.45em;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry {
  display: grid;
  grid-template-columns: 6.6em minmax(0, 1fr) auto;
  gap: 0.6em;
  align-items: center;
  padding: 0.55em 0.8em;
  border: 1px solid #e5e7ed;
  border-radius: 0.7em;
  background: var(--surface);
}

.entry__time {
  color: #566070;
  font-size: 0.9em;
  font-variant-numeric: tabular-nums;
}

.entry__what {
  display: grid;
  min-width: 0;
}

.entry__project {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  white-space: nowrap;
}

.entry__note {
  padding: 0 0.5em;
  border-radius: 999px;
  background: #eef0f4;
  color: #566070;
  font-size: 0.82em;
  font-weight: 500;
}

.entry__path {
  overflow: hidden;
  padding-left: 1.05em;
  color: #7d8696;
  font-size: 0.85em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry__length {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dot {
  flex: none;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
}

.dot--teal {
  background: var(--teal);
}

.dot--purple {
  background: var(--purple);
}

.dot--coral {
  background: var(--coral);
}

.app__sums {
  display: grid;
  gap: 0.75em;
  align-content: start;
  padding: 0.85em 0.95em;
  border: 1px solid #e5e7ed;
  border-radius: 0.8em;
  background: var(--surface);
}

.sum,
.budget {
  display: grid;
  gap: 0.1em;
}

.sum + .sum,
.budget {
  padding-top: 0.7em;
  border-top: 1px solid #eef0f4;
}

.sum__label,
.budget__name {
  color: #7d8696;
  font-size: 0.82em;
}

.sum__value {
  font-size: 1.3em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sum__money,
.budget__left {
  color: #566070;
  font-size: 0.82em;
  font-variant-numeric: tabular-nums;
}

.budget__bar {
  height: 0.45em;
  margin: 0.3em 0;
  overflow: hidden;
  border-radius: 999px;
  background: #eef0f4;
}

.budget__bar i {
  display: block;
  width: 65%;
  height: 100%;
  border-radius: inherit;
  background: #7cc02b;
}

/* Phones */

.phone {
  width: 100%;
  padding: 2.6%;
  border-radius: 15% / 7%;
  background: #0e1014;
  box-shadow: 0 40px 60px -30px rgb(20 23 28 / 0.6), 0 0 0 1px rgb(255 255 255 / 0.04) inset;
  container-type: inline-size;
}

.phone__screen {
  position: relative;
  aspect-ratio: 9 / 19;
  overflow: hidden;
  border-radius: 13% / 6%;
  background: #f3f4f7;
  font-size: 10px;
  font-size: 6.2cqi;
  line-height: 1.3;
}

.showcase--hero .phone {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 27%;
  max-width: 12rem;
}

.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75em 1.5em 0;
  font-size: 0.85em;
  font-weight: 700;
}

.phone__island {
  width: 5.4em;
  height: 1.55em;
  border-radius: 1em;
  background: #0e1014;
}

.phone__battery {
  width: 1.9em;
  height: 0.9em;
  border: 1.5px solid var(--ink);
  border-radius: 0.3em;
  background: linear-gradient(90deg, var(--ink) 70%, transparent 70%) content-box;
  padding: 1px;
}

.phone__title {
  margin: 0.9em 0 0;
  padding: 0 0.85em;
  font-size: 2em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.phone__date {
  padding: 0 1.7em;
  color: #7d8696;
  font-size: 0.8em;
  white-space: nowrap;
}

.phone__band {
  width: calc(100% - 2em);
  height: 1.7em;
  margin: 0.7em 1em 0.8em;
}

.phone__entries {
  display: grid;
  gap: 0.45em;
  margin: 0;
  padding: 0 0.8em;
  list-style: none;
}

.phone__entries li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.55em;
  align-items: center;
  padding: 0.6em 0.7em;
  border-radius: 0.85em;
  background: var(--surface);
}

.phone__what {
  display: grid;
  min-width: 0;
}

.phone__what b,
.phone__what small,
.run__what b,
.run__what small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone__what b {
  font-size: 0.85em;
}

.phone__what small {
  color: #7d8696;
  font-size: 0.68em;
}

.phone__length {
  font-size: 0.75em;
  font-weight: 600;
  white-space: nowrap;
}

/* The slim tab at the leading edge that opens the timer. */
.phone__tab {
  position: absolute;
  top: 56%;
  left: 0;
  width: 0.55em;
  height: 4.5em;
  border-radius: 0 0.5em 0.5em 0;
  background: var(--lime);
}

.phone__add {
  position: absolute;
  right: 1.1em;
  bottom: 1.4em;
  display: grid;
  place-items: center;
  width: 3.6em;
  height: 3.6em;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 10px 20px -8px rgb(63 125 12 / 0.55);
}

.phone__plus {
  width: 1.6em;
  height: 1.6em;
  stroke-width: 2.4;
}

.run {
  position: absolute;
  right: 0.6em;
  bottom: 0.9em;
  left: 0.6em;
  display: grid;
  gap: 0.55em;
  padding: 1em;
  border-radius: 1.3em;
  background: var(--dark);
  color: var(--dark-ink);
}

.run__label {
  color: var(--lime);
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.run__what {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55em;
  align-items: center;
}

.run__what > span {
  display: grid;
  min-width: 0;
}

.run__what small {
  color: var(--dark-ink-2);
  font-size: 0.72em;
}

.run__clock {
  font-size: 2.5em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.run__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5em;
}

.run__buttons span {
  padding: 0.6em 0;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 700;
  text-align: center;
}

.run__pause {
  background: rgb(255 255 255 / 0.12);
}

.run__stop {
  background: #ff5d5d;
  color: #1a0b0b;
}

/* iPad */

.showcase--apps {
  padding: 0 clamp(2.5rem, 13%, 5.5rem) clamp(3rem, 10%, 5rem) 0;
}

.tablet {
  padding: 2.2%;
  border-radius: 1.75rem;
  background: #0e1014;
  box-shadow: 0 40px 70px -40px rgb(20 23 28 / 0.55);
}

.tablet__screen {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1rem;
  background: #f3f4f7;
  container-type: inline-size;
}

.tablet .app {
  font-size: 2.1cqi;
}

.week {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 0.7em 0.8em 0;
  border: 1px solid #e5e7ed;
  border-radius: 0.8em;
  background: var(--surface);
}

.week__days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 0.5em;
  text-align: center;
}

.week__day {
  display: grid;
}

.week__day span {
  color: #7d8696;
  font-size: 0.85em;
}

.week__day b {
  font-variant-numeric: tabular-nums;
}

.week__grid {
  flex: 1;
  width: 100%;
  min-height: 0;
}

.showcase--apps .phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 31%;
  max-width: 13rem;
}

/* Sections */

.section {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) 0;
}

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section h2 {
  margin-bottom: 0.875rem;
  font-size: clamp(1.875rem, 1.3rem + 1.9vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section__head p,
.section__lead {
  color: var(--ink-2);
  font-size: 1.125rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 1.625rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
}

.card h3,
.data h3 {
  margin: 1.125rem 0 0.375rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p,
.data p {
  color: var(--ink-2);
  font-size: 0.96875rem;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: #eefbdd;
  color: #2f6108;
}

.cards li:nth-child(4n + 2) .card__icon {
  background: #dcf6f2;
  color: #0f6b63;
}

.cards li:nth-child(4n + 3) .card__icon {
  background: #ebe9ff;
  color: #4b3cc4;
}

.cards li:nth-child(4n + 4) .card__icon {
  background: #fde5e9;
  color: #b3233a;
}

/* Invoice drafts: three numbered steps, then a card for each accounting program. */

.steps,
.programs {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.step__number {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 800;
}

.programs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.program {
  position: relative;
  display: flex;
  gap: 1.125rem;
  align-items: center;
  transition: border-color 0.15s ease;
}

.program:hover,
.program:focus-within {
  border-color: var(--line-2);
}

.program__mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.program__mark--green {
  background: #e1f5e6;
  color: #1d6b34;
}

.program__mark--blue {
  background: #e3ecfd;
  color: #2450a8;
}

.program__text {
  display: grid;
  flex: 1;
  gap: 0.125rem;
  min-width: 0;
}

.program__name {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.program__needs {
  color: var(--ink-2);
  font-size: 0.96875rem;
}

.program__link {
  margin-top: 0.375rem;
  font-weight: 700;
  text-decoration: none;
}

/* The link covers the whole card, so the card is one target. */
.program__link::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
}

.program:hover .program__link {
  text-decoration: underline;
}

.program__arrow {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  color: var(--lime-text);
  transition: transform 0.15s ease;
}

.program:hover .program__arrow {
  transform: translateX(0.2rem);
}

.apps {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.points {
  display: grid;
  gap: 0.875rem;
  margin: 1.75rem 0;
  padding: 0;
  list-style: none;
}

.points li {
  display: flex;
  gap: 0.75rem;
  color: var(--ink-2);
}

.icon--check {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  color: #3f7d0c;
  stroke-width: 2.25;
}

.apps__status {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.apps__status-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgb(182 243 107 / 0.35);
}

.data {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 1.625rem;
  border: 1px solid #d6efb4;
  border-radius: 1.25rem;
  background: #f1fbe4;
}

.data .card__icon {
  background: var(--lime);
  color: var(--lime-ink);
}

.data h3 {
  margin-top: 0.4rem;
}

.closing {
  max-width: calc(var(--page) - 2 * var(--gutter));
  margin: clamp(4rem, 9vw, 7rem) var(--gutter) clamp(3.5rem, 7vw, 5.5rem);
  padding: clamp(2.75rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
  border-radius: 1.75rem;
  background: radial-gradient(40rem 20rem at 50% -10%, rgb(182 243 107 / 0.2), transparent 70%), var(--dark);
  color: var(--dark-ink);
  text-align: center;
}

@media (min-width: 75rem) {
  .closing {
    margin-right: auto;
    margin-left: auto;
  }
}

.closing h2 {
  margin-bottom: 0.875rem;
  color: var(--dark-ink);
  font-size: clamp(1.875rem, 1.3rem + 2.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.closing p {
  margin-bottom: 2rem;
  color: var(--dark-ink-2);
  font-size: 1.125rem;
}

.closing .actions {
  justify-content: center;
}

.closing :focus-visible {
  outline-color: var(--lime);
}

@media (max-width: 960px) {
  .hero,
  .apps {
    grid-template-columns: minmax(0, 1fr);
  }

  .showcase {
    max-width: 40rem;
  }

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

@media (max-width: 600px) {
  .cards,
  .steps,
  .programs {
    grid-template-columns: minmax(0, 1fr);
  }

  .data {
    flex-direction: column;
  }

  .actions .button {
    flex: 1 1 auto;
  }
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: flex-start;
  justify-content: space-between;
  max-width: var(--page);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 3rem;
}

.footer__brand p,
.footer__copyright {
  margin-top: 0.375rem;
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
}

.footer__nav a {
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer__nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer__copyright {
  flex-basis: 100%;
}

/* Privacy, support and the page for a missing address */

.prose {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(3.5rem, 7vw, 5.5rem);
}

.prose h1 {
  margin-bottom: 0.25rem;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.prose section {
  display: grid;
  gap: 0.75rem;
}

.prose h2 {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prose p {
  color: #2e333d;
}

.prose .lead {
  color: var(--ink-2);
  font-size: 1.1875rem;
}

.prose .muted {
  color: var(--ink-3);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.25rem;
}

.prose--missing {
  min-height: 50vh;
  align-content: center;
}

/* The FAQ: the topics as chips, then each question as a card that opens to its answer */

.faq__groups {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.faq__groups a {
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.faq__groups a:hover {
  color: var(--ink);
  border-color: var(--ink-3);
}

.faq__group h2 {
  scroll-margin-top: calc(var(--bar) + 1rem);
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  scroll-margin-top: calc(var(--bar) + 1rem);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.125rem;
  border-radius: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

/* A chevron that points down when closed and up when open. */
.faq__item summary::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.25rem;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
}

.faq__item[open] summary::after {
  margin-top: 0.25rem;
  transform: rotate(-135deg);
}

.faq__item summary:hover {
  background: var(--bg);
}

.faq__item summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.faq__answer {
  display: grid;
  gap: 0.75rem;
  padding: 0 1.125rem 1rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
