:root {
  color-scheme: light;
  --ink: #13221c;
  --muted: #52635b;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --soft: #edf4ef;
  --line: #d5dfd8;
  --green: #087a5d;
  --green-deep: #0a4335;
  --mint: #9be8cb;
  --gold: #b5832b;
  --blue: #2d5972;
  --danger: #9f2536;
  --shadow: 0 18px 45px rgba(25, 40, 34, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.58;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 30;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 246, .9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
  min-width: 0;
}

.brand span {
  overflow-wrap: anywhere;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--green);
}

.hero {
  min-height: min(760px, calc(100vh - 72px));
  background:
    linear-gradient(90deg, rgba(8, 24, 18, .88) 0%, rgba(8, 24, 18, .72) 42%, rgba(8, 24, 18, .18) 100%),
    url("images/hero-library-study.png") center / cover no-repeat;
  color: white;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.eyebrow {
  color: var(--mint);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

h1 {
  max-width: 720px;
  font-size: clamp(44px, 8vw, 86px);
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(31px, 4.5vw, 52px);
}

h3 {
  font-size: 24px;
}

p {
  margin: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.hero-copy {
  max-width: 650px;
  margin-top: 22px;
  font-size: clamp(19px, 2.5vw, 25px);
  color: rgba(255, 255, 255, .88);
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  min-width: 0;
}

.button {
  display: inline-flex;
  min-height: 48px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 9px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 800;
  background: rgba(255, 255, 255, .12);
  color: white;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.button.primary {
  background: var(--mint);
  border-color: var(--mint);
  color: #0b3329;
}

.button.secondary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.button.light {
  background: var(--panel);
  color: var(--green-deep);
  border-color: var(--line);
}

.button.is-disabled {
  opacity: .55;
  cursor: not-allowed;
}

.request-panel {
  scroll-margin-top: 96px;
}

.request-panel h2 {
  margin-top: 0;
}

.request-panel a:not(.button) {
  color: var(--green);
  font-weight: 800;
}

.site-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.site-form label {
  display: grid;
  gap: 7px;
  color: var(--green-deep);
  font-weight: 800;
}

.site-form input,
.site-form select,
.site-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.site-form input,
.site-form select {
  min-height: 48px;
  padding: 0 12px;
}

.site-form textarea {
  min-height: 140px;
  padding: 12px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-status {
  align-self: center;
  color: var(--muted);
  font-weight: 800;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: var(--danger);
}

.turnstile-slot {
  min-height: 65px;
}

.section {
  padding: 76px 0;
}

.section.alt {
  background: var(--soft);
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-width: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  max-width: 780px;
  margin-bottom: 34px;
  overflow-wrap: anywhere;
}

.section-heading p {
  color: var(--muted);
  font-size: 19px;
}

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

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

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

.tile,
.callout,
.page-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.tile {
  display: grid;
  gap: 10px;
}

.tile .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: var(--soft);
  color: var(--green);
  font-weight: 900;
}

.tile p,
.callout p,
.page-panel p,
.list-copy li {
  color: var(--muted);
}

.screens {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.screens.reverse {
  grid-template-columns: 1.1fr .9fr;
}

.phone-stack {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: center;
}

.phone-shot {
  width: min(280px, 46vw);
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 8px solid #13221c;
  background: #13221c;
}

.phone-shot:nth-child(2) {
  transform: translateY(32px);
}

.ipad-shot {
  border-radius: 24px;
  border: 8px solid #13221c;
  box-shadow: var(--shadow);
}

.screenshot-card {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.screenshot-card img {
  border: 1px solid var(--line);
  border-radius: 10px;
}

.screenshot-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.guide-shot-wide {
  margin-top: 20px;
}

.guide-shot-wide img {
  width: 100%;
  max-height: 860px;
  object-fit: contain;
  object-position: top center;
  background: var(--soft);
}

.evidence-badge {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-deep);
  background: var(--soft);
  font-size: 14px;
  font-weight: 800;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  font-weight: 900;
}

.banner {
  background: var(--green-deep);
  color: white;
  padding: 52px 0;
}

.banner p {
  color: rgba(255, 255, 255, .8);
}

.footer {
  background: #0d1713;
  color: white;
  padding: 38px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer a {
  color: rgba(255, 255, 255, .82);
}

.prose {
  max-width: 860px;
  display: grid;
  gap: 22px;
  min-width: 0;
}

.prose h1 {
  color: var(--ink);
  font-size: clamp(38px, 6vw, 64px);
}

.prose h2 {
  font-size: 30px;
  margin-top: 18px;
}

.prose ul {
  margin: 0;
  padding-left: 22px;
}

.list-copy {
  display: grid;
  gap: 10px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 6px;
  max-height: calc(100vh - 116px);
  overflow: auto;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.docs-sidebar a {
  padding: 8px 10px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.docs-sidebar a:hover,
.docs-sidebar a:focus {
  color: var(--green-deep);
  background: var(--soft);
}

.docs-content {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.docs-search-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.docs-search-panel input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 0 14px;
}

.docs-search-results {
  display: grid;
  gap: 10px;
}

.docs-search-result {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  text-decoration: none;
}

.docs-search-result strong {
  color: var(--green-deep);
}

.docs-search-result span {
  color: var(--muted);
  font-size: 15px;
  overflow-wrap: break-word;
}

.docs-search-empty {
  color: var(--muted);
  font-weight: 800;
}

.doc-section {
  scroll-margin-top: 96px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.doc-section h2 {
  font-size: clamp(28px, 3vw, 42px);
  margin-bottom: 12px;
}

.doc-section h3 {
  font-size: 21px;
}

.doc-section > p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 18px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.doc-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}

.doc-card p {
  color: var(--muted);
}

.doc-card a {
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.doc-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.doc-table [role="row"] {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.doc-table [role="row"]:last-child {
  border-bottom: 0;
}

.doc-table span {
  color: var(--muted);
}

.faq-section {
  display: grid;
  gap: 12px;
}

.faq-section details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  padding: 14px 16px;
}

.faq-section summary {
  cursor: pointer;
  color: var(--green-deep);
  font-weight: 900;
}

.faq-section details p {
  margin-top: 10px;
  color: var(--muted);
}

.guide-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.guide-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.guide-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  padding: 8px 10px;
  border-radius: 8px;
}

.guide-nav a:hover,
.guide-nav a:focus {
  background: var(--soft);
  color: var(--green-deep);
}

.guide-content {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.guide-content .doc-section {
  box-shadow: none;
}

.callout-note {
  border-left: 4px solid var(--green);
  background: var(--soft);
  color: var(--muted);
  padding: 14px 16px;
  border-radius: 8px;
}

.callout-note.warning {
  border-left-color: var(--gold);
}

.callout-note.danger {
  border-left-color: var(--danger);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-links a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--green-deep);
  background: var(--panel);
  font-weight: 900;
  text-decoration: none;
  text-align: center;
}

.decision-list {
  display: grid;
  gap: 12px;
}

.decision-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.decision-item strong {
  color: var(--green-deep);
}

.decision-item span {
  color: var(--muted);
}

.page-hero {
  padding: 72px 0 40px;
  background: var(--soft);
}

.mini-note {
  font-size: 14px;
  color: var(--muted);
}

/* Official v1.0.6 product story */
.product-hero {
  padding: 72px 0;
  background:
    radial-gradient(circle at 85% 16%, rgba(155, 232, 203, .24), transparent 34%),
    var(--green-deep);
  color: white;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 56px;
  align-items: center;
}

.product-hero-copy {
  min-width: 0;
}

.product-hero h1 {
  font-size: clamp(48px, 7vw, 84px);
}

.product-hero .hero-copy {
  color: rgba(255, 255, 255, .86);
}

.product-disclosure {
  margin-top: 24px;
  max-width: 560px;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
}

.hero-product-frame {
  margin: 0;
  padding: 16px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 24px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .25);
  color: var(--muted);
}

.hero-product-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.hero-product-frame figcaption {
  padding: 12px 4px 0;
  font-size: 14px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.workflow-card {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  min-height: 226px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(25, 40, 34, .08);
  overflow: hidden;
}

.workflow-card.featured {
  background: linear-gradient(145deg, var(--panel), #f0faf6);
  border-color: #b7d8cc;
}

.workflow-card img {
  width: 118px;
  height: 190px;
  object-fit: cover;
  object-position: top center;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.workflow-card h3 {
  margin-top: 36px;
  font-size: 21px;
}

.workflow-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 16px;
}

.workflow-number {
  position: absolute;
  top: 18px;
  left: 154px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-deep);
  font-size: 14px;
  font-weight: 900;
}

.source-principle-grid,
.control-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 46px;
  align-items: center;
}

.source-principle-grid .section-heading,
.control-grid .section-heading {
  margin-bottom: 0;
}

.source-principle-image {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.source-principle-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
}

.principle-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.principle-list > div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 15px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.principle-list strong {
  color: var(--green-deep);
}

.principle-list span {
  color: var(--muted);
}

.video-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0c211a;
  box-shadow: var(--shadow);
}

.video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #0c211a;
}

.video-caption-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 64px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
}

.video-caption-panel span {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.video-caption-panel p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.centered-actions {
  justify-content: center;
}

.inline-button {
  justify-self: start;
  margin-top: 8px;
}

.banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

/* Product tour and public resources */
.tour-hero {
  padding: 64px 0 54px;
  background: var(--green-deep);
  color: white;
}

.tour-hero-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 46px;
  align-items: center;
}

.tour-hero .section-heading {
  margin-bottom: 0;
}

.tour-hero .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, .8);
}

.tour-hero .video-shell {
  border-color: rgba(255, 255, 255, .25);
}

.chapter-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.chapter-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--green-deep);
  font-weight: 800;
  text-decoration: none;
}

.chapter-nav a:hover {
  border-color: var(--green);
  background: var(--soft);
}

.chapter-time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.tour-chapters {
  display: grid;
  gap: 34px;
}

.tour-chapter {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 36px;
  align-items: center;
  scroll-margin-top: 96px;
}

.tour-chapter:nth-child(even) .tour-chapter-image {
  order: 2;
}

.tour-chapter-image {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(25, 40, 34, .08);
}

.tour-chapter-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
}

.tour-chapter-copy {
  display: grid;
  gap: 12px;
}

.tour-chapter-copy p {
  color: var(--muted);
  font-size: 18px;
}

.chapter-label {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.transcript-panel {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.transcript-panel details + details {
  border-top: 1px solid var(--line);
}

.transcript-panel summary {
  padding: 18px 0;
  color: var(--green-deep);
  font-weight: 850;
  cursor: pointer;
}

.transcript-panel details p {
  padding-bottom: 22px;
  color: var(--muted);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.resource-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(25, 40, 34, .08);
}

.resource-card img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.resource-card p {
  color: var(--muted);
}

.resource-card .button {
  justify-self: start;
}

.social-preview-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.social-preview-grid > * {
  min-width: 0;
}

.social-preview-grid .video-shell {
  width: 100%;
  max-width: 360px;
}

.social-preview-grid .video-shell video {
  aspect-ratio: 9 / 16;
  max-height: 620px;
}

.social-copy {
  padding: 20px;
  border-left: 4px solid var(--mint);
  background: var(--soft);
  color: var(--muted);
  white-space: pre-line;
}

@media (max-width: 840px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(8, 24, 18, .92) 0%, rgba(8, 24, 18, .62) 100%),
      url("images/hero-library-study.png") center / cover no-repeat;
  }

  h1,
  .prose h1 {
    font-size: clamp(34px, 7vw, 48px);
    line-height: 1.14;
  }

  .page-hero .actions,
  .docs-content .actions,
  .guide-content .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-hero .button,
  .docs-content .button,
  .guide-content .button {
    width: 100%;
  }

  .grid.three,
  .grid.two,
  .form-grid,
  .docs-layout,
  .doc-grid,
  .doc-table [role="row"],
  .guide-layout,
  .screens,
  .product-hero-grid,
  .source-principle-grid,
  .control-grid,
  .tour-hero-grid,
  .tour-chapter,
  .banner-grid,
  .social-preview-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid,
  .chapter-nav,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tour-chapter:nth-child(even) .tour-chapter-image {
    order: 0;
  }

  .social-preview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-sidebar,
  .guide-nav {
    position: static;
    max-height: none;
  }

  .phone-stack {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 18px;
  }

  .phone-shot:nth-child(2) {
    transform: none;
  }

  .section {
    padding: 54px 0;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .container,
  .nav,
  .hero-inner {
    width: min(calc(100% - 24px), 1160px);
  }

  .page-hero {
    padding: 50px 0 32px;
  }

  h1,
  .prose h1 {
    font-size: clamp(34px, 9vw, 40px);
    line-height: 1.14;
  }

  h2,
  .doc-section h2 {
    font-size: clamp(27px, 7vw, 34px);
  }

  .hero-actions,
  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .related-links a {
    width: 100%;
  }

  .product-hero {
    padding: 52px 0;
  }

  .workflow-grid,
  .chapter-nav,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .workflow-card {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 194px;
  }

  .workflow-card img {
    width: 96px;
    height: 156px;
  }

  .workflow-number {
    left: 132px;
  }

  .tour-hero {
    padding: 46px 0 40px;
  }

  .transcript-panel {
    padding: 18px;
  }

  .doc-section,
  .docs-search-panel {
    padding: 18px;
  }

  .docs-search-panel input {
    font-size: 16px;
  }
}
