/* Site layout on top of app.css (a copy of design/assets/app.css: keep in sync). */

html { scroll-behavior: smooth; }
html, body { height: auto; }
body { font: 400 15px/1.6 var(--font-ui); overflow-x: hidden; }
section { padding: 104px 0; scroll-margin-top: 56px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-2); }
.btn-lg { height: 44px; padding: 0 20px; font-size: 14.5px; border-radius: 10px; }
.hl { color: var(--accent-ink); font-style: italic; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { height: 56px; display: flex; align-items: center; gap: 4px; }
.top .lockup { height: 48px; width: auto; display: block; margin-left: -12px; }
.top nav { margin-left: auto; display: flex; gap: 2px; align-items: center; }

/* Hero */
.hero { position: relative; padding: 96px 0 0; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 900px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 38%, var(--accent-soft), transparent 70%);
}
.hero h1 { font-size: clamp(56px, 11vw, 120px); line-height: .95; letter-spacing: -0.03em; }
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.hero .lead { margin: 28px auto 0; max-width: 60ch; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; color: var(--ink-2); }
.hero .cta { margin-top: 36px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pills { margin: 28px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pills .tag { height: 28px; padding: 0 12px; font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); }
.pills .tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 4px; }

/* App window */
.window {
  margin: 64px auto 0; max-width: 1060px; text-align: left; background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 4px rgb(30 35 41 / .04), 0 30px 80px rgb(30 35 41 / .16);
  display: grid; grid-template-columns: 220px 1fr 260px;
}
.w-side { background: var(--sidebar); border-right: 1px solid var(--line); padding: 14px 10px 18px; font-size: 13px; }
.w-lights { display: flex; gap: 7px; padding: 2px 8px 18px; }
.w-lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.w-title { padding: 0 10px; font: 500 17px/1.25 var(--font-display); }
.w-meta { padding: 2px 10px 12px; font-size: 12px; color: var(--ink-3); }
.w-link { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 7px; color: var(--ink-2); }
.w-link[aria-current] { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line), var(--shadow-s); }
.w-link .n { margin-left: auto; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.w-link .badge { margin-left: auto; }
.w-label { padding: 16px 10px 6px; }
.w-main { min-width: 0; display: flex; flex-direction: column; }
.w-bar { height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.w-bar b { color: var(--ink); font-weight: 500; }
.w-bar .seg { margin-left: auto; }
.w-page { padding: 40px 48px 56px; }
.w-page .prose p { font-size: 18px; }
.w-insp { border-left: 1px solid var(--line); font-size: 13px; }
.w-insp .insp-section { padding: 18px; }
.w-card { margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.w-card b { font-weight: 600; display: block; margin: 4px 0 2px; }
.w-card p { color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.w-card.alert { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); box-shadow: 0 0 0 3px var(--danger-soft); }
.w-card.alert .eyebrow { color: var(--danger); }
.w-card .row { min-height: 30px; font-size: 12.5px; }

/* Big statement */
.statement { text-align: center; padding: 120px 0; }
.statement p { max-width: 22ch; margin: 0 auto; font: 500 clamp(32px, 5.4vw, 60px)/1.1 var(--font-display); letter-spacing: -0.02em; }
.statement p span { color: var(--ink-3); }

/* Showcase rows */
.show { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.show.flip { grid-template-columns: 7fr 5fr; }
.show.flip .copy { order: 2; }
.copy h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.06; letter-spacing: -0.02em; margin-top: 14px; }
.copy > p { margin-top: 18px; font-size: 17px; color: var(--ink-2); }
.copy ul { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.copy li { display: flex; gap: 12px; font-size: 15px; color: var(--ink-2); }
.copy li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A6212' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.kicker { display: inline-flex; align-items: center; gap: 8px; }
.kicker i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.kicker svg, .ico svg, .os svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.demo {
  position: relative; background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden; min-width: 0;
}
.demo-bar { height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); background: var(--sidebar); }
.demo-bar b { color: var(--ink); font-weight: 500; }
.demo-bar .seg, .demo-bar .end { margin-left: auto; }
.demo-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.band { background: var(--sidebar); border-block: 1px solid var(--line); }

/* Continuity demo */
.demo .issue { padding: 18px 20px; }
.demo .issue h3 { font-size: 14.5px; }
.demo .evidence blockquote { font-size: 14px; padding: 10px 14px; }
.demo .issue.ok .issue-ic { background: var(--ok-soft); color: var(--ok); }
.issue-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Card demo */
.who { display: flex; gap: 16px; align-items: center; }
.who h3 { font: 500 24px/1.1 var(--font-display); }
.who p { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.demo .table td, .demo .table th { padding: 9px 10px; }
.mention-pop { width: 260px; margin: -6px 22px 22px auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); padding: 12px; font-size: 12.5px; }
.mention-pop p { color: var(--ink-2); margin: 4px 0 10px; }
.mention-pop .btns { display: flex; gap: 6px; }

/* Timeline demo */
.demo .tl { min-width: 0; }
.demo .tl-axis, .demo .tl-lane { grid-template-columns: 112px 1fr; }
.demo .tl-ticks { grid-template-columns: repeat(4, 1fr); }
.demo .tl-ticks span { padding: 10px 8px; }
.demo .tl-label { padding: 0 12px 0 16px; min-height: 72px; font-size: 13px; }
.demo .tl-track { min-height: 72px; background-size: 25% 100%; }
.demo .ev { top: 14px; height: 44px; font-size: 12px; }

/* Structure demo */
.demo .cork { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.demo .icard { min-height: 150px; padding: 14px; }
.demo .icard h3 { font-size: 15px; }
.demo .icard p { font-size: 12.5px; }
.pg-mini { display: grid; grid-template-columns: 96px repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); font-size: 12px; }
.pg-mini > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px; }
.pg-mini .h { color: var(--ink-3); font-weight: 600; font-size: 11px; }
.pg-mini .r { font-weight: 500; display: flex; gap: 6px; align-items: center; }
.pg-mini .pg-card { font-size: 11.5px; padding: 6px 8px; }

/* Focus demo */
.demo.focus-demo { background: var(--bg); }
.focus-demo .prose { padding: 56px 48px 40px; }
.focus-demo .prose p { font-size: 18px; transition: none; }
.focus-demo .prose p.dim { opacity: .28; }
.focus-foot { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.focus-foot .meter { flex: 1; max-width: 200px; }

/* Ownership stats */
.own { text-align: center; }
.own h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; max-width: 18ch; margin: 14px auto 0; }
.own > .wrap > p { max-width: 60ch; margin: 18px auto 0; font-size: 17px; color: var(--ink-2); }
.stats { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; text-align: left; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.stat b { display: block; font: 500 44px/1 var(--font-display); letter-spacing: -0.02em; color: var(--accent-ink); }
.stat span { display: block; margin-top: 12px; font-weight: 600; }
.stat p { margin-top: 4px; font-size: 14px; color: var(--ink-2); }

/* Feature grid */
.sec-h { max-width: 680px; margin-bottom: 44px; }
.sec-h.center { margin-inline: auto; text-align: center; }
.sec-h h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.06; letter-spacing: -0.02em; margin-top: 14px; }
.sec-h p { margin-top: 16px; color: var(--ink-2); font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.feat h3 { font: 600 15px/1.3 var(--font-ui); margin: 16px 0 6px; }
.feat p { color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); }

/* AI */
.ai { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px; border-radius: 20px; background: #1E2329; border: 1px solid var(--line); color: #F1ECE3; }
.ai .eyebrow { color: #EDBE58; }
.ai h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.02em; margin-top: 14px; }
.ai > div > p { margin-top: 16px; font-size: 16px; color: rgb(241 236 227 / .78); }
.ai ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ai li { padding: 16px 18px; border-radius: 12px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); }
.ai li b { display: block; font-weight: 600; margin-top: 8px; }
.ai li span { display: block; font-size: 14px; color: rgb(241 236 227 / .72); margin-top: 2px; }
.ai .tag { background: rgb(237 190 88 / .16); color: #EDBE58; }

/* Platforms + licence */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px; }
.panel h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -0.015em; margin-top: 12px; }
.panel > p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }
.oses { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.os { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px; border-radius: 12px; background: var(--sunken); font-weight: 500; font-size: 14px; }
.os svg { width: 26px; height: 26px; color: var(--ink-2); }
.panel ul { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); font-size: 15px; }
.panel li { display: flex; gap: 12px; }
.panel li::before { content: ""; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--accent); flex: none; }

/* Beta */
.beta { text-align: center; padding: 128px 0; }
.beta h2 { font-size: clamp(40px, 7vw, 80px); line-height: 1; letter-spacing: -0.03em; margin-top: 14px; }
.beta p { max-width: 56ch; margin: 20px auto 32px; font-size: 18px; color: var(--ink-2); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--ink-3); }
footer .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; align-items: center; }

@media (max-width: 980px) {
  .window { grid-template-columns: 1fr; }
  .w-side, .w-insp { display: none; }
  .show, .show.flip { grid-template-columns: 1fr; gap: 36px; }
  .show.flip .copy { order: 0; }
  .grid, .stats { grid-template-columns: 1fr 1fr; }
  .ai, .duo { grid-template-columns: 1fr; }
  .ai { gap: 32px; padding: 36px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top .nav-link { display: none; }
  section, .statement { padding: 72px 0; }
  .hero { padding-top: 64px; }
  .w-page { padding: 28px 20px 36px; }
  .w-bar .seg { display: none; }
  .grid, .stats { grid-template-columns: 1fr; }
  .demo .cork { grid-template-columns: 1fr 1fr; }
  .demo .cork .icard:nth-child(3) { display: none; }
  .focus-demo .prose { padding: 36px 20px 28px; }
  .mention-pop { width: auto; margin: -6px 22px 22px; }
  .ai, .panel { padding: 28px 22px; }
  .oses { grid-template-columns: 1fr 1fr; }
  .beta { padding: 88px 0; }
  .demo:has(.tl) { overflow-x: auto; }
  .demo .tl { min-width: 580px; }
}
footer a { text-decoration: none; } footer a:hover { color: var(--ink); }
footer b { color: var(--ink-2); font-weight: 500; }
