:root {
  --bg: #f5f3ee;
  --paper: #fffdf8;
  --ink: #111214;
  --ink-soft: rgba(17, 18, 20, 0.66);
  --muted: rgba(17, 18, 20, 0.42);
  --line: rgba(17, 18, 20, 0.12);
  --panel: rgba(255, 255, 255, 0.74);
  --panel-strong: #ffffff;
  --teal: #1f7a6e;
  --teal-soft: #d8ebe6;
  --green: #6f9d58;
  --coral: #d8694f;
  --gold: #d9aa45;
  --navy: #17263c;
  --shadow: 0 24px 80px rgba(17, 18, 20, 0.12);
  --radius: 8px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d0f;
    --paper: #121416;
    --ink: #f7f4ec;
    --ink-soft: rgba(247, 244, 236, 0.68);
    --muted: rgba(247, 244, 236, 0.44);
    --line: rgba(255, 255, 255, 0.13);
    --panel: rgba(20, 22, 24, 0.78);
    --panel-strong: #181b1e;
    --teal: #4fc0aa;
    --teal-soft: #173a35;
    --green: #98c681;
    --coral: #e77c61;
    --gold: #e6be66;
    --navy: #9cb6d8;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal-soft) 62%, transparent), transparent 34rem),
    linear-gradient(315deg, color-mix(in srgb, #f2d0a4 38%, transparent), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

code,
pre,
.micro,
.eyebrow,
.chapter {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.site-header,
.site-footer,
.section,
.hero-content {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 40;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  backdrop-filter: blur(20px);
  box-shadow: 0 14px 42px rgba(17, 18, 20, 0.08);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.wordmark-two {
  min-width: 1.8em;
  min-height: 1.8em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline: 0.08em;
  padding-inline: 0.34em;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
}

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

.nav-links a,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 16px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 850;
}

.nav-links a {
  color: var(--ink-soft);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  outline: none;
}

.nav-links .nav-cta {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: min(880px, calc(100vh - 24px));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  margin-top: -88px;
  padding-top: 112px;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 78%, transparent) 40%, transparent 76%),
    linear-gradient(0deg, var(--bg) 0%, transparent 38%);
  pointer-events: none;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  place-items: center;
  padding: 110px 22px 54px;
  overflow: hidden;
}

.app-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.hero-app-frame {
  width: min(1160px, 92vw);
  min-height: 610px;
  transform: rotate(-1.1deg) translate(9vw, 16px);
  animation: floatFrame 10s ease-in-out infinite;
}

.app-topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-strong) 86%, transparent);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.app-topbar strong {
  margin-right: auto;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #16b978;
  box-shadow: 0 0 0 4px rgba(22, 185, 120, 0.16);
}

.app-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 552px;
}

.app-sidebar {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.micro,
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.url-pill {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px 12px;
  align-items: center;
  min-height: 64px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.34);
}

.url-pill span {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.url-pill b,
.url-pill small {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.url-pill b {
  font-size: 0.78rem;
}

.url-pill small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.url-pill.is-active {
  background: var(--ink);
  color: var(--bg);
}

.url-pill.is-active small {
  color: currentColor;
  opacity: 0.58;
}

.app-main {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 22px;
}

.crawl-panel {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal-soft) 78%, transparent), transparent 72%),
    var(--panel-strong);
}

.crawl-panel h2 {
  max-width: 620px;
  margin: 8px 0 22px;
  font-size: clamp(2rem, 6vw, 5.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.crawl-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crawl-steps span,
.controls-strip span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 900;
}

.crawl-steps .done,
.crawl-steps .active {
  background: var(--ink);
  color: var(--bg);
}

.matrix-mini {
  display: grid;
  gap: 12px;
  align-content: start;
}

.matrix-row-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--paper) 74%, transparent);
}

.matrix-row-mini.second {
  margin-left: 34px;
}

.matrix-row-mini > span {
  width: 70px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.floating-card {
  position: absolute;
  z-index: 1;
  width: 230px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel-strong) 88%, transparent);
  box-shadow: 0 20px 64px rgba(17, 18, 20, 0.14);
  backdrop-filter: blur(18px);
}

.floating-card span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.floating-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.floating-card b {
  display: block;
  margin-top: 5px;
  font-size: 2.2rem;
  line-height: 1;
}

.floating-card small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.caption-card {
  right: max(18px, 7vw);
  top: 150px;
  animation: floatCard 7s ease-in-out infinite;
}

.export-card {
  right: max(24px, 12vw);
  bottom: 96px;
  animation: floatCard 8s ease-in-out -2s infinite;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 0 72px;
}

.hero h1 {
  max-width: 790px;
  margin: 8px 0 18px;
  font-size: clamp(4.5rem, 15vw, 13rem);
  line-height: 0.82;
  letter-spacing: 0;
  font-weight: 950;
}

.hero-copy {
  max-width: 690px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  border-color: var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.button.secondary {
  background: var(--panel);
  color: var(--ink);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(17, 18, 20, 0.12);
  outline: none;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 0;
}

.hero-metrics div {
  min-width: 136px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  backdrop-filter: blur(16px);
}

.hero-metrics dt {
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.scroll-cue {
  position: absolute;
  right: max(18px, calc((100vw - 1200px) / 2));
  bottom: 20px;
  z-index: 4;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section {
  padding: 84px 0;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.chapter {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 32px;
}

.section-heading.wide {
  max-width: 980px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 32px;
  align-items: end;
  max-width: none;
}

.section-heading h2,
.summary-grid h2,
.booking-copy h2,
.docs-teaser h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5.8vw, 5.1rem);
  line-height: 0.94;
  letter-spacing: 0;
  font-weight: 930;
}

.section-heading p,
.summary-grid p,
.booking-copy p,
.docs-teaser p,
.feature-card p,
.template-feature p,
.template-stack p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.intro-band {
  padding-top: 56px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.summary-grid article {
  min-height: 310px;
  padding: 26px;
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.summary-grid h2 {
  margin: 68px 0 14px;
  font-size: clamp(1.8rem, 3.4vw, 3.4rem);
}

.workflow-board {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items: stretch;
}

.flow-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flow-step {
  min-height: 64px;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
  font-size: 0.84rem;
  font-weight: 850;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.flow-step span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
}

.flow-step.is-active {
  transform: translateX(4px);
  background: var(--ink);
  color: var(--bg);
}

.flow-step.is-active span {
  background: var(--teal);
  color: white;
}

.onboarding-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  grid-template-rows: auto 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal-soft) 60%, transparent), transparent 55%),
    var(--panel);
  box-shadow: var(--shadow);
}

.wizard-card,
.ci-card,
.phone-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel-strong) 82%, transparent);
  backdrop-filter: blur(18px);
}

.wizard-card {
  grid-row: span 2;
  padding: 18px;
}

.wizard-header strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  line-height: 1;
}

.wizard-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.wizard-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink-soft);
}

.wizard-item span {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
}

.wizard-item b,
.wizard-item small {
  display: block;
}

.wizard-item small {
  color: var(--muted);
  font-size: 0.72rem;
}

.wizard-item.done span {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.wizard-item.active {
  border-color: color-mix(in srgb, var(--teal) 36%, transparent);
  background: color-mix(in srgb, var(--teal-soft) 44%, transparent);
}

.wizard-item.active span {
  background: var(--ink);
  color: var(--bg);
  animation: stepPulse 1.2s ease-in-out infinite;
}

.ci-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
  padding: 16px;
}

.ci-shot {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.ci-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ci-details h3 {
  margin: 8px 0 8px;
  font-size: 2rem;
  line-height: 1;
}

.ci-details p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.swatches {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.swatches span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--swatch);
}

.phone-preview {
  position: relative;
  align-self: stretch;
  padding: 18px;
  overflow: hidden;
}

.phone-top {
  width: 72px;
  height: 7px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 20%, transparent);
}

.phone-slide {
  position: absolute;
  inset: 48px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--teal) 22%, transparent), transparent 58%),
    var(--ink);
  color: var(--bg);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.phone-slide.is-active {
  opacity: 1;
  transform: none;
}

.phone-slide span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.phone-slide b {
  margin-top: 8px;
  font-size: 2.35rem;
  line-height: 1;
}

.phone-slide small {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.62);
}

.template-gallery {
  display: grid;
  grid-template-columns: minmax(280px, 0.94fr) minmax(0, 1.06fr);
  gap: 22px;
  align-items: start;
}

.template-feature,
.template-stack article,
.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.template-feature {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.template-feature h3,
.template-stack h3,
.feature-card h3 {
  margin: 8px 0 8px;
  font-size: 1.35rem;
  line-height: 1.1;
}

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

.template-stack article {
  padding: 14px;
}

.template-shot {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 16px 48px rgba(17, 18, 20, 0.1);
}

.template-shot-sm {
  width: 142px;
  flex: 0 0 142px;
}

.template-shot-lg {
  min-height: 450px;
}

.template-render-canvas {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
}

.template-render-canvas .p2p-template-root {
  min-height: 100%;
}

.fallback-template {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #fff;
  font-size: clamp(1rem, 5vw, 2.2rem);
  font-weight: 900;
  line-height: 0.94;
  text-align: center;
}

.dark-template {
  background:
    linear-gradient(135deg, rgba(31, 122, 110, 0.45), transparent),
    #0d2a28;
}

.editorial-template {
  background: #fffdf8;
  color: #151515;
  font-family: "Playfair Display", serif;
  border: 18px solid #151515;
}

.clean-template {
  background:
    linear-gradient(180deg, #f5f3ee 0 48%, #ffffff 48% 100%);
  color: #151515;
}

.navy-template {
  background: #021a3d;
}

.warm-template {
  background:
    radial-gradient(circle at 50% 20%, #f2e57c, transparent 22%),
    #f8f2e6;
  color: #101114;
}

.controls-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  min-height: 276px;
  padding: 22px;
}

.feature-card span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 950;
}

.feature-card h3 {
  margin-top: 72px;
}

.docs-teaser,
.booking-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 30px;
  align-items: center;
  border-block: 1px solid var(--line);
}

.docs-teaser {
  min-height: 360px;
}

.docs-teaser p {
  max-width: 680px;
  margin-top: 18px;
}

.booking-section {
  align-items: start;
}

.booking-copy h2 {
  margin-top: 10px;
}

.booking-copy p {
  margin-top: 18px;
  max-width: 620px;
}

.booking-points {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.booking-points li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
}

.booking-points li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
}

.booking-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.booking-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 850;
}

.cal-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cal-topbar {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-strong) 82%, transparent);
}

.cal-topbar strong {
  margin-left: 6px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dot.red {
  background: #ee6a5f;
}

.dot.amber {
  background: #f5bd4f;
}

.dot.green {
  background: #61c554;
}

.cal-frame {
  min-height: 690px;
  background: var(--panel-strong);
}

.cal-embed-host {
  min-height: 690px;
}

.cal-fallback {
  min-height: 690px;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.cal-fallback span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cal-fallback a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.82rem;
  font-weight: 850;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 0 42px;
  color: var(--ink-soft);
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  font-size: 0.88rem;
}

.site-footer div {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 850;
}

/* Documentation page */
.docs-body {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal-soft) 54%, transparent), transparent 30rem),
    var(--bg);
}

.docs-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 72px auto 36px;
}

.docs-hero h1 {
  max-width: 880px;
  margin: 10px 0 18px;
  font-size: clamp(3.3rem, 9vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.docs-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.docs-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 18px;
  align-items: start;
}

.docs-sidebar,
.docs-article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.docs-sidebar {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.docs-search {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.docs-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  color: var(--ink);
  outline: none;
}

.docs-list {
  overflow: auto;
  padding: 10px;
}

.doc-group-title {
  margin: 16px 8px 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.doc-link {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 800;
}

.doc-link:hover,
.doc-link.is-active {
  background: var(--ink);
  color: var(--bg);
}

.doc-link small {
  opacity: 0.56;
  font-size: 0.64rem;
  font-family: "JetBrains Mono", monospace;
}

.docs-article {
  min-height: 720px;
  padding: clamp(22px, 4vw, 54px);
}

.docs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.docs-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.markdown {
  max-width: 920px;
}

.markdown h1,
.markdown h2,
.markdown h3 {
  letter-spacing: 0;
  line-height: 1;
}

.markdown h1 {
  margin: 0 0 24px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
}

.markdown h2 {
  margin: 44px 0 14px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.markdown h3 {
  margin: 30px 0 10px;
  font-size: 1.35rem;
}

.markdown p,
.markdown li {
  color: var(--ink-soft);
}

.markdown a {
  color: var(--teal);
  font-weight: 800;
}

.markdown pre {
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.82rem;
}

.markdown code {
  padding: 0.12em 0.34em;
  border-radius: 5px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink);
}

.markdown pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.markdown table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.86rem;
}

.markdown th,
.markdown td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.markdown th {
  background: color-mix(in srgb, var(--teal-soft) 52%, transparent);
}

.markdown blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--teal);
  background: color-mix(in srgb, var(--teal-soft) 34%, transparent);
  color: var(--ink-soft);
}

.markdown hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

.doc-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.doc-home-card {
  min-height: 160px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
}

.doc-home-card b {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.doc-home-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

@keyframes floatFrame {
  0%,
  100% {
    transform: rotate(-1.1deg) translate(9vw, 16px);
  }
  50% {
    transform: rotate(-0.3deg) translate(9vw, 2px);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes stepPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1080px) {
  .hero {
    min-height: auto;
    padding-top: 124px;
  }

  .hero-stage {
    position: relative;
    min-height: 540px;
    padding: 18px 0 24px;
    order: 2;
  }

  .hero::after {
    background: linear-gradient(0deg, var(--bg) 0%, transparent 45%);
  }

  .hero-app-frame {
    width: min(960px, 96vw);
    transform: none;
    animation: none;
  }

  .hero-content {
    padding-bottom: 36px;
  }

  .floating-card {
    display: none;
  }

  .summary-grid,
  .platform-grid,
  .doc-home-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-board,
  .template-gallery,
  .docs-teaser,
  .booking-section,
  .docs-shell {
    grid-template-columns: 1fr;
  }

  .template-feature,
  .docs-sidebar {
    position: static;
  }

  .docs-sidebar {
    max-height: none;
  }

  .docs-list {
    max-height: 420px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 58px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 82px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-strong);
    box-shadow: var(--shadow);
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    justify-content: flex-start;
  }

  .hero {
    margin-top: -82px;
    padding-top: 106px;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 20vw, 6.4rem);
  }

  .hero-stage {
    min-height: 520px;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    display: none;
  }

  .app-main {
    padding: 12px;
  }

  .matrix-row-mini {
    gap: 10px;
    overflow: hidden;
  }

  .matrix-row-mini.second {
    margin-left: 0;
  }

  .matrix-row-mini > span {
    display: none;
  }

  .template-shot-sm {
    width: 48%;
    flex-basis: 48%;
  }

  .hero-metrics div {
    min-width: calc(50% - 5px);
  }

  .summary-grid,
  .platform-grid,
  .template-stack,
  .onboarding-visual,
  .split-heading,
  .ci-card,
  .doc-home-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .workflow-board {
    gap: 14px;
  }

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

  .flow-step {
    grid-template-columns: 1fr;
    min-height: 74px;
  }

  .flow-step span {
    width: 32px;
    height: 32px;
  }

  .onboarding-visual {
    min-height: auto;
  }

  .wizard-card {
    grid-row: auto;
  }

  .phone-preview {
    min-height: 280px;
  }

  .template-shot-lg {
    min-height: auto;
  }

  .cal-frame,
  .cal-embed-host,
  .cal-fallback {
    min-height: 620px;
  }

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

  .docs-hero {
    margin-top: 48px;
  }
}

@media (max-width: 460px) {
  .site-header,
  .site-footer,
  .section,
  .hero-content,
  .docs-hero,
  .docs-shell {
    width: min(100% - 20px, 1200px);
  }

  .wordmark {
    font-size: 0.82rem;
  }

  .hero-metrics div {
    min-width: 100%;
  }

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

  .crawl-panel h2 {
    font-size: 2.4rem;
  }

  .docs-article {
    padding: 18px;
  }
}

/* Language switcher (i18n) */
.lang-switch { display: inline-flex; gap: 2px; margin-left: 14px; padding: 2px;
  border: 1px solid rgba(120,120,120,.28); border-radius: 999px; }
.lang-switch button, .lang-switch a { font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border: 0; background: transparent; color: inherit; border-radius: 999px;
  cursor: pointer; opacity: .5; transition: opacity .2s, background .2s; }
.lang-switch button:hover, .lang-switch a:hover { opacity: .85; }
.lang-switch button.is-active, .lang-switch a.is-active { background: rgba(120,120,120,.22); opacity: 1; }

/* Visually hidden (kept for screen readers + SEO) */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
