:root {
  --bg: #f7f2e7;
  --bg-strong: #f0e3c6;
  --surface: #fffdf7;
  --surface-alt: #fff8ea;
  --line: #e2d2ae;
  --line-strong: #c9b07a;
  --text: #2e251a;
  --muted: #5f503b;
  --brand: #142b47;
  --brand-soft: #27466d;
  --accent: #8a6b27;
  --success: #1f6a42;
  --danger: #9b2f2f;
  --shadow: 0 18px 48px rgba(94, 72, 33, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max: 1180px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 176, 122, 0.18), transparent 30%),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 100%);
  line-height: 1.6;
}

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

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

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

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: calc(var(--header-offset, 76px) * -1);
  left: 0;
  right: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(251, 247, 239, 0.9);
  border-bottom: 1px solid rgba(201, 176, 122, 0.24);
  transition:
    top 220ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.site-header.is-visible {
  top: 0;
}

.site-header.is-top {
  top: 0;
}

.site-header.is-nav-open {
  top: 0;
}

body {
  padding-top: 76px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: Georgia, serif;
  font-weight: 700;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--line-strong);
  color: var(--accent);
  background: linear-gradient(180deg, #fff8e9, #f3e2bb);
  font-size: 0.88rem;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__text small {
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav a {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav a[aria-current="page"] {
  background: rgba(20, 43, 71, 0.08);
  color: var(--brand);
  font-weight: 700;
}

.nav .button {
  color: #fff;
  background: var(--brand);
}

.nav .button:hover,
.nav .button:focus-visible {
  color: #fff;
}

.mobile-nav-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--brand);
  flex: 0 0 auto;
}

.mobile-nav-toggle__line {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    top 180ms ease;
}

.mobile-nav-toggle__line:nth-child(1) {
  top: 15px;
}

.mobile-nav-toggle__line:nth-child(2) {
  top: 22px;
}

.mobile-nav-toggle__line:nth-child(3) {
  top: 29px;
}

.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle__line:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle__line:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(20, 43, 71, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.site-header.is-nav-open .mobile-nav-toggle {
  opacity: 0;
  pointer-events: none;
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.mobile-nav__panel {
  position: absolute;
  top: 12px;
  left: 0;
  bottom: 12px;
  width: min(84vw, 360px);
  padding: 1rem;
  background: rgba(255, 250, 240, 0.97);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 176, 122, 0.45);
  border-radius: 0 24px 24px 0;
  box-shadow: 0 24px 48px rgba(20, 43, 71, 0.22);
  transform: translateX(-110%);
  transition: transform 220ms ease;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: auto;
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.mobile-nav__title {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  color: var(--text);
}

.mobile-nav__close {
  position: relative;
  width: 48px;
  height: 48px;
  margin-left: auto;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--brand);
}

.mobile-nav__close-line {
  position: absolute;
  top: 22px;
  left: 13px;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav__close-line:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-nav__close-line:nth-child(2) {
  transform: rotate(-45deg);
}

.mobile-nav__links {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  overflow: auto;
  padding-bottom: 0.75rem;
}

.mobile-nav__links a {
  width: 100%;
  padding: 0.9rem 0.95rem;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid transparent;
  text-align: left;
  font-size: 1rem;
}

.mobile-nav__links a[aria-current="page"] {
  background: rgba(20, 43, 71, 0.08);
  border-color: rgba(20, 43, 71, 0.12);
  color: var(--brand);
  font-weight: 700;
}

.button,
.button-secondary,
.button-ghost,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button,
button.button {
  background: var(--brand);
  color: #fff;
}

.button-secondary {
  background: #fff;
  color: var(--brand);
  border-color: var(--line);
}

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

.button:hover,
.button-secondary:hover,
.button-ghost:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20, 43, 71, 0.12);
}

.button:active,
.button-secondary:active,
.button-ghost:active,
button:active {
  transform: translateY(0);
  animation: soft-pop 180ms ease;
}

.button:focus-visible,
.button-secondary:focus-visible,
.button-ghost:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(20, 43, 71, 0.18);
  outline-offset: 2px;
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  animation: fade-up 520ms ease both;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.hero-card {
  padding: 2.2rem;
  background:
    linear-gradient(135deg, rgba(247, 234, 208, 0.94) 0%, rgba(255, 248, 234, 0.96) 100%);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: Georgia, serif;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.3rem, 4vw, 4.3rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

.lead {
  margin-top: 1rem;
  max-width: 58rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.section-actions,
.demo-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.stat-grid,
.grid-3,
.grid-2,
.grid-4,
.demo-grid,
.feature-grid,
.faq-grid,
.steps-grid {
  display: grid;
  gap: 1rem;
}

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

.stat {
  padding: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.stat strong {
  display: block;
  font-size: 2rem;
  font-family: Georgia, serif;
}

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

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

.stat ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.stat li + li {
  margin-top: 0.3rem;
}

.section {
  padding: 1.2rem 0 3rem;
}

.section-header {
  margin-bottom: 1.25rem;
}

.section-header--icon,
.card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.section-header--icon {
  margin-bottom: 0.85rem;
}

.section-header--icon > div,
.card-head > div {
  min-width: 0;
}

.section-header p {
  margin-top: 0.65rem;
  max-width: 52rem;
  color: var(--muted);
}

.section-icon,
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(138, 107, 39, 0.2);
  color: var(--brand);
  background:
    radial-gradient(circle at top left, rgba(201, 176, 122, 0.34), transparent 65%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(94, 72, 33, 0.08);
}

.section-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  font-size: 1.5rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}

.hero-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  font-size: 1.55rem;
  margin-bottom: 1rem;
}

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

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

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

.info-card,
.step-card,
.faq-card,
.callout,
.demo-card,
.feature-panel,
.pricing-card {
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 18px;
  animation: fade-up 560ms ease both;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.card:hover,
.info-card:hover,
.step-card:hover,
.faq-card:hover,
.callout:hover,
.demo-card:hover,
.feature-panel:hover,
.pricing-card:hover,
.result-table-card:hover,
.action-card:hover {
  transform: translateY(-6px);
  border-color: rgba(138, 107, 39, 0.34);
  box-shadow: 0 18px 36px rgba(94, 72, 33, 0.14);
}

.info-card p,
.step-card p,
.faq-card p,
.feature-panel p,
.callout p,
.pricing-card p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.pricing-card {
  position: relative;
  display: grid;
  gap: 0.9rem;
}

.pricing-card--featured {
  border-color: var(--line-strong);
  box-shadow: 0 18px 48px rgba(94, 72, 33, 0.16);
  background: linear-gradient(180deg, #fffdf8 0%, #fbf4e5 100%);
}

.pricing-card__label {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(20, 43, 71, 0.08);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: Georgia, serif;
}

.pricing-card__price strong {
  font-size: 2.3rem;
  line-height: 1;
}

.pricing-card__price span {
  color: var(--muted);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.pricing-table th,
.pricing-table td {
  padding: 0.95rem 1rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.pricing-table th {
  background: #fffaf2;
  color: #5c4a33;
}

.badge-list,
.check-list,
.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.badge-list li,
.inline-list li {
  padding: 0.55rem 0.75rem;
  background: rgba(138, 107, 39, 0.08);
  border: 1px solid rgba(138, 107, 39, 0.16);
  border-radius: 999px;
  color: var(--text);
}

.check-list {
  display: grid;
  gap: 0.8rem;
}

.check-list li {
  list-style: none;
  padding-left: 1.5rem;
  position: relative;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.demo-banner {
  padding: 1rem 1.15rem;
  background: #fff7e6;
  border: 1px solid #ecd7ab;
  border-radius: 16px;
  color: var(--muted);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.faq-sidebar,
.faq-panel {
  padding: 1.3rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(94, 72, 33, 0.08);
}

.faq-sidebar {
  position: sticky;
  top: 96px;
}

.faq-sidebar__label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

.faq-tab-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.faq-tab {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  padding: 0.95rem 1rem;
  text-align: left;
  border: 1px solid #e5d3af;
  border-radius: 16px;
  background: #fffaf2;
  color: #6a5426;
}

.faq-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 14px 26px rgba(20, 43, 71, 0.18);
}

.faq-tab__title {
  font-weight: 700;
}

.faq-tab__meta {
  font-size: 0.84rem;
  opacity: 0.85;
}

.faq-panels {
  min-width: 0;
}

.faq-panel__header p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.faq-stack {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.15rem;
}

.faq-entry {
  padding: 1rem 1.05rem;
  border: 1px solid #eadab8;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf8 0%, #fcf6ea 100%);
}

.faq-entry h3 {
  margin: 0;
  font-size: 1.02rem;
}

.faq-entry p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.demo-shell {
  padding: 18px;
  border: 1px solid #dbc79a;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fffaf0 0%, #f7edd9 100%);
  box-shadow: var(--shadow);
}

.demo-hero,
.demo-form,
.demo-preview {
  padding: 24px 26px;
  border: 1px solid #ecd8ae;
  border-radius: 22px;
  background: #fff;
}

.demo-hero {
  background: linear-gradient(135deg, #f7ead0 0%, #fff7e9 100%);
}

.demo-hero__title {
  margin-top: 0.2rem;
}

.demo-hero__text {
  margin-top: 0.9rem;
  max-width: 46rem;
  color: #5b4a35;
  font-size: 1.05rem;
}

.demo-grid {
  margin-top: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

[data-demo-samples].inline-list li {
  padding: 0;
  background: transparent;
  border: 0;
}

[data-demo-samples] [data-demo-code] {
  min-height: 56px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  background: #fff7e8;
  border: 1px solid #dcc59d;
  color: #6a5426;
  box-shadow: none;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.demo-tab {
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid #dcc59d;
  border-radius: 999px;
  background: #fff7e8;
  color: #6a5426;
}

.demo-tab.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.demo-form {
  margin-top: 1rem;
}

.contact-form-card {
  max-width: 920px;
  margin: 0 auto;
}

.demo-card strong {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.form-row,
.email-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
}

.form-field {
  display: block;
}

.label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.input {
  width: 100%;
  min-height: 50px;
  padding: 0.9rem 1rem;
  border: 1px solid #d9c5a0;
  border-radius: 14px;
  background: #fffcf7;
  color: var(--text);
  font: inherit;
}

.input--textarea {
  min-height: 170px;
  resize: vertical;
}

.status {
  margin-top: 1rem;
  display: none;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #fffaf2;
  color: var(--muted);
}

.status.is-visible {
  display: block;
}

.status.success {
  color: #116533;
  background: #eefbf2;
  border-color: #b7ebc6;
}

.status.error {
  color: var(--danger);
  background: #fff1ee;
  border-color: #f0c2b7;
}

.contact-captcha {
  margin-top: 0.2rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 430px;
  padding: 0.8rem 0.9rem;
  border: 1px solid #ead7b2;
  border-radius: 14px;
  background: #fffdf8;
}

.contact-captcha__title {
  font-size: 0.76rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.contact-captcha__row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
}

.contact-captcha__question {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 42px;
  padding: 0 0.85rem;
  border-radius: 12px;
  background: #f8f2e5;
  border: 1px solid #e4d3af;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.contact-captcha__field {
  min-width: 0;
  flex: 1 1 auto;
}

.contact-captcha__field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-captcha__input {
  min-width: 0;
  min-height: 42px;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
}

.contact-captcha__refresh {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 12px;
  white-space: nowrap;
  font-size: 1rem;
  line-height: 1;
}

.button[disabled],
button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.result {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.result-template {
  background: #fff;
  border: 1px solid #e4d3af;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(94, 72, 33, 0.08);
}

.result-template__eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

.result-template__title {
  margin-top: 0.35rem;
  font-size: clamp(1.75rem, 3vw, 2.2rem);
}

.result-template__text {
  margin-top: 0.75rem;
  color: var(--muted);
}

.result-template__grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.result-template__item {
  padding: 0.9rem 1rem;
  border: 1px solid #ead7b2;
  border-radius: 16px;
  background: #fcf8ef;
}

.result-template__item strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.result-template__item span {
  color: var(--text);
}

.result-table-card,
.action-card {
  border: 1px solid #e4d3af;
  border-radius: 18px;
  background: #fff;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.result-table-card {
  overflow: hidden;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 1rem 1rem 0;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #f4ead4;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
}

.result-table th,
.result-table td {
  padding: 12px 14px;
  border-top: 1px solid #f2e6cd;
  text-align: left;
}

.result-table th {
  width: 35%;
  background: #fffaf2;
  color: #5c4a33;
  font-weight: 700;
}

.result-table td {
  color: var(--text);
}

.demo-preview {
  display: none;
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.demo-preview.is-visible {
  display: block;
}

.certificate-preview {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: auto;
}

.certificate-preview__inner {
  width: min(100%, 820px);
  margin: 0 auto;
}

.demo-document {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid #e4d3af;
  background: linear-gradient(180deg, #fffef9 0%, #fbf3e2 100%);
  box-shadow: none;
}

.demo-document__eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

.demo-document__title {
  margin-top: 0.45rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.demo-document__sub {
  margin-top: 0.45rem;
  color: var(--muted);
}

.demo-document__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.demo-document__grid div {
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ead7b2;
  border-radius: 14px;
}

.demo-document__grid strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.certificate {
  position: relative;
  aspect-ratio: 1600 / 1130;
  container-type: inline-size;
  background-image: url("../images/demo-certificate.svg");
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
}

.certificate__text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.certificate__name {
  top: 40.5%;
  width: 55%;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(0.95rem, 5.1cqw, 2.5rem);
  line-height: 1.05;
  font-style: italic;
  font-weight: 700;
}

.certificate__title {
  top: 56.5%;
  width: 65%;
  font-family: Georgia, serif;
  font-size: clamp(0.72rem, 3cqw, 1.45rem);
  line-height: 1.1;
  color: #7b1f1f;
  font-weight: 700;
}

.certificate__issued {
  top: 66.6%;
  left: 37%;
  transform: translateX(-50%);
  width: 24%;
  white-space: nowrap;
  font-size: clamp(0.5rem, 1.7cqw, 1rem);
  color: #4f473b;
}

.certificate__code {
  top: 66.6%;
  left: 61%;
  transform: translateX(-50%);
  width: 24%;
  white-space: nowrap;
  font-size: clamp(0.5rem, 1.7cqw, 1rem);
  color: #4f473b;
}

.certificate__hours {
  top: 72.3%;
  width: 28%;
  font-size: clamp(0.5rem, 1.6cqw, 0.95rem);
  line-height: 1.1;
  color: #5d564a;
  font-weight: 700;
}

.action-card {
  padding: 1.25rem;
}

.action-card h3 {
  margin-bottom: 0.55rem;
}

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

.site-footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.site-footer__inner {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 176, 122, 0.4);
  display: grid;
  gap: 1.1rem;
}

.site-footer__intro {
  max-width: 54rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.site-footer__panel {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(138, 107, 39, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.site-footer__title {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-footer__links {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.site-footer__links a,
.site-footer__contact a {
  color: var(--text);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible,
.site-footer__contact a:hover,
.site-footer__contact a:focus-visible {
  color: var(--brand);
}

.site-footer__contact {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.site-footer__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-footer__contact-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.site-footer__contact-link--mail .site-footer__contact-icon {
  color: #d14836;
}

.site-footer__contact-link--whatsapp .site-footer__contact-icon {
  color: #25d366;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.site-footer__social-icon {
  width: 18px;
  height: 18px;
}

.site-footer__social-link--facebook {
  background: #eaf2ff;
  border-color: #c8dafd;
  color: #1877f2;
}

.site-footer__social-link--instagram {
  background: #fff0f6;
  border-color: #f4cade;
  color: #e1306c;
}

.site-footer__social-link--x {
  background: #f1f2f4;
  border-color: #d8dbe1;
  color: #111111;
}

.site-footer__social-link--linkedin {
  background: #eaf4ff;
  border-color: #c7ddfb;
  color: #0a66c2;
}

.site-footer__social-link--youtube {
  background: #fff0f0;
  border-color: #f3c8c8;
  color: #ff0000;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--brand);
}

.site-footer__meta {
  font-size: 0.95rem;
}

.scroll-top-button {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 30;
  width: 56px;
  min-width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(20, 43, 71, 0.16);
  background: linear-gradient(180deg, #fff8ea 0%, #f2e2bc 100%);
  color: var(--brand);
  box-shadow: 0 16px 32px rgba(20, 43, 71, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
}

.scroll-top-button.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-button span {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
  background: linear-gradient(180deg, #ffffff 0%, #f6e9cb 100%);
  border-color: rgba(20, 43, 71, 0.28);
  color: var(--brand-soft);
}

.grid-2 > *:nth-child(2),
.grid-3 > *:nth-child(2),
.grid-4 > *:nth-child(2),
.stat-grid > *:nth-child(2),
.demo-grid > *:nth-child(2) {
  animation-delay: 80ms;
}

.grid-2 > *:nth-child(3),
.grid-3 > *:nth-child(3),
.grid-4 > *:nth-child(3),
.stat-grid > *:nth-child(3) {
  animation-delay: 140ms;
}

.grid-3 > *:nth-child(4),
.grid-4 > *:nth-child(4),
.stat-grid > *:nth-child(4) {
  animation-delay: 200ms;
}

.muted {
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 1rem;
}

.print-sheet {
  display: none;
}

@media print {
  body * {
    visibility: hidden;
  }

  .print-sheet,
  .print-sheet * {
    visibility: visible;
  }

  .print-sheet {
    display: block;
    position: absolute;
    inset: 0;
    padding: 0;
    margin: 0;
  }

  .print-sheet .certificate {
    width: 100vw;
    height: auto;
    border-radius: 0;
  }
}

@media (max-width: 980px) {
  .hero__grid,
  .grid-3,
  .grid-2,
  .grid-4,
  .feature-grid,
  .faq-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 0.75rem), var(--max));
  }

  .site-header {
    backdrop-filter: none;
    background: rgba(251, 247, 239, 0.96);
  }

  .site-header__inner {
    padding: 0.7rem 0;
    align-items: center;
    flex-direction: row;
    min-height: 68px;
    gap: 0.75rem;
  }

  body {
    padding-top: 68px;
  }

  .brand {
    gap: 0.65rem;
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
  }

  .brand__text {
    min-width: 0;
  }

  .brand__text small {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    padding: 1.4rem 0 1.8rem;
  }

  .section {
    padding: 0.75rem 0 2rem;
  }

  .demo-banner {
    padding: 0.9rem 0.95rem;
  }

  .hero-card,
  .info-card,
  .step-card,
  .callout,
  .feature-panel,
  .pricing-card,
  .demo-hero,
  .demo-form,
  .demo-preview,
  .faq-sidebar,
  .faq-panel {
    padding: 1rem;
  }

  .demo-shell {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .form-row,
  .email-row,
  .stat-grid,
  .demo-grid,
  .result-template__grid,
  .demo-document__grid,
  .faq-layout,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .faq-sidebar {
    position: static;
  }

  .faq-tab-list {
    gap: 0.7rem;
  }

  .faq-tab {
    border-radius: 18px;
  }

  .button,
  .button-secondary,
  .button-ghost,
  button {
    width: 100%;
  }

  .scroll-top-button {
    right: 0.85rem;
    bottom: 0.85rem;
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 0.8rem 0.75rem;
    font-size: 0.92rem;
  }

  .contact-captcha__row {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .contact-captcha__question,
  .contact-captcha__field,
  .contact-captcha__refresh {
    width: 100%;
  }

  .certificate__issued,
  .certificate__code {
    font-size: 0.62rem;
  }
}

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

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