:root {
  --page-bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --surface-warm: #fff8ed;
  --text: #15213a;
  --muted: #637089;
  --line: #dce4ef;
  --accent: #2563eb;
  --accent-dark: #1747b0;
  --accent-soft: #dce9ff;
  --success: #16834b;
  --success-soft: #e6f7ee;
  --warning: #9a5b08;
  --shadow-sm: 0 8px 24px rgba(25, 42, 75, 0.08);
  --shadow-lg: 0 28px 70px rgba(25, 42, 75, 0.15);
  color-scheme: light;
}

html[data-theme="dark"] {
  --page-bg: #0b1220;
  --surface: #111b2e;
  --surface-soft: #152745;
  --surface-warm: #2a2116;
  --text: #edf3fc;
  --muted: #a9b6ca;
  --line: #2b3a51;
  --accent: #65a4ff;
  --accent-dark: #9cc5ff;
  --accent-soft: #173566;
  --success: #55d58b;
  --success-soft: #133927;
  --warning: #f3bf64;
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 30px 76px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.14), transparent 30rem),
    radial-gradient(circle at 94% 12%, rgba(14, 165, 233, 0.09), transparent 26rem),
    var(--page-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: #172033;
  transform: translateY(-160%);
}

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

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 50;
  padding: 18px 0;
}

.top-nav {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 10px 9px 14px;
  border: 1px solid rgba(220, 228, 239, 0.84);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

html[data-theme="dark"] .top-nav {
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand-logo-frame {
  position: relative;
  display: block;
  width: 160px;
  height: 44px;
  flex: 0 0 160px;
  overflow: hidden;
}

.brand-logo {
  position: absolute;
  top: -58px;
  left: 0;
  display: block;
  width: 160px;
  height: 160px;
  max-width: none;
}

html[data-theme="dark"] .brand-logo {
  filter: brightness(1.35) saturate(1.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.theme-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover,
.theme-toggle:hover {
  color: var(--accent-dark);
  background: var(--surface-soft);
}

.nav-cta {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.nav-cta:hover {
  color: #fff;
  background: #1d4ed8;
}

html[data-theme="dark"] .nav-cta,
html[data-theme="dark"] .nav-cta:hover {
  color: #07101f;
  background: #8bbaff;
}

.theme-toggle {
  width: 42px;
  padding: 0;
  border: 1px solid var(--line);
  font-size: 19px;
}

.theme-toggle .theme-moon,
html[data-theme="dark"] .theme-toggle .theme-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .theme-moon {
  display: inline;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, 0.92fr);
  align-items: center;
  gap: clamp(42px, 7vw, 84px);
  padding: clamp(64px, 9vw, 112px) 0 80px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px var(--success-soft);
  content: "";
}

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

h1 {
  max-width: 760px;
  margin: 20px 0 22px;
  font-size: clamp(42px, 6.2vw, 74px);
  line-height: 0.99;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.58;
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1775db);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.button-primary:hover {
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.3);
}

.button-secondary {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin: 25px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.hero-proof li::before {
  margin-right: 7px;
  color: var(--success);
  content: "✓";
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.visual-glow {
  position: absolute;
  inset: 8% 2% 5% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25), transparent 67%);
  filter: blur(20px);
}

.document-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: rotate(1.5deg);
}

.document-paper {
  position: relative;
  width: min(390px, 85%);
  min-height: 510px;
  padding: 42px 38px 34px;
  border: 1px solid #d9dfeb;
  border-radius: 6px;
  color: #1e293b;
  background: #fff;
  box-shadow: 0 35px 80px rgba(28, 45, 78, 0.24);
}

.document-paper::after {
  position: absolute;
  inset: 13px;
  border: 1px solid #edf1f7;
  border-radius: 3px;
  pointer-events: none;
  content: "";
}

.paper-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 22px;
  border-bottom: 2px solid #2563eb;
  color: #2563eb;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.paper-brand span:last-child {
  color: #718096;
  font-weight: 700;
}

.document-paper h2 {
  margin: 32px 0 22px;
  color: #172033;
  font-size: 27px;
  letter-spacing: -0.035em;
}

.paper-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  margin: 13px 0;
  color: #475569;
  font-size: 11px;
}

.paper-row strong {
  color: #1e293b;
}

.paper-table {
  margin-top: 24px;
  border: 1px solid #dfe6f0;
  border-radius: 5px;
  overflow: hidden;
}

.paper-table div {
  display: grid;
  grid-template-columns: 1fr 52px 76px;
}

.paper-table span {
  min-height: 34px;
  padding: 8px;
  border-right: 1px solid #dfe6f0;
  border-bottom: 1px solid #dfe6f0;
  color: #64748b;
  font-size: 9px;
}

.paper-table span:last-child {
  border-right: 0;
}

.paper-table div:last-child span {
  border-bottom: 0;
}

.paper-table .paper-table-head span {
  color: #334155;
  background: #eff5ff;
  font-weight: 800;
}

.paper-total {
  margin-top: 23px;
  text-align: right;
  font-size: 12px;
  font-weight: 850;
}

.visual-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 800;
}

.visual-chip::before {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.chip-edit {
  top: 13%;
  left: -1%;
}

.chip-edit::before {
  content: "✎";
}

.chip-pdf {
  right: -2%;
  bottom: 14%;
}

.chip-pdf::before {
  color: #b42318;
  background: #fee4e2;
  content: "PDF";
  font-size: 8px;
}

html[data-theme="dark"] .chip-pdf::before {
  color: #ffb4ab;
  background: #4a1f20;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  margin-bottom: 104px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.metric {
  padding: 23px 25px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  font-size: 22px;
  letter-spacing: -0.035em;
}

.metric span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 92px 0;
}

.section-soft {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 62%, transparent);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.workflow-copy h2,
.plan-intro h2,
.final-cta h2 {
  margin: 10px 0 14px;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.07;
  letter-spacing: -0.045em;
}

.section-heading p,
.workflow-copy > p,
.plan-intro > p,
.final-cta > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.catalog-toolbar {
  position: sticky;
  z-index: 20;
  top: 10px;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  margin-bottom: 26px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 93%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field::before {
  position: absolute;
  left: 14px;
  color: var(--muted);
  content: "⌕";
  font-size: 22px;
  line-height: 1;
}

.search-field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.search-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px 10px 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
}

.search-field input::placeholder {
  color: var(--muted);
}

.filter-list {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding: 1px 2px 3px;
  scrollbar-width: thin;
}

.filter-button {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.filter-button:hover {
  color: var(--accent-dark);
  background: var(--surface-soft);
}

.filter-button[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 19px;
  color: var(--muted);
  font-size: 13px;
}

.premium-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 750;
}

.premium-note::before {
  color: var(--warning);
  content: "◆";
  font-size: 9px;
}

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

.template-card {
  position: relative;
  display: flex;
  min-height: 322px;
  flex-direction: column;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 7px 20px rgba(25, 42, 75, 0.055);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.template-card:hover {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.template-card[hidden] {
  display: none;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.template-icon {
  display: grid;
  width: 48px;
  height: 55px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--card-color, var(--accent)) 28%, var(--line));
  border-radius: 9px 9px 12px 9px;
  color: var(--card-color, var(--accent-dark));
  background: color-mix(in srgb, var(--card-color, var(--accent)) 10%, var(--surface));
  box-shadow: 4px 5px 0 color-mix(in srgb, var(--card-color, var(--accent)) 10%, var(--surface));
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.template-icon::after {
  position: absolute;
  width: 20px;
  height: 2px;
  margin-top: 19px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
  opacity: 0.25;
  content: "";
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.badge-premium {
  color: var(--warning);
  background: var(--surface-warm);
}

.badge-coffee {
  color: #85440f;
  background: #fff0dc;
}

html[data-theme="dark"] .badge-coffee {
  color: #ffc68f;
  background: #3b281a;
}

.template-card h3 {
  margin: 23px 0 8px;
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.template-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.template-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 22px;
  padding: 0;
  list-style: none;
}

.template-fields li {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.card-link {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 9px 12px;
  border-radius: 11px;
  color: var(--accent-dark);
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.card-link:hover {
  background: var(--accent-soft);
}

.empty-state {
  margin-top: 20px;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: var(--surface);
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-state strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 18px;
}

.reset-filter {
  margin-top: 13px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--accent-dark);
  background: var(--surface-soft);
  font-weight: 800;
  cursor: pointer;
}

.workflow {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: start;
  gap: clamp(38px, 7vw, 88px);
}

.workflow-copy {
  position: sticky;
  top: 34px;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.step-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 17px;
  font-weight: 900;
}

.step h3 {
  margin: 1px 0 5px;
  font-size: 18px;
}

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

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.capability {
  padding: 24px 21px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}

.capability-mark {
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-weight: 900;
}

.capability h3 {
  margin: 0 0 7px;
  font-size: 17px;
}

.capability p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.plans {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(34px, 7vw, 84px);
}

.plan-note {
  margin-top: 22px;
  padding: 15px 17px;
  border-left: 4px solid var(--warning);
  border-radius: 4px 12px 12px 4px;
  color: var(--muted);
  background: var(--surface-warm);
  font-size: 13px;
}

.plan-cards {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}

.plan-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.plan-card-premium {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--accent-soft) 66%, transparent), transparent 62%),
    var(--surface);
}

.plan-card h3 {
  margin: 7px 0 15px;
  font-size: 25px;
}

.plan-label {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.plan-card li::before {
  margin-right: 8px;
  color: var(--success);
  content: "✓";
  font-weight: 900;
}

.privacy-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--success) 30%, var(--line));
  border-radius: 18px;
  background: var(--success-soft);
}

.privacy-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: var(--success);
  background: var(--surface);
  font-size: 21px;
}

.privacy-strip strong,
.privacy-strip span {
  display: block;
}

.privacy-strip span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.privacy-strip a {
  color: var(--success);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}

.faq-list details {
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.faq-list summary {
  padding: 18px 28px 18px 0;
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.final-cta {
  position: relative;
  overflow: hidden;
  margin: 70px auto 90px;
  padding: clamp(38px, 7vw, 72px);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(125, 211, 252, 0.38), transparent 22rem),
    linear-gradient(135deg, #173ea5, #0d78bd);
  box-shadow: var(--shadow-lg);
}

.final-cta::after {
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 310px;
  height: 310px;
  border: 50px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.final-cta > * {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.final-cta h2 {
  color: #fff;
}

.final-cta > p {
  color: rgba(255, 255, 255, 0.8);
}

.final-cta .button-primary {
  color: #1747b0;
  background: #fff;
  box-shadow: 0 14px 32px rgba(7, 31, 77, 0.25);
}

.final-cta .button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

.site-footer {
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.footer-links a:hover {
  color: var(--accent-dark);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero-visual {
    width: min(610px, 100%);
    margin-inline: auto;
  }

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

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

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

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .top-nav {
    align-items: flex-start;
  }

  .nav-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .nav-link:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 60px);
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 72px;
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .catalog-toolbar {
    position: static;
    grid-template-columns: 1fr;
  }

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

  .workflow-copy {
    position: static;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

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

  .privacy-strip a {
    grid-column: 2;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-top: 10px;
  }

  .top-nav {
    min-height: 56px;
    padding: 7px 8px 7px 10px;
    border-radius: 16px;
  }

  .brand-logo-frame {
    width: 132px;
    height: 40px;
    flex-basis: 132px;
  }

  .brand-logo {
    top: -46px;
    width: 132px;
    height: 132px;
  }

  .nav-cta {
    min-height: 40px;
    padding-inline: 11px;
    font-size: 13px;
  }

  .hero {
    gap: 26px;
    padding-bottom: 58px;
  }

  .hero-actions,
  .final-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 440px;
  }

  .document-paper {
    min-height: 430px;
    padding: 33px 27px 26px;
  }

  .document-paper h2 {
    margin: 22px 0 17px;
    font-size: 22px;
  }

  .visual-chip {
    padding: 8px 10px;
    font-size: 11px;
  }

  .chip-edit {
    top: 4%;
    left: 0;
  }

  .chip-pdf {
    right: 0;
    bottom: 7%;
  }

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

  .metric,
  .metric:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 68px 0;
  }

  .catalog-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .template-grid,
  .capability-grid,
  .plan-cards {
    grid-template-columns: 1fr;
  }

  .template-card {
    min-height: 0;
  }

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

  .privacy-strip a {
    grid-column: auto;
  }

  .final-cta {
    width: min(100% - 20px, 1180px);
    margin-bottom: 56px;
    border-radius: 22px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
