/* Mailcrane website. Phone first: base rules are for small screens, and
   min-width media queries add the wider layouts. Colours follow
   design/colors.json. No external resources. */

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;
  --blue: #2b57d9;
  --blue-dark: #1e44b8;
  --blue-pale: #e3eaff;
  --tint: #bfd0ff;
  --ink: #141a2e;
  --muted: #5a6380;
  --surface: #fff;
  --surface-dim: #f4f6fb;
  --surface-high: #f0f3fb;
  --line: #d5dbea;
  --success: #157a4c;
  --success-pale: #dcf3e8;
  --peach: #9a4a12;
  --peach-pale: #fde9dc;
  --button-text: #fff;
  --community-bg: #2b57d9;
  --phone-frame: #141a2e;
  --shadow: 0 14px 34px rgb(20 26 46 / 12%);
  --radius-card: 20px;
  font-family: "DM Sans", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --blue: #8fa8ff;
    --blue-dark: #bfd0ff;
    --blue-pale: #222d50;
    --tint: #33406b;
    --ink: #e8ecf8;
    --muted: #9aa3bf;
    --surface: #0f1424;
    --surface-dim: #141b2e;
    --surface-high: #1a2138;
    --line: #2a3350;
    --success: #3dbe83;
    --success-pale: #173a2c;
    --peach: #ffb98a;
    --peach-pale: #3d2a1f;
    --button-text: #0f1424;
    --community-bg: #1e44b8;
    --phone-frame: #2a3350;
    --shadow: 0 14px 34px rgb(0 0 0 / 35%);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --blue: #8fa8ff;
  --blue-dark: #bfd0ff;
  --blue-pale: #222d50;
  --tint: #33406b;
  --ink: #e8ecf8;
  --muted: #9aa3bf;
  --surface: #0f1424;
  --surface-dim: #141b2e;
  --surface-high: #1a2138;
  --line: #2a3350;
  --success: #3dbe83;
  --success-pale: #173a2c;
  --peach: #ffb98a;
  --peach-pale: #3d2a1f;
  --button-text: #0f1424;
  --community-bg: #1e44b8;
  --phone-frame: #2a3350;
  --shadow: 0 14px 34px rgb(0 0 0 / 35%);
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

h2 {
  letter-spacing: -0.035em;
  line-height: 1.15;
}

h1 span,
.page-title span,
.section-heading h2 span {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  vertical-align: -0.25em;
}

.section-wrap,
.site-header {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--button-text);
  font-weight: 700;
}

/* Hidden until it gets keyboard focus. */
.skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.site-header {
  position: relative;
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: auto;
}

.brand-wordmark {
  display: block;
  height: auto;
}

.site-header .brand-wordmark {
  width: 116px;
}

.footer-brand .brand-wordmark {
  width: 120px;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  transition: color 160ms ease;
}

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

.main-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.mobile-nav {
  position: relative;
}

.mobile-nav-toggle {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  list-style: none;
}

.mobile-nav-toggle::-webkit-details-marker {
  display: none;
}

.mobile-nav-panel {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 200px;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mobile-nav-panel a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
}

.mobile-nav-panel a:hover {
  background: var(--surface-dim);
  color: var(--blue);
}

.mobile-nav-panel a[aria-current="page"] {
  background: var(--surface-dim);
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.theme-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.theme-toggle:hover {
  border-color: var(--blue);
  background: var(--surface-dim);
}

.theme-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sun-icon,
:root[data-theme="dark"] .moon-icon {
  display: none;
}

:root[data-theme="dark"] .sun-icon {
  display: block;
}

.site-header .header-cta {
  display: none;
}

@media (min-width: 420px) {
  .site-header .header-cta {
    display: inline-flex;
  }
}

/* ---------- Buttons and links ---------- */

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 0.85rem;
}

.button-primary {
  background: var(--blue);
  color: var(--button-text);
  box-shadow: 0 8px 18px rgb(43 87 217 / 20%);
}

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

.button-outline {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button-outline:hover {
  border-color: var(--blue);
}

.button-light {
  background: #fff;
  color: #1e44b8;
}

:root[data-theme="dark"] .button-light {
  background: var(--surface-high);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 700;
}

.text-link:hover {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link-light,
.text-link-light:hover {
  color: #fff;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-pale);
}

/* ---------- Home: hero ---------- */

.hero {
  display: grid;
  gap: 22px;
  padding-block: 36px 48px;
}

.hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 680px;
}

.hero-intro {
  max-width: 560px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.hero-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Home: promises ---------- */

.promise-strip {
  border-block: 1px solid var(--line);
  background: var(--surface-dim);
}

.promise-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin-block: 0;
  padding: 18px 0;
  list-style: none;
}

.promise-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
}

.promise-list .icon {
  color: var(--success);
}

/* ---------- Section headings ---------- */

.section-heading {
  max-width: 680px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 6vw, 3rem);
}

.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-more {
  margin: 24px 0 0;
}

/* ---------- Home: screenshot strip ---------- */

.screens-section {
  padding-block: 56px 40px;
}

#app-concepts {
  display: block;
}

.screen-strip {
  --edge: max(16px, calc((100% - 1160px) / 2));
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 8px var(--edge) 22px;
  overflow-x: auto;
  list-style: none;
  scroll-padding-inline: var(--edge);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.screen-item {
  flex: 0 0 min(62vw, 230px);
  scroll-snap-align: start;
}

.screen-item figure {
  margin: 0;
}

.phone-frame {
  overflow: hidden;
  aspect-ratio: 1080 / 2400;
  border: 7px solid var(--phone-frame);
  border-radius: 30px;
  background: var(--surface-dim);
  box-shadow: var(--shadow);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-item figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
  text-align: center;
}

.theme-tag {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface-high);
  color: var(--muted);
  font-size: 0.75rem;
}

/* ---------- Cards ---------- */

.highlights-section {
  padding-block: 40px 56px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.feature-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 6px;
  font-size: 1.08rem;
  line-height: 1.3;
}

.feature-group .feature-card h3 {
  margin-top: 0;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-card.is-soon {
  border-style: dashed;
  background: var(--surface-dim);
}

.feature-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 13px;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 1.1rem;
}

.feature-icon-privacy,
.feature-icon-organise {
  background: var(--success-pale);
  color: var(--success);
}

.feature-icon-inbox,
.feature-icon-look {
  background: var(--peach-pale);
  color: var(--peach);
}

.stage-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.stage-now {
  background: var(--blue);
  color: var(--button-text);
}

.stage-next {
  background: var(--blue-pale);
  color: var(--blue-dark);
}

:root[data-theme="dark"] .stage-next {
  color: var(--ink);
}

.stage-later {
  background: var(--peach-pale);
  color: var(--peach);
}

.stage-done {
  background: var(--success-pale);
  color: var(--success);
}

/* ---------- Home: what's coming ---------- */

.coming-section {
  padding-bottom: 56px;
}

.coming-card {
  padding: 28px 22px;
  border-radius: 26px;
  background: var(--surface-dim);
}

.coming-list {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.coming-list li {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.coming-list .stage-tag {
  justify-self: start;
}

.coming-desc {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- Home: community ---------- */

.community-section {
  padding-bottom: 64px;
}

.community-card {
  position: relative;
  display: grid;
  overflow: hidden;
  padding: 32px 24px;
  border-radius: 26px;
  background: var(--community-bg);
  color: #fff;
}

.community-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.community-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
}

.community-copy p {
  margin-bottom: 22px;
  color: #e6ecff;
}

.community-art {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 170px;
  opacity: 0.18;
}

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

.site-footer {
  display: grid;
  gap: 14px;
  padding-block: 28px 36px;
  border-top: 1px solid var(--line);
}

.site-footer > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-footer nav a:hover {
  color: var(--blue);
}

/* ---------- Inner pages ---------- */

.page-wrap {
  padding-block: 40px 72px;
}

.page-wrap:not(.page-wide) {
  max-width: 860px;
}

.page-title {
  margin-bottom: 14px;
  font-size: clamp(2.3rem, 8vw, 3.9rem);
}

.page-intro {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-intro p {
  margin: 0;
}

.page-intro a,
.info-card a,
.roadmap-footer a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin: 38px 0 12px;
  font-size: 1.6rem;
}

.prose h3 {
  margin: 28px 0 8px;
  font-size: 1.2rem;
}

.prose p,
.prose li {
  color: var(--muted);
  line-height: 1.75;
}

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

.prose ul,
.prose ol {
  padding-left: 24px;
}

.prose li + li {
  margin-top: 7px;
}

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--blue-dark);
}

.prose blockquote {
  margin: 25px 0;
  padding: 15px 20px;
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: var(--surface-dim);
}

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

.prose code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-high);
  font-size: 0.9em;
}

.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.prose th,
.prose td {
  padding: 8px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 32px;
}

.doc-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease;
}

.doc-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}

.doc-card h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.doc-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.93rem;
}

.doc-card .text-link {
  margin-top: auto;
  font-size: 0.85rem;
}

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

.chip-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.chip {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
}

.chip:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.feature-group {
  padding-top: 36px;
  scroll-margin-top: 12px;
}

.group-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.group-heading h2 {
  margin: 0 0 2px;
  font-size: 1.6rem;
}

.group-heading p {
  margin: 0;
  color: var(--muted);
}

.group-heading .group-status {
  margin-top: 8px;
  color: var(--ink);
}

.group-status .stage-tag {
  margin-right: 6px;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding: 24px;
  border-radius: 22px;
  background: var(--surface-dim);
}

.cta-band p {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

/* ---------- Download page ---------- */

.store-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 36px;
}

.store-button {
  display: grid;
  gap: 2px;
  padding: 18px 22px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: var(--blue);
  color: var(--button-text);
  transition: transform 160ms ease, background 160ms ease;
}

a.store-button:hover {
  transform: translateY(-1px);
  background: var(--blue-dark);
}

.store-name {
  font-size: 1.2rem;
  font-weight: 750;
}

.store-detail {
  font-size: 0.9rem;
}

.store-button.is-disabled {
  border: 1px dashed var(--line);
  background: var(--surface-dim);
  color: var(--muted);
  cursor: not-allowed;
}

.store-button.is-disabled .store-name {
  color: var(--ink);
}

.info-grid {
  display: grid;
  gap: 14px;
}

.info-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.info-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.info-card h2 .icon {
  color: var(--blue);
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

/* Download page: the nightly test build (#425). */
.nightly-card {
  margin-block: 0 24px;
}

.nightly-card .nightly-download {
  margin-block: 14px 10px;
  overflow-wrap: anywhere;
  /* .info-card a colours and underlines links; a button isn't one. */
  color: var(--ink);
  text-decoration: none;
}

.nightly-card .nightly-meta {
  font-size: 0.9rem;
}

.nightly-card a:not(.button) {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Roadmap page ---------- */

.progress-overview {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-dim);
}

.overview-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 12px;
}

.overview-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.progress-small {
  height: 8px;
  margin-bottom: 4px;
}

.roadmap-stage {
  padding-top: 32px;
  scroll-margin-top: 12px;
}

.roadmap-stage > h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.roadmap-stage > h2 .stage-tag {
  font-size: 0.85rem;
}

.milestone-grid {
  display: grid;
  gap: 14px;
}

.milestone-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.milestone-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

.milestone-top h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.milestone-card.is-done .milestone-top h3 .icon {
  color: var(--success);
}

.milestone-count {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.milestone-description {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.task-heading {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.task-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.93rem;
  line-height: 1.45;
}

.task-list .icon {
  margin-top: 1px;
  color: var(--muted);
}

.is-done .task-list .icon {
  color: var(--success);
}

.task-list a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.milestone-details summary {
  min-height: 32px;
  color: var(--blue);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
}

.milestone-details[open] summary {
  margin-bottom: 10px;
}

.roadmap-footer {
  margin: 36px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Wider screens ---------- */

@media (min-width: 600px) {
  .section-wrap,
  .site-header {
    width: min(1160px, calc(100% - 48px));
  }

  .promise-list {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
  }

  .card-grid,
  .doc-card-grid,
  .milestone-grid,
  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .coming-card,
  .community-card {
    padding: 44px;
  }

  .community-art {
    right: 24px;
    bottom: 50%;
    width: 200px;
    transform: translateY(50%);
    opacity: 0.9;
  }

  .community-copy {
    max-width: calc(100% - 240px);
  }

  .site-footer {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .site-footer nav {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .site-header {
    min-height: 84px;
    gap: 16px;
  }

  .site-header .brand-wordmark {
    width: 148px;
  }

  .main-nav {
    display: flex;
    margin-right: 12px;
  }

  .mobile-nav {
    display: none;
  }

  .hero {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 40px;
    padding-block: 72px 80px;
  }

  .hero-icon {
    width: 128px;
    height: 128px;
    border-radius: 32px;
  }

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

  .feature-group .card-grid,
  .store-grid,
  .info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .screen-item {
    flex-basis: 220px;
  }

  .page-wrap {
    padding-block: 64px 100px;
  }
}

/* ---------- Motion ---------- */

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .button:hover,
  .doc-card:hover,
  a.store-button:hover {
    transform: none;
  }
}
