﻿@import url("./responsive-base.css");
:root {
  color-scheme: dark light;
  --bg: #12161d;
  --bg-2: #171b22;
  --surface: rgba(255, 255, 255, 0.065);
  --surface-strong: rgba(255, 255, 255, 0.11);
  --border: rgba(255, 255, 255, 0.095);
  --text: #f4f7fb;
  --muted: #a9b4c3;
  --accent: #527e69;
  --accent-bright: #739f8a;
  --shadow: 0 28px 88px rgba(0, 0, 0, 0.34);
  --radius: 26px;
  --radius-sm: 18px;
  --wrap: 1120px;
  --topbar-bg: rgba(18, 22, 29, 0.74);
  --secondary-button-bg: rgba(255,255,255,0.045);
  --footer-border: rgba(255,255,255,0.06);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #eef4f1;
    --bg-2: #f7faf8;
    --surface: rgba(255,255,255,0.9);
    --surface-strong: rgba(255,255,255,0.98);
    --border: rgba(24,34,43,0.085);
    --text: #17212a;
    --muted: #5e6c79;
    --accent: #628c78;
    --accent-bright: #85ae9b;
    --shadow: 0 22px 60px rgba(25,37,46,0.10);
    --topbar-bg: rgba(247,250,248,0.82);
    --secondary-button-bg: rgba(24,34,43,0.035);
    --footer-border: rgba(24,34,43,0.08);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 10% 8%, rgba(82,126,105,0.18), transparent 0 24%),
    radial-gradient(circle at 86% 18%, rgba(115,159,138,0.13), transparent 0 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.site-shell { min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--footer-border);
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
}
.topbar-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-lockup { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 0 22px rgba(82,126,105,0.28));
}
.brand-name { display: block; font-weight: 760; letter-spacing: 0.01em; }
.brand-name span { color: var(--accent-bright); }
.brand-subtitle { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 0.95rem; }
.nav a:hover { color: var(--text); }

.hero { position: relative; overflow: hidden; padding: 92px 0 58px; }
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
}
.hero::before { width: 360px; height: 360px; top: -150px; left: -120px; background: radial-gradient(circle, rgba(82,126,105,0.16), transparent 72%); }
.hero::after { width: 340px; height: 340px; right: -130px; bottom: 30px; background: radial-gradient(circle, rgba(115,159,138,0.10), transparent 72%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, 0.95fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; margin-bottom: 16px; color: var(--accent-bright); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 780; }
.hero h1 { margin: 0; max-width: 10ch; font-size: clamp(3.25rem, 5.7vw, 5.75rem); line-height: 0.92; letter-spacing: -0.06em; }
.hero h1 span, .accent { color: var(--accent-bright); }
.hero-text { max-width: 36rem; margin-top: 22px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { min-height: 50px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 760; font-size: 0.95rem; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #10231d; background: linear-gradient(180deg, var(--accent-bright), var(--accent)); box-shadow: 0 18px 36px rgba(82,126,105,0.26); }
.btn-secondary { border: 1px solid var(--border); background: var(--secondary-button-bg); color: var(--text); }
.btn-secondary:hover { border-color: rgba(115,159,138,0.42); }

.product-stage { position: relative; width: min(100%, 530px); margin: 0 auto; }
.product-shell, .card, .feature-band, .split-panel, .content-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.086), rgba(255,255,255,0.036));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.product-shell { overflow: hidden; transform: perspective(1100px) rotateY(-6deg) rotateX(1deg); }
.product-shell::before { content: ""; position: absolute; width: 280px; height: 280px; top: -130px; right: -120px; background: radial-gradient(circle, rgba(115,159,138,0.22), transparent 72%); }
.shell-topbar { display: flex; gap: 8px; padding: 16px 18px 0; }
.shell-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.24); }
.shell-body { position: relative; padding: 18px; }
.chip, .shell-chip { display: inline-flex; min-height: 34px; align-items: center; padding: 0 12px; border-radius: 999px; background: rgba(82,126,105,0.16); border: 1px solid rgba(115,159,138,0.28); color: var(--accent-bright); font-size: 0.82rem; font-weight: 760; letter-spacing: 0.04em; }
.workflow-card { margin-top: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(255,255,255,0.048); padding: 18px; }
.workflow-title { font-weight: 780; letter-spacing: -0.01em; }
.line-stack { display: grid; gap: 8px; margin-top: 14px; }
.line-stack span { display: block; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.13); }
.line-stack span:nth-child(1) { width: 88%; }
.line-stack span:nth-child(2) { width: 74%; }
.line-stack span:nth-child(3) { width: 62%; }
.pill-row { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.pill-row span { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--border); background: rgba(255,255,255,0.052); border-radius: 999px; font-size: 0.88rem; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.mini-card { padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(255,255,255,0.052); }
.mini-card-accent { background: linear-gradient(180deg, rgba(82,126,105,0.18), rgba(255,255,255,0.052)); }
.mini-title { font-weight: 760; font-size: 0.94rem; }
.float-note { position: absolute; max-width: 190px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(255,255,255,0.075); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.float-note p { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }
.note-left { left: -8px; bottom: 44px; }
.note-right { right: 2px; top: 28px; }

.section { padding: 46px 0; }
.section-tight { padding-top: 18px; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section h2, .feature-band h2, .split-panel h2, .content-panel h1, .content-panel h2 { margin: 0 0 10px; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.08; letter-spacing: -0.03em; }
.section-head p, .card p, .feature-band p, .split-panel p, .content-panel p, .content-panel li { color: var(--muted); }
.card-grid { display: grid; gap: 18px; }
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 28px; position: relative; overflow: hidden; }
.card::after { content: ""; position: absolute; width: 110px; height: 110px; right: -30px; bottom: -30px; border-radius: 999px; background: radial-gradient(circle, rgba(115,159,138,0.10), transparent 70%); }
.icon-dot { width: 12px; height: 12px; border-radius: 999px; background: linear-gradient(180deg, var(--accent-bright), var(--accent)); box-shadow: 0 0 18px rgba(82,126,105,0.48); margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; font-size: 1.08rem; letter-spacing: -0.01em; }
.feature-band { padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.feature-copy { max-width: 640px; }
.feature-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.split-panel { padding: 30px; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 26px; align-items: center; }
.content-panel { margin: 52px auto; padding: 34px; max-width: 900px; }
.content-panel h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.content-panel h2 { margin-top: 28px; }
.content-panel ul { padding-left: 22px; }
.content-panel li + li { margin-top: 8px; }
.footer { padding: 58px 0 24px; }
.footer-inner { border-top: 1px solid var(--footer-border); padding-top: 20px; display: flex; justify-content: space-between; gap: 28px; }
.footer-brand { font-weight: 780; margin-bottom: 8px; }
.footer-copy { max-width: 390px; color: var(--muted); }
.footer-links { display: grid; gap: 8px; text-align: right; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--footer-border); color: var(--muted); display: flex; justify-content: space-between; gap: 16px; font-size: 0.92rem; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0,1fr) minmax(320px,0.9fr); gap: 38px; }
  .hero h1 { font-size: clamp(2.8rem, 5vw, 4.9rem); }
  .product-stage { width: min(100%, 480px); }
  .hero-visual { min-height: 420px; }
}
@media (max-width: 980px) {
  .hero { padding-top: 76px; }
  .hero-grid, .three-up, .feature-band, .split-panel, .footer-inner, .footer-bottom { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
  .hero h1 { max-width: 9.4ch; font-size: clamp(2.5rem, 6vw, 3.9rem); }
  .hero-visual { min-height: auto; padding-top: 8px; }
  .product-shell { transform: none; }
  .float-note { position: relative; max-width: 100%; margin-top: 14px; left: auto; right: auto; top: auto; bottom: auto; }
  .feature-actions, .footer-links { justify-content: flex-start; text-align: left; }
}
@media (max-width: 720px) {
  .wrap { width: min(var(--wrap), calc(100% - 28px)); }
  .topbar-inner { flex-direction: column; align-items: flex-start; padding: 14px 0; }
  .nav { gap: 14px; }
  .hero { padding-top: 58px; padding-bottom: 34px; }
  .hero h1 { max-width: 8.4ch; font-size: clamp(2.35rem, 12vw, 3.75rem); line-height: 0.96; }
  .hero-text { font-size: 1rem; }
  .hero-actions, .feature-actions { width: 100%; }
  .btn { width: 100%; }
  .mini-grid { grid-template-columns: 1fr; }
  .shell-body { padding: 14px; }
  .brand-logo { width: 52px; height: 52px; }
}


/* Policy Pack */
.policy-page {
  position: relative;
}

.policy-page .policy-meta {
  margin: -2px 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.policy-page a {
  color: var(--accent-bright);
  font-weight: 700;
}

.policy-page h2 {
  margin-top: 30px;
}

.policy-page ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.policy-page li + li {
  margin-top: 8px;
}

/* Paragraph Policy Pages
   Legal-document paragraph style. Boring, dense, and system dark/light compatible.
*/
body.plain-policy-page {
  background: var(--bg) !important;
  color: var(--text) !important;
}

body.plain-policy-page .topbar {
  position: static !important;
  background: var(--bg) !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
}

body.plain-policy-page .brand-logo {
  filter: none !important;
  box-shadow: none !important;
}

body.plain-policy-page .content-panel.policy-page {
  max-width: 920px !important;
  margin: 24px auto !important;
  padding: 18px 22px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.plain-policy-page .content-panel.policy-page::before,
body.plain-policy-page .content-panel.policy-page::after,
body.plain-policy-page .eyebrow {
  display: none !important;
}

body.plain-policy-page .policy-page h1 {
  margin: 0 0 8px !important;
  color: var(--text) !important;
  font-size: 1.55rem !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  font-weight: 700 !important;
}

body.plain-policy-page .policy-page h2 {
  margin: 20px 0 6px !important;
  padding: 0 !important;
  border: none !important;
  color: var(--text) !important;
  font-size: 1rem !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  font-weight: 700 !important;
}

body.plain-policy-page .policy-page p,
body.plain-policy-page .policy-page .policy-meta {
  margin: 0 0 10px !important;
  color: var(--muted) !important;
  font-size: 0.9rem !important;
  line-height: 1.45 !important;
  text-indent: 1.25rem !important;
}

body.plain-policy-page .policy-page .policy-meta,
body.plain-policy-page .policy-page h1 + p,
body.plain-policy-page .policy-page h1 + .policy-meta + p {
  text-indent: 0 !important;
}

body.plain-policy-page .policy-page ul {
  list-style: none !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}

body.plain-policy-page .policy-page li {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--muted) !important;
  font-size: 0.9rem !important;
  line-height: 1.45 !important;
}

body.plain-policy-page .policy-page li::before,
body.plain-policy-page .policy-page li::marker {
  content: "" !important;
  display: none !important;
}

body.plain-policy-page .footer {
  padding-top: 16px !important;
  background: transparent !important;
}

body.plain-policy-page .footer-inner,
body.plain-policy-page .footer-bottom {
  border-color: transparent !important;
}

@media (max-width: 760px) {
  body.plain-policy-page .content-panel.policy-page {
    margin: 16px auto !important;
    padding: 16px !important;
  }
}

/* Footer Disclosure */
.footer-disclosure {
  margin-left: auto;
  color: var(--muted);
  text-align: right;
}

.footer-disclosure summary {
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-weight: 700;
}

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

.footer-disclosure summary::after {
  content: " ▾";
  color: var(--accent-bright);
}

.footer-disclosure[open] summary::after {
  content: " ▴";
}

.footer-disclosure .footer-links {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .footer-disclosure {
    margin-left: 0;
    text-align: left;
  }
}

/* Slim Footer Disclosure Links */
.footer-disclosure .footer-links {
  margin-top: 8px !important;
  gap: 3px !important;
}

.footer-disclosure .footer-links a {
  font-size: 0.86rem !important;
  line-height: 1.25 !important;
  color: var(--muted) !important;
  opacity: 0.9;
}

.footer-disclosure .footer-links a:hover {
  color: var(--text) !important;
  opacity: 1;
}

.footer-disclosure summary {
  font-size: 0.92rem !important;
  line-height: 1.25 !important;
}

/* Minimal Footer Resources Link */
.footer-links-minimal {
  display: block !important;
  text-align: right;
}

.footer-links-minimal a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links-minimal a:hover {
  color: var(--text);
}

.resources-page a {
  color: var(--text) !important;
  font-weight: 700;
}

@media (max-width: 980px) {
  .footer-links-minimal {
    text-align: left;
  }
}

/* Status Countdown */
.status-countdown {
  font-weight: 700 !important;
  color: var(--text) !important;
  text-indent: 0 !important;
}

/* Interactive Product Preview */
.product-preview-section {
  padding-top: 18px;
}

.preview-panel {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-gradient-top), var(--card-gradient-bottom));
  box-shadow: var(--shadow);
}

.preview-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.preview-tab {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--button-secondary-bg);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.preview-tab.is-active {
  color: #10231d;
  border-color: transparent;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
}

.preview-content {
  position: relative;
}

.preview-card {
  display: none;
  padding: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.045);
}

.preview-card.is-active {
  display: block;
}

.preview-card h3 {
  margin: 14px 0 8px;
  font-size: 1.35rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.preview-card p {
  max-width: 720px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .preview-panel {
    padding: 18px;
  }

  .preview-tab {
    flex: 1 1 100%;
  }

  .preview-card {
    padding: 18px;
  }
}

/* Commonwealth Product Hero Headline Fix */
.hero:not(.hero-home) .hero-copy h1 {
  max-width: 680px !important;
  width: 100% !important;
  font-size: clamp(3rem, 5vw, 5rem) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.055em !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

.hero:not(.hero-home) .hero-copy h1 span {
  white-space: nowrap !important;
}

@media (max-width: 980px) {
  .hero:not(.hero-home) .hero-copy h1 {
    max-width: 100% !important;
    font-size: clamp(2.65rem, 8vw, 4.1rem) !important;
  }
}

@media (max-width: 720px) {
  .hero:not(.hero-home) .hero-copy h1 {
    max-width: 100% !important;
    font-size: clamp(2.25rem, 11vw, 3.45rem) !important;
    letter-spacing: -0.045em !important;
  }

  .hero:not(.hero-home) .hero-copy h1 span {
    white-space: normal !important;
  }
}

/* Product Page Headline No Mid-Word Break */
.hero:not(.hero-home) .hero-copy h1 {
  max-width: 720px !important;
  width: 100% !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

.hero:not(.hero-home) .hero-copy h1 span {
  white-space: nowrap !important;
}

@media (max-width: 720px) {
  .hero:not(.hero-home) .hero-copy h1 span {
    white-space: normal !important;
  }
}

/* Homepage Hero Design Polish */
.hero-home {
  padding-top: 108px !important;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 26%, rgba(115,159,138,0.12), transparent 0 30%),
    radial-gradient(circle at 76% 34%, rgba(82,126,105,0.10), transparent 0 28%);
}

.hero-home .hero-grid {
  align-items: center;
}

.hero-home .hero-copy {
  transform: translateY(-6px);
}

.hero-home .hero-text {
  max-width: 35rem;
}

.hero-home .product-shell {
  box-shadow:
    0 32px 90px rgba(0,0,0,0.38),
    0 0 0 1px rgba(255,255,255,0.035) inset;
}

.hero-home .product-stage::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -22px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.30), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.hero-home .shell-chip,
.hero-home .hero-note-label {
  letter-spacing: 0.055em;
}

@media (max-width: 980px) {
  .hero-home {
    padding-top: 78px !important;
  }

  .hero-home .hero-copy {
    transform: none;
  }

  .hero-home .product-stage::after {
    display: none;
  }
}
