:root {
  --paper: #f6f5f2;
  --white: #ffffff;
  --ink: #141311;
  --muted: #67625e;
  --line: #dcd9d4;
  --line-cool: #ded9d3;
  /* App accent, from the macOS app's AccentColor (#F79228). The darker ink variant
     keeps links and small text at WCAG AA contrast on the paper surface. */
  --accent: #f79228;
  --accent-ink: #a85208;
  --cyan: #54c7ec;
  --coral: #ff6b5f;
  --charcoal: #1a1815;
  --surface-hero: #f6f5f2;
  --surface-native: #ffffff;
  --surface-privacy: #f6efe6;
  --surface-requirements: #f1ece6;
  --surface-closing: #171512;
  --surface-footer: #0e0c0a;
  --radius: 8px;
  --shadow: 0 28px 70px rgba(20, 19, 17, 0.16), 0 2px 12px rgba(20, 19, 17, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header[data-header-solid] {
  border-color: rgba(17, 20, 18, 0.1);
  background: rgba(245, 246, 243, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  width: min(100% - 48px, 1240px);
  height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 760;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 23px;
  border-radius: 0;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  color: #414743;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

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

.site-nav a[aria-current="page"],
.site-nav a[data-active] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* While a section is in view, only that section's link keeps the underline, so the
   current-page marker on the homepage does not compete with it. */
.site-nav.is-section-active a[aria-current="page"]:not([data-active]) {
  text-decoration: none;
}

.site-nav .nav-github {
  padding: 9px 14px;
  border: 1px solid #bcc2bd;
  border-radius: 6px;
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 180ms ease;
}

.hero {
  min-height: 960px;
  padding: 86px 24px 16px;
  overflow: hidden;
  background-color: var(--surface-hero);
}

.hero-copy {
  width: min(100%, 1040px);
  margin: 0 auto 28px;
  text-align: center;
}

.hero h1 {
  max-width: 960px;
  text-wrap: balance;
  margin: 0 auto;
  font-size: clamp(36px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-product {
  margin: 0 0 20px;
  /* The app's own accent colour, used here only for display-size brand text. */
  color: var(--accent);
  font-size: clamp(64px, 6vw, 84px);
  font-weight: 800;
  line-height: 1;
}

.hero-line {
  margin: 14px 0 9px;
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 680;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-detail {
  max-width: 820px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

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

.hero-detail a {
  color: inherit;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hero-positioning {
  margin: 12px auto 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 720;
}

.hero-capabilities {
  display: flex;
  margin: 18px auto 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.hero-capabilities strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.hero-capabilities span {
  color: var(--accent-ink);
}

.hero-actions {
  display: flex;
  margin-top: 14px;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--accent-ink);
}

.button-primary:hover {
  background: #8c4406;
}

.button-store {
  min-width: 188px;
  padding: 7px 18px;
  align-content: center;
  flex-direction: column;
  gap: 0;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
}

.button-store span {
  font-size: 14px;
  line-height: 1.2;
}

.button-store small {
  color: #aeb6b0;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.3;
  text-transform: uppercase;
}

.text-link {
  font-size: 15px;
  font-weight: 680;
  text-underline-offset: 4px;
}

.product-stage {
  position: relative;
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 0;
  aspect-ratio: 2.24 / 1;
  overflow: hidden;
  border: 1px solid rgba(17, 20, 18, 0.16);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 58px rgba(17, 20, 18, 0.18);
}

.product-screenshot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.intro {
  padding: 104px max(24px, calc((100% - 1240px) / 2));
  scroll-margin-top: 72px;
  border-top: 1px solid #e6e2dc;
  background: var(--surface-native);
}

.section-heading {
  display: grid;
  max-width: 1080px;
  margin-bottom: 52px;
  grid-template-columns: 1.6fr 0.8fr;
  column-gap: 80px;
}

.section-heading h2,
.privacy h2,
.requirements h2,
.closing h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: 0;
}

.section-heading > p:last-child {
  margin: 8px 0 0;
  align-self: end;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.feature {
  position: relative;
  min-height: 365px;
  padding: 34px 38px 40px 0;
  border-right: 1px solid var(--line);
}

.feature + .feature {
  padding-left: 38px;
}

.feature:last-child {
  padding-right: 0;
  border: 0;
}

.feature h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.feature p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.native-feature-grid .feature {
  min-height: 188px;
  padding-top: 38px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.native-feature-grid .feature:nth-child(3),
.native-feature-grid .feature:nth-child(6) {
  padding-right: 0;
  border-right: 0;
}

.native-feature-grid .feature:nth-child(4) {
  padding-left: 0;
}

.privacy {
  display: grid;
  min-height: 760px;
  padding: 120px max(24px, calc((100% - 1240px) / 2));
  scroll-margin-top: 72px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 100px;
  border-top: 1px solid #e6ded2;
  border-bottom: 1px solid #e6ded2;
  background: var(--surface-privacy);
}

.privacy-manifesto {
  display: grid;
  align-content: center;
  color: #7b847e;
  font-size: clamp(39px, 5vw, 72px);
  font-weight: 720;
  line-height: 1.02;
}

.privacy-manifesto strong {
  margin-top: 8px;
  color: var(--ink);
}

.privacy-copy h2 {
  max-width: 620px;
}

.privacy-copy > p {
  max-width: 560px;
  margin: 28px 0 34px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

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

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 650;
}

.check-list span {
  display: grid;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  place-items: center;
  color: #073c24;
  background: #bdebd0;
  font-size: 12px;
}

.privacy-policy-link {
  display: inline-flex;
  margin-top: 30px;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
  text-underline-offset: 4px;
}

.requirements {
  padding: 110px max(24px, calc((100% - 1240px) / 2));
  scroll-margin-top: 72px;
  background: var(--surface-requirements);
}

.requirements-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
}

.requirements h2 {
  max-width: 430px;
}

.requirements dl {
  margin: 0;
  border-top: 1px solid var(--line-cool);
}

.requirements dl div {
  display: grid;
  padding: 19px 0;
  border-bottom: 1px solid var(--line-cool);
  grid-template-columns: 130px 1fr;
  gap: 20px;
}

.requirements dt {
  color: #8a918c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.requirements dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.closing {
  display: flex;
  min-height: 670px;
  padding: 100px 24px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--white);
  background: var(--surface-closing);
  text-align: center;
}

.closing-icon {
  width: 110px;
  margin-bottom: 38px;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.closing h2 {
  max-width: 840px;
  margin-bottom: 38px;
}

.closing .button-primary {
  color: var(--ink);
  background: var(--white);
}

.closing .button-primary:hover {
  background: #e8e2d8;
}

.button-store-light {
  color: var(--ink);
  background: var(--white);
}

.button-store-light small {
  color: #707872;
}

.site-footer {
  display: grid;
  min-height: 100px;
  padding: 28px max(24px, calc((100% - 1240px) / 2));
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #aeb5b0;
  background: var(--surface-footer);
  font-size: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 14px;
}

.footer-brand img {
  border-radius: 7px;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  justify-self: end;
  gap: 24px;
}

.footer-links a {
  text-underline-offset: 4px;
}

.policy-page {
  padding-top: 72px;
  background: var(--surface-native);
}

.policy-hero {
  padding: 116px max(24px, calc((100% - 1120px) / 2)) 84px;
  background: var(--surface-hero);
}

.policy-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(54px, 8vw, 100px);
  line-height: 0.95;
}

.policy-hero > p {
  max-width: 720px;
  margin: 28px 0 46px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.policy-meta {
  display: flex;
  max-width: 720px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  gap: 70px;
}

.policy-meta div {
  display: grid;
  gap: 3px;
}

.policy-meta dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.policy-meta dd {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.policy-content {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  padding: 56px 0 110px;
}

.policy-content section {
  display: grid;
  max-width: 820px;
  margin: 0 auto;
  padding: 54px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr);
}

.policy-content section:last-child {
  border-bottom: 1px solid var(--line);
}

.policy-content h2,
.policy-content section > p,
.policy-data-list {
  grid-column: 1;
}

.policy-content h2 {
  margin: 0 0 20px;
  font-size: 32px;
  line-height: 1.15;
}

.policy-content section > p {
  max-width: 720px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.policy-content a {
  color: var(--ink);
  font-weight: 650;
  text-underline-offset: 4px;
}

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

.policy-data-list div {
  display: grid;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
}

.policy-data-list dt {
  font-size: 13px;
  font-weight: 720;
}

.policy-data-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.guide-page {
  padding-top: 72px;
  background: var(--surface-native);
}

.guide-hero {
  padding: 108px max(24px, calc((100% - 1240px) / 2)) 88px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-hero);
}

.guide-kicker,
.section-label {
  margin: 0 0 14px;
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.guide-hero h1 {
  max-width: 940px;
  margin: 0;
  font-size: 76px;
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: 0;
}

.guide-deck {
  max-width: 780px;
  margin: 30px 0 44px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.guide-meta {
  display: flex;
  max-width: 780px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  gap: 70px;
}

.guide-meta div {
  display: grid;
  gap: 3px;
}

.guide-meta dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.guide-meta dd {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.guide-layout {
  display: grid;
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
  padding: 72px 0 120px;
  grid-template-columns: 210px minmax(0, 820px);
  justify-content: space-between;
  gap: 80px;
}

.guide-toc {
  position: sticky;
  top: 104px;
  display: flex;
  height: max-content;
  padding-bottom: 24px;
  flex-direction: column;
  gap: 13px;
  border-bottom: 1px solid var(--line);
}

.guide-toc strong {
  margin-bottom: 3px;
  font-size: 12px;
}

.guide-toc a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
}

.guide-toc a:hover {
  color: var(--ink);
}

.guide-content-wide {
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
  padding: 72px 0 120px;
}

.guide-content {
  min-width: 0;
}

.guide-content section {
  padding: 64px 0;
  scroll-margin-top: 90px;
  border-top: 1px solid var(--line);
}

.guide-content section:first-child {
  padding-top: 0;
  border-top: 0;
}

.guide-content h2 {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: 0;
}

.guide-content h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.guide-content section > p:not(.section-label),
.guide-content li,
.client-list p,
.recommendation-list dd {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.guide-content section > p:not(.section-label) {
  max-width: 760px;
  margin: 0 0 18px;
}

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

.guide-content a,
.client-list a {
  color: var(--ink);
  font-weight: 680;
  text-underline-offset: 4px;
}

.guide-content code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--surface-hero);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.source-link {
  margin-top: 24px !important;
  font-size: 14px !important;
}

.comparison-scroll {
  max-width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.comparison-table th,
.comparison-table td {
  padding: 18px 20px 18px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 13px;
  line-height: 1.55;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: 0;
}

.comparison-table thead th {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.comparison-table tbody th {
  width: 190px;
  color: var(--ink);
  font-weight: 720;
}

.comparison-table td {
  color: var(--muted);
}

.client-list {
  margin-top: 36px;
  border-bottom: 1px solid var(--line);
}

.client-list > div {
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
}

.client-list p {
  max-width: 740px;
  margin: 0 0 14px;
}

.client-list a {
  font-size: 14px;
}

.guide-content ul {
  display: grid;
  max-width: 760px;
  margin: 24px 0 0;
  padding-left: 22px;
  gap: 12px;
}

.recommendation-list {
  margin: 30px 0 0;
  border-bottom: 1px solid var(--line);
}

.recommendation-list div {
  display: grid;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
}

.recommendation-list dt {
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
}

.recommendation-list dd {
  margin: 0;
}

.guide-sources ul {
  gap: 8px;
}

.guide-sources li,
.guide-sources a {
  font-size: 14px;
}

.guide-cta {
  display: grid;
  min-height: 260px;
  padding: 64px max(24px, calc((100% - 1120px) / 2));
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  background: var(--surface-requirements);
}

.guide-cta img {
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(17, 20, 18, 0.18);
}

.guide-cta h2 {
  margin: 0;
  font-size: 38px;
}

.guide-cta p:not(.section-label) {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.guide-cta .button {
  min-width: 146px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 900px) {
  .section-heading,
  .privacy,
  .requirements-wrap {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .requirements-wrap {
    gap: 28px;
  }

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

  .feature,
  .feature + .feature,
  .feature:last-child {
    min-height: 260px;
    padding: 30px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .privacy {
    gap: 70px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .site-footer p {
    display: none;
  }

  .guide-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .guide-toc {
    position: sticky;
    z-index: 20;
    top: 72px;
    display: flex;
    margin: 0 -24px;
    padding: 15px 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    align-items: center;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.96);
  }

  .guide-toc strong,
  .guide-toc a {
    margin: 0;
    white-space: nowrap;
  }
}

@media (max-width: 680px) {
  .nav-wrap {
    width: min(100% - 32px, 1240px);
    height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 64px 0 auto;
    display: none;
    padding: 18px 24px 28px;
    border-bottom: 1px solid var(--line);
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .site-nav .nav-github {
    margin-top: 14px;
    padding: 13px 14px;
    border: 0;
    color: var(--white);
    background: var(--ink);
    text-align: center;
  }

  .hero {
    min-height: 860px;
    padding: 90px 16px 32px;
  }

  .hero-copy {
    margin-bottom: 26px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-line {
    margin-top: 18px;
    font-size: 34px;
  }

  .hero-detail {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-positioning {
    font-size: 14px;
  }

  .hero-actions {
    margin-top: 20px;
    flex-direction: column;
    gap: 14px;
  }

  .button {
    width: 100%;
  }

  .hero-capabilities {
    display: grid;
    margin-top: 18px;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .hero-capabilities strong {
    min-width: 0;
    justify-content: center;
    font-size: 12px;
  }

  .product-stage {
    width: calc(100% + 32px);
    height: auto;
    margin-left: -16px;
    margin-bottom: 0;
    aspect-ratio: 2838 / 1520;
    border-radius: 0;
  }

  .product-screenshot {
    object-fit: contain;
  }

  .privacy,
  .requirements {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .intro {
    padding-top: 54px;
    padding-bottom: 88px;
  }

  .section-heading {
    margin-bottom: 50px;
  }

  .section-heading h2,
  .privacy h2,
  .requirements h2,
  .closing h2 {
    font-size: 38px;
  }

  .privacy {
    min-height: 0;
  }

  .privacy-manifesto {
    font-size: 42px;
  }

  .requirements dl div {
    grid-template-columns: 92px 1fr;
  }

  .closing {
    min-height: 600px;
  }

  .closing-icon {
    width: 94px;
  }

  .policy-page {
    padding-top: 64px;
  }

  .policy-hero {
    padding: 80px 24px 64px;
  }

  .policy-hero h1 {
    font-size: 54px;
  }

  .policy-hero > p {
    margin: 22px 0 34px;
    font-size: 16px;
  }

  .policy-meta {
    gap: 36px;
  }

  .policy-content {
    width: min(100% - 48px, 1120px);
    padding: 30px 0 80px;
  }

  .policy-content section {
    padding: 42px 0;
    grid-template-columns: 1fr;
  }

  .policy-content h2,
  .policy-content section > p,
  .policy-data-list {
    grid-column: 1;
  }

  .policy-content h2 {
    font-size: 27px;
  }

  .policy-data-list div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .guide-page {
    padding-top: 64px;
  }

  .guide-hero {
    padding: 80px 24px 64px;
  }

  .guide-hero h1 {
    font-size: 46px;
    line-height: 1.02;
  }

  .guide-deck {
    margin: 24px 0 34px;
    font-size: 17px;
  }

  .guide-meta {
    gap: 36px;
  }

  .guide-layout {
    width: min(100% - 48px, 1240px);
    padding: 36px 0 80px;
    gap: 38px;
  }

  .guide-content-wide {
    padding: 36px 0 80px;
  }

  .guide-toc {
    top: 64px;
  }

  .guide-content section {
    padding: 50px 0;
  }

  .guide-content h2 {
    font-size: 32px;
  }

  .guide-content section > p:not(.section-label),
  .guide-content li,
  .client-list p,
  .recommendation-list dd {
    font-size: 15px;
  }

  .recommendation-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .guide-cta {
    padding: 56px 24px;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 24px;
  }

  .guide-cta h2 {
    font-size: 34px;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 39px;
  }

  .hero-line {
    font-size: 31px;
  }

  .guide-hero h1 {
    font-size: 41px;
  }

  .section-heading h2,
  .privacy h2,
  .requirements h2,
  .closing h2 {
    font-size: 34px;
  }

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

  .footer-links {
    justify-self: start;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Developer setup, workflow discovery, and practical product answers. */
.hero-availability {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.developer-section {
  padding: 88px max(24px, calc((100% - 1240px) / 2));
  scroll-margin-top: 80px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.developer-heading {
  max-width: 840px;
  margin-bottom: 38px;
}
.developer-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 730;
  line-height: 1.1;
}
.developer-heading > p:last-child {
  max-width: 750px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.setup-steps {
  display: grid;
  margin: 0;
  padding-left: 24px;
  gap: 24px;
}
.setup-steps li { padding-left: 8px; }
.setup-steps li::marker { color: var(--accent-ink); font-weight: 750; }
.setup-steps h3 { margin: 0 0 7px; font-size: 18px; }
.setup-steps p { margin: 0; color: var(--muted); line-height: 1.7; }
.code-example {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9cfc1;
  border-radius: 8px;
  background: var(--paper);
}
.code-toolbar {
  display: flex;
  min-height: 49px;
  padding: 10px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.copy-code {
  padding: 5px 9px;
  border: 1px solid #cfc4b6;
  border-radius: 4px;
  color: var(--ink);
  background: var(--white);
  font-size: 12px;
  cursor: pointer;
}
.copy-code:hover { background: #f3e6d5; }
.code-example pre {
  max-width: 100%;
  margin: 0;
  padding: 22px 20px;
  overflow-x: auto;
  color: #fdf3e6;
  background: #171e1a;
  font-size: 13px;
  line-height: 1.8;
  tab-size: 2;
}
.code-example pre code {
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  overflow-wrap: normal;
}
.code-note {
  margin: 0;
  padding: 18px 20px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.code-note a { color: var(--accent-ink); font-weight: 650; }
.copy-feedback {
  min-height: 20px;
  margin: 8px 20px 12px;
  color: var(--accent-ink);
  font-size: 12px;
}
.section-actions { display: flex; margin-top: 36px; align-items: center; gap: 24px; flex-wrap: wrap; }
.workflows { background: var(--surface-requirements); }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.workflow-grid article { padding-top: 22px; border-top: 1px solid #d5cfc7; }
.workflow-kind { color: var(--muted); font-size: 12px; font-weight: 650; }
.workflow-grid h3 { margin: 12px 0; font-size: 23px; line-height: 1.25; }
.workflow-grid p { color: var(--muted); line-height: 1.7; }
.workflow-grid a { font-size: 14px; font-weight: 680; text-underline-offset: 4px; }
.faq-list { max-width: 940px; }
.faq-list details { padding: 24px 0; border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { font-size: 19px; font-weight: 670; cursor: pointer; }
.faq-list p { max-width: 840px; margin: 16px 0 0; color: var(--muted); line-height: 1.8; }
.faq-list a { color: var(--accent-ink); text-underline-offset: 3px; }
.breadcrumbs { display: flex; margin-bottom: 28px; gap: 12px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { text-underline-offset: 3px; }
.guide-steps { display: grid; padding-left: 24px; gap: 18px; }
.guide-content .code-example { margin: 28px 0; }
.guide-content .code-example .copy-feedback { font-size: 12px; }
.guide-content .button-primary { color: var(--white); text-decoration: none; }
.guide-content .code-example pre { font-size: 12px; }
@media (max-width: 900px) {
  .setup-grid { grid-template-columns: 1fr; gap: 32px; }
  .workflow-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 680px) {
  .developer-section { padding: 60px 24px; }
  .hero h1 { font-size: clamp(30px, 9vw, 44px); }
  .developer-heading > p:last-child { font-size: 16px; }
  .hero-product { font-size: 56px; margin-bottom: 16px; }
  .hero-availability { font-size: 12px; }
  .faq-list summary { font-size: 17px; }
  .section-actions { align-items: stretch; flex-direction: column; }
  .section-actions .text-link { text-align: center; }
  .code-toolbar { padding: 10px 12px; }
  .code-example pre { padding: 18px 14px; font-size: 12px; }
  .breadcrumbs { flex-wrap: wrap; }
}

/* ntfy / MQTT tabs, styled after the app's segmented control */
.code-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 22px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edeae5;
}
.code-tab {
  min-height: 34px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.code-tab:hover { color: var(--ink); }
.code-tab[aria-selected="true"] {
  /* App accent fill with dark text: matches the app's orange pill and stays readable. */
  color: #23180b;
  background: var(--accent);
}
.code-tab:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
[role="tabpanel"][hidden] { display: none; }
