:root {
  color-scheme: light;
  --bg: #f8fbfb;
  --bg-soft: #eef8f7;
  --surface: rgba(255, 255, 255, .88);
  --surface-solid: #ffffff;
  --ink: #102026;
  --ink-strong: #07171d;
  --muted: #617078;
  --muted-strong: #354a52;
  --line: #dfe9ea;
  --line-strong: #c9dada;
  --teal: #008f93;
  --teal-2: #00a9a5;
  --teal-soft: #e4f7f5;
  --coral: #dd7f6f;
  --gold: #bd8b3b;
  --blue: #4da3ff;
  --green: #16a34a;
  --red: #dc2626;
  --shadow: 0 24px 70px rgba(22, 68, 72, .13);
  --shadow-card: 0 14px 40px rgba(22, 68, 72, .09);
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.72 "Inter", "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: rgba(0, 143, 147, .18);
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.desktop-only {
  display: inline-flex;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 999;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid rgba(0, 143, 147, .25);
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(223, 233, 234, .75);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(20, 68, 72, .04);
}

.brand {
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-strong);
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #008f93, #12bbb5);
  box-shadow: 0 10px 24px rgba(0, 143, 147, .22);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.brand-copy {
  display: grid;
  gap: 0;
  min-width: 0;
}

.brand-copy strong {
  color: var(--ink-strong);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.brand-copy small {
  color: #63777d;
  font-size: 11px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 999px;
  color: #40535a;
  font-size: 15px;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--teal);
  background: var(--teal-soft);
  outline: none;
}

.top-actions,
.user-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plain-link {
  min-height: 40px;
  align-items: center;
  color: #4e6066;
  font-size: 14px;
  text-decoration: none;
}

.plain-link:hover {
  color: var(--teal);
}

.user-bar {
  color: var(--muted-strong);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0 18px;
  color: #fff;
  font: 800 14px/1 "Inter", "Segoe UI", "Microsoft YaHei", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
  touch-action: manipulation;
}

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

.button:active {
  transform: translateY(0) scale(.99);
}

.compact-button {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 8px;
}

.button.primary {
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(0, 143, 147, .22);
}

.button.primary:hover {
  background: #007e82;
  box-shadow: 0 16px 36px rgba(0, 143, 147, .28);
}

.button.secondary {
  border-color: rgba(0, 143, 147, .2);
  background: #e9f8f6;
  color: #007f82;
}

.button.secondary:hover {
  border-color: rgba(0, 143, 147, .34);
  background: #d9f2ef;
}

.button.ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--muted-strong);
}

.button.ghost:hover {
  border-color: rgba(0, 143, 147, .28);
  color: var(--teal);
}

.gradient-action {
  width: 100%;
  min-height: 56px;
  border-radius: 9px;
  background: linear-gradient(90deg, #009a95 0%, #2a8f83 52%, #dc7e70 100%);
  box-shadow: 0 14px 30px rgba(0, 143, 147, .2);
}

.gradient-action:hover {
  box-shadow: 0 18px 40px rgba(0, 143, 147, .26);
}

.button:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(0, 143, 147, .22);
  outline-offset: 3px;
}

.hero {
  position: relative;
  min-height: 735px;
  overflow: hidden;
  display: grid;
  align-items: start;
  padding: 92px 0 56px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(0, 169, 165, .2), transparent 22rem),
    radial-gradient(circle at 88% 45%, rgba(221, 127, 111, .12), transparent 24rem),
    radial-gradient(circle at 8% 70%, rgba(0, 143, 147, .10), transparent 22rem),
    linear-gradient(180deg, #ffffff 0%, #edfafa 52%, #fbfefe 100%);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 143, 147, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 143, 147, .055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, .62) 64%, transparent 100%);
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: .55;
}

.glow-teal {
  width: 460px;
  height: 460px;
  left: 50%;
  top: 86px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 169, 165, .26), transparent 68%);
}

.glow-coral {
  width: 330px;
  height: 330px;
  right: -90px;
  top: 170px;
  background: radial-gradient(circle, rgba(221, 127, 111, .18), transparent 68%);
}

.glow-blue {
  width: 300px;
  height: 300px;
  left: -70px;
  bottom: 80px;
  background: radial-gradient(circle, rgba(77, 163, 255, .13), transparent 70%);
}

.hero-inner {
  text-align: center;
}

.hero-kicker,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 15px;
  border: 1px solid rgba(0, 143, 147, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #27555a;
  box-shadow: 0 10px 26px rgba(22, 68, 72, .06);
  font-size: 14px;
  font-weight: 780;
}

.live-dot,
.pill span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(0, 143, 147, .1);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 880;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink-strong);
  letter-spacing: -.045em;
}

h1 {
  margin-top: 34px;
  font-size: clamp(44px, 5.6vw, 74px);
  line-height: 1.06;
  font-weight: 920;
}

h1 span {
  color: var(--teal);
  background: linear-gradient(90deg, #e37e70 0%, #ae8d62 22%, #008f93 62%, #008f93 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(32px, 3.7vw, 52px);
  line-height: 1.12;
  font-weight: 900;
}

h3 {
  font-size: 21px;
  line-height: 1.32;
  font-weight: 850;
}

.hero-lead {
  max-width: 760px;
  margin: 20px auto 0;
  color: #435a62;
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.82;
}

.auth-panel,
.panel,
.access-card,
.scenario-grid article,
.tutorial-card,
.help-card,
.api-preview,
.plan {
  border: 1px solid rgba(213, 227, 228, .95);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.hero-auth {
  position: relative;
  width: min(100%, 450px);
  margin: 34px auto 0;
  padding: 24px 24px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 28px 80px rgba(40, 75, 76, .18);
}

.auth-badge {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 18px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  color: #fff;
  box-shadow: 0 10px 22px rgba(124, 58, 237, .25);
  font-size: 14px;
  font-weight: 850;
}

.tab-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f6fbfb;
}

.tab {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #5c6b70;
  font: 850 14px/1 inherit;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.tab.active {
  color: #fff;
  background: linear-gradient(135deg, #009a95, #247d78);
  box-shadow: 0 8px 18px rgba(0, 143, 147, .17);
}

.form-stack {
  display: grid;
  gap: 11px;
  text-align: left;
}

.form-stack label,
.dialog-body label {
  display: grid;
  gap: 6px;
  color: #33484f;
  font-weight: 780;
}

.form-stack input,
textarea {
  width: 100%;
  min-height: 56px;
  border: 1px solid #dbe7e8;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink-strong);
  font: 15px inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form-stack input::placeholder,
textarea::placeholder {
  color: #98a6aa;
}

.form-stack input:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 143, 147, .09);
  outline: none;
}

textarea {
  min-height: 118px;
  padding: 12px 14px;
  resize: vertical;
}

.auth-note {
  margin: 12px 0 0;
  color: #6c7b80;
  font-size: 12px;
}

.message {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--red);
  text-align: left;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 20px;
  color: #5a6d73;
  font-size: 14px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-metrics span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--teal);
}

.hero-metrics strong {
  color: #26565a;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.intro-section {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(253, 214, 157, .26), transparent 18rem),
    linear-gradient(180deg, rgba(255,255,255,.86), #f8fbfb 78%);
}

.intro-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .38;
  background:
    radial-gradient(circle at 22% 35%, rgba(0, 143, 147, .13), transparent 12rem),
    radial-gradient(circle at 78% 28%, rgba(77, 163, 255, .1), transparent 12rem);
}

.intro-section > .container {
  position: relative;
}

.section {
  padding: 92px 0;
}

.portal-section {
  padding: 24px 0;
}

.section-title {
  max-width: 810px;
  margin-bottom: 34px;
}

.section-title.center {
  margin-inline: auto;
  text-align: center;
}

.section-title.compact {
  max-width: 720px;
}

.section-title p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

.access-card {
  min-height: 260px;
  padding: 28px;
  background: rgba(255,255,255,.9);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.access-card:hover,
.scenario-grid article:hover,
.plan:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 143, 147, .28);
  box-shadow: 0 20px 50px rgba(22, 68, 72, .13);
}

.icon-box {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #e5f8f6, #fff);
  border: 1px solid #d7eeec;
}

.icon-box svg {
  width: 26px;
  height: 26px;
  fill: var(--teal);
}

.access-card h3 {
  margin-top: 24px;
}

.access-card p,
.scenario-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

.capability-layout {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(360px, .82fr);
  gap: 22px;
  align-items: stretch;
}

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

.capability-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.capability-grid span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.capability-grid h3 {
  margin-top: 22px;
}

.capability-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.api-preview {
  overflow: hidden;
  background: #ffffff;
}

.preview-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  color: #476168;
}

.preview-head a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(0, 143, 147, .22);
  border-radius: 999px;
  color: var(--teal);
  text-decoration: none;
  font-weight: 800;
}

.api-preview pre {
  margin: 0;
  padding: 24px;
  overflow: auto;
  background: linear-gradient(180deg, #fbfefe, #f5fbfa);
}

.api-preview code {
  color: #1f3b42;
  font: 14px/1.8 "Cascadia Code", "Fira Code", Consolas, monospace;
}

.soft-section {
  padding: 92px 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 169, 165, .12), transparent 22rem),
    linear-gradient(180deg, #f5fbfa, #ffffff);
}

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

.scenario-grid article {
  min-height: 210px;
  padding: 25px;
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.scenario-grid h3 {
  color: #17363b;
}

.workbuddy-section {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(330px, .72fr);
  gap: 18px;
  align-items: stretch;
}

.tutorial-card,
.help-card {
  padding: 34px;
  background: #fff;
}

.tutorial-card p,
.help-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 15px;
  margin: 30px 0 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  list-style: none;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 900;
}

.steps strong {
  display: block;
  color: var(--ink-strong);
}

.steps span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.help-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 169, 165, .12), transparent 14rem),
    #fff;
}

.help-card .button {
  width: max-content;
  margin-top: 24px;
}

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

.plan {
  position: relative;
  overflow: hidden;
  min-height: 268px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.plan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), #68d4cd);
}

.plan.free::before {
  background: linear-gradient(90deg, #16a34a, #68d4cd);
}

.plan h3 {
  margin-top: 8px;
}

.plan p {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.plan dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 12px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.plan dt,
.plan dd {
  margin: 0;
}

.plan dd {
  color: var(--ink-strong);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.plan .button {
  width: 100%;
  margin-top: auto;
}

.portal-home {
  padding-top: 46px;
  padding-bottom: 74px;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 84% 10%, rgba(0, 169, 165, .12), transparent 22rem),
    #fff;
  box-shadow: var(--shadow-card);
}

.page-heading h1 {
  margin-top: 0;
  font-size: clamp(34px, 4vw, 52px);
}

.page-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}

.section-heading h2 {
  font-size: 24px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.panel {
  padding: 22px;
  background: #fff;
}

.search-panel {
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 169, 165, .09), transparent 18rem),
    #fff;
}

.grid-two {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
}

.empty {
  color: var(--muted);
  padding: 16px 0;
}

.credential {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.credential code,
.tutorial-mini code {
  display: block;
  overflow-wrap: anywhere;
  padding: 13px;
  border: 1px solid rgba(0, 143, 147, .2);
  border-radius: 12px;
  background: #effbf9;
  color: #087b79;
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.metric {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fcfc;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric b {
  color: var(--ink-strong);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

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

.request-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fcfc;
}

.request-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.badge.pending {
  background: rgba(189, 139, 59, .14);
  color: #8a5c18;
}

.badge.approved {
  background: rgba(22, 163, 74, .13);
  color: #15713a;
}

.badge.rejected {
  background: rgba(220, 38, 38, .1);
  color: #b91c1c;
}

.notice {
  margin: 18px 0;
  padding: 13px 15px;
  border: 1px solid rgba(22, 163, 74, .22);
  border-radius: 14px;
  background: rgba(22, 163, 74, .08);
  color: #146c38;
}

.notice.error {
  border-color: rgba(220, 38, 38, .22);
  background: rgba(220, 38, 38, .07);
  color: #b91c1c;
}

.tutorial-mini ol {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--muted);
}

dialog {
  width: min(520px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 34px 110px rgba(20, 68, 72, .24);
}

dialog::backdrop {
  background: rgba(13, 31, 36, .36);
  backdrop-filter: blur(8px);
}

.dialog-body {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.dialog-head h2 {
  font-size: 24px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 27px;
  cursor: pointer;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .access-grid,
  .capability-layout,
  .workbuddy-section,
  .grid-two {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .topbar {
    min-height: 64px;
    padding: 0 16px;
  }

  .brand-copy small,
  .desktop-only {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 48px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-auth {
    padding: 20px;
  }

  .hero-metrics {
    display: grid;
    justify-content: stretch;
    text-align: left;
    padding: 0 12px;
  }

  .capability-grid,
  .scenario-grid,
  .plan-grid,
  .metric-list {
    grid-template-columns: 1fr;
  }

  .section,
  .soft-section,
  .intro-section {
    padding: 62px 0;
  }

  .portal-section {
    padding: 20px 0;
  }

  .page-heading,
  .section-heading,
  .request-meta {
    display: block;
  }

  .page-heading .button,
  .dialog-actions .button,
  .help-card .button {
    width: 100%;
  }

  .page-heading .button {
    margin-top: 18px;
  }

  .dialog-actions {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
