/* Groupbox marketing site — shared styles */
:root {
  --ink: #0e1220;
  --ink-2: #4a5068;
  --ink-3: #7b8199;
  --paper: #fbfbfd;
  --card: #ffffff;
  --line: #e6e8f0;
  --primary: #1670ec;
  --primary-d: #0f56bd;
  --primary-soft: #e8f1fd;
  --accent: #6b3fdb;
  --cyan: #2bc0f8;
  --ok: #12a46b;
  --dark: #0b0e1a;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(14,18,32,.06), 0 12px 32px -12px rgba(14,18,32,.18);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  line-height: 1.65; font-size: 1.05rem; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Type */
h1, h2, h3 { line-height: 1.08; letter-spacing: -.03em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
p { margin: 0 0 1em; color: var(--ink-2); }
.eyebrow { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: var(--primary); margin-bottom: 1rem; display: block; }
.grad { background: linear-gradient(100deg, var(--cyan), var(--primary) 50%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.2rem; max-width: 56ch; }
.center { text-align: center; }
.center .lead, .center p.lead { margin-inline: auto; }

/* Buttons */
.btn {
  white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 .95rem var(--font); padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .2s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -8px rgba(22,112,236,.6); }
.btn-primary:hover { transform: translateY(-2px); background: var(--primary-d); }
.btn-ghost { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,251,253,.82); backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; }
.logo img { height: 42px; width: auto; }
.links { display: flex; gap: 2rem; align-items: center; }
.links a { font-size: .95rem; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); }
.nav-cta { display: flex; gap: .75rem; align-items: center; }
.nav-cta .login { font-size: .95rem; font-weight: 500; color: var(--ink-2); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 26px; height: 26px; }

/* Hero */
.hero { position: relative; padding: 88px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 90%; z-index: -1;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(22,112,236,.18), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(107,63,219,.18), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(0,24px,0) scale(1.06); } }
.hero-copy { max-width: 880px; margin-inline: auto; text-align: center; }
.hero .lead { margin: 1.25rem auto 2rem; }
.hero-actions { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; }
.fine { font-size: .85rem; color: var(--ink-3); margin-top: 1rem; }

/* Product mock */
.mock { margin: 64px auto 0; max-width: 1080px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(14,18,32,.35); overflow: hidden; }
.mock-bar { display: flex; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #f6f7fb; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d9dce8; }
.mock-body { display: grid; grid-template-columns: 210px 340px 1fr; min-height: 440px; text-align: left; }
.m-side { border-right: 1px solid var(--line); padding: 18px 14px; background: #fafbff; font-size: .85rem; }
.m-side b { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin: 14px 8px 6px; font-weight: 600; }
.m-side div { padding: 7px 10px; border-radius: 8px; color: var(--ink-2); display: flex; justify-content: space-between; }
.m-side div.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.m-side em { font-style: normal; font-size: .72rem; background: var(--ink); color: #fff; border-radius: 99px; padding: 0 7px; line-height: 1.6; }
.m-list { border-right: 1px solid var(--line); }
.m-item { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.m-item.on { background: var(--primary-soft); }
.m-item strong { display: block; font-weight: 600; color: var(--ink); }
.m-item span { color: var(--ink-3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-item small { display: inline-block; margin-top: 4px; font-size: .68rem; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: #fff0ec; color: #d2512f; }
.m-item small.g { background: #e5f7ef; color: var(--ok); }
.m-thread { padding: 22px 26px; font-size: .9rem; }
.m-thread h4 { margin: 0 0 14px; font-size: 1.05rem; letter-spacing: -.01em; }
.bubble { background: #f3f4fa; border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; color: var(--ink-2); max-width: 90%; }
.bubble.me { background: var(--primary); color: #fff; margin-left: auto; }
.bubble.note { background: #fff7e0; color: #8a6400; border: 1px dashed #f0cf72; font-size: .82rem; }
.typing { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--ink-3); margin-top: 6px; }
.typing i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; font: 600 .65rem var(--font); font-style: normal; }

/* Sections */
section { padding: 104px 0; }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; }
.tint { background: #f3f4fb; }
.dark { background: var(--dark); color: #fff; }
.dark p { color: #aab0c8; }
.dark .eyebrow { color: #9d98ff; }

/* Logos strip */
.strip { padding: 40px 0 0; text-align: center; }
.strip p { font-size: .85rem; color: var(--ink-3); margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.chip { font-size: .85rem; font-weight: 500; padding: .35rem 1rem; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink-2); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { margin: 0; font-size: .98rem; }
.card .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 20px; }
.card .ico svg { width: 22px; height: 22px; }
.s6 { grid-column: span 6; } .s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; }
.card.big { background: linear-gradient(160deg, #1b1f3a, #0b0e1a); color: #fff; border: 0; }
.card.big p { color: #aab0c8; }
.card.big .ico { background: rgba(255,255,255,.1); color: #fff; }
.bars { display: flex; gap: 8px; align-items: end; height: 110px; margin-top: 28px; }
.bars i { flex: 1; background: linear-gradient(180deg, var(--accent), var(--primary)); border-radius: 6px 6px 0 0; height: var(--h); transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.step { position: relative; padding-top: 64px; }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; top: 0; left: 0; font-size: 3rem; font-weight: 800; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px #5c62a0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat b { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { color: #aab0c8; font-size: .92rem; }

/* Compare */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
th, td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-weight: 600; background: #f6f7fb; position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td.y { color: var(--ok); font-weight: 600; }
td.n { color: var(--ink-3); }

/* Pricing */
.toggle { display: inline-flex; background: #e9ebf5; padding: 5px; border-radius: 99px; margin-bottom: 48px; position: relative; }
.toggle button { position: relative; z-index: 1; border: 0; background: none; font: 600 .9rem var(--font); padding: .55rem 1.4rem; border-radius: 99px; cursor: pointer; color: var(--ink-2); transition: color .2s; }
.toggle button[aria-pressed="true"] { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(14,18,32,.12); }
.toggle .save { font-size: .7rem; background: var(--accent); color: #fff; border-radius: 99px; padding: 1px 8px; margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; text-align: left; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 36px 32px; display: flex; flex-direction: column; position: relative; }
.plan.pop { border: 0; box-shadow: 0 30px 60px -24px rgba(22,112,236,.55); background:
  linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, var(--primary), var(--accent)) border-box; border: 2px solid transparent; }
.badge { position: absolute; top: -14px; left: 32px; background: linear-gradient(100deg, var(--cyan), var(--primary) 50%, var(--accent)); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 14px; border-radius: 99px; letter-spacing: .06em; text-transform: uppercase; }
.price { font-size: 3.2rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; margin: 18px 0 4px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 32px; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; font-size: .95rem; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 0; top: 14px; width: 14px; height: 8px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg) scale(.9); }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--primary); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 14px 0 0; max-width: 64ch; }

/* CTA */
.cta { background: linear-gradient(135deg, #1670ec, #4a55e0 55%, #6b3fdb); color: #fff; border-radius: 32px; padding: 80px 32px; text-align: center; margin-inline: auto; }
.cta p { color: rgba(255,255,255,.85); margin-inline: auto; }
.cta h2 { max-width: 16ch; margin-inline: auto; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 560px; }
.form label { font-size: .85rem; font-weight: 600; display: grid; gap: 6px; }
.form input, .form textarea, .form select { font: 400 1rem var(--font); padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(22,112,236,.15); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.note-ok { display: none; background: #e5f7ef; color: #0b6e47; border-radius: 12px; padding: 14px 18px; font-weight: 500; }

/* Footer */
footer { background: var(--dark); color: #aab0c8; padding: 72px 0 36px; font-size: .92rem; }
.foot { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
footer .logo { margin-bottom: 14px; }
footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 14px; font-weight: 600; }
footer a { display: block; padding: 4px 0; transition: color .2s; }
footer a:hover { color: #fff; }
.legal { border-top: 1px solid #1f2438; margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2fd18b; margin-right: 8px; animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(47,209,139,0); } 0% { box-shadow: 0 0 0 0 rgba(47,209,139,.6); } }

/* Page hero (inner pages) */
.page-hero { padding: 88px 0 32px; text-align: center; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.prose { max-width: 740px; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }

/* Reveal */
.rv { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .nav-cta .btn { padding: .6rem 1.1rem; font-size: .85rem; }
  .links, .nav-cta .login { display: none; }
  .menu-btn { display: block; }
  .links.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 24px 24px; }
  .links.open a { padding: 12px 0; width: 100%; font-size: 1.1rem; }
  .mock-body { grid-template-columns: 1fr; }
  .m-side, .m-list { display: none; }
  .bento { grid-template-columns: 1fr; }
  .s2, .s3, .s4, .s6 { grid-column: auto; }
  .steps, .plans, .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .split { gap: 40px; }
  section { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
}

/* Video demo */
.video { max-width: 960px; margin-inline: auto; border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, #1670ec, #6b3fdb); box-shadow: 0 40px 80px -30px rgba(14,18,32,.4); aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; display: block; object-fit: cover; }
.btn svg { flex: none; }
#demo { scroll-margin-top: 40px; }

/* Announcement bar, waitlist */
.announce { background: linear-gradient(100deg, #1670ec, #6b3fdb); color: #fff; text-align: center; font-size: .88rem; font-weight: 500; padding: 8px 16px; }
.announce a { text-decoration: underline; margin-left: .4rem; }
.mob-only { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wl { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; max-width: 520px; margin: 1.6rem auto 1rem; }
.wl input { flex: 1 1 240px; font: 400 1rem var(--font); padding: .85rem 1.2rem; border-radius: 999px; border: 0; color: var(--ink); }
.wl input:focus { outline: 3px solid #fff; outline-offset: 2px; }
.wl .note-ok { flex-basis: 100%; }
@media (max-width: 960px) { .links.open .mob-only { display: block; } }

/* Embedded early-access form (iframe from the Groupbox product) */
.wl-card { background: #fff; color: var(--ink); border-radius: 20px; max-width: 520px; margin: 1.6rem auto 1rem; padding: 12px; text-align: left; box-shadow: 0 24px 48px -20px rgba(0,0,0,.35); }
.wl-card iframe { display: block; border-radius: 12px; }
.wl-empty { margin: 0; padding: 28px 16px; text-align: center; color: var(--ink-3); }
