@font-face {
  font-family: "Inter Tight";
  src: url("./assets/fonts/inter-tight-600-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("./assets/fonts/inter-tight-650-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 650;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("./assets/fonts/inter-tight-700-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f7f8fa;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --line-subtle: #edf2f7;
  --accent: #2845d6;
  --accent-hover: #1e36b3;
  --dark-bg: #0f172a;
  --dark-line: #1e293b;
  --dark-ink: #f8fafc;
  --dark-muted: #cbd5e1;

  /* Strict 2-family, 3-size body scale (hero H1 & wordmark exempt) */
  --font-display: "Inter Tight", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --text-h2: clamp(1.75rem, 3vw, 2.25rem);
  --text-body: 1rem;
  --text-sm: 0.875rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1120px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --header-h: 64px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.62;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #dbe3ff;
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 28px);
}

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

button {
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--accent);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 160ms var(--ease-out);
}

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

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

h1, h2, h3, p, ul, ol, dl, dd {
  margin: 0;
}

h1, h2 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h3 {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 650;
  color: var(--ink);
  line-height: 1.4;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  z-index: 200;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* ==========================================================================
   Standard Sticky Header (Single Line Desktop, Clean Separation on Scroll)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-subtle);
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}

body[data-page="index"] .site-header {
  background: rgba(247, 248, 250, 0.88);
  border-bottom-color: transparent;
}

body[data-page="index"] .site-header[data-scrolled="true"] {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-decoration: none;
}

.brand-primary:hover {
  color: var(--ink);
}

.brand-primary img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.brand-parent {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

.brand-parent:hover {
  color: var(--ink);
}

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--surface);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 600;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
}

/* ==========================================================================
   Opening Hero — Centered Monumental Display + Wide Pure-UI Stage
   ========================================================================== */

.hero-band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 7.5vw, 96px) 0 clamp(56px, 7vw, 88px);
}

.hero-copy {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.hero-copy h1 {
  font-size: clamp(2.65rem, 5.6vw, 4.35rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.hero-copy p {
  margin: 20px auto 0;
  max-width: 52ch;
  color: var(--muted);
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 24px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: var(--text-body);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), transform 140ms var(--ease-out);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn-primary:active {
  transform: scale(0.97);
}

.stage-wrap {
  margin-top: clamp(40px, 5vw, 60px);
}

.stage-tabs {
  display: inline-flex;
  padding: 4px;
  background: #eaeff6;
  border-radius: 10px;
  margin-bottom: 18px;
}

.stage-tabs-row {
  display: flex;
  justify-content: center;
}

.stage-tab {
  min-height: 40px;
  padding: 8px 16px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.stage-tab:hover {
  color: var(--ink);
}

.stage-tab[aria-selected="true"] {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.stage-viewport {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.stage-viewport img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Features — Clean Open Grid (No Card Boxes, Abundant Whitespace)
   ========================================================================== */

.section {
  padding: clamp(64px, 8vw, 108px) 0;
}

.section-intro {
  max-width: 58ch;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.section-intro h2 {
  font-size: var(--text-h2);
  font-weight: 700;
}

.section-intro p {
  margin-top: 14px;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 52px) clamp(28px, 4vw, 48px);
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.feature-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 4px;
}

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

/* ==========================================================================
   Security & Zero-Egress Band (Single Dark Architectural Anchor)
   ========================================================================== */

.security-band {
  background: var(--dark-bg);
  color: var(--dark-ink);
  padding: clamp(64px, 8vw, 108px) 0;
}

.security-band h2 {
  color: var(--dark-ink);
  font-size: var(--text-h2);
  font-weight: 700;
}

.security-band .section-intro p {
  color: var(--dark-muted);
}

.spec-list {
  border-top: 1px solid var(--dark-line);
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 0.68fr);
  gap: 10px 40px;
  padding: 20px 0;
  border-bottom: 1px solid var(--dark-line);
  align-items: baseline;
}

.spec-row dt {
  font-weight: 600;
  color: var(--dark-ink);
}

.spec-row dd {
  color: var(--dark-muted);
}

.security-link {
  margin-top: 28px;
  font-size: var(--text-sm);
}

.security-link a {
  color: #93b4ff;
  font-weight: 600;
}

.security-link a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Pricing — Clean Hairline Columns (Native monday.com Billing)
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plan {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.plan:last-child {
  border-right: none;
}

.plan-highlight {
  background: var(--surface);
  box-shadow: inset 0 2px 0 0 var(--accent);
}

.plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.plan-note {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
}

.plan-price {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 2.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.plan-price span {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
}

.plan-annual {
  margin-top: 8px;
  font-size: var(--text-sm);
  color: var(--muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-subtle);
}

.plan-features {
  list-style: none;
  padding: 20px 0 0;
  display: grid;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--muted);
}

.pricing-footnote {
  margin-top: 20px;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ==========================================================================
   Standard Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-legal {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ==========================================================================
   Clean Document Pages (How to Use, Privacy, Terms)
   ========================================================================== */

.doc-wrap {
  width: min(740px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px);
}

.doc-wrap h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
}

.doc-meta {
  margin-top: 10px;
  font-size: var(--text-sm);
  color: var(--muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.doc-wrap h2 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 1.375rem;
  font-weight: 700;
}

.doc-wrap p {
  color: var(--muted);
  max-width: 65ch;
  margin-bottom: 14px;
}

.doc-wrap ul {
  padding-left: 20px;
  color: var(--muted);
  max-width: 65ch;
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.doc-wrap strong {
  color: var(--ink);
  font-weight: 600;
}

.doc-wrap code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.875em;
  background: var(--surface);
  color: var(--ink);
  padding: 0.12em 0.38em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.doc-table-wrap {
  margin: 24px 0 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  text-align: left;
}

.doc-table th,
.doc-table td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line-subtle);
  vertical-align: top;
}

.doc-table tr:last-child td {
  border-bottom: none;
}

.doc-table th {
  font-weight: 650;
  color: var(--ink);
}

.doc-table td {
  color: var(--muted);
}

.step-list {
  list-style: none;
  padding: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.step-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.step-index {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.3;
}

.step-item h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.step-item p:last-child,
.step-item ul:last-child {
  margin-bottom: 0;
}

.guide-support {
  margin-top: 28px;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ==========================================================================
   Responsive Breakpoints (Tablet <= 960px, Mobile <= 720px)
   ========================================================================== */

@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .plan:nth-child(2n) {
    border-right: none;
  }

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

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
  }

  .brand-parent {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line-subtle);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 44px;
    padding: 10px 12px;
  }

  .stage-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .stage-tab {
    padding: 8px 6px;
    font-size: 0.8125rem;
  }

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

  .spec-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

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

  .plan {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 24px 18px;
  }

  .plan:last-child {
    border-bottom: none;
  }

  .step-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

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

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
