/* PaintBook website — shares the app's design tokens (guide §95). */

:root {
  --background: #f6f3ed;
  --surface: #ffffff;
  --primary-text: #202928;
  --secondary-text: #5c6562;
  --divider: #e6e1d8;
  --teal-tint: #dce8e5;
  --sand-tint: #ede3d8;
  --link: #2f6762;
  --link-hover: #244f4b;
  --fill: #2f6762;
  --fill-hover: #244f4b;
  --accent-text: #a8573a;
  --header-bg: rgba(246, 243, 237, 0.88);
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6762' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");

  /* Brand colours that stay the same in dark mode. */
  --teal: #2f6762;
  --dark-teal: #244f4b;
  --deep-teal: #1b3d3a;
  --terracotta: #d9835f;
  --sand: #ddd0ba;
  --sage: #6fa9a2;

  --radius: 20px;
  --gutter: 20px;
  --max-width: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #141d1c;
    --surface: #1c2826;
    --primary-text: #eef1ef;
    --secondary-text: #a6b1af;
    --divider: #2b3937;
    --teal-tint: #23403c;
    --sand-tint: #182322;
    --link: #8fcac1;
    --link-hover: #b4ddd6;
    --fill: #2f6762;
    --fill-hover: #3a7a74;
    --accent-text: #eda285;
    --header-bg: rgba(20, 29, 28, 0.88);
    --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fcac1' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--primary-text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: 780px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

strong {
  font-weight: 700;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--teal-tint);
  padding: 0.15em 0.4em;
  border-radius: 5px;
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* --- Header ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--divider);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary-text);
  text-decoration: none;
}

.brand:hover {
  color: var(--primary-text);
}

.brand svg {
  display: block;
}

.site-nav {
  display: flex;
  gap: 0.4rem 1.4rem;
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 600;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--secondary-text);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--link);
}

@media (max-width: 900px) {
  .site-header--home .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.75rem;
    margin-top: -0.35rem;
  }

  .site-header--home .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-header--home .site-nav a {
    white-space: nowrap;
  }

  .site-header--home .btn {
    margin-left: auto;
  }
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0 1.4rem;
  border-radius: 14px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn .icon {
  width: 20px;
  height: 20px;
}

.btn--primary {
  background: var(--fill);
  color: #fff;
}

.btn--primary:hover {
  background: var(--fill-hover);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--deep-teal);
}

.btn--light:hover {
  background: #eef5f3;
  color: var(--deep-teal);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn--outline-light:hover {
  border-color: #fff;
  color: #fff;
}

.btn--small {
  min-height: 42px;
  padding: 0 1rem;
  font-size: 0.92rem;
  border-radius: 12px;
}

.play-mark {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}

/* --- Shared section pieces ---------------------------------------------- */

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section--tint {
  background: var(--sand-tint);
}

.section--dark {
  background: linear-gradient(160deg, var(--dark-teal) 0%, var(--deep-teal) 100%);
  color: #fff;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark .lede {
  color: rgba(255, 255, 255, 0.82);
}

.section--dark a {
  color: #fff;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 0.8rem;
}

.hero .eyebrow,
.section--dark .eyebrow,
.cta .eyebrow {
  color: #f3bca3;
}

.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--secondary-text);
  max-width: 62ch;
}

.section-head--center .lede {
  margin-inline: auto;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.ticks li {
  position: relative;
  padding-left: 2.1rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--teal-tint) var(--check) center / 0.8rem no-repeat;
}

.section--dark .ticks li::before,
.hero .ticks li::before {
  background-color: rgba(255, 255, 255, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.pill {
  display: inline-block;
  vertical-align: 0.15em;
  margin-left: 0.4rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* --- Phone frame -------------------------------------------------------- */

.phone {
  position: relative;
  z-index: 1;
  width: min(300px, 70vw);
  aspect-ratio: 640 / 1422;
  padding: 9px;
  border-radius: 44px;
  background: #0f1918;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 40px 70px -30px rgba(10, 30, 28, 0.55);
}

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  object-fit: cover;
}

.phone--small {
  width: min(250px, 58vw);
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 520px at 88% 12%, rgba(111, 169, 162, 0.35), transparent 65%),
    linear-gradient(160deg, var(--teal) 0%, var(--dark-teal) 55%, var(--deep-teal) 100%);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 7vw, 5.5rem);
}

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

.hero h1 {
  color: #fff;
  font-size: clamp(2.35rem, 5.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 13ch;
  margin-bottom: 0.45em;
}

.hero__lede {
  font-size: clamp(1.08rem, 2vw, 1.27rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 34em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.9rem 0 1.6rem;
}

.hero__facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__facts li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--c, var(--sage));
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 0.5rem;
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1.05rem 0.75rem 0.75rem;
  border-radius: 16px;
  background: #fff;
  color: #202928;
  box-shadow: 0 20px 44px -18px rgba(5, 20, 18, 0.55);
  font-size: 0.9rem;
}

.float-card p {
  margin: 0;
  line-height: 1.3;
}

.float-card__swatch,
.float-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex: none;
}

.float-card__swatch {
  background: #9caf95;
}

.float-card__icon {
  display: grid;
  place-items: center;
  background: #dce8e5;
  color: var(--teal);
}

.float-card__kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #5c6562;
}

.float-card__title {
  font-weight: 800;
  font-size: 1rem;
}

.float-card__code {
  font-weight: 700;
  font-size: 0.84rem;
  color: #a8573a;
}

.float-card--record {
  top: 20%;
  left: max(-10px, calc(50% - 265px));
}

.float-card--leftover {
  bottom: 14%;
  right: max(-10px, calc(50% - 255px));
}

.paint-strip {
  display: flex;
  height: 12px;
}

.paint-strip span {
  flex: 1;
  background: var(--c);
}

/* --- Story -------------------------------------------------------------- */

.story {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.story__step {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.story__num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--link);
  font-weight: 800;
}

.story__step h3 {
  margin-bottom: 0.4rem;
}

.story__step p {
  margin: 0;
  color: var(--secondary-text);
}

/* --- Features ----------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: var(--teal-tint);
  color: var(--link);
}

.feature h3 {
  margin-bottom: 0.4rem;
}

.feature p {
  margin: 0;
  color: var(--secondary-text);
}

/* --- Showcase rows ------------------------------------------------------ */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.showcase + .showcase {
  margin-top: clamp(4rem, 9vw, 6.5rem);
}

.showcase--flip .showcase__media {
  order: -1;
}

.showcase__text h2 {
  max-width: 16ch;
}

.showcase__text > p:not(.eyebrow) {
  color: var(--secondary-text);
  font-size: 1.08rem;
}

.section--dark .showcase__text > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
}

.showcase__media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.showcase__media::before {
  content: "";
  position: absolute;
  inset: 10% 6%;
  border-radius: 48px;
  background: var(--blob, var(--teal-tint));
}

.section--tint .showcase__media::before {
  background: var(--blob, var(--surface));
}

/* --- Smart Scan --------------------------------------------------------- */

.scan-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.scan-visual::before {
  display: none;
}

.label-card {
  margin: 0;
  width: min(250px, 40vw);
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.6);
  transform: rotate(-4deg);
}

.label-card img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.label-card figcaption {
  padding: 0.5rem 0.35rem 0.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #5c6562;
}

.scan-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.scan-note {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

/* --- Finish types ------------------------------------------------------- */

.types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.type {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-top: 6px solid var(--c);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.5rem;
}

.type h3 {
  margin-bottom: 0.7rem;
}

.type ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--secondary-text);
}

.type li + li {
  margin-top: 0.3rem;
}

.types-note {
  margin: 2rem auto 0;
  max-width: 60ch;
  text-align: center;
  color: var(--secondary-text);
}

/* --- Passport pages ----------------------------------------------------- */

.pages {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  aspect-ratio: 1 / 1.08;
}

.page {
  position: absolute;
  width: 66%;
  margin: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 34px 60px -26px rgba(10, 30, 28, 0.5);
}

.page img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.page--back {
  top: 0;
  left: 2%;
  transform: rotate(-6deg);
}

.page--front {
  right: 2%;
  bottom: 0;
  transform: rotate(4deg);
}

/* --- Audience ----------------------------------------------------------- */

.audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.persona {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.persona .feature__icon {
  background: var(--sand-tint);
  color: var(--accent-text);
}

.section--tint .persona .feature__icon {
  background: var(--teal-tint);
  color: var(--link);
}

.persona h3 {
  margin-bottom: 0.4rem;
}

.persona p {
  margin: 0;
  color: var(--secondary-text);
}

/* --- Plans -------------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 880px;
  margin-inline: auto;
  align-items: stretch;
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 24px;
  padding: 2rem;
}

.plan--pro {
  border: 2px solid var(--fill);
  box-shadow: 0 34px 60px -44px rgba(36, 79, 75, 0.75);
}

.plan__tag {
  position: absolute;
  top: -0.85rem;
  left: 2rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--fill);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan h3 {
  margin-bottom: 0.2rem;
  font-size: 1.25rem;
}

.plan__price {
  margin: 0.2rem 0 0.1rem;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.plan__price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-text);
  letter-spacing: 0;
}

.plan__sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--secondary-text);
}

.fineprint {
  max-width: 880px;
  margin: 1.75rem auto 0;
  font-size: 0.92rem;
  color: var(--secondary-text);
}

/* --- Privacy promises --------------------------------------------------- */

.promises {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.promise {
  padding: 1.4rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.promise .icon {
  color: #f3bca3;
  margin-bottom: 0.8rem;
}

.promise h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.promise p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

.promises-link {
  margin: 2rem 0 0;
  text-align: center;
  font-weight: 600;
}

/* --- FAQ ---------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 800px;
  margin-inline: auto;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding-inline: 1.35rem;
}

.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0.9rem 2.2rem 0.9rem 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--link);
  border-bottom: 2.5px solid var(--link);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq details p {
  margin: 0 0 1.2rem;
  color: var(--secondary-text);
}

/* --- Call to action ----------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1.4rem, 5vw, 4rem);
  border-radius: 28px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(111, 169, 162, 0.35), transparent 65%),
    linear-gradient(160deg, var(--teal) 0%, var(--deep-teal) 100%);
}

.cta h2 {
  color: #fff;
  max-width: 20ch;
  margin-inline: auto;
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 52ch;
  margin-inline: auto;
}

.cta .actions {
  justify-content: center;
  margin-bottom: 0;
}

.contact {
  margin: 2.4rem auto 0;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1rem;
}

.contact a {
  color: #fff;
  font-weight: 700;
  word-break: break-word;
}

/* --- Document pages ----------------------------------------------------- */

.doc {
  padding-block: clamp(2rem, 5vw, 3.5rem) 4rem;
}

.doc h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.doc h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-top: 2.5rem;
}

.doc h3 {
  margin-top: 2rem;
}

.doc__updated {
  color: var(--secondary-text);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.doc ul,
.doc ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 0.45em;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.doc th,
.doc td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}

.doc th {
  font-weight: 700;
  background: var(--surface);
}

.callout {
  background: var(--teal-tint);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  margin: 1.75rem 0;
}

.callout--warn {
  background: #fbf0dc;
}

.callout p:last-child {
  margin-bottom: 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.doc .steps {
  padding-left: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.5rem 3.2rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--fill);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps strong {
  display: block;
}

@media (prefers-color-scheme: dark) {
  .callout--warn {
    background: #33291a;
  }
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--deep-teal);
  color: rgba(255, 255, 255, 0.75);
  padding-block: 2.5rem;
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  margin-right: 1.3rem;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer--full {
  padding-block: 3.5rem 2rem;
}

.site-footer--full .wrap {
  display: block;
}

.site-footer--full a {
  margin-right: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 0.8rem;
}

.footer-brand p {
  max-width: 32ch;
  margin: 0;
}

.footer-title {
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* --- Utilities ---------------------------------------------------------- */

.center {
  text-align: center;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: var(--gutter);
  top: 10px;
  z-index: 20;
  background: var(--surface);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
}

/* --- Narrow screens ----------------------------------------------------- */

@media (max-width: 900px) {
  .hero__grid,
  .showcase {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero h1 {
    max-width: 16ch;
  }

  .showcase--flip .showcase__media {
    order: 0;
  }

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

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .story,
  .features,
  .types,
  .audience,
  .plans,
  .promises {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .actions .btn {
    flex: 1 1 100%;
  }

  .float-card {
    font-size: 0.8rem;
    padding: 0.55rem 0.8rem 0.55rem 0.55rem;
  }

  .float-card__swatch,
  .float-card__icon {
    width: 34px;
    height: 34px;
  }

  .float-card--record {
    left: 0;
  }

  .float-card--leftover {
    right: 0;
  }

  .scan-visual {
    flex-direction: column;
  }

  .scan-arrow {
    transform: rotate(90deg);
  }

  .label-card {
    width: min(280px, 80vw);
  }

  .plan {
    padding: 1.6rem;
  }
}
