/* Landing page. Uses the color tokens from style.css. */
body.landing { height: auto; overflow-x: hidden; }
.l-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.l-wrap.narrow { max-width: 760px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 10px; }
.sub { color: var(--muted); font-size: 17px; max-width: 680px; margin: 0 0 28px; }
.center { text-align: center; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; font-weight: 600;
  border-radius: 9px; padding: 8px 14px; border: 1px solid transparent; color: var(--text); white-space: nowrap; }
.btn.primary { background: var(--accent); color: var(--accent-text); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost:hover { background: var(--panel-2); }
.btn.lg { padding: 12px 20px; font-size: 15px; }
.btn.light { background: #fff; color: #133e6e; }
.btn.outline-light { border-color: rgb(255 255 255 / .55); color: #fff; }
.btn.outline-light:hover { background: rgb(255 255 255 / .1); }

/* nav */
.l-nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.l-nav-in { display: flex; align-items: center; gap: 10px; height: 60px; }
.l-links { display: flex; gap: 22px; margin-left: 28px; }
.l-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.l-links a:hover { color: var(--text); }

/* hero */
.l-hero { padding: 64px 0 72px; background-image:
  linear-gradient(var(--accent-2) 1px, transparent 1px), linear-gradient(90deg, var(--accent-2) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px; position: relative; }
.l-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 40%, transparent 30%, var(--bg) 85%); pointer-events: none; }
.l-hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.l-hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 800; }
.cy { color: var(--accent); }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 0 26px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.formats { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; }
.formats span { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); }

.hero-card { position: relative; aspect-ratio: 1.08; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -20px rgb(16 50 100 / .45);
  background-color: #1f5fa8;
  background-image: linear-gradient(rgb(255 255 255 / .09) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .09) 1px, transparent 1px),
    linear-gradient(rgb(255 255 255 / .04) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .04) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px; }
.hero-viewer { position: absolute; inset: 0; cursor: grab; }
.hero-viewer:active { cursor: grabbing; }
.hero-tag { position: absolute; color: #e8f2ff; font-size: 12px; background: rgb(8 30 60 / .45); border: 1px solid rgb(255 255 255 / .25); padding: 4px 9px; border-radius: 7px; pointer-events: none; }
.hero-tag .mono { color: #fff; font-weight: 500; }
.hero-tag.tl { top: 16px; left: 16px; } .hero-tag.tr { top: 16px; right: 16px; } .hero-tag.bl { bottom: 52px; left: 16px; }
.hero-pass { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 6px; align-items: center; background: #fff; color: #116b3f; font-weight: 600; font-size: 13px; padding: 5px 11px; border-radius: 999px; pointer-events: none; }
.hero-hint { position: absolute; right: 16px; bottom: 12px; margin: 0; color: rgb(255 255 255 / .7); font-size: 12px; pointer-events: none; }

/* sections */
.l-section { padding: 88px 0; }
.l-section.alt { background: var(--panel); border-block: 1px solid var(--line); }
.l-section h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; margin: 0 0 12px; }

/* demo */
.demo { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: stretch; }
.demo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.demo-steps button { width: 100%; text-align: left; justify-content: flex-start; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 12px; background: var(--panel); white-space: normal; font-weight: 400; }
.demo-steps button > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.demo-steps small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.demo-steps .n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); font-weight: 700; font-size: 13px; }
.demo-steps button.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-2); }
.demo-steps button.active .n { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.demo-stage { position: relative; min-height: 460px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; box-shadow: var(--shadow); }
.pane { position: absolute; inset: 0; padding: 18px; opacity: 0; visibility: hidden; transition: opacity .25s; display: flex; flex-direction: column; justify-content: center; }
.pane.active { opacity: 1; visibility: visible; }
.pane img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 8px; }
.pane[data-pane="drawing"] img { margin: auto; }
.flat-img { padding: 30px; margin: auto; width: 100%; }
.demo-viewer { flex: 1; border-radius: 10px; background: var(--viewer); min-height: 380px; cursor: grab; }
.pane-note { color: var(--muted); font-size: 12px; margin: 8px 0 0; text-align: center; }
.pane[data-pane="checks"] { justify-content: flex-start; overflow: auto; }
.assume { color: var(--muted); font-size: 13px; margin: 14px 0 0; padding-left: 18px; }
.demo-dl { margin: 16px 0 0; font-size: 14px; }

/* cards */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.lcard { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.lcard h3, .feat h3 { margin: 12px 0 6px; font-size: 17px; }
.lcard p, .feat p { color: var(--muted); margin: 0; }
.lico { width: 34px; height: 34px; color: var(--accent); padding: 7px; background: var(--accent-2); border-radius: 10px; }
.lico.sm { width: 30px; height: 30px; padding: 6px; }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 28px; margin-top: 30px; }

/* pricing */
.price-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 8px 0 18px; }
.price { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.price .amt { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.price.pop { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-2); }
.price .tag { align-self: flex-start; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-2); padding: 2px 8px; border-radius: 999px; }
.price .btn { margin-top: 8px; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 2px; }

/* cta + footer */
.l-cta { background: #1f5fa8; color: #fff; padding: 72px 0; background-image:
  linear-gradient(rgb(255 255 255 / .08) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .08) 1px, transparent 1px); background-size: 32px 32px; }
.l-cta-in { text-align: center; }
.l-cta h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 8px; }
.l-cta p { color: rgb(255 255 255 / .82); margin: 0 0 22px; font-size: 17px; }
.l-foot { padding: 28px 0; border-top: 1px solid var(--line); }
.l-foot-in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.l-foot a { color: var(--muted); text-decoration: none; }
.l-foot a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) { .pane { transition: none; } }
@media (max-width: 960px) {
  .l-hero-in, .demo { grid-template-columns: 1fr; }
  .l-hero { padding: 40px 0 48px; }
  .demo-stage { min-height: 400px; }
  .cards3, .feat { grid-template-columns: 1fr 1fr; }
  .l-links { display: none; }
}
@media (max-width: 600px) {
  .cards3, .feat { grid-template-columns: 1fr; }
  .l-section { padding: 60px 0; }
  .demo-steps { grid-template-columns: 1fr 1fr; }
  .demo-steps small { display: none; }
  .brand-name { display: inline; }
  #nav-login { padding: 8px 10px; }
}
