.public-page {
  --public-ink: #13251b;
  --public-forest: #092b20;
  --public-forest-soft: #123c2d;
  --public-paper: #f7f2e8;
  --public-paper-deep: #ece5d8;
  --public-mint: #36df8c;
  --public-accent-text: #0b6f45;
  --public-line: rgba(19, 37, 27, 0.16);
  color: var(--public-ink);
  background: var(--public-paper);
}

.public-page .eyebrow {
  color: var(--public-accent-text);
}

.public-page main {
  overflow: hidden;
}

.public-page .public-site-header {
  background: rgba(247, 242, 232, 0.94);
}

.public-page .public-route-nav a[aria-current="page"] {
  color: #0b6f45;
}

.public-hero {
  min-height: min(780px, calc(100svh - var(--header-height)));
  color: #fffdf7;
  background:
    radial-gradient(circle at 88% 18%, rgba(54, 223, 140, 0.16), transparent 24%),
    radial-gradient(circle at 5% 100%, rgba(85, 106, 240, 0.15), transparent 27%),
    linear-gradient(135deg, #08291e 0%, #0d3528 56%, #143c30 100%);
}

.public-hero-shell {
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(350px, 0.72fr);
  align-items: center;
  gap: clamp(50px, 8vw, 126px);
  padding: clamp(70px, 9vw, 122px) 0;
}

.public-hero-copy {
  min-width: 0;
  position: relative;
  z-index: 2;
  animation: public-rise-in 620ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

/*
 * The 404 hero is the one hero with no product visual beside it, because the
 * page is an apology and a set of routes rather than a pitch. Without this the
 * two-column shell holds an empty half at desktop width.
 */
.not-found-public-page .public-hero {
  min-height: 0;
}

.not-found-public-page .public-hero-shell {
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(56px, 7vw, 96px) 0;
}

.not-found-public-page .public-hero-copy {
  max-width: 44rem;
}

.public-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.public-breadcrumb > * + *::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.32);
}

.public-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

/* The breadcrumb is the first control on every generated page and its links
   were 17px tall. Padding lifts the touch target without moving the text. */
@media (pointer: coarse) {
  .public-breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: -13px 0;
  }
}

.public-hero .eyebrow,
.public-dark-section .eyebrow,
.public-final-cta .eyebrow {
  color: var(--public-mint);
}

.public-hero h1 {
  max-width: 13ch;
  margin-top: 18px;
  color: #fffdf7;
  font-size: clamp(3.3rem, 6.1vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
}

.public-hero-lead {
  max-width: 61ch;
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.3vw, 1.17rem);
  line-height: 1.72;
}

.public-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 36px;
}

.public-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0b7046;
  font-weight: 800;
  text-underline-offset: 5px;
}

/* These links always sit on their own in a container, never inside a sentence,
   so a touch height can be given without disturbing any line of prose. */
@media (pointer: coarse) {
  .public-text-link {
    min-height: 44px;
  }
}

.public-text-link::after {
  content: "\2192";
  transition: transform 180ms ease;
}

.public-text-link:hover::after,
.public-text-link:focus-visible::after {
  transform: translateX(4px);
}

/* The closing invitation is painted on the same dark band as the hero. The
   default link green is tuned for the cream page and measures 2.48:1 there,
   which is a Contrast Minimum failure rather than a quiet tertiary. Listing
   `.public-final-cta` here fixes it once for every family that reuses the
   store row, instead of one scoped rule per family. */
.public-hero .public-text-link,
.public-dark-section .public-text-link,
.public-final-cta .public-text-link {
  color: #b9f5d2;
}

/* The caption plate is a label for the screen above it, so it sits under the
 * device and the whole capture stays readable. While the plate was pinned over
 * the frame it covered the last rows of every hero: at phone width it hid the
 * drawn tab bar, and on the cropped Today card it hid the up-next lesson and
 * the link to the full plan. The figure carries no bottom padding now, because
 * the caption itself ends the figure and grows with its own wrapping. */
.public-hero-visual {
  position: relative;
  width: min(100%, 430px);
  justify-self: center;
  margin: 0;
  padding: 32px 38px 0;
  animation: public-visual-in 760ms 90ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.public-hero-orbit {
  position: absolute;
  inset: 0 0 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.public-hero-orbit::before,
.public-hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--public-mint);
  box-shadow: 0 0 34px rgba(54, 223, 140, 0.6);
}

.public-hero-orbit::before {
  width: 12px;
  height: 12px;
  top: 12%;
  right: 11%;
}

.public-hero-orbit::after {
  width: 7px;
  height: 7px;
  bottom: 13%;
  left: 8%;
}

.public-phone-frame {
  position: relative;
  z-index: 1;
  display: block;
  width: min(270px, 78%);
  margin: 0 auto;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 42px;
  background: #eef4ec;
  box-shadow: 0 38px 70px rgba(0, 0, 0, 0.34);
  transform: rotate(2.5deg);
  transition: transform 320ms cubic-bezier(0.23, 1, 0.32, 1);
}

.public-phone-frame img {
  width: 100%;
  border-radius: 34px;
}

.public-hero-visual:hover .public-phone-frame {
  transform: rotate(0deg) translateY(-6px);
}

/* A hero capture that is part of a screen rather than a whole phone.
 *
 * The publishable Today capture announces a frozen streak at the top and again
 * at the bottom, so the daily-learning page shows the band that carries its own
 * promise instead. Forcing that band into the phone silhouette would stretch it,
 * so the frame takes the picture's shape and loses the bezel radius that reads
 * as a handset. */
.public-phone-frame-crop {
  border-radius: 30px;
}

.public-phone-frame-crop img {
  border-radius: 22px;
}

.public-hero-visual figcaption {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 260px;
  margin: 18px 0 0 auto;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(3, 25, 17, 0.82);
  backdrop-filter: blur(16px);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
}

.public-hero-visual figcaption img {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 12px;
}

.public-section {
  padding: clamp(80px, 10vw, 142px) 0;
}

.public-section-heading {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(420px, 1.28fr);
  align-items: end;
  gap: clamp(32px, 6vw, 92px);
  margin-bottom: clamp(54px, 7vw, 90px);
}

.public-section-heading .eyebrow {
  align-self: start;
}

.public-section-heading h2,
.public-split-section h2,
.public-two-notes h2,
.public-fit-columns h2 {
  max-width: 14ch;
  color: var(--public-ink);
  font-size: clamp(2.45rem, 5.2vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.022em;
}

.public-section-heading-wide {
  grid-template-columns: minmax(200px, 0.5fr) minmax(340px, 1fr) minmax(260px, 0.72fr);
}

.public-section-heading-wide p:last-child {
  color: #526258;
  font-size: 1rem;
  line-height: 1.7;
}

.public-definition-copy {
  width: min(760px, 100%);
  margin-left: auto;
  padding: 0 0 clamp(54px, 7vw, 84px);
}

.public-definition-copy p,
.public-main-difference > p {
  color: #2c3d33;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.6rem, 2.8vw, 2.65rem);
  line-height: 1.3;
}

.public-indexed-list {
  border-top: 1px solid var(--public-line);
}

.public-indexed-list article {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  padding: 30px 0;
  border-bottom: 1px solid var(--public-line);
}

.public-indexed-list article > span {
  color: var(--public-accent-text);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.public-indexed-list h3 {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
}

.public-indexed-list p {
  max-width: 68ch;
  margin-top: 8px;
  color: #526258;
  line-height: 1.7;
}

.public-process-list {
  counter-reset: process;
}

.public-process-list article:nth-child(even) > div {
  margin-left: min(12vw, 160px);
}

.public-tint-section,
.public-limitations-section,
.public-source-section {
  background: var(--public-paper-deep);
}

.public-dark-section {
  color: #fffdf7;
  background:
    radial-gradient(circle at 94% 10%, rgba(54, 223, 140, 0.13), transparent 24%),
    var(--public-forest);
}

.public-dark-section .public-indexed-list article > span,
.public-dark-section .public-course-links a > span,
.public-dark-section h2,
.public-dark-section h3,
.public-dark-section strong,
.public-dark-section .public-course-links strong {
  color: #fffdf7;
}

.public-dark-section p,
.public-dark-section .public-course-links p,
.public-dark-section .public-course-links small {
  color: rgba(255, 255, 255, 0.68);
}

/* The wide section heading tints its trailing note with the light-surface ink
 * at .public-section-heading-wide p:last-child. That selector outranks
 * .public-dark-section p, so on a dark band the note kept the dark ink and
 * measured 1.99:1. Restate the dark-band colour at matching depth. */
.public-dark-section .public-section-heading-wide p:last-child {
  color: rgba(255, 255, 255, 0.68);
}

.public-dark-section .public-course-links,
.public-dark-section .public-course-links a {
  border-color: rgba(255, 255, 255, 0.18);
}

.public-split-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(50px, 10vw, 150px);
  align-items: start;
}

.public-prose-stack {
  display: grid;
  gap: 18px;
  color: #526258;
  line-height: 1.75;
}

.public-prose-stack h3 {
  margin-top: 20px;
  color: var(--public-ink);
}

.public-dark-section .public-prose-stack {
  color: rgba(255, 255, 255, 0.72);
}

.public-fact-list {
  margin: 0;
  border-top: 1px solid var(--public-line);
}

.public-fact-list > div {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  gap: 30px;
  padding: 28px 0;
  border-bottom: 1px solid var(--public-line);
}

.public-fact-list dt {
  font-weight: 800;
}

.public-fact-list dd {
  max-width: 74ch;
  margin: 0;
  color: #526258;
  line-height: 1.7;
}

.public-official-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.public-official-links a {
  padding: 12px 16px;
  border: 1px solid var(--public-line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.public-course-links {
  border-top: 1px solid var(--public-line);
}

.public-course-links a {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 34px;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--public-line);
  text-decoration: none;
}

.public-course-links a > span,
.comparison-hub-list a > span {
  /* The step number is small bold text on cream, so it needs the 4.5:1 body
     floor rather than the 3:1 large-text one. #168b57 measured 3.87:1. */
  color: #137d4d;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.public-course-links small {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 5px;
  color: #657269;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-course-links strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.public-course-links p {
  max-width: 74ch;
  margin-top: 7px;
  color: #526258;
  line-height: 1.55;
}

.public-course-links b,
.comparison-hub-list b {
  font-size: 1.4rem;
  transition: transform 180ms ease;
}

.public-course-links a:hover b,
.public-course-links a:focus-visible b,
.comparison-hub-list a:hover b,
.comparison-hub-list a:focus-visible b {
  transform: translateX(5px);
}

.public-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--public-line);
}

.public-cell-label {
  display: none;
}

.public-comparison-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}

.public-comparison-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.public-comparison-table th,
.public-comparison-table td {
  padding: 24px 22px;
  border-bottom: 1px solid var(--public-line);
  vertical-align: top;
  line-height: 1.65;
}

.public-comparison-table thead th {
  color: #526258;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.public-comparison-table tbody th {
  width: 24%;
  font-size: 1rem;
}

.public-comparison-table td {
  color: #526258;
}

/* Phones read each row as one block: its heading, then every value under its
   column name, instead of a 720px table scrolled sideways (stacked-table.mjs). */
@media (max-width: 760px) {
  .public-stacked-table {
    display: block;
    min-width: 0;
  }

  .public-stacked-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .public-stacked-table tbody,
  .public-stacked-table tbody tr {
    display: block;
  }

  .public-stacked-table tbody tr {
    padding: 22px 0;
    border-bottom: 1px solid var(--public-line);
  }

  .public-stacked-table tbody th,
  .public-stacked-table tbody td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  .public-stacked-table tbody th {
    font-size: 1.125rem;
    line-height: 1.4;
  }

  .public-stacked-table tbody td {
    margin-top: 14px;
    line-height: 1.6;
  }

  .public-stacked-table .public-cell-label {
    display: block;
    margin-bottom: 2px;
    color: #526258;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
}

.public-limit-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid currentColor;
}

.public-limit-list li {
  position: relative;
  padding: 22px 0 22px 30px;
  border-bottom: 1px solid currentColor;
  line-height: 1.7;
}

.public-limit-list li::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28c97a;
}

.public-faq-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(420px, 1.42fr);
  gap: clamp(48px, 9vw, 132px);
}

.public-faq-section .public-section-heading {
  display: block;
  margin: 0;
}

.public-faq-section .public-section-heading h2 {
  margin-top: 18px;
}

.public-faq-list {
  border-top: 1px solid var(--public-line);
}

.public-faq-list details {
  border-bottom: 1px solid var(--public-line);
}

.public-faq-list summary {
  position: relative;
  padding: 25px 48px 25px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

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

.public-faq-list summary::after {
  content: "+";
  position: absolute;
  top: 21px;
  right: 2px;
  color: #168b57;
  font-size: 1.45rem;
  font-weight: 500;
}

.public-faq-list details[open] summary::after {
  content: "\2212";
}

.public-faq-list details p {
  max-width: 72ch;
  padding: 0 52px 26px 0;
  color: #526258;
  line-height: 1.72;
}

.public-related-band {
  padding: clamp(66px, 8vw, 100px) 0;
  background: #dceee3;
}

.public-related-band > div {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
}

.public-related-band h2 {
  max-width: 13ch;
  margin-top: 16px;
  font-size: clamp(2.3rem, 4.6vw, 4.3rem);
}

.public-related-band nav {
  display: grid;
  border-top: 1px solid var(--public-line);
}

.public-related-band nav a {
  padding: 20px 0;
  border-bottom: 1px solid var(--public-line);
  font-weight: 800;
  text-decoration: none;
}

.public-final-cta {
  padding: clamp(60px, 7vw, 86px) 0;
  color: #fffdf7;
  background: var(--public-forest);
}

.public-final-cta > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.public-final-cta > div > img {
  width: 64px;
  height: 64px;
  border-radius: 21px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.public-final-cta h2 {
  max-width: 19ch;
  margin-top: 9px;
  color: #fffdf7;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
}

/* The comparison close reuses the store row built for /about/, but the sizing
   that makes it look deliberate lives in about.css behind `.about-public-page`.
   Without it `.course-store-buttons` stays a nowrap row and the Apple badge
   renders at its intrinsic 120x40 beside a 230px Android control: a tiny badge
   next to an oversized button. Match both to one width, stack them, and let the
   badge fill its link. */
.comparison-final-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  justify-self: end;
}

.comparison-store-buttons {
  flex-direction: column;
  gap: 12px;
  width: 230px;
}

.comparison-store-buttons .course-store-badge-link,
.comparison-store-buttons .course-android-store-button {
  width: 230px;
  min-width: 230px;
  flex: 0 0 auto;
}

.comparison-store-buttons .course-app-store-badge {
  width: 100%;
  height: auto;
}

/* The comparison hero carries the same store row as the close, side by side on
   a wide screen. Both controls share one width so Apple's badge is not dwarfed
   by the Android button, and the badge fills its link at that width. */
.comparison-hero-store-buttons {
  flex-wrap: wrap;
  gap: 12px;
}

.comparison-hero-store-buttons .course-store-badge-link,
.comparison-hero-store-buttons .course-android-store-button {
  width: 210px;
  min-width: 210px;
  flex: 0 0 210px;
}

.comparison-hero-store-buttons .course-app-store-badge {
  width: 100%;
  height: auto;
}

/* Apple's badge is 70px tall at 210px wide; hold the Android control to the
   same height so the pair still matches when it stacks on a phone. */
.comparison-hero-store-buttons .course-android-store-button {
  min-height: 70px;
  border-color: rgba(255, 255, 255, 0.3);
}

.public-fit-columns,
.public-two-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(46px, 8vw, 112px);
}

.public-fit-columns section,
.public-two-notes > div {
  padding-top: 20px;
  border-top: 1px solid var(--public-line);
}

.public-fit-columns h2,
.public-two-notes h2 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
}

.public-fit-columns ul,
.public-two-notes p {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  color: #526258;
  line-height: 1.72;
}

.public-fit-columns li {
  margin-left: 20px;
  padding-left: 4px;
}

.public-main-difference {
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) minmax(480px, 1.48fr);
  gap: clamp(52px, 9vw, 136px);
}

.public-main-difference .public-section-heading {
  display: block;
  margin: 0;
}

.public-main-difference .public-section-heading h2 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.public-source-section ul {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding-left: 20px;
}

.public-source-section a {
  font-weight: 800;
  text-underline-offset: 4px;
}

.public-source-section p {
  max-width: 68ch;
  color: #526258;
  line-height: 1.65;
}

.comparison-hub-list {
  display: grid;
  border-top: 1px solid var(--public-line);
}

.comparison-hub-list a {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 34px;
  gap: 24px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--public-line);
  text-decoration: none;
}

.comparison-hub-list strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
}

.comparison-hub-list p {
  max-width: 82ch;
  margin-top: 8px;
  color: #526258;
  line-height: 1.65;
}

@keyframes public-rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes public-visual-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 980px) {
  .public-hero-shell {
    grid-template-columns: 1fr minmax(280px, 0.58fr);
    gap: 32px;
  }

  .public-hero h1 {
    font-size: clamp(3.2rem, 7.5vw, 5rem);
  }

  .public-section-heading,
  .public-section-heading-wide {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .public-hero h1,
  .public-section-heading h2 {
    overflow-wrap: anywhere;
  }

  .public-split-section,
  .public-main-difference {
    grid-template-columns: 1fr;
  }

  .public-faq-section {
    grid-template-columns: 1fr;
  }

  }

@media (max-width: 720px) {
  .public-page .public-site-header .site-header-shell {
    flex-wrap: nowrap;
  }

  .public-page .public-site-header .header-actions {
    width: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }

  .public-page .site-header-shell {
    width: min(100% - 28px, 1240px);
  }

  .public-page .public-route-nav {
    display: none;
  }

  .public-page .header-actions {
    margin-left: auto;
  }

  .public-page .header-actions .button {
    min-height: 44px;
    padding: 0 13px;
    font-size: 0.875rem;
  }

  .public-page .header-actions .site-menu-toggle {
    min-height: 44px;
    padding: 0 13px;
    font-size: 0.875rem;
  }

  /* The public header shell runs on 14px margins at this width, so the panel
     rows take the same inset to keep one left edge. Opaque paper, matching the
     open header sheet. */
  .public-page .site-menu {
    padding-inline: 14px;
    background: rgb(247, 242, 232);
  }

  .public-hero {
    min-height: 0;
  }

  .public-hero-shell {
    width: min(100% - 28px, 1240px);
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 64px 0 48px;
  }

  .public-breadcrumb {
    margin-bottom: 24px;
  }

  .public-hero h1 {
    max-width: 11ch;
    margin-top: 14px;
    font-size: clamp(3.05rem, 14.8vw, 4.3rem);
  }

  .public-hero-lead {
    margin-top: 24px;
    font-size: 0.98rem;
  }

  .public-hero-actions {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 28px;
  }

  .public-hero-visual {
    width: min(100%, 350px);
  }

  .public-phone-frame {
    width: min(230px, 72%);
  }

  .public-section,
  .public-related-band {
    padding: 72px 0;
  }

  .public-section-heading {
    margin-bottom: 44px;
  }

  .public-section-heading h2,
  .public-split-section h2 {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
  }

  .public-definition-copy p,
  .public-main-difference > p {
    font-size: 1.55rem;
  }

  .public-indexed-list article {
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 24px 0;
  }

  .public-process-list article:nth-child(even) > div {
    margin-left: 0;
  }

  .public-course-links a,
  .comparison-hub-list a {
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    gap: 12px;
  }

  .public-course-links p,
  .comparison-hub-list p {
    font-size: 0.9rem;
  }

  .public-fact-list > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .public-fit-columns,
  .public-two-notes,
  .public-related-band > div {
    grid-template-columns: 1fr;
  }

  .public-final-cta > div {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .public-final-cta > div > img {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .public-final-cta .button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .comparison-final-actions {
    grid-column: 1 / -1;
    justify-self: start;
  }

  /* A full-width Android control beside Apple's badge, which keeps its 3:1
     ratio, left the badge a small 120x40 mark centred above a 350px button.
     Use the hero row's sizing instead: both controls 210 by 70, stacked. */
  .comparison-store-buttons {
    width: 210px;
  }

  .comparison-store-buttons .course-store-badge-link,
  .comparison-store-buttons .course-android-store-button {
    width: 210px;
    min-width: 210px;
  }

  .comparison-store-buttons .course-android-store-button {
    min-height: 70px;
  }

    }

/* At the 320px floor, the wordmark plus both header controls is wider than
   the row. Keep the brand's accessible name, while the familiar mark carries
   the visual identity and leaves Menu and Get Cadence fully reachable. */
@media (max-width: 356px) {
  .public-hero h1 {
    font-size: 2.75rem;
  }

  .public-page .public-site-header .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-hero-copy,
  .public-hero-visual {
    animation: none;
  }

  .public-phone-frame,
  .public-text-link::after,
  .public-course-links b,
  .comparison-hub-list b {
    transition: none;
  }
}

/* Comparison hub cards.
 *
 * The hub used to be a numbered list of descriptions, so a reader had to open
 * a page to learn anything. These lead with the recommendation and the two
 * best-fit answers, which is the part people came for. */
.comparison-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: 20px;
  margin-top: 38px;
}

.comparison-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px;
  border: 1px solid var(--public-line);
  border-radius: 20px;
  background: rgba(255, 255, 252, 0.72);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.comparison-card:hover,
.comparison-card:focus-visible {
  border-color: rgba(11, 112, 70, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(16, 28, 20, 0.1);
}

.comparison-card-eyebrow {
  margin: 0;
  color: #0b7046;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.comparison-card h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.42rem);
  line-height: 1.28;
}

.comparison-card-fit {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--public-line);
}

.comparison-card-fit > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.comparison-card-fit dt {
  margin: 0;
  color: #657269;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding-top: 2px;
}

.comparison-card-fit dd {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
}

.comparison-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: auto 0 0;
  padding-top: 6px;
  color: #657269;
  font-size: 0.8rem;
  font-weight: 700;
}

.comparison-card-cue {
  color: #0b7046;
}

@media (max-width: 640px) {
  .comparison-card-fit > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .comparison-card {
    transition: none;
  }
  .comparison-card:hover,
  .comparison-card:focus-visible {
    transform: none;
  }
}

/* Hero titles with one very long word ("communication", "procrastinating")
   carry .public-hero-title-long-word from public-layout.mjs. On phones the
   display size split that word mid-line, so size the title to fit about 7.4em
   of Fraunces across the content width (the 14px gutters on each side), up to
   the editorial ceiling. Automatic hyphenation is left off: it also splits
   shorter words that already fit. */
@media (max-width: 720px) {
  .public-page .public-hero h1.public-hero-title-long-word {
    max-width: none;
    font-size: clamp(2.25rem, calc((100vw - 28px) / 7.4), 3.75rem);
  }
}
