:root {
  --bg: #f5f6f1;
  --fg: #151612;
  --muted: #6d7068;
  --line: #d9ddd2;
  --surface: #ffffff;
  --surface-soft: #ecefe6;
  --surface-dark: #1b1c1d;
  --red: #d94835;
  --green: #5f7445;
  --yellow: #f1d45e;
  --blue: #456c9f;
  --shadow: 0 18px 44px rgba(21, 22, 18, 0.1);
  --font-display: Iowan Old Style, Charter, Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color: var(--fg);
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-body);
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

img,
video {
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.global-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 260px minmax(280px, 460px) 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
  padding: 16px 28px;
  background: color-mix(in srgb, var(--surface) 92%, var(--bg));
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--surface);
  background: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.global-search {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--surface);
}

.global-search span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.global-search input {
  min-width: 0;
  border: 0;
  color: var(--fg);
  background: transparent;
  outline: 0;
}

.platform-nav,
.main-nav,
.hero-actions,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.platform-nav {
  justify-content: center;
}

.platform-pill,
.chip,
.main-nav a,
.primary-action,
.secondary-action {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  background: var(--surface);
  font-size: 13px;
  font-weight: 750;
}

.platform-pill,
.chip,
.main-nav a {
  min-height: 34px;
  padding: 8px 13px;
}

.platform-pill.is-active,
.chip.is-active,
.main-nav a.is-active {
  border-color: var(--fg);
  color: var(--surface);
  background: var(--fg);
}

.main-nav {
  justify-content: flex-end;
}

.app-main {
  width: min(1520px, calc(100% - 56px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 680;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.08;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
}

p {
  line-height: 1.58;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(520px, 0.92fr) minmax(420px, 0.78fr);
  gap: 38px;
  align-items: center;
  min-height: 760px;
  padding: 50px 0 46px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  color: var(--fg);
  max-width: 780px;
}

.hero-copy h1,
.hero-copy p {
  color: inherit;
}

.home-hero h1 {
  font-size: clamp(42px, 4.55vw, 64px);
  line-height: 1.02;
}

.home-hero h1 span {
  display: inline;
}

.hero-lede {
  max-width: 680px;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 17px;
}

.primary-action,
.secondary-action {
  min-height: 42px;
  padding: 11px 18px;
}

.primary-action {
  border-color: var(--fg);
  color: var(--surface);
  background: var(--fg);
}

.secondary-action {
  background: transparent;
}

.secondary-action.small {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 12px;
}

.hero-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 168px;
  gap: 12px;
  align-items: stretch;
  max-height: 680px;
}

.preview-tile {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-dark);
}

.preview-tile:nth-child(1),
.preview-tile:nth-child(4) {
  grid-row: span 2;
  min-height: 0;
}

.preview-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.preview-tile span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--surface);
  background: rgba(21, 22, 18, 0.78);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.stat-row div {
  min-height: 110px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.stat-row div:last-child {
  border-right: 0;
}

.stat-row strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 30px;
}

.stat-row span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.section-block {
  padding-top: 62px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.text-link {
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

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

.lane-card,
.topic-card {
  min-height: 162px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.lane-card:hover,
.topic-card:hover,
.case-card:hover {
  border-color: var(--fg);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.lane-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--surface);
  background: var(--fg);
  font-weight: 850;
}

.lane-card strong,
.topic-card strong {
  display: block;
  margin-top: 18px;
  font-size: 18px;
}

.lane-card small,
.topic-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.library-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 34px;
}

.library-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
}

.library-count {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.library-count strong {
  font-family: var(--font-mono);
  font-size: 34px;
}

.library-count span {
  color: var(--muted);
  font-size: 12px;
}

.filter-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.filter-strip {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
}

.filter-strip > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.filter-strip > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-results {
  min-width: 0;
}

.case-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.case-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface-dark);
}

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

.case-thumb span {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--surface);
  background: rgba(21, 22, 18, 0.82);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 850;
}

.case-card-body {
  display: grid;
  gap: 12px;
  min-height: 228px;
  padding: 18px;
}

.case-card.is-compact .case-card-body {
  min-height: 210px;
}

.meta-line,
.case-foot,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.meta-line span,
.case-foot span,
.detail-actions span,
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.case-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.case-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.case-foot {
  margin-top: auto;
  justify-content: space-between;
}

.case-foot span:first-child {
  border-color: color-mix(in srgb, var(--green) 55%, var(--line));
  color: var(--green);
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 34px;
  color: var(--muted);
  background: var(--surface);
}

.detail-hero {
  padding: 26px 0 34px;
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-title {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 1120px;
}

.brand-avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 8px;
  color: var(--surface);
  background: var(--surface-dark);
  font-family: var(--font-display);
  font-size: 42px;
}

.detail-title h1 {
  max-width: 1050px;
  font-size: clamp(34px, 4.4vw, 62px);
}

.detail-title p {
  max-width: 840px;
  margin: 18px 0 16px;
  color: var(--muted);
  font-size: 16px;
}

.detail-actions {
  margin-top: 24px;
}

.detail-actions span {
  background: var(--surface);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
  padding-top: 34px;
}

.study-main,
.study-aside {
  min-width: 0;
}

.study-aside {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
}

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

.compare-media figure,
.single-media {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-dark);
}

.compare-media video,
.single-media video {
  display: block;
  width: 100%;
  max-height: 660px;
  object-fit: contain;
  background: var(--surface-dark);
}

.compare-media figcaption {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 14px;
  color: var(--surface);
  font-size: 13px;
  font-weight: 800;
}

.long-media {
  max-height: 720px;
  overflow: auto;
  background: var(--surface-soft);
}

.long-media img {
  display: block;
  width: 100%;
  height: auto;
}

.detail-section-head {
  margin-top: 34px;
}

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

.step-card,
.insight-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.step-card {
  display: grid;
  grid-template-columns: 44px 62px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
}

.step-card span,
.step-card time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
}

.step-card span {
  color: var(--red);
}

.step-card time {
  color: var(--muted);
}

.step-card strong {
  min-width: 0;
}

.step-card p {
  grid-column: 3;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.insight-panel {
  padding: 18px;
}

.insight-panel h2 {
  font-size: 24px;
}

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

.analysis-list li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.analysis-list li::before {
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.pattern-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.pattern-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: var(--surface);
}

.pattern-list dt,
.pattern-list dd {
  margin: 0;
  font-size: 13px;
}

.pattern-list dt {
  color: var(--muted);
  font-weight: 800;
}

.prompt-panel {
  background: var(--surface-soft);
}

.prompt-panel p {
  margin: 16px 0 0;
  color: var(--fg);
  font-size: 14px;
}

.flow-detail-hero {
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--line);
}

.flow-hero-grid {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.flow-hero-grid h1 {
  max-width: 980px;
  font-size: clamp(34px, 4vw, 58px);
}

.flow-hero-grid p {
  max-width: 820px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 16px;
}

.commerce-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin-top: 26px;
}

.commerce-tab {
  display: grid;
  gap: 4px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface);
  text-align: left;
}

.commerce-tab span {
  font-size: 14px;
  font-weight: 850;
}

.commerce-tab small {
  color: var(--muted);
  font-size: 12px;
}

.commerce-tab.is-active {
  border-color: var(--fg);
  color: var(--surface);
  background: var(--fg);
}

.commerce-tab.is-active small {
  color: rgba(255, 255, 255, 0.72);
}

.flow-workspace {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-top: 28px;
}

.flow-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.flow-sidebar-head,
.side-insight,
.flow-video-section,
.selected-position {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.flow-sidebar-head {
  padding: 16px;
}

.flow-sidebar-head strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
}

.position-list {
  display: grid;
  gap: 8px;
}

.position-button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 52px;
  gap: 8px;
  align-items: center;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
  text-align: left;
}

.position-button span,
.position-button time {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 850;
}

.position-button span {
  color: var(--red);
}

.position-button strong,
.position-button small {
  grid-column: 2;
  display: block;
  min-width: 0;
}

.position-button small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.position-button time {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  color: var(--muted);
}

.position-button.is-active,
.chapter-button.is-active {
  border-color: var(--fg);
  box-shadow: 0 10px 24px rgba(21, 22, 18, 0.08);
}

.side-insight {
  padding: 16px;
}

.side-insight strong,
.side-insight span {
  display: block;
}

.side-insight span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.flow-main {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.flow-video-section {
  padding: 18px;
}

.flow-player-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.phone-frame {
  overflow: hidden;
  width: min(100%, 420px);
  border-radius: 28px;
  padding: 12px;
  background: #101112;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
}

.phone-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 720px;
  border-radius: 20px;
  object-fit: contain;
  background: #050505;
}

.video-notes {
  min-width: 0;
}

.video-notes h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.video-notes p {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
}

.chapter-list {
  display: grid;
  gap: 8px;
  max-height: 604px;
  margin-top: 22px;
  overflow: auto;
  padding-right: 4px;
}

.chapter-button {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--surface-soft);
  text-align: left;
}

.chapter-button time {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
}

.chapter-button span,
.chapter-button strong,
.chapter-button small {
  display: block;
  min-width: 0;
}

.chapter-button small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.selected-position {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
}

.selected-position h2 {
  font-size: 30px;
}

.selected-position p {
  max-width: 820px;
  margin: 10px 0 0;
  color: var(--muted);
}

.small-action {
  white-space: nowrap;
}

.screens-section {
  min-width: 0;
}

.screen-count {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 800;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 14px;
}

.screenshot-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.screenshot-card:hover {
  border-color: var(--fg);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.screenshot-card img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  object-fit: cover;
  object-position: top;
  background: var(--surface-soft);
}

.screenshot-card span {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 850;
}

.screenshot-card strong,
.screenshot-card small {
  display: block;
  min-width: 0;
}

.screenshot-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(8, 8, 8, 0.72);
}

.image-modal-card {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(980px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}

.image-modal-card img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: var(--surface-soft);
}

.modal-close {
  position: sticky;
  top: 0;
  justify-self: end;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  background: var(--surface);
  font-size: 22px;
  line-height: 1;
}

.modal-caption {
  display: grid;
  gap: 6px;
}

.modal-caption span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .global-header {
    grid-template-columns: 240px minmax(240px, 1fr) auto;
  }

  .platform-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .main-nav {
    justify-content: flex-end;
  }

  .home-hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .flow-workspace,
  .flow-player-grid {
    grid-template-columns: 1fr;
  }

  .flow-sidebar {
    position: static;
  }

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

  .study-aside {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lane-grid,
  .topic-grid,
  .latest-grid,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .global-header {
    position: static;
    grid-template-columns: 1fr;
    width: 100vw;
    max-width: 100vw;
    padding: 16px;
  }

  .main-nav,
  .platform-nav {
    justify-content: flex-start;
  }

  .app-main {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 18px 16px 72px;
  }

  .home-hero,
  .library-hero,
  .detail-hero,
  .detail-layout,
  .section-block,
  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .home-hero {
    min-height: 0;
    padding-top: 24px;
  }

  .home-hero h1,
  .detail-title h1,
  .flow-hero-grid h1,
  .library-hero h1 {
    font-size: 36px;
    line-height: 1.08;
    word-break: break-all;
  }

  .home-hero h1 span {
    display: block;
  }

  .hero-lede,
  .library-hero p,
  .flow-hero-grid p,
  .detail-title p {
    font-size: 15px;
    max-width: 22em;
    word-break: break-all;
  }

  .detail-title h1,
  .flow-hero-grid h1,
  .library-hero h1 {
    max-width: 10em;
  }

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

  .preview-tile,
  .preview-tile:nth-child(1),
  .preview-tile:nth-child(4) {
    grid-row: auto;
    min-height: 190px;
  }

  .stat-row,
  .lane-grid,
  .topic-grid,
  .latest-grid,
  .case-grid,
  .commerce-tabs,
  .flow-hero-grid,
  .position-list,
  .compare-media,
  .step-grid,
  .study-aside {
    grid-template-columns: 1fr;
  }

  .flow-workspace {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .flow-player-grid {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    width: min(100%, 360px);
    margin: 0 auto;
  }

  .selected-position {
    align-items: flex-start;
    flex-direction: column;
  }

  .selected-position h2 {
    font-size: 26px;
  }

  .chapter-list {
    max-height: none;
    overflow: visible;
  }

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

  .stat-row div {
    min-height: 92px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-row div:last-child {
    border-bottom: 0;
  }

  .library-hero,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .library-count {
    width: 100%;
    height: auto;
    place-items: start;
    padding: 18px;
  }

  .filter-strip {
    grid-template-columns: 1fr;
  }

  .filter-strip > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-strip .chip {
    width: 100%;
    text-align: center;
  }

  .detail-title {
    grid-template-columns: 1fr;
  }

  .brand-avatar {
    width: 64px;
    height: 64px;
    font-size: 30px;
  }

  .step-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .step-card strong {
    grid-column: 2;
  }

  .step-card p {
    grid-column: 1 / -1;
  }
}
