/* Ribbon website.
   Layout: short headline, then the working demo window as the main view, the two download buttons under it,
   then features, pricing, questions, latest release, contact. The ink-ribbon gradient (blue → violet) is the
   single accent, used for the wave, the "try me" arrow and nothing else loud. */
@font-face { font-family: "Courier Prime"; src: url("shared/fonts/CourierPrime-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("shared/fonts/CourierPrime-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("shared/fonts/CourierPrime-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Special Elite"; src: url("shared/fonts/SpecialElite-Regular.woff2") format("woff2"); font-display: swap; }

:root {
  --paper: #F4F4F0; --sheet: #FBFBF9; --ink: #1E2027; --muted: #62656F; --rule: #DCDCD4; --panel: #ECECE6;
  --accent: #3A4CB3; --wave-a: #5A6BFF; --wave-b: #A16AFF; --fixmark: rgba(90,107,255,.22);
  --good: #2D7A4C; --warn: #A06A10; --bad: #AE3636; --shadow: rgba(20,21,26,.14);
  --font-type: "Courier Prime", "Courier New", Courier, monospace;
  --font-display: "Special Elite", "Courier Prime", "Courier New", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141519; --sheet: #1B1C21; --ink: #E5E3DD; --muted: #9093A0; --rule: #2C2E35; --panel: #18191D;
    --accent: #93A0FF; --wave-a: #7E8CFF; --wave-b: #C29BFF; --fixmark: rgba(126,140,255,.28);
    --good: #5EC08B; --warn: #E2A94C; --bad: #E36B6B; --shadow: rgba(0,0,0,.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 72px }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-type); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased }
a { color: inherit }
img { max-width: 100% }
button, input, select, textarea { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
[hidden] { display: none !important }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0 }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)) }
.narrow { max-width: 760px }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 8px; padding: 11px 20px; text-decoration: none; font-weight: 700; cursor: pointer; border: 1px solid transparent; transition: transform .12s, box-shadow .12s, background-color .12s }
.btn-ink { background: var(--ink); color: var(--paper) }
.btn-ink:hover { transform: translateY(-1px); box-shadow: 0 6px 18px var(--shadow) }
.btn-line { border-color: var(--ink); background: transparent }
.btn-line:hover { background: var(--ink); color: var(--paper) }
.btn-sm { padding: 7px 14px; font-size: 14px }
.btn-lg { padding: 12px 22px; text-align: left }
.btn-lg span { display: flex; flex-direction: column; line-height: 1.25 }
.btn-lg b { font-size: 17px }
.btn-lg small { font-weight: 400; font-size: 12.5px; opacity: .75 }

/* ---------- header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule) }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--paper) }
.top-row { display: flex; align-items: center; gap: 24px; padding-block: 12px }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; text-decoration: none }
.brand img { border-radius: 7px }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px }
.nav a { text-decoration: none; color: var(--muted) }
.nav a:hover, .nav a[aria-current] { color: var(--ink) }

/* ---------- hero ---------- */
.hero { padding-block: 36px 64px }
.hero-copy { text-align: center }
.hero h1 { font-size: clamp(30px, 4.2vw, 48px) }
.ink { background: linear-gradient(100deg, var(--wave-a), var(--wave-b)); -webkit-background-clip: text; background-clip: text; color: transparent }
.lede { max-width: 70ch; margin: 14px auto 0; color: var(--muted); font-size: 17px }
.br-sm { display: none }
.stage-wrap { margin-top: 40px }
.stage { position: relative; max-width: 1000px; margin: 0 auto }

/* downloads */
.dl { margin-top: 24px; text-align: center }
.dl-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap }
.dl-btn.primary { box-shadow: 0 0 0 3px color-mix(in srgb, var(--wave-a) 40%, transparent) }
.dl-btn.secondary { background: var(--sheet); color: var(--ink); border-color: var(--ink) }
.dl-meta { margin: 14px 0 0; color: var(--muted); font-size: 13.5px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap }
.dl-meta a { color: var(--muted) }
.sep { opacity: .5 }

/* ---------- sections ---------- */
.sec { padding-block: 84px }
.sec-alt { background: var(--panel); border-block: 1px solid var(--rule) }
.sec h2 { font-size: clamp(28px, 4vw, 40px) }
.sec-lede { color: var(--muted); margin: 10px 0 0; max-width: 60ch }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) }

.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--rule) }
.feat { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; min-width: 0 }
.feat:nth-child(even) { padding: 28px 0 30px 28px; border-left: 1px solid var(--rule) }
.feat h3 { font-size: 22px }
.feat p { margin: 0; color: var(--muted); max-width: 52ch }
.eg { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14.5px }
.eg s { color: var(--muted) }
.eg .to { color: var(--accent) }
.eg .w { background: var(--fixmark); padding: 0 4px; border-radius: 3px }
.tag { border: 1px solid var(--rule); border-radius: 999px; padding: 2px 10px; font-size: 13px; background: var(--sheet) }
.eg-meter .m { position: relative; width: 140px; height: 7px; background: var(--rule); border-radius: 4px }
.eg-meter .m i { position: absolute; inset: 0 auto 0 0; background: var(--good); border-radius: 4px }
.eg-meter .m em { position: absolute; left: 80%; top: -4px; bottom: -4px; width: 2px; background: var(--ink); opacity: .5 }
.eg-meter b { color: var(--good) } .eg-meter small { color: var(--muted) }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; max-width: 820px }
.plan { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px }
.plan-pro { border-color: var(--ink); box-shadow: 0 20px 50px -28px var(--shadow) }
.plan-name { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted) }
.plan-price { font-family: var(--font-display); font-size: 46px; line-height: 1 }
.plan-price small { font-family: var(--font-type); font-size: 15px; color: var(--muted) }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px }
.plan li::before { content: "✓"; color: var(--good); margin-right: 10px }
.plan .btn { margin-top: auto }
.plan-note { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center }
.how { display: flex; gap: 30px; flex-wrap: wrap; margin: 30px 0 0; padding: 0; list-style: none; counter-reset: s; color: var(--muted); font-size: 14.5px }
.how li { counter-increment: s; display: flex; gap: 10px; align-items: baseline }
.how li::before { content: counter(s); font-family: var(--font-display); color: var(--ink); font-size: 20px }
.how b { color: var(--ink) }

details { border-bottom: 1px solid var(--rule); padding: 16px 0 }
details:first-of-type { margin-top: 24px; border-top: 1px solid var(--rule) }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px }
summary::after { content: "+"; color: var(--muted) }
details[open] summary::after { content: "–" }
summary::-webkit-details-marker { display: none }
details p { margin: 10px 0 0; color: var(--muted) }

.latest { display: grid; grid-template-columns: 260px minmax(0, 1fr) auto; gap: 30px; align-items: start }
.latest-title { font-family: var(--font-display); font-size: 28px; margin-top: 6px }
.latest-date { color: var(--muted); font-size: 14px }
.latest-notes { margin: 0; padding-left: 18px; color: var(--muted); display: flex; flex-direction: column; gap: 4px }

.contact { display: flex; flex-direction: column; gap: 16px; margin-top: 28px }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px }
.contact label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; letter-spacing: .06em; color: var(--muted) }
.contact input, .contact select, .contact textarea { border: 1px solid var(--rule); background: var(--sheet); border-radius: 6px; padding: 10px 12px; color: var(--ink); font-size: 15px; letter-spacing: 0; width: 100% }
.contact textarea { resize: vertical }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0 }
.contact-foot { display: flex; gap: 16px; align-items: center; flex-wrap: wrap }
.cmsg { margin: 0; font-size: 14px; color: var(--muted) }
.cmsg.ok { color: var(--good) } .cmsg.err { color: var(--bad) }
.cmail { margin: 0; font-size: 14px; color: var(--muted) }
.mail { color: var(--ink); -webkit-user-select: all; user-select: all }
.copy { background: none; border: 1px solid var(--rule); border-radius: 4px; padding: 1px 8px; cursor: pointer; font-size: 12px; color: var(--muted) }

.foot { border-top: 1px solid var(--rule); padding-block: 30px calc(30px + env(safe-area-inset-bottom, 0px)); font-size: 13.5px; color: var(--muted) }
.foot-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: center }
.foot-links { display: flex; gap: 16px; margin-left: auto }
.foot-small { flex-basis: 100%; font-size: 12px }

/* ---------- release log page ---------- */
.log-head { padding-block: 56px 20px }
.log-head h1 { font-size: clamp(32px, 5vw, 48px) }
.log { margin: 20px 0 80px; border-top: 1px solid var(--rule) }
.entry { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--rule) }
.stamp { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px }
.stamp b { display: block; font-family: var(--font-display); font-weight: 400; color: var(--ink); font-size: 24px; margin-bottom: 2px }
.pill { display: inline-block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; margin-top: 8px }
.pill.latest-pill { color: var(--good) } .pill.pre { color: var(--warn) }
.entry h2 { font-size: 24px; margin-bottom: 10px }
.notes { color: var(--ink); max-width: 68ch }
.notes h3, .notes h4 { font-family: var(--font-type); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px }
.notes ul { margin: 6px 0; padding-left: 20px }
.notes li { margin: 3px 0 }
.notes p { margin: 8px 0 }
.notes code { background: var(--panel); border: 1px solid var(--rule); border-radius: 3px; padding: 0 4px; font-size: .92em }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px }
.file { display: inline-flex; gap: 8px; align-items: baseline; text-decoration: none; border: 1px solid var(--rule); background: var(--sheet); border-radius: 6px; padding: 6px 12px; font-size: 13.5px }
.file:hover { border-color: var(--ink) }
.file small { color: var(--muted) }
.log-empty { padding: 40px 0; color: var(--muted) }

/* ---------- smaller screens ---------- */
@media (max-width: 860px) {
  .nav { display: none }
  .top-row .btn { margin-left: auto }
  .feats, .plans, .row2 { grid-template-columns: minmax(0, 1fr) }
  .feat, .feat:nth-child(even) { padding: 24px 0; border-left: 0 }
  .latest { grid-template-columns: minmax(0, 1fr) }
  .entry { grid-template-columns: minmax(0, 1fr); gap: 10px }
  .sec { padding-block: 60px }
}
@media (max-width: 520px) {
  .br-sm { display: inline }
  .hero { padding-block: 28px 44px }
  .lede { font-size: 15.5px }
  .dl-btn { width: 100% }
  .dl-meta .sep { display: none }
  .dl-meta { gap: 4px 14px }
  .foot-links { margin-left: 0 }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .btn, .r-pointer, .steps-bar li i { transition: none }
}

/* ---------- thank-you page ---------- */
.thanks { padding-block: 64px 90px }
.thanks h1 { font-size: clamp(32px, 5vw, 48px); margin-top: 6px }
.keybox { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 18px; padding: 16px 18px; border: 1px solid var(--ink); border-radius: 10px; background: var(--sheet) }
.keybox code { flex: 1; min-width: 0; font-size: 17px; letter-spacing: .04em; overflow-wrap: anywhere; white-space: pre-wrap; -webkit-user-select: all; user-select: all }
.steps { margin: 34px 0 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 14px }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: baseline }
.steps li::before { content: counter(s); font-family: var(--font-display); font-size: 22px; min-width: 18px }
.small-print { margin-top: 34px; font-size: 13.5px; color: var(--muted) }

/* ---------- hero badges ---------- */
.badges { list-style: none; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0 0 22px; padding: 0 }
.badges li { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--rule); background: var(--sheet); border-radius: 999px; padding: 5px 14px; font-size: 13.5px; font-weight: 700 }
.b-ico { background: linear-gradient(100deg, var(--wave-a), var(--wave-b)); -webkit-background-clip: text; background-clip: text; color: transparent }

/* ---------- the replay: the real app's layout, drawn at app size and scaled to fit ---------- */
.stage { max-width: 1100px }
.frame { position: relative; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--rule); box-shadow: 0 40px 80px -36px var(--shadow), 0 2px 0 var(--rule); background: var(--paper) }
.frame .rbx { position: absolute; left: 0; top: 0; width: 1240px; height: 760px; transform-origin: 0 0; pointer-events: none; -webkit-user-select: none; user-select: none }
.frame .rbx .app { height: calc(100% - 34px) }
.rbx .desk { padding-top: 44px }
.rbx .r-title { height: 34px; display: flex; align-items: center; justify-content: center; position: relative; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--rule); background: var(--panel) }
.rbx .r-lights { position: absolute; left: 14px; display: flex; gap: 8px }
.rbx .r-lights i { width: 12px; height: 12px; border-radius: 50%; background: var(--rule) }
.rbx .r-offline { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); border: 1px dashed var(--rule); border-radius: 999px; padding: 4px 10px; opacity: 0; transition: opacity .4s }
.rbx .r-offline.on { opacity: 1 }
.rbx .r-key { position: absolute; z-index: 60; font-size: 15px; padding: 6px 12px; border: 1px solid var(--rule); border-bottom-width: 3px; border-radius: 7px; background: var(--sheet); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s }
.rbx .r-key.on { opacity: 1; transform: none }
.rbx .r-key.down { transform: translateY(2px); border-bottom-width: 1px }
.rbx .r-pointer { position: absolute; left: 0; top: 0; z-index: 70; opacity: 0; transition: transform .75s cubic-bezier(.3,.7,.2,1), opacity .3s; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)) }
.rbx .r-pointer.on { opacity: 1 }
.rbx .r-pointer.click::after { content: ""; position: absolute; left: -12px; top: -12px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--wave-a); animation: ring .5s ease-out forwards }
@keyframes ring { from { transform: scale(.4); opacity: 1 } to { transform: scale(1.7); opacity: 0 } }
.rbx .press { transform: scale(.94); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wave-a) 35%, transparent) }
.rbx .r-caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); vertical-align: text-bottom; margin-left: 1px; animation: blink 1s steps(1) infinite }
@keyframes blink { 50% { opacity: 0 } }
.rbx .big.bump { animation: bump .7s ease-out }
@keyframes bump { 40% { transform: scale(1.08) } }
.rbx .overlay { z-index: 40 }
.rbx .tile.hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) }

.caption { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; margin-top: 18px }
.steps-bar { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; list-style: none; margin: 0; padding: 0 }
.steps-bar li { height: 3px; border-radius: 2px; background: var(--rule); overflow: hidden }
.steps-bar li i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--wave-a), var(--wave-b)) }
.cap-text { margin: 0; font-size: 15.5px; min-width: 0 }
.cap-step { font-size: 12px; letter-spacing: .1em; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 2px 10px; margin-right: 8px; font-variant-numeric: tabular-nums; white-space: nowrap }
.cap-btn { background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 3px 12px; color: var(--muted); cursor: pointer; font-size: 13px }

/* ---------- why ribbon ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px }
.pillar { display: flex; flex-direction: column; gap: 12px; min-width: 0 }
.pillar h3 { font-size: 24px }
.pillar p { margin: 0; color: var(--muted) }
.p-art { height: 74px; display: flex; align-items: flex-end; color: var(--ink) }
.p-size b { font-family: var(--font-display); font-weight: 400; font-size: 64px; line-height: 1; background: linear-gradient(100deg, var(--wave-a), var(--wave-b)); -webkit-background-clip: text; background-clip: text; color: transparent }
.p-size span { font-size: 18px; margin: 0 0 8px 6px; color: var(--muted) }
.p-type { font-family: var(--font-display); font-size: 64px; line-height: 1 }

/* ---------- Windows install helper ---------- */
.wdlg { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); background: color-mix(in srgb, #000 45%, transparent) }
.wbox { width: min(820px, 100%); max-height: 100%; overflow-y: auto; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.35) }
.whead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px }
.whead h2 { font-size: 26px }
.wsub { margin: 6px 0 0; color: var(--muted); font-size: 14px }
.wsteps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: w }
.wsteps li { counter-increment: w; display: flex; flex-direction: column; gap: 10px; min-width: 0 }
.wsteps p { margin: 0; font-size: 14.5px }
.wsteps p::before { content: counter(w) "  "; font-family: var(--font-display); font-size: 18px }
.wart { height: 150px; border-radius: 10px; border: 1px solid var(--rule); background: var(--panel); display: flex; align-items: center; justify-content: center; padding: 12px; overflow: hidden }
.wfile { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; text-align: center }
.wfile .ico { width: 46px; height: 56px; border-radius: 6px; background: var(--sheet); border: 1px solid var(--rule); display: grid; place-items: center; font-family: var(--font-display); font-size: 20px; position: relative }
.wfile .ico::after { content: ""; position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--wave-a), var(--wave-b)) }
.wfile code { overflow-wrap: anywhere; color: var(--muted) }
.smart { width: 100%; height: 100%; background: #0f62c6; color: #fff; border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-family: system-ui, "Segoe UI", sans-serif; font-size: 11px; text-align: left; position: relative }
.smart b { font-size: 13px; font-weight: 600 }
.smart .lines { display: flex; flex-direction: column; gap: 4px; margin-top: 2px }
.smart .lines i { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.45) }
.smart .lines i:nth-child(2) { width: 70% }
.smart .more { color: #fff; text-decoration: underline; width: max-content; padding: 1px 3px; border-radius: 3px }
.smart .btns { margin-top: auto; display: flex; gap: 6px; justify-content: flex-end }
.smart .btns span { border: 1px solid rgba(255,255,255,.75); padding: 3px 10px; border-radius: 2px }
.smart .hl { outline: 3px solid #ffd54a; outline-offset: 2px; animation: hl 1.2s ease-in-out infinite alternate }
@keyframes hl { from { outline-color: #ffd54a } to { outline-color: rgba(255,213,74,.35) } }
.wfoot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; font-size: 13.5px; color: var(--muted) }
.wfoot a { color: var(--muted) }

@media (max-width: 860px) {
  .pillars { grid-template-columns: minmax(0, 1fr); gap: 34px }
  .wsteps { grid-template-columns: minmax(0, 1fr) }
  .wart { height: 130px }
}
@media (prefers-reduced-motion: reduce) {
  .smart .hl { animation: none }
}
