/* Celonix landing — public marketing page in the app's white.css design language:
   pure white cards on a light-gray page, restrained blue (#2563eb) accents.
   Self-contained: no webfonts, no JS, no CDN (CSP script-src 'self'). */

:root {
  --page: #eceef1;
  --white: #ffffff;
  --card: #f7f8fa;
  --border: #e8e8ec;
  --border2: #dcdfe4;
  --ink: #1a1a1a;
  --ink2: #6b6b6b;
  --muted: #9a9a9a;
  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, .08);
  --green: #16a34a;
  --green-soft: rgba(22, 163, 74, .1);
  --red: #e5484d;
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, .1);
  --sans: -apple-system, "SF Pro Text", "Segoe UI", Inter, Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .05);
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 760px; }
.band { background: var(--page); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ============ nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; letter-spacing: .06em; font-size: 15px; color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .logo { width: 26px; height: 26px; object-fit: contain; }
.nav-links { display: flex; gap: 20px; flex: 1; }
.nav-links a { color: var(--ink2); font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ============ buttons ============ */
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 9px;
  font-weight: 600; font-size: 14px; line-height: 1.2; border: 1px solid transparent;
  cursor: pointer; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1d4fc4; }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--border2); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-block { display: block; width: 100%; }

/* ============ hero ============ */
.hero { padding: 84px 0 64px; text-align: center; }
.hero-badge {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue);
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.hero h1 {
  font-size: 44px; line-height: 1.14; letter-spacing: -.02em;
  font-weight: 750; max-width: 780px; margin: 0 auto 18px;
}
.hero h1 .hl { color: var(--blue); }
.hero p { color: var(--ink2); font-size: 17px; max-width: 640px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 26px; color: var(--muted); font-size: 13px;
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.hero-meta .g { color: var(--green); font-weight: 600; }

/* ============ stat strip ============ */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 10px; box-shadow: var(--shadow); margin: -34px auto 0; max-width: 980px;
}
.stat { text-align: center; }
.stat .v { font-size: 26px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .v .u { font-size: 15px; color: var(--ink2); font-weight: 600; }
.stat .l { color: var(--ink2); font-size: 13px; margin-top: 2px; }

/* ============ sections ============ */
.section { padding: 72px 0; }
.section-title { font-size: 28px; font-weight: 750; letter-spacing: -.02em; text-align: center; }
.section-sub { color: var(--ink2); text-align: center; max-width: 640px; margin: 10px auto 40px; }

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

/* ============ portal cards ============ */
.portal {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.portal .icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.portal .head { display: flex; align-items: center; gap: 10px; }
.portal h3 { font-size: 17px; font-weight: 700; }
.portal p { color: var(--ink2); font-size: 14px; flex: 1; }
.portal .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.chip-live { background: var(--green-soft); color: var(--green); }
.chip-soon { background: var(--amber-soft); color: var(--amber); }

/* ============ feature cards ============ */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; box-shadow: var(--shadow);
}
.card .icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 12px;
}
.card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--ink2); font-size: 13.5px; }

/* ============ steps ============ */
.step { position: relative; padding-left: 56px; }
.step .n {
  position: absolute; left: 0; top: 2px;
  width: 38px; height: 38px; border-radius: 11px; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 750; font-size: 16px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.step p { color: var(--ink2); font-size: 14px; }

/* ============ pricing ============ */
.plan {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; position: relative;
}
.plan.featured { border: 2px solid var(--blue); }
.plan .tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; border-radius: 999px;
  padding: 3px 12px; font-size: 11px; font-weight: 700; letter-spacing: .05em;
}
.plan .name { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--ink2); }
.plan .price { font-size: 34px; font-weight: 750; letter-spacing: -.02em; margin: 6px 0 16px; }
.plan .price .per { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan li { padding: 6px 0 6px 24px; position: relative; color: var(--ink2); font-size: 14px; }
.plan li::before {
  content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700;
}
.plan li.na { color: var(--muted); }
.plan li.na::before { content: "—"; color: var(--border2); }

/* ============ FAQ ============ */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--white); border: 1px solid var(--border); border-radius: 13px;
  padding: 16px 20px; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; font-weight: 650; font-size: 15px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 19px; font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink2); font-size: 14px; margin-top: 10px; }

/* ============ CTA band ============ */
.cta {
  background: var(--blue); border-radius: 20px; color: #fff;
  padding: 52px 30px; text-align: center; margin: 0 22px;
}
.cta h2 { font-size: 28px; font-weight: 750; letter-spacing: -.02em; margin-bottom: 10px; }
.cta p { color: rgba(255, 255, 255, .85); max-width: 520px; margin: 0 auto 26px; }
.cta .btn-primary { background: #fff; color: var(--blue); }
.cta .btn-primary:hover { background: #f0f4ff; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.cta .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ============ footer ============ */
.footer { border-top: 1px solid var(--border); padding: 26px 0; background: var(--white); }
.footer-inner {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--muted); font-size: 13.5px;
}
.footer a { color: var(--ink2); }
.footer a.quiet { color: var(--muted); }
.footer a.quiet:hover { color: var(--ink2); }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 18px; }

/* ============ responsive ============ */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 20px 10px; }
  .hero h1 { font-size: 36px; }
  .nav-links { display: none; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15.5px; }
  .section { padding: 52px 0; }
  .nav-cta .btn-ghost { display: none; }
  .footer-inner { flex-direction: column; gap: 6px; }
}

/* What's-new strip — public announcements published from the panel */
.news-strip {
  margin: 22px 0 6px;
  padding: 14px 18px;
  border: 1px solid var(--line, #e5e7eb);
  border-left: 3px solid #2563eb;
  border-radius: 12px;
  background: #f8fafc;
  display: grid;
  gap: 10px;
}
.news-strip .news-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #2563eb;
}
.news-strip .news-item {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  font-size: 14px;
  color: #334155;
}
.news-strip .news-item span { color: #64748b; }
.news-strip .news-item a { color: #2563eb; font-weight: 600; text-decoration: none; }
.news-strip .news-item a:hover { text-decoration: underline; }
@media (max-width: 640px) { .news-strip .news-item { font-size: 13px; } }

/* how-it-fits network tile (6th portal cell, old-system pattern) */
.portal.how { border-style: dashed; background: transparent; }
.portal.how h3 { color: #475569; }
.portal.how .icon { opacity: .75; }
.footer-links a { color: #64748b; }
.footer-links a:hover { color: #2563eb; }

/* Accessible navigation on every viewport, including legal and error pages. */
:where(a,button,input,select,summary):focus-visible { outline: 2px solid #2563eb; outline-offset: 4px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 200; padding: 10px 16px; border-radius: 8px; background: white; color: #1d4ed8; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.public-menu { display: none; position: relative; margin-left: auto; }
.public-menu summary { cursor: pointer; min-height: 44px; padding: 11px 12px; border: 1px solid #dce1e8; border-radius: 8px; font-weight: 600; }
.public-menu > div { position: absolute; right: 0; top: calc(100% + 8px); width: min(260px,80vw); max-height: 70dvh; overflow-y: auto; padding: 8px; border: 1px solid #e5e7eb; border-radius: 12px; background: white; box-shadow: 0 12px 32px #0f172a1a; }
.public-menu a { display: block; min-height: 44px; padding: 10px 12px; border-radius: 6px; color: #1f2937; }
.public-menu a:hover { background: #eff6ff; }
@media (max-width: 980px) { .public-menu { display: block; } .nav-inner { gap: 10px; } }
@media (max-width: 480px) { .nav-cta .btn { min-height: 44px; padding: 10px; } .brand { font-size: 16px; } .brand .logo { width: 30px; } .public-menu summary { font-size: 13px; padding: 11px 8px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation: none !important; transition: none !important; } }
@media print { .skip-link,.public-menu { display:none !important; } }
