/* PlateMate — apple.com / WWDC-inspired design system */

:root {
  --bg: #ffffff;
  --bg-soft: #fbfbfd;
  --bg-gray: #f5f5f7;
  --bg-dark: #0b0b0f;
  --bg-dark-elevated: #1c1c21;
  --text: #1d1d1f;
  --text-secondary: #55555b;
  --text-muted: #77777d;
  --text-on-dark: #f5f5f7;
  --text-on-dark-secondary: #b5b5bd;
  --border: #d2d2d7;
  --border-light: rgba(0, 0, 0, 0.1);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --shadow-btn: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  --width-content: 980px;
  --width-wide: 1240px;
  --width-text: 692px;
}

::selection {
  background: rgba(10, 132, 255, 0.22);
}

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

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--width-content);
  margin-inline: auto;
  padding-inline: max(1.375rem, env(safe-area-inset-left));
}

.container--wide {
  max-width: var(--width-wide);
}

.container--text {
  max-width: var(--width-text);
}

/* ---------- Typographic links ---------- */

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  font-size: 1.0625rem;
  color: var(--link);
}

.link-more::after {
  content: "›";
  font-size: 1.1em;
  transition: transform 0.2s ease;
}

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

.link-more:hover::after {
  transform: translateX(2px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.17648;
  letter-spacing: -0.01em;
  border: none;
  border-radius: 980px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--blue {
  color: #fff;
  background: var(--blue);
  box-shadow: var(--shadow-btn);
}

.btn--blue:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn--small {
  padding: 0.5rem 1.0625rem;
  font-size: 0.875rem;
}

.btn__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ---------- Global nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 253, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 2.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.65;
}

.brand__icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(29, 29, 31, 0.85);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

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

.hero {
  position: relative;
  background: var(--bg-soft);
  padding-block: 4.5rem 0;
  text-align: center;
  overflow: hidden;
}

.hero__eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
}

.hero__title {
  margin: 0 auto 0.75rem;
  max-width: 14em;
  font-size: clamp(3rem, 9vw, 5rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero__subtitle {
  margin: 0 auto 1.5rem;
  max-width: 30em;
  font-size: clamp(1.1875rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.19048;
  letter-spacing: 0.007em;
  color: var(--text-secondary);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.375rem;
  margin-bottom: 3.5rem;
}

.hero__visual {
  position: relative;
  height: clamp(160px, 28vw, 300px);
  margin-top: 0.5rem;
}

.hero__icon {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: clamp(140px, 24vw, 260px);
  height: clamp(140px, 24vw, 260px);
  border-radius: 22.5%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 25px 50px rgba(0, 0, 0, 0.18);
}

/* ---------- Ribbon ---------- */

.ribbon {
  padding-block: 1rem;
  text-align: center;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.ribbon p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.ribbon a {
  color: var(--link);
}

.ribbon a:hover {
  text-decoration: underline;
}

/* ---------- Bento tile grid ---------- */

.bento {
  padding: 0.75rem;
  background: var(--bg);
}

.bento__grid {
  display: grid;
  gap: 0.75rem;
  max-width: var(--width-wide);
  margin-inline: auto;
}

@media (min-width: 734px) {
  .bento__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tile--full {
    grid-column: 1 / -1;
  }
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3.5rem 2rem;
  text-align: center;
  background: var(--bg-gray);
  border-radius: 1.75rem;
  overflow: hidden;
}

.tile--dark {
  background: var(--bg-dark);
}

.tile--dark .tile__title {
  color: var(--text-on-dark);
}

.tile--dark .tile__desc {
  color: var(--text-on-dark-secondary);
}

.tile__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tile__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--text);
}

.tile__desc {
  margin: 0 0 1.125rem;
  max-width: 26em;
  font-size: 1.0625rem;
  line-height: 1.47059;
  color: var(--text-secondary);
}

.tile__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* Tile chart — score bars (pure CSS, no screenshots) */

.scorebars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.25rem;
  height: 9rem;
}

.scorebars__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  height: 100%;
}

.scorebars__bar {
  width: 3.25rem;
  border-radius: 0.625rem;
  background: #d2d2d7;
}

.scorebars__item--best .scorebars__bar {
  background: var(--blue);
}

.scorebars__value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.scorebars__item--best .scorebars__value {
  color: var(--blue);
}

.scorebars__label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- Editorial feature sections ---------- */

.feature {
  padding-block: 6.5rem;
}

.feature--gray {
  background: var(--bg-gray);
}

.feature--dark {
  background: var(--bg-dark);
}

.feature__layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .feature__layout {
    grid-template-columns: 5fr 4fr;
    gap: 5rem;
  }

  .feature__layout--flip .feature__copy {
    order: 2;
  }

  .feature__layout--flip .feature__aside {
    order: 1;
  }
}

.feature__eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-muted);
}

.feature--dark .feature__eyebrow {
  color: var(--text-on-dark-secondary);
}

.feature__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--text);
}

.feature--dark .feature__title {
  color: var(--text-on-dark);
}

.feature__title-accent {
  color: var(--text-muted);
}

.feature--dark .feature__title-accent {
  color: var(--text-on-dark-secondary);
}

.feature__body {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.4211;
  letter-spacing: 0.012em;
  color: var(--text-secondary);
}

.feature--dark .feature__body {
  color: var(--text-on-dark-secondary);
}

.feature__body + .feature__body {
  margin-top: 1rem;
}

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

.feature--dark .feature__body strong {
  color: var(--text-on-dark);
}

/* Aside cards inside features */

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-light);
  border-radius: 1.125rem;
  overflow: hidden;
}

.spec-list__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.375rem;
  background: var(--bg);
}

.feature--gray .spec-list__row {
  background: var(--bg);
}

.feature--dark .spec-list__row {
  background: #2c2c2e;
}

.spec-list__term {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.feature--dark .spec-list__term {
  color: var(--text-on-dark-secondary);
}

.spec-list__value {
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: right;
  color: var(--text);
}

.feature--dark .spec-list__value {
  color: var(--text-on-dark);
}

/* Checklist */

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

.feature--dark .checklist li {
  color: var(--text-on-dark-secondary);
}

.checklist svg {
  width: 1.375rem;
  height: 1.375rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--blue);
}

/* ---------- Big number strip ---------- */

.numbers {
  padding-block: 5.5rem;
  background: var(--bg-soft);
  text-align: center;
}

.numbers__title {
  margin: 0 auto 3.5rem;
  max-width: 18em;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.012em;
}

.numbers__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 1.5rem;
}

@media (min-width: 734px) {
  .numbers__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.numbers__value {
  display: block;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.numbers__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

/* ---------- Steps ---------- */

.steps-section {
  padding-block: 6.5rem;
  background: var(--bg);
}

.steps-section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.steps-section__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.steps-section__desc {
  margin: 0 auto;
  max-width: 30em;
  font-size: 1.1875rem;
  color: var(--text-secondary);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

@media (min-width: 734px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  counter-increment: step;
  padding: 2rem 1.75rem 2.25rem;
  background: var(--bg-gray);
  border-radius: 1.375rem;
}

.step {
  border: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.step:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 132, 255, 0.25);
  box-shadow: var(--shadow-card);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 2.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-muted);
}

.step__title {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.step__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ---------- Closing CTA ---------- */

.closing {
  position: relative;
  padding-block: 7rem;
  text-align: center;
  background: var(--bg-gray);
  overflow: hidden;
}

.closing__icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.closing__title {
  margin: 0 0 0.625rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
}

.closing__desc {
  margin: 0 0 2rem;
  font-size: 1.1875rem;
  color: var(--text-secondary);
}

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

.site-footer {
  margin-top: auto;
  background: var(--bg-gray);
  border-top: 1px solid var(--border-light);
}

.site-footer__inner {
  padding-block: 1.5rem;
}

.site-footer__note {
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.site-footer__row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 734px) {
  .site-footer__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.75rem;
}

.site-footer__links a {
  font-size: 0.75rem;
  color: #424245;
  padding-right: 0.75rem;
  border-right: 1px solid var(--border);
}

.site-footer__links a:last-child {
  border-right: none;
  padding-right: 0;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

/* ---------- Document pages (privacy / terms / support) ---------- */

.page-hero {
  padding-block: 3.5rem 2.5rem;
  background: var(--bg-soft);
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 0.375rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text);
}

.page-hero__meta {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

.page-main {
  flex: 1;
  padding-block: 3rem 5rem;
}

.doc {
  font-size: 1.0625rem;
  line-height: 1.58824;
  color: #424245;
}

.doc > * + * {
  margin-top: 1rem;
}

.doc h2 {
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.75rem;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  border-top: 1px solid var(--border-light);
}

.doc h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.doc h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--text);
}

.doc p {
  margin: 0;
}

.doc ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.375rem;
}

.doc a {
  color: var(--link);
}

.doc a:hover {
  text-decoration: underline;
}

.doc a.btn,
.doc a.btn:hover {
  color: #fff;
  text-decoration: none;
}

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

.doc .table-wrap,
.doc .overflow-x-auto {
  overflow-x: auto;
  margin-top: 1.25rem;
  border-radius: 1rem;
  background: var(--bg-gray);
}

.doc table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

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

.doc th {
  font-weight: 600;
  color: var(--text);
}

.doc tr:last-child td {
  border-bottom: none;
}

.doc td:first-child {
  font-weight: 500;
  color: var(--text);
}

.doc .callout,
.doc .bg-amber-50 {
  margin: 1.75rem 0;
  padding: 1.75rem;
  background: var(--bg-gray);
  border-radius: 1rem;
}

.doc .callout h3,
.doc .bg-amber-50 h3 {
  margin-top: 0;
}

/* ---------- App Store badge ---------- */

.appstore-badge {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.appstore-badge:hover {
  opacity: 0.8;
}

.appstore-badge img {
  height: 3.25rem;
  width: auto;
}

.hero__note {
  margin: 0.875rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---------- Screenshots gallery ---------- */

.screens {
  position: relative;
  padding-block: 6rem 6.5rem;
  background: var(--bg-dark);
  overflow: hidden;
}

.screens__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.screens__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text-on-dark);
}

.screens__desc {
  margin: 0 auto;
  max-width: 34em;
  font-size: 1.1875rem;
  color: var(--text-on-dark-secondary);
}

.screens__track {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem max(1.375rem, calc((100vw - var(--width-wide)) / 2)) 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screens__item {
  flex: 0 0 auto;
  width: clamp(220px, 26vw, 300px);
  scroll-snap-align: center;
}

.screens__item img {
  width: 100%;
  border-radius: 1.75rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    0 24px 55px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screens__item:hover img {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 34px 70px rgba(0, 0, 0, 0.6);
}

.screens__caption {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-on-dark-secondary);
}

/* ---------- Guides ---------- */

.guides {
  padding-block: 6.5rem;
  background: var(--bg);
}

.guides__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.guides__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.guides__desc {
  margin: 0 auto;
  max-width: 36em;
  font-size: 1.1875rem;
  color: var(--text-secondary);
}

.guides__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .guides__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .guides__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.75rem 1.5rem;
  background: var(--bg-gray);
  border: 1px solid transparent;
  border-radius: 1.375rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  background: var(--bg);
  border-color: rgba(10, 132, 255, 0.35);
  box-shadow: var(--shadow-card), 0 16px 36px rgba(0, 60, 130, 0.10);
}

.guide-card__tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link);
}

.guide-card__title {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}

.guide-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.guide-card__more {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--link);
}

/* ---------- FAQ (homepage) ---------- */

.faq {
  padding-block: 6.5rem;
  background: var(--bg-gray);
}

.faq__heading {
  text-align: center;
  margin: 0 0 3rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.faq__list {
  max-width: var(--width-text);
  margin-inline: auto;
}

.faq__item {
  background: var(--bg);
  border-radius: 1.125rem;
  overflow: hidden;
}

.faq__item + .faq__item {
  margin-top: 0.75rem;
}

.faq__item {
  border: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq__item:hover,
.faq__item[open] {
  border-color: rgba(10, 132, 255, 0.25);
  box-shadow: var(--shadow-card);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.375rem 1.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

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

.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

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

.faq__answer {
  padding: 0 1.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.faq__answer p {
  margin: 0 0 0.75rem;
}

.faq__answer a {
  color: var(--link);
}

.faq__answer a:hover {
  text-decoration: underline;
}

/* ---------- Guide article pages ---------- */

.article-hero {
  position: relative;
  padding-block: 3.5rem 2.5rem;
  background: var(--bg-soft);
  overflow: hidden;
}

.article-hero .container {
  max-width: var(--width-text);
}

.breadcrumbs {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.375rem;
}

.breadcrumbs a {
  color: var(--link);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.article-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
}

.article-hero__lede {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.article {
  padding-block: 3rem 4rem;
}

.article .doc h2 {
  font-size: 1.5rem;
}

.article-cta {
  margin: 2.5rem 0;
  padding: 2.25rem 1.75rem;
  text-align: center;
  background: var(--bg-gray);
  border: 1px solid var(--border-light);
  border-radius: 1.375rem;
}

.article-cta h2,
.article-cta h3 {
  margin: 0 0 0.5rem !important;
  padding: 0 !important;
  border: none !important;
  font-size: 1.375rem !important;
}

.article-cta p {
  margin: 0 0 1.25rem !important;
  color: var(--text-secondary);
}

.related {
  padding-block: 0 5rem;
}

.related__title {
  margin: 0 0 1.25rem;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.related__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 734px) {
  .related__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Support page ---------- */

.support-cards {
  display: grid;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 734px) {
  .support-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.support-card {
  padding: 2rem 1.75rem;
  background: var(--bg-gray);
  border-radius: 1.375rem;
}

.support-card h2 {
  margin: 0 0 0.375rem;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.support-card p {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

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

.faq__title {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.faq-item {
  padding: 1.5rem 1.75rem;
  background: var(--bg-gray);
  border-radius: 1.125rem;
}

.faq-item + .faq-item {
  margin-top: 0.75rem;
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.faq-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.52941;
  color: var(--text-secondary);
}
