/*
 * The site's own rules. Everything that could come from brand-core does —
 * this file holds only layout and marketing-page typography, which the design
 * system has no opinion about. No colour literal appears here: every value is
 * a brand-core token (var(--*)).
 *
 * Contrast: --text-mute and --blue-as-text fall under WCAG AA (4.5:1) on
 * several light-theme surfaces, so readable text here uses --text-dim and
 * links use --blue-bright, which clear 5:1 on every background in both themes.
 *
 * Load order (see src/layouts/Base.astro): reset, tokens, fonts, primitives,
 * then this, so these rules win a specificity tie.
 */

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
}

main {
  flex: 1;
}

a {
  color: var(--blue-bright);
  text-underline-offset: 2px;
}

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 50;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--on-accent);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: var(--on-accent);
}

/* ─────────────────────────── Shared type ─────────────────────────── */

h1,
h2,
h3 {
  color: var(--text);
  letter-spacing: -0.4px;
  text-wrap: balance;
}

h1 {
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -1.2px;
  margin-bottom: 18px;
}

h2 {
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  max-width: 24ch;
}

h3 {
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: 8px;
}

p {
  color: var(--text-dim);
  text-wrap: pretty;
}

strong {
  color: var(--text);
  font-weight: 600;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--blue-bright);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-dim);
}

.meta {
  font-size: 15px;
  color: var(--text-dim);
}

/* brand-core's card label is --text-mute, which is under 4.5:1 on cards in
   light mode; on this site the labels carry content, so lift them. */
.ds-card__label {
  color: var(--text-dim);
}

.text-link {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* brand-core's ghost button is a compact toolbar size; on a marketing page
   it sits next to a primary, so match the primary's footprint. */
.btn-lg {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 14px;
}

/* A primary that fits a header row. */
.btn-compact {
  padding: 9px 14px;
  border-radius: var(--radius);
  font-size: 13px;
}

a.ds-btn {
  text-decoration: none;
}

a.ds-btn--primary,
a.ds-btn--primary:hover {
  color: var(--on-accent);
}

a.ds-btn--ghost:hover {
  color: var(--text);
}

/* ─────────────────────────── Header ─────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

/* ─────────────────────────── Logo ─────────────────────────── */

/* The wordmark from src/components/Logo.astro (paths from
   scripts/make-logo.py). The tile is a fixed #2f6fe0 with white "SJ";
   "Smart Business" fills with currentColor, so it follows the theme's text
   colour: #131a26 in light mode, near-white in dark mode. */
.logo {
  display: block;
  height: 100%;
  line-height: 0;
  color: var(--text);
}

.logo svg {
  display: block;
  width: auto;
  height: 100%;
}

.site-logo {
  display: block;
  flex: 0 0 auto;
  height: 36px;
  border-radius: var(--radius-sm);
}

.site-footer__logo {
  display: inline-block;
  height: 44px;
  border-radius: var(--radius-sm);
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.site-nav a {
  padding: 6px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition:
    color var(--transition-fast),
    background var(--transition-fast);
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.site-header__inner > .ds-btn {
  white-space: nowrap;
}

/* Header phone. Desktop: a plain text link, quieter than the CTA beside it.
   Below 960px it becomes an icon button (same look as the Menu button) so
   it never crowds the logo; the aria-label carries the number there. */
.site-phone {
  flex: 0 0 auto;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.site-phone:hover {
  color: var(--text);
}

.site-phone__icon {
  display: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Phone menu: brand-core's <details> dropdown, shown below 720px where the
   nav and CTA no longer fit beside the logo. */
.site-menu {
  display: none;
}

.site-menu .site-menu__button {
  min-height: 44px;
}

.site-menu__button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.site-menu .site-menu__panel {
  left: auto;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
  max-height: none;
  padding: 8px;
}

.site-menu .ds-menu__item {
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.site-menu .site-menu__cta {
  margin-top: 6px;
  min-height: 44px;
  font-size: 15px;
}

/* ─────────────────────────── Sections ─────────────────────────── */

.section {
  padding: 88px 0;
}

.section--alt {
  background: var(--bg-0);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__intro {
  max-width: 62ch;
  margin-bottom: 36px;
  font-size: 18px;
}

.section__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}

.section__cta-note {
  font-size: 17px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

/* ─────────────────────────── Hero ─────────────────────────── */

.hero {
  padding: 80px 0 88px;
}

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

.hero__copy .lede {
  max-width: 48ch;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.shot__frame {
  overflow: hidden;
  box-shadow: 0 24px 48px var(--shadow);
}

.shot__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13px;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot__caption {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 15px;
  text-align: center;
}

/* ─────────────────────────── Product ─────────────────────────── */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 28px;
  padding: 36px;
}

.product h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.product__copy > p {
  font-size: 17px;
  margin-bottom: 18px;
}

.product__copy .product__evidence {
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--blue);
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
}

.product__built {
  padding-left: 32px;
  border-left: 1px solid var(--line-strong);
}

.product__built ul {
  margin: 14px 0 20px;
  padding-left: 20px;
  color: var(--text-dim);
}

.product__built li {
  margin-bottom: 12px;
}

.product__built li::marker {
  color: var(--blue-bright);
}

/* ─────────────────────────── Services ─────────────────────────── */

/* Each card spans three shared rows (title, description, examples), so the
   Examples blocks start at the same height across the row of cards. */
.services .service {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 12px;
  padding: 26px;
}

.service h3 {
  margin-bottom: 0;
}

.service__examples {
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}

.service__examples .ds-card__label {
  margin-bottom: 4px;
}

.service__examples p:last-child {
  color: var(--text);
  font-size: 15px;
}

/* ─────────────────────────── Approach ─────────────────────────── */

.steps {
  margin-top: 28px;
  list-style: none;
}

.step {
  padding: 24px;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: var(--radius-pill);
  background: var(--blue-soft);
  color: var(--blue-bright);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step p {
  font-size: 15px;
}

/* ─────────────────────────── About ─────────────────────────── */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.about__copy p {
  max-width: 60ch;
  margin-bottom: 14px;
  font-size: 17px;
}

/* Founder photo beside the About intro. */
.founder {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.founder picture,
.meet picture {
  flex: 0 0 auto;
  line-height: 0;
}

.founder__photo,
.meet__photo {
  display: block;
  border-radius: 50%;
  /* src/assets/dwight-weaver-square.webp is a head-and-shoulders square
     cut from brand/photos/dwight-weaver.webp. */
  object-fit: cover;
}

.founder__photo {
  width: 72px;
  height: 72px;
}

.about__copy .founder p {
  margin-bottom: 0;
}

.principles {
  display: grid;
  gap: 4px;
  list-style: none;
}

.principles li {
  padding: 18px 0 18px 20px;
  border-left: 2px solid var(--blue);
}

.principles h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.principles p {
  font-size: 15px;
}

/* ─────────────────────────── Inquiry ─────────────────────────── */

.inquiry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.inquiry__copy .lede {
  margin-bottom: 20px;
}

.inquiry__call {
  margin-top: -8px;
  margin-bottom: 20px;
  font-size: 17px;
}

.inquiry__call a {
  white-space: nowrap;
}

.inquiry__email {
  margin-bottom: 20px;
  font-size: 17px;
}

.inquiry__next {
  margin-bottom: 24px;
  padding: 18px 20px;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-1);
}

.inquiry__next h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.inquiry__next p {
  font-size: 15px;
}

/* "You'll be working with me" card beside the in-person inquiry form. */
.meet {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 18px 20px;
}

.meet__photo {
  width: 96px;
  height: 96px;
}

.meet figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meet__label {
  margin-bottom: 4px;
  color: var(--blue-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.meet__name {
  font-size: 19px;
  line-height: 1.25;
}

.meet__role {
  color: var(--text-dim);
  font-size: 14px;
}

.meet__line {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.45;
}

.inquiry__form {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.field .ds-field {
  padding: 10px 12px;
  font-size: 16px;
}

.optional {
  color: var(--text-dim);
  font-weight: 400;
}

.field__help {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
}

.field__error {
  margin-top: 6px;
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
}

.field__error:empty {
  display: none;
}

.inquiry__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.inquiry__submit .ds-status {
  font-size: 15px;
  font-weight: 600;
}

.inquiry__submit .ds-status:empty {
  display: none;
}

/* brand-core's info tone is --blue, 4.4:1 on a light card; lift it to the
   accessible blue. Success and error tones keep brand-core's colours. */
.inquiry__submit .ds-status:not([data-tone]) {
  color: var(--blue-bright);
}

/* ─────────────────────────── Footer ─────────────────────────── */

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  font-size: 15px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.site-footer__brand p {
  margin-top: 10px;
  max-width: 36ch;
}

.site-footer__nav,
.site-footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.site-footer__nav a {
  color: var(--text-dim);
  text-decoration: none;
}

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

.site-footer__meta {
  color: var(--text-dim);
}

.theme-toggle {
  margin-top: 8px;
  font-size: 13px;
}

/* ─────────────────────────── In-person page ─────────────────────────── */

/* A text-only hero: no product shot, so the copy gets a readable measure
   instead of half a grid. */
.hero--solo .container > * {
  max-width: 760px;
}

.hero--solo .lede {
  margin-bottom: 28px;
}

.price-line {
  margin-top: -6px;
  font-size: 15px;
}

/* Keeps a hyphenated name like "On-Site Review" from breaking at the hyphen. */
.nowrap {
  white-space: nowrap;
}

/* Visible placeholder for a value Dwight still has to supply. Meant to be
   impossible to miss on review, and gone once the real value lands. */
mark.todo {
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  color: var(--text);
  font-weight: 600;
}

/* Single-column reading sections (approach, where, FAQ). */
.prose-block > * {
  max-width: 720px;
}

.prose-block > p {
  margin-bottom: 14px;
  font-size: 17px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 6px 0 20px;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 17px;
}

.check-list li::marker {
  color: var(--blue-bright);
}

/* "Where I work": the list of towns, quieter than the counties line above. */
.prose-block > .where__towns {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.6;
}

.prose-block > .callout-line {
  color: var(--text);
  font-weight: 600;
}

/* Headline beats that should each start a new line, never split mid-beat
   across lines when there's room to avoid it. */
.h1-line {
  display: block;
  text-wrap: balance;
}

/* A one-line lead under a section heading. */
.prose-block > .section-lede {
  margin-top: -4px;
  margin-bottom: 18px;
  color: var(--blue-bright);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.section--short {
  padding: 64px 0;
}

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

/* A section that continues the one above on the same background: the hero
   already supplies the space between them. */
.section.section--follow {
  padding-top: 0;
}

.hero:has(+ .section--follow) {
  padding-bottom: 48px;
}

.audiences {
  margin-top: 24px;
  list-style: none;
}

.audience {
  padding: 22px 24px;
}

.audience__icon {
  display: block;
  box-sizing: content-box;
  width: 22px;
  height: 22px;
  padding: 9px;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue-bright);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.audience h3 {
  margin: 14px 0 4px;
  font-size: 18px;
}

.audience p {
  font-size: 15px;
}

/* Quiet line under the four audience cards (office managers). */
.audiences__note {
  margin-top: 24px;
  margin-bottom: 0;
}

.problems {
  margin-top: 28px;
}

.problem {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

/* The intro already sits close to the heading; let .problems' own top margin
   set the gap to the cards. */
.problems__intro {
  margin-bottom: 0;
}

.problem .problem__sounds {
  margin-bottom: 16px;
  font-size: 16px;
}

/* Pinned to the bottom of the card so the "What I'd do" rules line up across
   a row; the grid already makes cards in a row the same height. */
.problem .problem__fix {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 15px;
}

/* The review is the page's centrepiece: same weight as the homepage product
   card, with a blue rule so it reads as the offer. */
.review {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 40px;
  padding: 36px;
  border-top: 4px solid var(--blue);
}

/* Frames the review as the step after the free call. */
.review__step {
  margin-bottom: 8px;
  font-size: 15px;
}

.review h2 {
  margin-bottom: 14px;
}

.review__price {
  font-size: 18px;
}

.review__body {
  padding-left: 32px;
  border-left: 1px solid var(--line-strong);
}

.review__list {
  display: grid;
  gap: 12px;
  margin: 12px 0 20px;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 16px;
}

.review__list li::marker {
  color: var(--blue-bright);
  font-weight: 700;
}

.review__keep {
  margin-bottom: 24px;
  font-size: 16px;
}

.review__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─────────────────────────── App ideas page ─────────────────────────── */

/* "More than just the code": four grouped checklists. */
.launch__group {
  padding: 28px;
}

.launch__group h3 {
  margin-bottom: 14px;
}

.launch__group .check-list {
  margin: 0;
  font-size: 16px;
}

/* "It's yours. All of it.": the page's one highlighted callout. */
.ds-card.own {
  max-width: 820px;
  padding: 32px 36px;
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
}

.own h2 {
  margin-bottom: 10px;
}

.own p {
  color: var(--text);
  font-size: 18px;
  line-height: 1.55;
}

/* ─────────────────────────── App ideas band (homepage) ─────────────────── */

.band {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  background: var(--blue-soft);
}

.band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.band__text {
  max-width: 62ch;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.band .ds-btn {
  white-space: nowrap;
}

/* ─────────────────────────── Founding clients ─────────────────────────── */

.founding__card {
  padding: 28px;
}

.founding__card h3 {
  margin-bottom: 14px;
}

.founding__card .check-list {
  margin: 0;
  font-size: 16px;
}

.founding__note {
  max-width: 72ch;
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.55;
}

.founding__note + .section__cta {
  margin-top: 24px;
}

/* Target of "Ask About a Founding Spot": pinned to the very top edge of
   #inquiry (above its padding) so the link lands exactly where #inquiry does. */
#inquiry {
  position: relative;
}

.founding-anchor {
  position: absolute;
  top: 0;
}

/* Optional checkbox row in the inquiry form. */
.field--check label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}

.field--check .ds-check {
  width: 18px;
  height: 18px;
}

.review__file {
  font-weight: 500;
}

.faq {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.faq__item {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  list-style: none;
  cursor: pointer;
}

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

/* A chevron drawn from borders, so no icon asset or colour literal. */
.faq__item summary::after {
  content: '';
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  transition: transform var(--transition);
}

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

.faq__item summary h3 {
  margin: 0;
  font-size: 17px;
}

.faq__item > p {
  padding: 0 20px 18px;
  font-size: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Formspree honeypot: hidden from people, still in the DOM for bots to fill. */
.hp {
  display: none;
}

/* ─────────────────────────── Prose (privacy page) ─────────────────────────── */

.prose {
  max-width: 760px;
  padding-top: 64px;
  padding-bottom: 80px;
}

.prose h2 {
  font-size: 22px;
  max-width: none;
  margin: 36px 0 10px;
}

.prose p,
.prose ul {
  margin-bottom: 14px;
}

.prose ul {
  padding-left: 22px;
  color: var(--text-dim);
}

.prose li {
  margin-bottom: 6px;
}

/* ─────────────────────────── Responsive ─────────────────────────── */

/* Narrow desktop (961–1100px): slightly tighter header spacing, same font
   size, so the 36px wordmark, nav, phone number and CTA stay on one row. */
@media (min-width: 961px) and (max-width: 1100px) {
  .site-header__inner {
    gap: 16px;
  }

  .site-nav a {
    padding: 6px 8px;
  }
}

@media (max-width: 960px) {
  .hero__inner,
  .about,
  .inquiry,
  .product {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product__built,
  .review__body {
    padding-left: 0;
    padding-top: 28px;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .review {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .grid--3 {
    grid-template-columns: 1fr;
  }

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

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  /* Tablet: logo, nav, phone icon and CTA share one row down to 801px.
     Tighter spacing (same font size) and a 30px wordmark keep it on one
     row; below 801px the nav folds into the Menu (see the 800px block). */
  .site-header__inner {
    gap: 12px;
  }

  .site-logo {
    height: 30px;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding: 6px 5px;
    white-space: nowrap;
  }

  .site-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg-card-2);
    transition:
      color var(--transition),
      border-color var(--transition),
      background var(--transition);
  }

  .site-phone:hover {
    border-color: var(--blue);
    background: var(--blue-soft);
  }

  .site-phone__icon {
    display: block;
  }

  .site-phone__number {
    display: none;
  }
}

/* The nav and CTA fold into the Menu once the full row (wordmark, nav,
   phone icon, CTA) no longer fits. */
@media (max-width: 800px) {
  .site-nav,
  .site-header__inner > .site-cta {
    display: none;
  }

  .site-menu {
    display: block;
    margin-left: auto;
  }

  /* The phone icon sits just left of the Menu button, both pushed right. */
  .site-header__inner {
    gap: 12px;
  }

  .site-logo {
    height: 36px;
  }

  .site-phone {
    margin-left: auto;
  }

  .site-phone + .site-cta + .site-menu {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

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

  h1 {
    font-size: 34px;
    letter-spacing: -0.8px;
  }

  h2 {
    font-size: 27px;
  }

  .lede {
    font-size: 17px;
  }

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

  .section {
    padding: 60px 0;
  }

  .grid--4,
  .grid--5 {
    grid-template-columns: 1fr;
  }

  .ds-card.own {
    padding: 24px 22px;
  }

  .launch__group {
    padding: 22px;
  }

  .product,
  .review,
  .inquiry__form {
    padding: 22px;
  }

  .problem,
  .founding__card {
    padding: 22px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .meet {
    gap: 14px;
    padding: 16px;
  }

  .meet__photo {
    width: 76px;
    height: 76px;
  }

  .section--short {
    padding: 48px 0;
  }

  .site-header__inner {
    gap: 12px;
  }

  .site-logo {
    height: 24px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* Very small phones (320px): the wordmark shrinks so the phone icon and
   Menu still fit beside it. */
@media (max-width: 359px) {
  .site-logo {
    height: 18px;
  }
}

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