@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#091115;color:#f4f8f5}
*{box-sizing:border-box}
body{margin:0;min-height:100svh;display:flex;flex-direction:column;isolation:isolate;background:#091115}
.home-background{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:#091115 url("./keyroster-background-desktop.png") center / cover no-repeat}
.home-background::after{content:"";position:absolute;inset:-8%;background:url("./keyroster-background-desktop.png") center / cover no-repeat;opacity:.3;will-change:transform,opacity;transform:translate3d(-1.8%,-1%,0) scale(1.055);animation:background-breathe 62s ease-in-out infinite}
@keyframes background-breathe{0%,100%{transform:translate3d(-1.8%,-1%,0) scale(1.055);opacity:.3}33%{transform:translate3d(2.6%,1.2%,0) scale(1.085);opacity:.47}67%{transform:translate3d(-.9%,2.6%,0) scale(1.065);opacity:.36}}
.hero{flex:1;min-height:100svh;display:flex;align-items:center;padding:144px clamp(32px,9vw,170px) 100px}
.hero-brand{display:flex;align-items:flex-start;flex-direction:column;max-width:800px;text-align:left}
.hero-slogan{--hero-title-size:clamp(58px,5.5vw,82px);--hero-logo-size:calc(var(--hero-title-size) * .76);--timeline-row:54px;--timeline-gap:20px;margin-left:calc(10.5px - var(--hero-logo-size)/2);max-width:100%}
.hero-heading{display:flex;align-items:center;gap:12px}
.hero-logo-wrap{position:relative;display:block;flex:none;width:var(--hero-logo-size);height:var(--hero-logo-size)}
.hero-logo{position:absolute;inset:0;display:block;width:100%;height:100%}
/* Without animation, the mask leaves the original surface/key/outline complete. */
.hero-logo-cutout{opacity:0}
/* Static glow: only this layer's opacity pulses, never its shadow. */
.hero-logo-glow{position:absolute;inset:1%;border-radius:23%;box-shadow:0 0 18px 5px #00ff4138;opacity:0;pointer-events:none}
h1{margin:0;font-size:var(--hero-title-size);line-height:1.07;font-weight:600;letter-spacing:-.06em}
.hero-timeline{position:relative;display:flex;flex-direction:column-reverse;width:max-content;max-width:100%;margin:var(--timeline-gap) 0 0 calc(var(--hero-logo-size)/2 - 10.5px);padding:0;list-style:none;text-align:left}
.hero-timeline li{display:flex;align-items:center;min-height:var(--timeline-row);padding-left:43px}
.hero-timeline-line,.hero-timeline-cap{position:absolute;left:9px;width:3px;background:#48515c;transform-origin:bottom;pointer-events:none}
.hero-timeline-line{top:calc(var(--timeline-row)/2);bottom:calc(var(--timeline-row)/2)}
/* Ends at the reserved logo's bottom edge, not behind its centre. */
.hero-timeline-cap{bottom:calc(100% - var(--timeline-row)/2);height:calc(var(--timeline-row)/2 + var(--timeline-gap) + max(0px, (var(--hero-title-size) * 1.07 - var(--hero-logo-size))/2))}
.hero-timeline-node{position:relative;z-index:1;flex:none;width:17px;height:17px;margin-left:-41px;margin-right:24px;border-radius:50%;background:#00ff41;box-shadow:0 0 0 4px #091115,0 0 0 5px #00ff4150}
.hero-timeline-pulse{position:absolute;inset:-5px;border:1px solid #00ff41;border-radius:50%;opacity:0;pointer-events:none}
.hero-timeline-text{display:block;color:#e1ebe5;font-size:clamp(21px,2.1vw,27px);font-weight:550;line-height:1.25;letter-spacing:-.025em}
.hero-timeline-accounted .hero-timeline-text{color:#f4f8f5;font-weight:650}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:36px}
.hero-action{display:inline-flex;align-items:center;justify-content:center;gap:15px;min-height:56px;padding:13px 26px;border:1px solid transparent;border-radius:10px;font:600 16px Inter,ui-sans-serif,system-ui,sans-serif;text-decoration:none;transition:background .2s,border-color .2s,box-shadow .2s}
.hero-action svg{width:20px;height:20px}
.log-in{min-width:194px;color:#07130b;background:#00ea41;box-shadow:0 12px 36px #00e54120}
.log-in:hover{background:#32fa68;box-shadow:0 14px 40px #00e54136}
.view-demo{min-width:160px;color:#e6f1e9;border-color:#ffffff45;background:#0713164d}
.view-demo:hover{border-color:#ffffff91;background:#ffffff10}
.subscribe{min-width:207px;gap:10px;color:#a4b0aa;border-color:#ffffff28;background:#ffffff0b;cursor:not-allowed}
.hero-action-status{font-size:14px;font-weight:500;color:#899790}
.hero-action:focus-visible{outline:2px solid #a0ffb6;outline-offset:5px}
.hero-explore{display:none}
.hero-context{margin:28px 0 0;color:#9ab3a6;font-size:14px;line-height:1.6;letter-spacing:.02em}
@media(max-width:760px){
  :root,body{background:#0d1117}
  .home-background{background:#0d1117}
  .home-background::after{display:none}
  .hero{justify-content:center;padding:114px 24px 86px}
  .hero-brand{width:100%;max-width:520px;align-items:center;text-align:center}
  .hero-slogan{--hero-title-size:clamp(42px,11.8vw,62px);--hero-logo-size:clamp(46px,13.3vw,60px);--timeline-row:46px;margin-left:0}
  .hero-heading{gap:10px}
  h1{letter-spacing:-.065em}
  .hero-timeline-node{box-shadow:0 0 0 4px #0d1117,0 0 0 5px #00ff4150}
  .hero-timeline-text{font-size:clamp(19px,5vw,22px)}
  .hero-actions{width:min(100%,350px);flex-direction:column;flex-wrap:nowrap;margin-top:36px}
  .hero-action{width:100%;min-height:58px}
  .hero-context{max-width:290px;margin-top:30px}
}
@media(prefers-reduced-motion:reduce){.home-background::after{animation:none;opacity:0;will-change:auto}.hero-action{transition:none}}

/* Homepage experiment: isolated from demo, checkout and staff styles. */
body{-webkit-font-smoothing:antialiased}
main{width:100%}
.home-eyebrow{margin:0 0 22px;color:#a9c4b5;font-size:11px;font-weight:600;line-height:1.5;letter-spacing:.14em;text-transform:uppercase}
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,5vw,76px);width:min(100%,1400px);min-height:min(900px,100svh);margin:auto;padding:90px clamp(24px,5vw,72px) 80px}
.hero-actions{gap:12px}
.hero-action{min-height:50px;padding:12px 22px;font-size:14px;transition:transform .18s ease-out,background .18s,border-color .18s,box-shadow .18s}
.log-in,.view-demo{min-width:150px}
.subscribe{min-width:196px;min-height:44px;padding:10px 15px}
.hero-action-status{font-size:12px}
.hero-context{max-width:340px;font-size:13px}
.home-background::after{animation:none;transform:none;opacity:.16;will-change:auto}
.skip-link{position:absolute;z-index:10;top:12px;left:24px;transform:translateY(-160%);padding:12px 18px;background:#00ea41;color:#07130b;border-radius:6px;font-weight:600}
.skip-link:focus{transform:none}
a:focus-visible,button:focus-visible,[tabindex="-1"]:focus-visible{outline:2px solid #a0ffb6;outline-offset:5px}
.product-preview{min-width:0;border:1px solid #528165;border-radius:14px;background:#101b1b;box-shadow:0 0 0 1px #00ff4150,0 0 28px #00ff4128,0 28px 80px #0005;overflow:hidden;scroll-margin-top:24px}
.preview-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 22px;border-bottom:1px solid #2d403a;background:#101a18}
.preview-wordmark{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:600;letter-spacing:-.03em}
.preview-wordmark>span{margin-left:6px;font-size:8px;font-weight:500;letter-spacing:.1em;color:#9ab3a6}
.preview-label{border:1px solid #43594e;border-radius:5px;padding:5px 7px;font-size:10px;color:#bbcebf;white-space:nowrap}
.preview-content{padding:24px}
.preview-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.preview-heading .home-eyebrow{font-size:9px;letter-spacing:.09em;margin:0 0 9px}
.preview-heading h2{margin:0;font-size:26px;font-weight:600;letter-spacing:-.045em;line-height:1.2}
.preview-total{color:#a6b8af;font:11px ui-monospace,monospace;white-space:nowrap}
.preview-intro{margin:9px 0 22px;font-size:12px;line-height:1.6;color:#a6b8af}
.preview-counts{display:flex;gap:24px;border-bottom:1px solid #304139;padding:0 0 14px;font-size:11px;color:#b2c2b9}
.preview-counts>span{display:flex;align-items:center;gap:8px}
.preview-counts strong{display:inline-grid;place-items:center;min-width:21px;height:21px;border-radius:4px;background:#233a2f;color:#d7eadf;font-size:11px;font-variant-numeric:tabular-nums}
.preview-register{list-style:none;margin:12px 0 22px;padding:0}
.preview-key{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:68px;padding:11px 10px;border:1px solid transparent;border-bottom-color:#293b33}
.preview-key-selected{background:transparent}
.preview-property{min-width:0}
.preview-property strong{display:block;font-size:12px;font-weight:600;line-height:1.4}
.preview-property small{display:block;margin-top:4px;color:#a6b8af;font-size:10px;line-height:1.5}
.preview-status{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid #00ff4133;border-radius:99px;color:#70f39a;background:#00ff4110;font-size:10px;font-weight:600;line-height:1.3;white-space:nowrap}
.preview-status.is-out{color:#89c7ff;background:#58a6ff12;border-color:#58a6ff40}
.preview-status::before{content:"";width:6px;height:6px;flex:none;border-radius:50%;background:currentColor}
.preview-handover{border:1px solid #30363d;border-radius:8px;background:#0d1117;color:#e0e6ed;padding:18px}
.preview-button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:44px;border:1px solid #00ff41;border-radius:6px;padding:11px 14px;background:#00ff41;color:#07110a;font:600 12px Inter,ui-sans-serif,system-ui,sans-serif;cursor:pointer;transition:transform .18s ease-out,background .18s,box-shadow .18s}
.preview-button[hidden]{display:none}
.preview-note{display:flex;flex-wrap:wrap;justify-content:space-between;gap:9px;margin:17px 0 0;color:#a6b8af;font-size:10px;line-height:1.5}
.preview-note a{color:#cae6d4;text-underline-offset:3px}
.home-features{max-width:1400px;margin:auto;padding:44px clamp(24px,5vw,72px) 90px}
.features-heading{padding-top:42px;border-top:1px solid #385247}
.features-heading .home-eyebrow{margin-bottom:15px}
.features-heading h2{margin:0;font-size:clamp(28px,3.1vw,42px);line-height:1.18;font-weight:500;letter-spacing:-.045em}
.features-heading>p:last-child{margin:18px 0 0;color:#aec1b7;font-size:14px;line-height:1.7}
.feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:32px}
.feature-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:28px;border:1px solid #354e42;border-radius:10px;background:#11251bcc;text-decoration:none;color:#f4f8f5;transition:transform .2s ease-out,border-color .2s,background .2s,box-shadow .2s}
.feature-number{color:#a9c4b5;font:10px ui-monospace,monospace;letter-spacing:.12em}
.feature-card h3{margin:25px 0 11px;font-size:23px;line-height:1.2;font-weight:500;letter-spacing:-.035em}
.feature-card p{margin:0 0 30px;color:#b2c5b9;font-size:13px;line-height:1.8;max-width:34ch}
.feature-link{display:flex;justify-content:space-between;gap:16px;width:100%;margin-top:auto;font-size:11px;font-weight:600;color:#c9ead4}
.feature-link>span{font-size:17px;color:#76df92}
.home-footer{display:flex;justify-content:space-between;align-items:center;gap:24px;width:min(calc(100% - 48px),1256px);margin:0 auto;padding:25px 0 35px;border-top:1px solid #385247;color:#a9bdb1;font-size:11px;line-height:1.6}
.home-footer a{color:#cbe1d3;min-height:44px;display:inline-flex;align-items:center;gap:9px;white-space:nowrap;text-underline-offset:4px}
@media(hover:hover) and (pointer:fine){
  .hero-action:not(:disabled):hover,.preview-button:hover{transform:translateY(-2px)}
  .preview-button:hover{background:#39ff7a;box-shadow:0 5px 18px #00ea4114}
  .feature-card:hover{transform:translateY(-3px);border-color:#659477;background:#163023;box-shadow:0 14px 35px #0002}
}
.hero-action:not(:disabled):active,.preview-button:active,.feature-card:active{transform:translateY(1px) scale(.99)}
.feature-card:focus-visible{border-color:#a0ffb6;background:#163023}
@media(min-width:761px) and (max-width:1100px){
  .hero{gap:28px;padding-left:32px;padding-right:32px}
  .hero-slogan{--hero-title-size:54px}
  .preview-wordmark>span{display:none}
  .preview-content{padding:18px}
  .preview-key{grid-template-columns:28px minmax(0,1fr) auto;gap:7px;padding-left:7px;padding-right:7px}
  .preview-property strong{font-size:11px}
  .preview-status{font-size:9px;padding:5px}
}
@media(max-width:760px){
  .hero{grid-template-columns:minmax(0,1fr);gap:24px;min-height:0;padding:0 max(24px,env(safe-area-inset-right)) 36px max(24px,env(safe-area-inset-left))}
  /* Minimum viewport, never a fixed height: short screens and larger text scroll naturally. */
  .hero-brand{margin:0 auto;min-height:100vh;min-height:100svh;min-height:100dvh;justify-content:center;padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom))}
  .hero-explore{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;max-width:100%;margin-top:22px;padding:10px 12px;color:#a9c4b5;font-size:.8125rem;line-height:1.5;text-underline-offset:4px;text-decoration-thickness:1px}
  .hero-explore:hover{color:#e1ebe5}
  /* The wordmark keeps its logo proportions; reading text can enlarge and wrap. */
  .hero-heading{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  .hero-timeline{display:grid;grid-template-rows:repeat(3,1fr);max-width:calc(100% - (var(--hero-logo-size)/2 - 10.5px))}
  .hero-timeline-key{grid-row:3}
  .hero-timeline-handover{grid-row:2}
  .hero-timeline-accounted{grid-row:1}
  .hero-timeline-text{min-width:0;overflow-wrap:anywhere}
  /* Equal rows retain the line/node centres when enlarged text wraps. */
  .hero-timeline-line{top:calc(100% / 6);bottom:calc(100% / 6)}
  .hero-timeline-cap{bottom:calc(100% - 100% / 6);height:calc(100% / 6 + var(--timeline-gap) + max(0px, (var(--hero-title-size) * 1.07 - var(--hero-logo-size))/2))}
  .hero-brand>.home-eyebrow{margin-bottom:22px;font-size:10px}
  .hero-actions{flex-direction:row;flex-wrap:wrap;gap:12px;width:min(100%,350px);margin-top:30px}
  .hero-action{width:auto;min-width:0;min-height:48px;flex:1;padding:12px 14px}
  .subscribe{flex-basis:100%;min-height:44px}
  .hero-context{margin-top:20px;max-width:290px}
  .product-preview{width:100%;max-width:540px;margin:auto;scroll-margin-top:max(24px,env(safe-area-inset-top))}
  .preview-wordmark>span{display:none}
  .preview-topbar{padding:15px 16px}
  .preview-content{padding:20px 16px}
  .preview-key{grid-template-columns:28px minmax(0,1fr) auto;gap:7px;padding-left:7px;padding-right:7px}
  .preview-property strong{font-size:11px}
  .preview-property small{font-size:9px}
  .preview-status{font-size:9px;padding:5px}
  .preview-handover{padding:16px 12px}
  .home-features{padding:20px 24px 50px}
  .features-heading{padding-top:32px}
  .feature-grid{grid-template-columns:minmax(0,1fr);gap:14px;margin-top:26px}
  .feature-card{padding:24px}
  .feature-card h3{margin-top:20px}
  .feature-card p{max-width:48ch;margin-bottom:24px}
  .home-footer{align-items:flex-start;padding-bottom:25px}
}
@media(max-width:360px){
  .hero{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
  .preview-content{padding:18px 12px}
  .preview-key{grid-template-columns:28px minmax(0,1fr) auto;gap:5px;padding-left:5px;padding-right:5px}
  .home-footer{flex-direction:column;gap:6px}
}
@media(prefers-reduced-motion:reduce){
  .hero-action,.preview-button,.feature-card{transition:none}
  .hero-action:not(:disabled):hover,.hero-action:not(:disabled):active,.preview-button:hover,.preview-button:active,.feature-card:hover,.feature-card:active{transform:none}
}

/* Scoped copies of the app's key-detail/timeline treatment from styles.css and
   theme.css, plus the default branch palette. Do not import app styles globally into the marketing homepage. */
.preview-key-icon{display:grid;place-items:center;flex:none;width:36px;height:36px;color:#00ff41;background:#142b20;border:1px solid #38774b;border-radius:6px}
.preview-key-icon svg{display:block;width:1.65rem;height:1.65rem;fill:currentColor}
.preview-detail-top{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding-bottom:22px;border-bottom:1px solid #30363d}
.preview-detail-top>.preview-property{flex:1;min-width:120px}
.preview-detail-top .preview-key-icon{width:50px;height:50px}
.preview-detail-top .preview-key-icon svg{width:2rem;height:2rem}
.preview-detail-top .preview-property strong{color:#e0e6ed;font-size:1.1rem;letter-spacing:-.02em;overflow-wrap:anywhere}
.preview-detail-top .preview-property small{color:#a0aab5;font-size:.76rem;margin-top:2px}
.preview-detail-top .preview-status{margin-left:auto}
.preview-section-label{color:#00ff41;font:500 .75rem ui-monospace,"SFMono-Regular",Consolas,"Liberation Mono",monospace;letter-spacing:.08em;margin:25px 0 12px}
.preview-detail-label{margin-top:0}
.preview-history-scroll{height:230px;overflow:auto;overscroll-behavior:auto;scrollbar-width:thin;scrollbar-color:#6e7c8b #0d1117;margin-bottom:18px;padding:3px 8px 0 0}
.preview-history-scroll:focus-visible{outline:2px solid #a0ffb6;outline-offset:3px}
.preview-timeline{border-left:2px solid #6e7c8b;margin:4px 0 0 8px;padding:0 0 0 20px;list-style:none}
.preview-timeline li{position:relative;padding:0 0 20px;overflow-wrap:anywhere}
/* Centre the 16px outer node over the 2px track: 20px padding + 1px half-track + 8px half-node. */
.preview-timeline li::before{content:"";position:absolute;box-sizing:content-box;left:-29px;top:3px;width:10px;height:10px;background:#00ff41;border:3px solid #0d1117;border-radius:50%;box-shadow:0 0 0 1px #38774b}
.preview-timeline strong{color:#e0e6ed;font-size:.85rem}
.preview-timeline small{display:block;color:#a0aab5;font-size:.76rem;line-height:1.5;margin-top:3px}
.preview-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:1100px){.preview-key-icon{width:28px;height:28px}.preview-key-icon svg{width:22px;height:22px}}
@media(max-width:760px){.preview-detail-top{gap:14px}.preview-detail-top .preview-status{margin-left:0}}
