/* TabletopOne shared design system */

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

:root {
  --bg: #090b08;
  --bg-elevated: #10130f;
  --bg-panel: rgba(16, 19, 15, 0.9);
  --bg-card: #141816;
  --bg-soft: #1a201c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f5f2;
  --text-muted: #b1b8ac;
  --text-soft: #8a9386;
  --accent: rgb(109, 139, 90);
  --accent-soft: rgba(109, 139, 90, 0.16);
  --accent-strong: #88aa73;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1180px;
}

html {
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(109, 139, 90, 0.12), transparent 32%),
    linear-gradient(180deg, #0d100c 0%, #090b08 42%, #070806 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.28;
  z-index: 1000;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(136, 170, 115, 0.9);
  outline-offset: 3px;
}

main {
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1200;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f4f5f2;
  color: #090b08;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 24px), var(--max));
  margin: 16px auto 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(9, 11, 8, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img {
  height: 28px;
  width: auto;
}

.nav-links,
.footer-links,
.inline-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a,
.footer-links a,
.inline-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.footer-links a:hover,
.inline-links a:hover,
.inline-link:hover {
  color: var(--text);
}

.nav-links {
  font-size: 14px;
}

.footer-links {
  font-size: 14px;
}

.footer-links li {
  display: flex;
  align-items: center;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #f7f8f5;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover,
button.button:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
  box-shadow: 0 14px 28px rgba(109, 139, 90, 0.18);
}

.site-nav > .button {
  min-height: auto;
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #f7f8f5 !important;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}

.site-nav > .button:hover {
  transform: none;
  background: var(--accent-strong);
  opacity: 1;
  box-shadow: none;
}

.button.nav-like {
  min-height: auto;
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #f7f8f5 !important;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}

.button.nav-like:hover {
  transform: none;
  background: var(--accent-strong);
  opacity: 1;
  box-shadow: none;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-hamburger span,
.nav-hamburger::before,
.nav-hamburger::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-hamburger span {
  transform: translateY(0);
}

.nav-hamburger::before {
  transform: translateY(-5px);
}

.nav-hamburger::after {
  transform: translateY(5px);
}

.mobile-panel {
  position: fixed;
  top: 88px;
  left: 12px;
  right: 12px;
  z-index: 99;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(9, 11, 8, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.mobile-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 4px;
  text-decoration: none;
  color: var(--text-muted);
}

.site-nav.menu-open .nav-hamburger span {
  opacity: 0;
}

.site-nav.menu-open .nav-hamburger::before {
  transform: rotate(45deg);
}

.site-nav.menu-open .nav-hamburger::after {
  transform: rotate(-45deg);
}

.page {
  width: min(calc(100% - 24px), var(--max));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-header {
  display: grid;
  gap: 16px;
  margin-bottom: 42px;
}

.eyebrow,
.meta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-strong);
}

.eyebrow::before,
.meta-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(109, 139, 90, 0.1);
}

.display,
.page-title,
.section-title {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.display {
  font-size: clamp(3.5rem, 7vw, 6.25rem);
}

.page-title {
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.75rem);
}

.display em,
.page-title em,
.section-title em {
  font-style: italic;
  color: var(--accent-strong);
}

.lede,
.section-copy,
.muted-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.8;
}

.hero {
  padding: 90px 0 48px;
}

.hero-home {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 36px;
  align-items: end;
}

.hero-copy {
  display: grid;
  gap: 28px;
}

.hero-home .hero-copy {
  max-width: 860px;
  justify-items: center;
}

.hero-home .eyebrow,
.hero-home .hero-actions {
  justify-content: center;
}

.hero-home .lede {
  max-width: 620px;
}

.hero-home .hero-metrics {
  width: min(100%, 920px);
}

.hero-actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.metric-card,
.mini-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.metric-card strong,
.mini-card strong {
  display: block;
  margin-bottom: 4px;
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  color: var(--text);
}

.metric-card span,
.mini-card span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.hero-preview,
.panel,
.legal-card,
.article-shell,
.form-panel,
.info-panel,
.cta-band,
.quote-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    var(--bg-panel);
  box-shadow: var(--shadow);
}

.hero-preview::after,
.panel::after,
.legal-card::after,
.article-shell::after,
.form-panel::after,
.info-panel::after,
.cta-band::after,
.quote-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(109, 139, 90, 0.12), transparent 45%);
  pointer-events: none;
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.window-dots {
  display: inline-flex;
  gap: 8px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) {
  background: #ff5f57;
}

.window-dots span:nth-child(2) {
  background: #ffbd2e;
}

.window-dots span:nth-child(3) {
  background: #28c840;
}

.mono-label,
.status-pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.status-pill strong {
  color: var(--accent-strong);
  font-weight: 500;
}

.preview-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  padding: 24px;
}

.scenario-card,
.dashboard-card,
.signal-card,
.feature-card,
.role-card,
.step-card,
.blog-card,
.summary-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.scenario-card,
.dashboard-card {
  padding: 22px;
}

.scenario-card h3,
.dashboard-card h3,
.feature-card h3,
.role-card h3,
.step-card h3,
.blog-card h3,
.summary-card h3,
.legal-card h3,
.info-panel h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.scenario-card p,
.dashboard-card p,
.feature-card p,
.role-card p,
.step-card p,
.blog-card p,
.summary-card p,
.legal-card p,
.info-panel p,
.article-body p,
.article-body li {
  margin: 0;
  color: var(--text-muted);
}

.article-body,
.legal-sections,
.inline-link {
  overflow-wrap: anywhere;
}

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

.inject-list,
.signal-list,
.benefit-list,
.article-list,
.timeline-list,
.footer-note-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.inject-list li,
.signal-list li,
.benefit-list li,
.article-list li,
.timeline-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.inject-list strong,
.signal-list strong,
.timeline-list strong {
  min-width: 42px;
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.76rem;
  color: var(--accent-strong);
}

.progress-block {
  display: grid;
  gap: 8px;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 72%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.grid-3,
.grid-2,
.blog-grid,
.summary-grid,
.legal-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

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

.feature-card,
.role-card,
.blog-card,
.summary-card,
.legal-grid > article {
  padding: 28px;
  background: var(--bg-card);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.feature-card:hover,
.role-card:hover,
.blog-card:hover,
.summary-card:hover {
  transform: translateY(-2px);
  background: #171c18;
}

.feature-icon,
.role-icon,
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1px solid rgba(109, 139, 90, 0.26);
  background: rgba(109, 139, 90, 0.12);
  color: var(--accent-strong);
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88rem;
}

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

.step-card {
  padding: 28px;
}

.role-board {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 1px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--line);
}

.role-intro,
.role-list {
  background: var(--bg-card);
}

.role-intro {
  padding: 26px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.role-intro .section-copy {
  max-width: 360px;
}

.role-list {
  display: grid;
}

.role-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.role-row:first-child {
  border-top: 0;
}

.role-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.role-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(109, 139, 90, 0.26);
  background: rgba(109, 139, 90, 0.12);
  color: var(--accent-strong);
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
}

.role-name {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.quote-panel {
  padding: 28px;
}

.quote-panel blockquote {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.quote-panel p {
  margin-top: 18px;
  color: var(--text-soft);
}

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

.blog-archive-hero {
  padding-bottom: 0;
}

.blog-archive-section {
  padding-top: 24px;
}

.blog-archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.blog-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.blog-tag:hover {
  color: var(--text);
  border-color: rgba(109, 139, 90, 0.34);
  background: rgba(109, 139, 90, 0.08);
  transform: translateY(-1px);
}

.blog-card {
  display: grid;
  gap: 14px;
  text-decoration: none;
}

.blog-card-archive {
  gap: 18px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.blog-card-archive:hover {
  transform: translateY(-2px);
  background: transparent;
}

.blog-card-archive h2 {
  margin: 0;
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--text);
}

.blog-card-byline {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.blog-card-media {
  aspect-ratio: 1.55 / 1;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-placeholder {
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.blog-card-placeholder span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 12, 9, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.category-leadership {
  background:
    radial-gradient(circle at 18% 18%, rgba(109, 139, 90, 0.3), transparent 28%),
    linear-gradient(135deg, #24352b 0%, #171d1a 44%, #0f1310 100%);
}

.category-continuity {
  background:
    linear-gradient(135deg, rgba(126, 175, 193, 0.9), rgba(86, 112, 181, 0.65) 44%, rgba(240, 120, 88, 0.74) 100%);
}

.category-operations {
  background:
    linear-gradient(135deg, rgba(238, 151, 112, 0.86), rgba(109, 80, 158, 0.62) 48%, rgba(74, 214, 193, 0.6) 100%);
}

.category-ai {
  background:
    linear-gradient(135deg, rgba(91, 160, 216, 0.9), rgba(183, 92, 145, 0.78) 52%, rgba(240, 113, 95, 0.72) 100%);
}

.category-product {
  background:
    linear-gradient(135deg, rgba(255, 216, 154, 0.92), rgba(248, 187, 101, 0.72) 36%, rgba(177, 209, 150, 0.68) 62%, rgba(130, 181, 210, 0.62) 100%);
}

.category-practice {
  background:
    linear-gradient(135deg, rgba(245, 202, 129, 0.92), rgba(176, 213, 233, 0.72) 44%, rgba(252, 228, 176, 0.8) 100%);
}

.blog-card .meta-line,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-band {
  padding: 36px;
  display: grid;
  gap: 18px;
  margin-top: 12px;
  justify-items: center;
  text-align: center;
}

.page-hero {
  padding: 84px 0 28px;
}

.faq-hero {
  padding: 52px 0 8px;
}

.faq-intro {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
  gap: 28px;
  align-items: end;
}

.page-hero .section-copy {
  max-width: 720px;
}

.page-side {
  display: grid;
  gap: 14px;
}

.summary-grid {
  margin-top: 32px;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-section {
  padding-top: 28px;
}

.faq-groups {
  display: grid;
  gap: 42px;
}

.faq-group {
  display: grid;
  gap: 18px;
}

.faq-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.faq-group-header .section-title {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 56px 22px 22px;
  position: relative;
  font-size: 1.05rem;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 20px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-strong);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .answer {
  padding: 0 22px 22px;
  color: var(--text-muted);
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: stretch;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: start;
}

.demo-copy {
  padding-top: 8px;
  gap: 28px;
}

.demo-copy .page-title {
  max-width: 8.4ch;
  font-size: clamp(3.8rem, 7vw, 5.8rem);
  line-height: 0.92;
}

.demo-copy .section-copy {
  max-width: 30rem;
  font-size: 1rem;
  line-height: 1.75;
}

.demo-feature-list {
  display: grid;
  gap: 26px;
  padding: 8px 0 0;
  margin: 0;
  list-style: none;
}

.demo-feature {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.demo-feature > div {
  display: grid;
  gap: 3px;
  padding-top: 2px;
}

.demo-feature strong,
.demo-feature span {
  display: block;
}

.demo-feature strong {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--text);
}

.demo-feature span {
  color: var(--text-soft);
  line-height: 1.55;
}

.demo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
  flex-shrink: 0;
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.demo-icon svg {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 21px;
  height: 21px;
  transform: translate(-50%, -50%);
}

.demo-icon svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.demo-icon-blue {
  color: #8eaefc;
  background: rgba(74, 96, 145, 0.22);
}

.demo-icon-cyan {
  color: #84cfd8;
  background: rgba(55, 89, 97, 0.24);
}

.demo-icon-green {
  color: #9ed4ae;
  background: rgba(54, 88, 61, 0.24);
}

.demo-icon-gold {
  color: #d7a565;
  background: rgba(104, 75, 32, 0.24);
}

.partner-layout {
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.12fr);
  gap: 32px;
}

.form-panel,
.info-panel {
  padding: 28px;
  min-height: 100%;
}

.partner-form-panel {
  width: 100%;
  max-width: 680px;
  justify-self: end;
  padding: 28px;
  display: grid;
  gap: 20px;
}

.demo-form-panel {
  padding: 28px;
}

.partner-form-panel .section-title {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
}

.partner-copy {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 12px 8px 0 0;
}

.partner-copy .benefit-list {
  gap: 10px;
}

.partner-copy .benefit-list li {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: grid;
  gap: 4px;
}

.partner-copy .benefit-list strong {
  font-size: 0.98rem;
  color: var(--text);
}

.partner-copy .benefit-list span {
  color: var(--text-soft);
  line-height: 1.7;
}

.form-panel form {
  display: grid;
  gap: 20px;
}

.form-panel form.is-submitting {
  opacity: 0.7;
}

.form-panel form.is-submitting button[type="submit"] {
  cursor: wait;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #788173;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(109, 139, 90, 0.58);
  box-shadow: 0 0 0 4px rgba(109, 139, 90, 0.12);
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #a7b19e 50%),
    linear-gradient(135deg, #a7b19e 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: var(--text-muted);
}

.field select option {
  color: #111;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.demo-submit {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: none;
}

.demo-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(109, 139, 90, 0.18);
}

.form-submit {
  align-self: start;
  min-height: auto;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}

.form-submit:hover {
  transform: none;
  box-shadow: none;
}

.fine-print,
.helper {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.form-response {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  align-content: start;
  align-self: start;
  padding: 24px;
  border: 1px solid rgba(136, 170, 115, 0.28);
  border-radius: 20px;
  background: rgba(109, 139, 90, 0.12);
}

.form-response .eyebrow,
.form-response .section-title,
.form-response .muted-copy {
  margin: 0;
}

.form-response .section-title {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.6;
}

.form-response.form-response-error {
  border-color: rgba(194, 98, 98, 0.22);
  background: rgba(194, 98, 98, 0.08);
}

.form-response.form-response-error .eyebrow::before {
  background: rgba(194, 98, 98, 0.86);
  box-shadow: 0 0 0 8px rgba(194, 98, 98, 0.08);
}

.form-response.form-response-success {
  border-color: rgba(136, 170, 115, 0.22);
  background: rgba(109, 139, 90, 0.1);
}

.form-response.form-response-success .eyebrow::before {
  background: rgba(136, 170, 115, 0.9);
  box-shadow: 0 0 0 8px rgba(109, 139, 90, 0.08);
}

.form-response:target {
  display: grid !important;
}

.form-panel:has(.form-response:target) form {
  display: none;
}

.form-panel:has(.form-response:target) [data-form-intro],
.form-panel:has(.form-response:not([hidden])) [data-form-intro] {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.article-wrap {
  padding: 56px 0 100px;
}

.article-page {
  display: grid;
  gap: 28px;
}

.article-shell {
  padding: 34px;
}

.article-cover {
  margin-top: 4px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: transparent;
}

.article-cover img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}

.article-cover-inline {
  float: right;
  width: 100%;
  max-width: min(260px, 38%);
  margin: 0 0 18px 40px;
  shape-outside: margin-box;
  shape-margin: 18px;
}

.article-body-shell {
  padding: 28px;
}

.article-header {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: none;
}

.article-body {
  width: 100%;
  max-width: none;
}

.article-header .page-title {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.article-header .section-copy {
  max-width: none;
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.72;
}

.article-body h2 {
  margin: 14px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.3rem, 1.9vw, 1.75rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.article-body h3 {
  margin: 12px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.12rem, 1.45vw, 1.38rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.article-body ul {
  margin: 0;
  padding-left: 22px;
  color: var(--text-muted);
}

.article-body p,
.article-body li {
  font-size: 1rem;
  line-height: 1.78;
}

.article-prose {
  display: block;
}

.article-prose > * {
  margin: 0;
}

.article-prose > * + * {
  margin-top: 14px;
}

.article-prose > ul,
.article-prose > ol {
  margin: 4px 0 10px;
}

.article-prose li + li {
  margin-top: 8px;
}

.article-prose::after {
  content: "";
  display: block;
  clear: both;
}

.article-side-note {
  width: 100%;
  max-width: none;
  padding-top: 6px;
  color: var(--text-muted);
}

.legal-note {
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(109, 139, 90, 0.22);
  border-radius: 18px;
  background: rgba(109, 139, 90, 0.08);
  color: var(--text-muted);
}

.legal-sections {
  display: grid;
  gap: 18px;
}

.legal-sections section {
  padding: 0;
}

.legal-sections h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.footer {
  padding: 48px 0;
}

.footer-inner {
  width: min(calc(100% - 24px), var(--max));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  color: var(--text);
}

.footer-brand img {
  height: 18px;
  width: auto;
}

.footer-sub {
  font-size: 13px;
  color: var(--text-soft);
}

.footer-sub a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-sub a:hover {
  color: var(--accent-strong);
}

.inline-link {
  color: var(--accent-strong);
  text-decoration: none;
}

.spaced {
  display: grid;
  gap: 20px;
}

.centered-copy {
  max-width: 760px;
}

.accent {
  color: var(--accent-strong);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  line-height: 1;
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 1024px) {
  .hero-grid,
  .page-hero-grid,
  .form-layout,
  .demo-layout,
  .blog-archive-grid,
  .role-board {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .steps,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .summary-grid,
  .blog-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .partner-form-panel {
    max-width: none;
    justify-self: stretch;
  }

  .demo-copy .page-title,
  .demo-copy .section-copy {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .site-nav {
    padding: 14px 16px;
  }

  .nav-links,
  .site-nav .button {
    display: none;
  }

  .nav-hamburger {
    display: inline-flex;
    position: relative;
  }

  .mobile-panel {
    max-height: calc(100svh - 104px);
    overflow: auto;
  }

  .section {
    padding: 72px 0;
  }

  .faq-hero {
    padding-top: 36px;
  }

  .hero {
    padding-top: 72px;
  }

  .preview-body,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 18px;
  }

  .faq-group-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .partner-copy {
    padding-right: 0;
    padding-top: 0;
  }

  .partner-form-panel {
    max-width: none;
    justify-self: stretch;
  }

  .article-cover-inline {
    float: none;
    width: 100%;
    margin: 0 0 22px;
  }

  .demo-copy {
    padding-top: 0;
  }

  .demo-copy .page-title,
  .demo-copy .section-copy {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(calc(100% - 18px), var(--max));
  }

  .site-nav {
    width: min(calc(100% - 18px), var(--max));
    margin-top: 10px;
  }

  .display {
    font-size: clamp(2.8rem, 14vw, 3.85rem);
  }

  .page-title {
    font-size: clamp(2.35rem, 11vw, 3.2rem);
  }

  .section-title {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .hero-actions,
  .stack-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  button.button {
    width: 100%;
  }

  .article-shell,
  .form-panel,
  .info-panel,
  .cta-band,
  .quote-panel {
    padding: 22px;
  }

  .article-cover-inline {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 0 22px;
  }

  .feature-card,
  .role-card,
  .blog-card,
  .summary-card,
  .legal-grid > article,
  .step-card {
    padding: 22px;
  }

  .role-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .faq-item summary {
    padding: 20px 52px 20px 18px;
    font-size: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
