/* =====================================================================
   Public marketing site
   ===================================================================== */

/* ------------------------------------------------------------- topbar */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 9, 19, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: flex; align-items: center; gap: 26px; height: 70px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand:hover { color: inherit; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: var(--brand-grad); display: grid; place-items: center;
  box-shadow: 0 6px 18px -8px rgba(139, 92, 246, .9);
}
.brand-mark svg { width: 20px; height: 20px; color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.06rem; letter-spacing: -.03em; color: var(--text); }
.brand-name em { font-style: normal; color: var(--brand-soft); }
.brand-tagline { font-size: .64rem; color: var(--text-faint); letter-spacing: .05em;
  text-transform: uppercase; }

.site-nav { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.site-nav a {
  padding: 8px 13px; border-radius: var(--r-sm); font-size: .89rem; font-weight: 500;
  color: var(--text-muted); transition: all var(--t-fast);
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a.active { color: var(--text); }
.site-actions { display: flex; gap: 10px; align-items: center; flex: none; }

.nav-toggle { display: none; }
@media (max-width: 980px) {
  .site-nav, .site-actions .btn-ghost { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 40px; height: 40px;
    border-radius: var(--r-sm); background: var(--surface-2);
    border: 1px solid var(--line-strong); color: var(--text); cursor: pointer; margin-left: auto;
  }
  .site-header-inner { gap: 12px; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav {
    border-top: 1px solid var(--line); padding: 14px 0 20px;
    display: flex; flex-direction: column; gap: 2px;
  }
  .mobile-nav a {
    padding: 11px 14px; border-radius: var(--r-sm); color: var(--text-muted); font-weight: 500;
  }
  .mobile-nav a:hover { background: var(--surface-2); color: var(--text); }
  .mobile-nav .btn { margin-top: 10px; }
}

/* ------------------------------------------------------------ announce */
.announce {
  background: var(--brand-tint); border-bottom: 1px solid var(--line-brand);
  padding: 9px 0; font-size: .85rem; text-align: center; color: #DDD6FE;
}
.announce-warn { background: var(--warn-tint); border-color: rgba(251,191,36,.3); color: #FDE68A; }
.announce-success { background: var(--ok-tint); border-color: rgba(52,211,153,.3); color: #A7F3D0; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 74px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -20% auto -20%; height: 660px; z-index: -1;
  background:
    radial-gradient(58% 52% at 22% 12%, rgba(91, 124, 250, .3), transparent 68%),
    radial-gradient(48% 46% at 76% 4%, rgba(168, 85, 247, .26), transparent 66%);
  filter: blur(14px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.021) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.021) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 26%, #000 40%, transparent 100%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 48px; align-items: center;
}
@media (max-width: 1020px) { .hero-grid { grid-template-columns: minmax(0,1fr); gap: 40px; } }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-soft); margin-bottom: 18px;
}
.kicker::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--brand-grad-sm);
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .line-2 { display: block; }
.hero-sub {
  font-size: clamp(1rem, 1.35vw, 1.14rem); color: var(--text-muted);
  max-width: 560px; margin-bottom: 28px; line-height: 1.68;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-badges { display: flex; gap: 10px 22px; flex-wrap: wrap; }
.hero-badge {
  display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-muted);
}
.hero-badge-mark {
  width: 19px; height: 19px; border-radius: 50%; flex: none;
  background: var(--brand-tint-2); color: var(--brand-soft);
  display: grid; place-items: center;
}
.hero-badge-mark svg { width: 11px; height: 11px; stroke-width: 3; }

/* Hand-written style side notes, echoing the reference concept */
.hero-note {
  font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive;
  color: var(--brand-soft); font-size: .96rem; line-height: 1.5; opacity: .82;
}

/* ---------------------------------------------------- product preview */
.preview {
  border-radius: var(--r-xl); border: 1px solid var(--line-strong);
  background: linear-gradient(168deg, #16152C 0%, #100F20 100%);
  box-shadow: 0 42px 90px -40px rgba(0,0,0,.9), var(--glow);
  overflow: hidden;
}
.preview-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 15px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.26);
}
.preview-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.preview-title {
  margin-left: 8px; font-size: .78rem; color: var(--text-faint); font-weight: 600;
}
.preview-body { padding: 18px; display: grid; grid-template-columns: 152px minmax(0,1fr); gap: 16px; }
@media (max-width: 620px) { .preview-body { grid-template-columns: minmax(0,1fr); } }
.preview-side { display: flex; flex-direction: column; gap: 3px; }
@media (max-width: 620px) { .preview-side { flex-direction: row; overflow-x: auto; } }
.preview-side-item {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px;
  border-radius: var(--r-sm); font-size: .8rem; color: var(--text-faint); white-space: nowrap;
}
.preview-side-item svg { width: 15px; height: 15px; }
.preview-side-item.active { background: var(--brand-tint); color: var(--brand-soft); }
.preview-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px;
  margin-bottom: 14px; }
@media (max-width: 780px) { .preview-stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.preview-stat {
  background: rgba(255,255,255,.032); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 11px 12px;
}
.preview-stat-value { font-size: 1.32rem; font-weight: 700; letter-spacing: -.03em;
  color: var(--brand-soft); line-height: 1.1; }
.preview-stat-label { font-size: .67rem; color: var(--text-faint); line-height: 1.3; }
.preview-list { display: flex; flex-direction: column; gap: 7px; }
.preview-row {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: var(--r-md);
}
.preview-row-text { min-width: 0; flex: 1; }
.preview-row-title { font-size: .82rem; font-weight: 600; }
.preview-row-sub { font-size: .7rem; color: var(--text-faint); }
.preview-pill {
  font-size: .62rem; font-weight: 700; padding: 2px 8px; border-radius: var(--r-full);
  background: var(--ok-tint); color: #6EE7B7; flex: none;
}
.preview-switch {
  width: 30px; height: 17px; border-radius: var(--r-full); background: var(--ok);
  position: relative; flex: none;
}
.preview-switch::after {
  content: ""; position: absolute; top: 2px; right: 2px; width: 13px; height: 13px;
  border-radius: 50%; background: #fff;
}

/* --------------------------------------------------------- capabilities */
.cap-bar {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden; margin-top: 44px;
}
@media (max-width: 1020px) { .cap-bar { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 620px) { .cap-bar { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.cap {
  padding: 24px 18px; text-align: center; border-right: 1px solid var(--line);
  transition: background var(--t-fast);
}
.cap:last-child { border-right: 0; }
.cap:hover { background: var(--surface-2); }
.cap svg { width: 25px; height: 25px; margin: 0 auto 11px; color: var(--brand-soft); }
.cap-title { font-size: .89rem; font-weight: 700; margin-bottom: 3px; }
.cap-sub { font-size: .76rem; color: var(--text-faint); line-height: 1.45; }

/* -------------------------------------------------------------- section */
.section { padding: 82px 0; }
.section-tight { padding: 54px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.03rem; margin: 0; line-height: 1.7; }
.section-head h2 { white-space: pre-line; }

/* ---------------------------------------------------------- flow visual */
.flow { display: flex; flex-direction: column; gap: 0; }
.flow-node {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 17px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line-strong);
  position: relative; transition: all var(--t);
}
.flow-node:hover { border-color: var(--line-brand); transform: translateX(3px); }
.flow-node-when   { border-left: 3px solid var(--brand); }
.flow-node-do     { border-left: 3px solid var(--brand-blue); }
.flow-node-wait   { border-left: 3px solid var(--warn); }
.flow-node-if     { border-left: 3px solid var(--info); }
.flow-node-done   { border-left: 3px solid var(--ok); }
.flow-label {
  font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); min-width: 42px; flex: none;
}
.flow-text { min-width: 0; }
.flow-title { font-size: .93rem; font-weight: 600; }
.flow-sub { font-size: .78rem; color: var(--text-faint); }
.flow-arrow {
  width: 2px; height: 20px; margin-left: 36px;
  background: linear-gradient(180deg, var(--line-brand), transparent);
}
.flow-arrow::after {
  content: ""; display: block; width: 7px; height: 7px; margin-left: -3px;
  border-right: 2px solid var(--line-brand); border-bottom: 2px solid var(--line-brand);
  transform: rotate(45deg) translate(6px, -1px);
}

/* --------------------------------------------------------------- steps */
.steps-list { display: flex; flex-direction: column; gap: 26px; }
.step-item { display: flex; gap: 18px; }
.step-num {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--brand-tint); border: 1px solid var(--line-brand);
  color: var(--brand-soft); display: grid; place-items: center;
  font-weight: 800; font-size: 1.02rem;
}
.step-item h3 { margin: 6px 0 6px; font-size: 1.06rem; }
.step-item p { color: var(--text-muted); font-size: .93rem; margin: 0; }

/* ------------------------------------------------------------- pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 18px; align-items: stretch;
}
.plan {
  display: flex; flex-direction: column; padding: 26px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  position: relative; transition: all var(--t);
}
.plan:hover { border-color: var(--line-brand); transform: translateY(-3px); }
.plan-featured {
  border-color: var(--brand); box-shadow: var(--glow);
  background: linear-gradient(170deg, rgba(139,92,246,.09), var(--surface) 58%);
}
.plan-flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--brand-grad-sm); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 14px; border-radius: var(--r-full); white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(139,92,246,.9);
}
.plan-name { font-size: 1.16rem; font-weight: 800; margin-bottom: 3px; }
.plan-tagline { font-size: .84rem; color: var(--text-muted); min-height: 2.4em; margin-bottom: 16px; }
.plan-price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 3px; }
.plan-amount { font-size: 2.35rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.plan-period { font-size: .85rem; color: var(--text-faint); }
.plan-yearly { font-size: .78rem; color: var(--ok); min-height: 1.3em; margin-bottom: 18px; }
.plan-cta { margin-bottom: 20px; }
.plan-limits {
  display: flex; flex-direction: column; gap: 7px; padding: 14px 0;
  border-block: 1px solid var(--line); margin-bottom: 16px;
}
.plan-limit { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; }
.plan-limit-label { color: var(--text-muted); }
.plan-limit-value { font-weight: 600; }
.plan-features { list-style: none; padding: 0; margin: 0; display: flex;
  flex-direction: column; gap: 8px; }
.plan-features li { display: flex; gap: 9px; align-items: flex-start; font-size: .855rem; }
.plan-features svg { width: 15px; height: 15px; flex: none; margin-top: 3px; }
.plan-features .yes { color: var(--ok); }
.plan-features .no  { color: var(--text-faint); }
.plan-features .no span { color: var(--text-faint); }
.plan-note { font-size: .78rem; color: var(--text-faint); margin-top: 16px; }

.billing-toggle {
  display: inline-flex; padding: 4px; border-radius: var(--r-full);
  background: var(--surface-2); border: 1px solid var(--line-strong); margin-bottom: 34px;
}
.billing-toggle button {
  padding: 8px 20px; border-radius: var(--r-full); border: 0; background: none;
  color: var(--text-muted); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer;
  transition: all var(--t-fast);
}
.billing-toggle button.active { background: var(--brand); color: #fff; }

/* ----------------------------------------------------------- use cases */
.usecase {
  padding: 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); transition: all var(--t); height: 100%;
}
.usecase:hover { border-color: var(--line-brand); transform: translateY(-2px); }
.usecase h3 { font-size: 1.02rem; margin-bottom: 8px; }
.usecase p { color: var(--text-muted); font-size: .88rem; margin-bottom: 14px; }
.usecase-flow { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.usecase-step {
  font-size: .73rem; padding: 3px 9px; border-radius: var(--r-xs);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-muted);
}
.usecase-arrow { color: var(--text-faint); font-size: .7rem; }

/* ------------------------------------------------------------ industry */
.industry {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: all var(--t-fast);
}
.industry:hover { border-color: var(--line-brand); background: var(--surface-2); }
.industry-name { font-weight: 600; font-size: .9rem; }
.industry-sub { font-size: .76rem; color: var(--text-faint); }

/* ----------------------------------------------------------- templates */
.tpl-card {
  display: flex; flex-direction: column; gap: 12px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  height: 100%; transition: all var(--t);
}
.tpl-card:hover { border-color: var(--line-brand); transform: translateY(-2px); }
.tpl-head { display: flex; gap: 12px; align-items: flex-start; }
.tpl-name { font-size: .97rem; font-weight: 700; margin: 0 0 3px; }
.tpl-summary { font-size: .85rem; color: var(--text-muted); margin: 0; flex: 1; }
.tpl-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  font-size: .74rem; color: var(--text-faint); margin-top: auto; padding-top: 6px; }

/* ---------------------------------------------------------------- faq */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  padding: 18px 40px 18px 0; cursor: pointer; font-weight: 600; font-size: 1rem;
  list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--brand-soft); font-weight: 400; line-height: 1;
  transition: transform var(--t);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--brand-soft); }
.faq-answer { padding: 0 40px 20px 0; color: var(--text-muted); font-size: .93rem; line-height: 1.7; }

/* --------------------------------------------------------------- cta */
.cta-band {
  padding: 54px 40px; border-radius: var(--r-xl); text-align: center;
  background: linear-gradient(140deg, rgba(91,124,250,.16), rgba(168,85,247,.16));
  border: 1px solid var(--line-brand); position: relative; overflow: hidden;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--text-muted); max-width: 520px; margin: 0 auto 26px; }
@media (max-width: 620px) { .cta-band { padding: 38px 22px; } }

/* -------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line); background: var(--bg-alt);
  padding: 54px 0 28px; margin-top: 60px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; margin-bottom: 38px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-faint); margin-bottom: 14px; font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex;
  flex-direction: column; gap: 9px; }
.footer-col a { color: var(--text-muted); font-size: .88rem; }
.footer-col a:hover { color: var(--text); }
.footer-about { color: var(--text-muted); font-size: .88rem; max-width: 320px;
  margin: 14px 0 0; line-height: 1.7; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--text-faint); font-size: .82rem;
}
.footer-swiss { display: inline-flex; align-items: center; gap: 8px; }
.swiss-cross {
  width: 17px; height: 17px; border-radius: 3px; background: #DA291C;
  display: grid; place-items: center; flex: none;
}
.swiss-cross::after {
  content: ""; width: 9px; height: 9px;
  background:
    linear-gradient(#fff, #fff) center / 100% 3px no-repeat,
    linear-gradient(#fff, #fff) center / 3px 100% no-repeat;
}

/* ------------------------------------------------------------ auth pages */
.auth-shell {
  min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
}
@media (max-width: 940px) { .auth-shell { grid-template-columns: minmax(0,1fr); } }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 44px 22px; }
.auth-card { width: 100%; max-width: 448px; }
.auth-wide { max-width: 660px; }
.auth-card h1 { font-size: 1.72rem; margin-bottom: 8px; }
.auth-card > p.text-muted { margin-bottom: 26px; }
.auth-aside {
  background: linear-gradient(165deg, #171531 0%, #0D0C1B 100%);
  border-left: 1px solid var(--line); padding: 48px 40px;
  display: flex; flex-direction: column; justify-content: center; gap: 26px;
}
@media (max-width: 940px) { .auth-aside { display: none; } }
.auth-point { display: flex; gap: 13px; align-items: flex-start; }
.auth-point h4 { margin: 0 0 3px; font-size: .95rem; }
.auth-point p { margin: 0; color: var(--text-muted); font-size: .85rem; }
.auth-foot { text-align: center; margin-top: 22px; font-size: .88rem; color: var(--text-muted); }

.pw-meter { display: flex; gap: 4px; margin-top: 7px; }
.pw-seg { height: 4px; flex: 1; border-radius: 2px; background: var(--surface-3);
  transition: background var(--t-fast); }
.pw-seg.on-1 { background: #EF4444; } .pw-seg.on-2 { background: #F59E0B; }
.pw-seg.on-3 { background: #EAB308; } .pw-seg.on-4 { background: var(--ok); }
.pw-label { font-size: .76rem; color: var(--text-faint); margin-top: 5px; }

/* ---------------------------------------------------------- legal pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 38px; }
.prose h3 { font-size: 1.08rem; margin-top: 26px; }
.prose p, .prose li { color: var(--text-muted); line-height: 1.78; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 18px; }
.prose li { margin-bottom: 7px; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: .9rem; }
.prose th, .prose td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-2); }
.placeholder-note {
  background: var(--warn-tint); border: 1px dashed rgba(251,191,36,.42);
  border-radius: var(--r-md); padding: 14px 16px; color: #FDE68A; font-size: .88rem;
  margin-bottom: 22px;
}

/* ------------------------------------------------------- public form */
.public-form-shell { min-height: 100vh; display: flex; flex-direction: column; }
.public-form-main { flex: 1; display: flex; align-items: flex-start;
  justify-content: center; padding: 50px 20px; }
.public-form-card { width: 100%; max-width: 640px; }
.form-brandline {
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
  color: var(--text-faint); font-size: .82rem;
}
