/* Struck Anvil — shared design system (light + dark via prefers-color-scheme) */

/*
  Theme tokens are assigned as concrete values in each scheme.
  Aliases are reassigned in dark mode too (not only chained vars), so the
  full UI always tracks prefers-color-scheme — not just <picture> logos.
*/

/* Light theme (default) */
:root,
html {
  color-scheme: light;

  /* Semantic tokens */
  --background: #f5f6f8;
  --surface: #eef0f3;
  --card: #ffffff;
  --border: #e2e6eb;
  --border-strong: #cfd5dc;
  --text: #1a1d21;
  --text-secondary: #3d4450;
  --text-muted: #5c6570;
  --text-faint: #8b939e;
  --link: #216aed;
  --link-hover: #1857c9;
  --accent: #216aed;
  --accent-hover: #1857c9;
  --accent-soft: rgba(33, 106, 237, 0.08);
  --accent-border: rgba(33, 106, 237, 0.18);
  --button: #216aed;
  --button-text: #ffffff;
  --button-secondary-bg: #ffffff;
  --button-secondary-hover: #eef0f3;
  --header-bg: rgba(245, 246, 248, 0.9);
  --success: #0f7a4a;
  --success-soft: rgba(15, 122, 74, 0.1);
  --success-border: rgba(15, 122, 74, 0.2);
  --media-frame: #0c0c0e;
  --charcoal: #23272b;
  --shadow-color: rgba(26, 29, 33, 0.06);
  --shadow-color-strong: rgba(26, 29, 33, 0.08);
  --shadow-color-subtle: rgba(26, 29, 33, 0.04);
  --crane-guide: #8b939e;
  --crane-frame: #cfd5dc;

  /* Legacy / component aliases (concrete values, not chained) */
  --color-background: #f5f6f8;
  --color-surface: #eef0f3;
  --color-card: #ffffff;
  --color-border: #e2e6eb;
  --color-border-strong: #cfd5dc;
  --color-text: #1a1d21;
  --color-text-secondary: #3d4450;
  --color-text-muted: #5c6570;
  --color-text-faint: #8b939e;
  --color-link: #216aed;
  --color-link-hover: #1857c9;
  --color-accent: #216aed;
  --color-accent-hover: #1857c9;
  --color-accent-soft: rgba(33, 106, 237, 0.08);
  --color-accent-border: rgba(33, 106, 237, 0.18);
  --color-button: #216aed;
  --color-button-text: #ffffff;
  --color-button-secondary-bg: #ffffff;
  --color-button-secondary-hover: #eef0f3;
  --color-header-bg: rgba(245, 246, 248, 0.9);
  --color-success: #0f7a4a;
  --color-success-soft: rgba(15, 122, 74, 0.1);
  --color-success-border: rgba(15, 122, 74, 0.2);
  --color-media-frame: #0c0c0e;
  --color-charcoal: #23272b;
  --color-shadow: rgba(26, 29, 33, 0.06);
  --color-shadow-strong: rgba(26, 29, 33, 0.08);
  --color-shadow-subtle: rgba(26, 29, 33, 0.04);
  --color-crane-guide: #8b939e;
  --color-crane-frame: #cfd5dc;

  --bg: #f5f6f8;
  --bg-elevated: #ffffff;
  --surface-2: #eef0f3;
  --success-soft: rgba(15, 122, 74, 0.1);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(26, 29, 33, 0.04);
  --shadow: 0 4px 16px rgba(26, 29, 33, 0.06);
  --shadow-lg: 0 16px 40px rgba(26, 29, 33, 0.08);
  --max: 1120px;
  --max-narrow: 720px;
  --header-h: 68px;
  --product-subnav-h: 52px;
  /* Offset for in-page anchors under sticky company header (+ product bar when present) */
  --sticky-offset: calc(var(--header-h) + 16px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Dark theme — automatic via system appearance */
@media (prefers-color-scheme: dark) {
  :root,
  html {
    color-scheme: dark;

    --background: #16181c;
    --surface: #1e2126;
    --card: #22262c;
    --border: #2e333a;
    --border-strong: #3a4048;
    --text: #f1f2f4;
    --text-secondary: #c5c9d0;
    --text-muted: #9aa1ab;
    --text-faint: #7a828c;
    --link: #216aed;
    --link-hover: #4d8ef5;
    --accent: #216aed;
    --accent-hover: #4d8ef5;
    --accent-soft: rgba(33, 106, 237, 0.16);
    --accent-border: rgba(33, 106, 237, 0.28);
    --button: #216aed;
    --button-text: #ffffff;
    --button-secondary-bg: #22262c;
    --button-secondary-hover: #2a2f36;
    --header-bg: rgba(22, 24, 28, 0.9);
    --success: #3dcf8e;
    --success-soft: rgba(61, 207, 142, 0.12);
    --success-border: rgba(61, 207, 142, 0.28);
    --media-frame: #0c0c0e;
    --charcoal: #e8eaed;
    --shadow-color: rgba(0, 0, 0, 0.28);
    --shadow-color-strong: rgba(0, 0, 0, 0.4);
    --shadow-color-subtle: rgba(0, 0, 0, 0.22);
    --crane-guide: #7a828c;
    --crane-frame: #3a4048;

    --color-background: #16181c;
    --color-surface: #1e2126;
    --color-card: #22262c;
    --color-border: #2e333a;
    --color-border-strong: #3a4048;
    --color-text: #f1f2f4;
    --color-text-secondary: #c5c9d0;
    --color-text-muted: #9aa1ab;
    --color-text-faint: #7a828c;
    --color-link: #216aed;
    --color-link-hover: #4d8ef5;
    --color-accent: #216aed;
    --color-accent-hover: #4d8ef5;
    --color-accent-soft: rgba(33, 106, 237, 0.16);
    --color-accent-border: rgba(33, 106, 237, 0.28);
    --color-button: #216aed;
    --color-button-text: #ffffff;
    --color-button-secondary-bg: #22262c;
    --color-button-secondary-hover: #2a2f36;
    --color-header-bg: rgba(22, 24, 28, 0.9);
    --color-success: #3dcf8e;
    --color-success-soft: rgba(61, 207, 142, 0.12);
    --color-success-border: rgba(61, 207, 142, 0.28);
    --color-media-frame: #0c0c0e;
    --color-charcoal: #e8eaed;
    --color-shadow: rgba(0, 0, 0, 0.28);
    --color-shadow-strong: rgba(0, 0, 0, 0.4);
    --color-shadow-subtle: rgba(0, 0, 0, 0.22);
    --color-crane-guide: #7a828c;
    --color-crane-frame: #3a4048;

    --bg: #16181c;
    --bg-elevated: #22262c;
    --surface-2: #1e2126;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.22);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
  }

  body {
    background-color: #16181c;
    color: #f1f2f4;
  }

  .site-header {
    background: rgba(22, 24, 28, 0.9);
  }

  .site-footer {
    background: #1a1d22;
  }

  .card,
  .nav-dropdown__panel,
  .pill,
  .pricing-sub__item {
    background: #22262c;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--background);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--background);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container--narrow {
  max-width: var(--max-narrow);
}

.section {
  padding: 4.5rem 0;
}

.section--tight {
  padding: 3rem 0;
}

.section--border {
  border-top: 1px solid var(--border);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  flex-shrink: 0;
}

.brand-link:hover {
  color: var(--text);
}

/* picture wrappers + img (theme-aware logos via <source media>) */
.brand-link__logo {
  height: 36px;
  width: auto;
  display: block;
  line-height: 0;
}

.brand-link__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.brand-link__mono {
  width: 34px;
  height: 34px;
  display: none;
  line-height: 0;
}

.brand-link__mono img {
  width: 34px;
  height: 34px;
  display: block;
}

.brand-link__mark {
  width: 32px;
  height: 32px;
  display: block;
  line-height: 0;
}

.brand-link__mark img {
  width: 32px;
  height: 32px;
  display: block;
}

.brand-link__word {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

@media (max-width: 420px) {
  .brand-link__logo {
    display: none;
  }
  .brand-link__mono {
    display: block;
  }
  .site-header .brand-link__word {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border: 0;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 860px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-link[aria-current="page"] {
  color: var(--text);
}

/* Products dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.nav-dropdown__trigger:hover,
.nav-dropdown__trigger[aria-expanded="true"] {
  color: var(--text);
  background: var(--surface);
}

.nav-dropdown__chevron {
  width: 12px;
  height: 12px;
  opacity: 0.7;
  transition: transform 0.15s var(--ease);
}

.nav-dropdown__trigger[aria-expanded="true"] .nav-dropdown__chevron {
  transform: rotate(180deg);
}

.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 260px;
  padding: 0.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease),
    visibility 0.15s;
}

.nav-dropdown__panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__item {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background 0.12s var(--ease);
}

.nav-dropdown__item:hover {
  background: var(--surface);
  color: var(--text);
}

.nav-dropdown__item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.925rem;
}

.nav-dropdown__item-desc {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Mobile menu button */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

@media (min-width: 860px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle__icon {
  width: 18px;
  height: 14px;
  position: relative;
}

.menu-toggle__icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease), top 0.2s;
}

.menu-toggle__icon span:nth-child(1) {
  top: 0;
}
.menu-toggle__icon span:nth-child(2) {
  top: 6px;
}
.menu-toggle__icon span:nth-child(3) {
  top: 12px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.nav-mobile {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile__inner {
  padding: 0.75rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.nav-mobile a:hover {
  background: var(--surface);
  color: var(--text);
}

.nav-mobile__label {
  margin-top: 0.5rem;
  padding: 0.5rem 0.5rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease),
    color 0.15s var(--ease), transform 0.1s var(--ease);
}

.btn:active {
  transform: scale(0.985);
}

.btn--primary {
  background: var(--button);
  color: var(--button-text);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--button-text);
}

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

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

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.btn--ghost:hover {
  color: var(--accent);
}

.btn--lg {
  padding: 0.9rem 1.4rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

/*
  Product subnav — second bar under the permanent company header.
  Company header + footer never change; product nav only appears on product pages.
*/
.product-subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

/* With product bar, anchors must clear both sticky rows */
body:has(.product-subnav) {
  --sticky-offset: calc(var(--header-h) + var(--product-subnav-h) + 16px);
}

/* Section labels (Quick Mode, Features, FAQ, …) stay visible under sticky nav */
#how,
#features,
#faq,
#pricing,
#templates {
  scroll-margin-top: var(--sticky-offset);
}

.product-subnav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.product-subnav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.product-subnav__brand:hover {
  color: var(--text);
}

.product-subnav__brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Right-aligned like company nav (Products / Support / About) */
.product-subnav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.product-subnav__links::-webkit-scrollbar {
  display: none;
}

.product-subnav__links a.nav-link {
  flex-shrink: 0;
  padding: 0.4rem 0.6rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.product-subnav__links .btn {
  flex-shrink: 0;
  margin-left: 0.25rem;
}

@media (max-width: 640px) {
  .product-subnav__brand span {
    /* Keep product name on small screens if space allows; hide only if cramped */
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.eyebrow--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.page-title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text);
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.lead {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 38rem;
}

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

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  white-space: nowrap;
}

.badge--available {
  background: var(--success-soft);
  border-color: var(--success-border);
  color: var(--success);
}

.badge--soon {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card--pad {
  padding: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease),
    transform 0.15s var(--ease);
}

.product-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .product-card:hover {
    transform: none;
  }
}

.product-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.product-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

/* Theme-aware brand icon (replaces hardcoded light padding bg) */
.brand-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface);
  padding: 6px;
  box-sizing: border-box;
  display: block;
  line-height: 0;
}

.brand-app-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-app-icon--sm {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  padding: 4px;
}

.product-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}

.product-card__desc {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  flex: 1;
}

.product-card__action {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

/* Grid */
.grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 5.5rem 0 4.5rem;
  }
}

.hero__content {
  max-width: 40rem;
}

/* Desktop: title and lead share the container width without stretching body text */
@media (min-width: 900px) {
  .hero__content {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    column-gap: 3.5rem;
    align-items: center;
  }

  .hero .page-title {
    margin-bottom: 0;
    max-width: 12ch;
  }

  .hero .lead {
    margin-bottom: 0;
    max-width: 34rem;
  }
}

.hero .eyebrow {
  margin-bottom: 1.25rem;
}

.hero .page-title {
  margin-bottom: 1rem;
}

.hero .lead {
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Principles */
.principle {
  padding: 1.35rem 1.4rem;
}

.principle__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.principle__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 3rem 0 2rem;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 1.5rem;
  }
}

.site-footer__brand {
  max-width: 18rem;
}

.site-footer__brand p {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.site-footer__col h2 {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer__col a {
  color: var(--text-secondary);
  font-size: 0.925rem;
}

.site-footer__col a:hover {
  color: var(--text);
}

.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.site-footer__external {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer__external a {
  color: var(--text-secondary);
}

.site-footer__external a:hover {
  color: var(--accent);
}

/* Page shell */
.page-main {
  min-height: calc(100vh - var(--header-h) - 220px);
}

.page-hero {
  padding: 3rem 0 2rem;
}

.page-hero .page-title {
  margin: 0.85rem 0 0.75rem;
}

/* Feature cards (Caption Comet adapted) */
.feature-card {
  padding: 1.35rem 1.4rem;
  height: 100%;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--media-frame);
  box-shadow: var(--shadow);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: auto;
  display: block;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font-size: 0.85rem;
  font-weight: 650;
  margin-bottom: 0.75rem;
}

.how-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.35rem;
}

.how-card__copy {
  margin-bottom: 1rem;
}

.how-card__copy h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.how-card__copy p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.how-card__media {
  margin-top: auto;
}

/* Pricing */
.pricing-panel {
  padding: 1.75rem;
}

.price {
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.check-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 0.15rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5L6.5 11.5L12.5 4.5' stroke='%230f7a4a' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.check-list--limits li::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='5.25' stroke='%238b939e' stroke-width='1.5'/%3E%3Cpath d='M8 5.5V8.5L10 10' stroke='%238b939e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

@media (prefers-color-scheme: dark) {
  .check-list li::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5L6.5 11.5L12.5 4.5' stroke='%233dcf8e' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / contain no-repeat;
  }

  .check-list--limits li::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='5.25' stroke='%237a828c' stroke-width='1.5'/%3E%3Cpath d='M8 5.5V8.5L10 10' stroke='%237a828c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / contain no-repeat;
  }
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.link-list a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--accent);
}

.link-list a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* FAQ */
.faq-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.faq-item {
  padding: 1.15rem 1.25rem;
}

.faq-item h3 {
  margin: 0 0 0.4rem;
  font-size: 0.975rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.faq-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

details.faq-details {
  padding: 1rem 1.15rem;
}

details.faq-details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

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

details.faq-details p {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.925rem;
}

/* Contact / support */
.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.prose {
  max-width: 40rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--text-secondary);
  line-height: 1.6;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Camera Crane abstract visual */
.crane-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

/* Intentionally no gradient brand gimmick — surface only for abstract canvas */
.crane-visual svg {
  width: 100%;
  height: 100%;
}

.crane-visual__frame {
  fill: none;
  stroke: var(--crane-frame);
  stroke-width: 1.5;
}

.crane-visual__guide {
  fill: none;
  stroke: var(--crane-guide);
  stroke-width: 1.25;
  stroke-dasharray: 4 4;
}

.crane-visual__accent {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
}

.crane-visual__path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}

.crane-visual__dot {
  fill: var(--accent);
}

.crane-visual__arrow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 5rem 0;
}

.error-page .page-title {
  margin-bottom: 0.75rem;
}

.error-page .lead {
  margin: 0 auto 1.75rem;
}

/* Utility */
.stack-sm > * + * {
  margin-top: 0.75rem;
}

.stack > * + * {
  margin-top: 1rem;
}

.stack-lg > * + * {
  margin-top: 1.5rem;
}

.mt-0 {
  margin-top: 0 !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-8 {
  margin-top: 2rem;
}
.mt-10 {
  margin-top: 2.5rem;
}

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

.flex-center {
  display: flex;
  justify-content: center;
}

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

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.pill {
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Product strip on CC page */
.product-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.product-identity img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.product-identity strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

/* Trust row */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Template chips */
.template-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .template-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .template-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.template-chip {
  padding: 0.9rem 1rem;
}

.template-chip strong {
  display: block;
  font-size: 0.925rem;
  margin-bottom: 0.2rem;
}

.template-chip span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Split hero for CC */
.cc-hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .cc-hero {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3rem;
  }
}

.pricing-cols {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .pricing-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-sub {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 700px) {
  .pricing-sub {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-sub__item {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

.note {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Ensure no overflow at 320px */
body {
  overflow-x: hidden;
}

/* Print */
@media print {
  .site-header,
  .nav-mobile,
  .menu-toggle {
    display: none !important;
  }
}
