/* CUUBE draft — layout-first styles */
:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --dark: #111214;
  --line: #d2d2d7;
  --accent: #0a7c6b;       /* placeholder panel color */
  --accent-2: #e8f4f1;
  --ph: #e3e3e8;           /* placeholder fill */
  --radius: 22px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* Draft banner */
.draft-bar { background: #fff4c2; color: #6b5300; font-size: 12px; text-align: center; padding: 6px 16px; }

/* Global nav */
.gnav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.gnav .wrap { display: flex; align-items: center; height: 52px; gap: 28px; }
.logo { font-weight: 800; letter-spacing: .14em; color: var(--ink); font-size: 18px; }
.logo span { color: var(--accent); }
.gnav ul { list-style: none; display: flex; gap: 24px; flex: 1; }
.gnav ul a { color: var(--ink); font-size: 14px; opacity: .8; }
.gnav ul a:hover, .gnav ul a.on { opacity: 1; text-decoration: none; }
.gnav ul a.on { font-weight: 600; }
.menu-btn { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; margin-left: auto; }

/* Local sub-nav */
.lnav { position: sticky; top: 52px; z-index: 40; background: rgba(255,255,255,.9); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.lnav .wrap { display: flex; align-items: center; height: 52px; gap: 24px; overflow-x: auto; }
.lnav .title { font-weight: 600; font-size: 20px; margin-right: auto; white-space: nowrap; }
.lnav a { color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.lnav a:hover { color: var(--ink); text-decoration: none; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 11px 22px; border-radius: 980px; font-size: 15px; font-weight: 500; border: 0; cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.sm { padding: 6px 14px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.link { font-size: 17px; }
.link::after { content: " ›"; }

/* Sections */
section { padding: 100px 0; }
section.tight { padding: 64px 0; }
.alt { background: var(--bg-2); }
.dark { background: var(--dark); color: #f5f5f7; }
.dark .sub, .dark p { color: #a1a1a6; }
.center { text-align: center; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
h1 { font-size: clamp(40px, 7vw, 80px); line-height: 1.05; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -.015em; font-weight: 700; }
h3 { font-size: 24px; line-height: 1.2; font-weight: 600; }
.sub { font-size: clamp(19px, 2.2vw, 24px); color: var(--ink-2); max-width: 720px; margin: 18px auto 0; }
.center .sub { margin-left: auto; margin-right: auto; }
.cta-row { display: flex; gap: 16px; justify-content: center; align-items: center; margin-top: 30px; flex-wrap: wrap; }

/* Placeholders */
.ph { background: repeating-linear-gradient(45deg, var(--ph), var(--ph) 12px, #ececf0 12px, #ececf0 24px); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: #8e8e93; font-size: 13px; font-weight: 500; text-align: center; padding: 16px; min-height: 220px; }
.dark .ph { background: repeating-linear-gradient(45deg, #232327, #232327 12px, #1b1b1e 12px, #1b1b1e 24px); color: #6e6e73; }
.ph.hero { min-height: 460px; margin-top: 48px; }
.ph.tall { min-height: 360px; }
.ph.sq { aspect-ratio: 1; min-height: 0; }
.ph.wide { aspect-ratio: 16/9; min-height: 0; }
.tbd { background: #fff4c2; color: #6b5300; padding: 0 4px; border-radius: 4px; }

/* Anchor pills */
.pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.pills a { background: var(--bg-2); color: var(--ink); padding: 8px 18px; border-radius: 980px; font-size: 14px; }
.pills a:hover { background: var(--line); text-decoration: none; }

/* Grids & cards */
.grid { display: grid; gap: 20px; margin-top: 56px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--bg); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.alt .card { background: #fff; }
section:not(.alt):not(.dark) .card { background: var(--bg-2); }
.dark .card { background: #1d1d1f; }
.card p { color: var(--ink-2); font-size: 17px; }
.card .ph { min-height: 180px; margin-bottom: 8px; }
.card .link { margin-top: auto; }
a.card { color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
a.card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }

/* Audience doors */
.door { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; padding: 36px; color: #fff; background: #2a2d31; }
.door .ph { position: absolute; inset: 0; border-radius: 0; background: repeating-linear-gradient(45deg, #34383d, #34383d 14px, #2c2f33 14px, #2c2f33 28px); color: #777; align-items: flex-start; padding-top: 24px; }
.door > *:not(.ph) { position: relative; }
.door h3 { font-size: 34px; }
.door p { color: #d2d2d7; margin: 8px 0 18px; }
.door:hover { text-decoration: none; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; text-align: center; }
.stat b { display: block; font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -.02em; background: linear-gradient(120deg, var(--accent), #3fb59f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 17px; }

/* Feature rows (alternating) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; }
.feature.flip > :first-child { order: 2; }
.feature h3 { font-size: 34px; margin-bottom: 14px; }
.feature p { color: var(--ink-2); font-size: 19px; margin-bottom: 18px; }

/* Icon list */
.ilist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; margin-top: 56px; }
.ilist .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-2); color: var(--accent); display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.ilist h4 { font-size: 19px; margin-bottom: 6px; }
.ilist p { color: var(--ink-2); }
.dark .ilist .ic { background: #1f3a35; }

/* Model cards */
.model { text-align: center; align-items: center; }
.model .ph { width: 100%; }
.model .size { font-size: 15px; color: var(--ink-2); }
.model ul { list-style: none; color: var(--ink-2); font-size: 15px; display: grid; gap: 6px; margin: 8px 0 16px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; color: #b5560b; }

/* Compare table */
.compare { width: 100%; border-collapse: collapse; margin-top: 48px; font-size: 16px; }
.compare th, .compare td { padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th { font-weight: 600; }
.compare td:first-child { color: var(--ink-2); width: 26%; }
.compare thead th { font-size: 20px; }
.table-scroll { overflow-x: auto; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 64px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 21px; left: 8%; right: 8%; height: 2px; background: var(--line); }
.step { text-align: center; padding: 0 10px; position: relative; }
.step .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; margin: 0 auto 16px; position: relative; }
.step h4 { font-size: 17px; }
.step p { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.step small { display: block; margin-top: 6px; font-size: 12px; color: var(--accent); font-weight: 600; }

/* Quote */
blockquote { font-size: clamp(24px, 3vw, 34px); line-height: 1.3; font-weight: 600; max-width: 860px; margin: 0 auto; letter-spacing: -.01em; }
cite { display: block; margin-top: 20px; font-style: normal; color: var(--ink-2); font-size: 16px; }

/* Next-step card */
.next { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--bg-2); border-radius: var(--radius); padding: 40px 44px; color: var(--ink); }
.next:hover { text-decoration: none; background: #ececf0; }
.next small { color: var(--ink-2); font-size: 14px; display: block; margin-bottom: 6px; }
.next h3 { font-size: 30px; }
.next .arrow { font-size: 40px; color: var(--accent); }

/* Filter chips */
.chips { display: flex; gap: 10px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; padding: 8px 18px; border-radius: 980px; font-size: 14px; cursor: pointer; font-family: inherit; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tag { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }

/* Builder */
.builder { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; margin-top: 48px; }
.preview { position: sticky; top: 130px; }
.preview .ph { min-height: 420px; }
.summary { margin-top: 20px; background: var(--bg-2); border-radius: var(--radius); padding: 24px; font-size: 15px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.summary dt { color: var(--ink-2); }
.summary dd { font-weight: 600; }
.bstep { border-top: 1px solid var(--line); padding: 28px 0; }
.bstep h3 { font-size: 22px; margin-bottom: 4px; }
.bstep > p { color: var(--ink-2); margin-bottom: 16px; }
.bstep .n { color: var(--accent); font-weight: 700; margin-right: 8px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.opt { border: 2px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; background: #fff; text-align: left; font-family: inherit; font-size: 15px; color: var(--ink); }
.opt small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.opt.on { border-color: var(--accent); background: var(--accent-2); }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.sw { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.sw.on { box-shadow: 0 0 0 2px var(--accent); }

/* Forms */
form.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; text-align: left; }
form.lead label { font-size: 13px; color: var(--ink-2); display: grid; gap: 6px; }
form.lead .full { grid-column: 1 / -1; }
form.lead input, form.lead select, form.lead textarea { font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
form.lead textarea { min-height: 110px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
summary { font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); margin-top: 12px; max-width: 760px; }

/* Footer */
footer { background: var(--bg-2); font-size: 12px; color: var(--ink-2); padding: 40px 0; }
footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
footer h5 { font-size: 12px; color: var(--ink); margin-bottom: 10px; }
footer ul { list-style: none; display: grid; gap: 8px; }
footer a { color: var(--ink-2); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .g3, .g4, .ilist { grid-template-columns: 1fr 1fr; }
  .feature, .builder { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip > :first-child { order: 0; }
  .preview { position: static; }
  .timeline { grid-template-columns: 1fr 1fr 1fr; row-gap: 40px; }
  .timeline::before { display: none; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .gnav ul { display: none; position: absolute; top: 52px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 22px 24px; gap: 16px; border-bottom: 1px solid var(--line); }
  .gnav ul.open { display: flex; }
  .gnav ul a { font-size: 18px; }
  .gnav .btn { display: none; }
  .menu-btn { display: block; }
  .lnav .title { font-size: 17px; }
  section { padding: 72px 0; }
  .g2, .g3, .g4, .ilist, .stats { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  form.lead { grid-template-columns: 1fr; }
  .next { padding: 28px; }
  .next h3 { font-size: 22px; }
  .ph.hero { min-height: 280px; }
}
.lnav a.btn { color: #fff; }
