/* heisen.dev — layout, type scale and spacing follow Chrome's download page (plan D6), in a dark palette. */

@font-face{font-family:Geist;src:url(/fonts/Geist-Variable.woff2) format('woff2');font-weight:100 900;font-display:swap}

:root{color-scheme:dark;--bg:#1f1f1f;--surface:#282828;--surface-2:#303030;--line:#3c3c3c;--text:#e3e3e3;--muted:#a3a3a3;
 --primary:#a8c7fa;--on-primary:#062e6f;--primary-hover:#bcd3fb;--focus:#c7c7c7;--ok:#6dd58c;
 --spacer-01:8px;--spacer-02:16px;--spacer-03:24px;--spacer-04:32px;--spacer-05:24px;--spacer-06:40px;--spacer-07:64px;--spacer-08:80px;--spacer-09:120px;
 --container:1296px;--gutter:24px;--grid-gap:24px;--header:64px;--radius-card:24px;
 --font:Geist,"Apple SD Gothic Neo","Pretendard","Noto Sans KR",sans-serif}
@media(min-width:600px){:root{--gutter:40px;--grid-gap:40px}}
@media(min-width:1024px){:root{--spacer-05:40px;--spacer-06:64px;--spacer-07:80px;--spacer-08:120px;--spacer-09:160px;--gutter:72px;--grid-gap:48px}}

/* Base */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--header) + var(--spacer-02))}
body{margin:0;background:var(--bg);color:var(--text);font:400 1rem/1.5rem var(--font);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
 display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
main{flex:1}
h1,h2,h3,p,ol,ul,figure{margin:0}
h1,h2,h3{word-break:keep-all;overflow-wrap:break-word}
p,li{word-break:keep-all;overflow-wrap:break-word}
img{display:block;max-width:100%;height:auto}
a{color:var(--primary);text-underline-offset:3px}
a:hover{color:var(--primary-hover)}
code{font-family:ui-monospace,"SF Mono",Menlo,monospace;font-size:.8125rem}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}

.container{width:100%;max-width:calc(var(--container) + 2 * var(--gutter));margin:0 auto;padding:0 var(--gutter)}

.skip{position:absolute;left:var(--spacer-02);top:-100px;z-index:20;padding:var(--spacer-01) var(--spacer-02);border-radius:8px;background:var(--primary);color:var(--on-primary);font-weight:500;text-decoration:none}
.skip:focus{top:var(--spacer-01)}

/* Icons: lucide-static SVG files used as masks so they take the text color. */
.icon{display:inline-block;flex:none;width:20px;height:20px;background:currentColor;
 -webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat}
.i-zap{--icon:url(/icons/zap.svg)}
.i-shield-check{--icon:url(/icons/shield-check.svg)}
.i-eye-off{--icon:url(/icons/eye-off.svg)}
.i-key-round{--icon:url(/icons/key-round.svg)}
.i-user-plus{--icon:url(/icons/user-plus.svg)}
.i-download{--icon:url(/icons/download.svg)}
.i-monitor{--icon:url(/icons/monitor.svg)}
.i-check{--icon:url(/icons/check.svg)}
.i-circle-help{--icon:url(/icons/circle-help.svg)}
.i-arrow-down{--icon:url(/icons/arrow-down.svg)}

/* Type scale (Chrome chr-headline-1 / -2, chr-copy, caption) */
h1,.h1{font-size:2.5rem;line-height:3rem;font-weight:700;letter-spacing:-.078rem}
h2,.h2{font-size:2.25rem;line-height:2.75rem;font-weight:700;letter-spacing:-.05rem}
h3{font-size:1.25rem;line-height:1.75rem;font-weight:700;letter-spacing:-.01rem}
@media(min-width:600px){h1,.h1{font-size:3rem;line-height:3.5rem}h2,.h2{font-size:2.5rem;line-height:3rem}}
@media(min-width:1024px){h1,.h1{font-size:3.75rem;line-height:4.5rem}h2,.h2{font-size:3rem;line-height:3.5rem}}
.lead{font-size:1.125rem;line-height:1.75rem;color:var(--muted)}
.caption{font-size:.75rem;line-height:1.125rem;color:var(--muted)}
.eyebrow{display:inline-flex;align-items:center;gap:var(--spacer-01);margin-bottom:var(--spacer-02);color:var(--primary);font-size:.875rem;line-height:1.25rem;font-weight:500}

/* Buttons (Chrome: radius 24px, padding 12px 24px, weight 500, gap 8px) */
.btn-primary,.btn-tonal{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 24px;border:1px solid transparent;border-radius:24px;
 font:500 1rem/1.5rem var(--font);text-decoration:none;white-space:nowrap;cursor:pointer;transition:background-color .15s,color .15s,border-color .15s}
.btn-primary{background:var(--primary);color:var(--on-primary)}
.btn-primary:hover{background:var(--primary-hover);color:var(--on-primary)}
.btn-tonal{background:transparent;border-color:var(--line);color:var(--primary)}
.btn-tonal:hover{background:var(--surface);border-color:var(--muted);color:var(--primary-hover)}
.btn-lg{padding:20px 32px;border-radius:32px;font-size:1.125rem;line-height:1.5rem}
/* Download icon as a mask on the link itself: download.mjs rewrites #dl-primary's text, so the icon cannot be a child. */
.btn-dl::before{content:"";flex:none;width:20px;height:20px;background:currentColor;-webkit-mask:url(/icons/download.svg) center/contain no-repeat;mask:url(/icons/download.svg) center/contain no-repeat}
.btn-primary[aria-disabled=true]{background:var(--surface-2);color:var(--muted);cursor:not-allowed}
.text-link{display:inline-flex;align-items:center;gap:6px;font-weight:500;text-decoration:none}
.text-link:hover{text-decoration:underline}

/* Header */
.site-header{position:sticky;top:0;z-index:10;height:var(--header);background:rgb(31 31 31 / .88);border-bottom:1px solid var(--line);
 -webkit-backdrop-filter:saturate(1.4) blur(16px);backdrop-filter:saturate(1.4) blur(16px)}
.site-header .container{display:flex;align-items:center;gap:var(--spacer-02);height:100%}
.brand{display:inline-flex;align-items:center;gap:10px;color:var(--text);font-weight:600;font-size:1.25rem;letter-spacing:-.02rem;text-decoration:none}
.brand:hover{color:var(--text)}
.brand img{width:32px;height:32px;border-radius:8px}
.site-nav{flex:1;display:flex;margin-left:var(--spacer-02)}
.site-nav ul{display:flex;gap:4px;padding:0;list-style:none}
.site-nav a{display:block;padding:8px 12px;border-radius:20px;color:var(--text);font-size:.875rem;line-height:1.25rem;font-weight:500;text-decoration:none;white-space:nowrap}
.site-nav a:hover{background:var(--surface);color:var(--text)}
.site-header .btn-primary{margin-left:auto;padding:8px 20px;font-size:.875rem;line-height:1.5rem}
/* Jump link to a section the speed importer kept hidden (no measurement yet). */
body:has(#speed[hidden]) .site-nav a[href="#speed"]{display:none}
@media(max-width:599px){.site-nav{display:none}}
@media(min-width:600px) and (max-width:767px){.site-nav a{padding:8px}}

/* Sections */
.section{padding:var(--spacer-08) 0}
.section-head{max-width:840px;margin-bottom:var(--spacer-06)}
.section-head p{margin-top:var(--spacer-03);color:var(--muted);font-size:1.125rem;line-height:1.75rem}

/* Hero: text column + media column, 5/7 of 12 at ≥1024, one column below */
.hero{padding:var(--spacer-07) 0}
.hero .container{display:grid;gap:var(--spacer-06);align-items:center}
/* Chrome chr-hero-50-50: text and media share the row at ≥1024; below, a centered single column. */
@media(min-width:1024px){.hero .container{grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--grid-gap)}
 .hero-text{grid-column:1 / span 6}.hero-media{grid-column:7 / span 6}}
@media(max-width:1023px){.hero-text{display:flex;flex-direction:column;align-items:center;text-align:center}
 .hero-actions,.dl{align-items:center}.hero .lead,.dl{margin-left:auto;margin-right:auto}}
.hero-logo{width:64px;height:64px;margin-bottom:var(--spacer-03);border-radius:14px}
.hero h1{margin-bottom:var(--spacer-03)}
.hero .lead{max-width:560px;margin-bottom:var(--spacer-06)}
.hero-actions{display:flex;flex-direction:column;align-items:flex-start;gap:var(--spacer-03)}
.shot{border-radius:16px;border:1px solid var(--line);background:var(--surface);box-shadow:0 24px 64px rgb(0 0 0 / .35)}

/* Download block (Chrome simplify-download: button → sniffer → legal → others, max-width 516px) */
.dl{display:flex;flex-direction:column;align-items:flex-start;max-width:516px;margin-top:var(--spacer-03)}
/* Button group: the OS caption sits centered under whichever buttons are visible (Chrome __sniffer). */
.dl-main{display:inline-flex;flex-direction:column;align-items:center;text-align:center}
.dl-sniffer{order:1;margin-top:8px;font-size:.75rem;line-height:1.125rem;color:var(--muted)}
.dl-meta{order:1;display:flex;justify-content:center;font-size:.75rem;line-height:1.125rem;color:var(--muted)}
.dl-meta span + span:not([hidden])::before{content:"·";margin:0 6px}
.dl-meta:not(:has(span:not([hidden]))){display:none}
.dl-chooser,.dl-windows{display:flex;flex-direction:column;align-items:center;gap:12px}
/* Windows: the caption is wider than the disabled button, so the group aligns to the text column instead of centering. */
@media(min-width:1024px){.dl-main:has(#dl-windows:not([hidden])),.dl-main:has(#dl-windows:not([hidden])) .dl-windows{align-items:flex-start;text-align:left}}
.dl-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
/* download.mjs moves the hinted architecture first; the first choice gets the filled style. */
.dl-choices a:first-child{background:var(--primary);color:var(--on-primary)}
.dl-choices a:first-child:hover{background:var(--primary-hover)}
.dl-choices a:not(:first-child){background:transparent;border-color:var(--line);color:var(--primary)}
.dl-choices a:not(:first-child):hover{background:var(--surface);border-color:var(--muted)}
.dl-hint,.dl-windows p{font-size:.875rem;line-height:1.25rem;color:var(--muted)}
.dl-legal{margin-top:var(--spacer-03);font-size:.75rem;line-height:1.125rem;color:var(--muted)}
.dl-legal a{color:var(--muted)}
.dl-legal a:hover{color:var(--text)}
.dl-others{margin-top:var(--spacer-02);font-size:.875rem;line-height:1.25rem;color:var(--muted)}
.dl-others a{font-weight:500}

/* Cards */
.card{display:flex;flex-direction:column;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card)}
.card-body{display:flex;flex-direction:column;gap:12px;padding:var(--spacer-04)}
.card-body p{color:var(--muted)}
.card-icon{width:24px;height:24px;color:var(--primary);margin-bottom:4px}
.card-note{margin-top:4px;padding-top:var(--spacer-02);font-size:.875rem;line-height:1.25rem;color:var(--muted);border-top:1px solid var(--line)}
.card-title{display:flex;flex-direction:column;gap:12px}
.card-text{display:flex;flex-direction:column;gap:12px}
.card-text p:not(.card-note){color:var(--muted)}
.card-media{margin-top:auto;padding:0 0 0 var(--spacer-04)}
.card-media img{border-top-left-radius:12px;border:1px solid var(--line);border-width:1px 0 0 1px}

.cards{display:grid;gap:var(--spacer-03)}
/* ≥1024: the two screenshot cards share the first row; the text-only card spans the second row in two columns. */
@media(min-width:1024px){
 .cards{grid-template-columns:repeat(12,minmax(0,1fr))}
 .cards > :nth-child(1){grid-column:1 / span 6;grid-row:1}
 .cards > :nth-child(3){grid-column:7 / span 6;grid-row:1}
 .cards > :nth-child(2){grid-column:1 / -1;grid-row:2}
 .card-row{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--grid-gap);padding:var(--spacer-06)}
 .card-row .card-title{grid-column:span 5}
 .card-row .card-text{grid-column:span 7}
}

/* Speed block (markup generated by scripts/import-speed.mjs) */
.speed-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:var(--spacer-02);padding:0;list-style:none}
.speed-card{display:flex;flex-direction:column;gap:12px;padding:var(--spacer-03);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card)}
/* ≥1024: the three time metrics share one row, the two memory metrics (long KiB values) the next. */
@media(min-width:1024px){.speed-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
 .speed-card{grid-column:span 2}.speed-card:nth-child(n+4){grid-column:span 3}}
.speed-label{font-size:.875rem;line-height:1.25rem;color:var(--muted)}
.speed-pair{display:flex;flex-direction:column;gap:4px}
.speed-value{font-size:1rem;color:var(--muted)}
.speed-value b{font-size:2.25rem;line-height:2.75rem;font-weight:700;letter-spacing:-.05rem;color:var(--text);font-variant-numeric:tabular-nums}
.speed-vs{font-size:.875rem;line-height:1.25rem;color:var(--muted);font-variant-numeric:tabular-nums}
.speed-ratio{align-self:flex-start;margin-top:auto;padding:4px 12px;border-radius:16px;background:rgb(168 199 250 / .14);color:var(--primary);font-size:.875rem;line-height:1.25rem;font-weight:600;font-variant-numeric:tabular-nums}
.speed-note{margin-top:var(--spacer-03);font-size:.75rem;line-height:1.125rem;color:var(--muted)}
.speed-limits{margin-top:var(--spacer-02);font-size:.875rem;line-height:1.25rem;color:var(--muted)}
.speed-limits summary{cursor:pointer;color:var(--primary);font-weight:500}
.speed-limits ul{margin-top:var(--spacer-01);padding-left:1.25rem}
.speed-limits li + li{margin-top:4px}

/* Split section: text + screenshot (signup) */
.split{display:grid;gap:var(--spacer-06);align-items:center}
@media(min-width:1024px){.split{grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--grid-gap)}
 .split-text{grid-column:1 / span 5}.split-media{grid-column:6 / span 7}}
.split-text h2{margin-bottom:var(--spacer-03)}
.checks{display:flex;flex-direction:column;gap:var(--spacer-02);padding:0;list-style:none;color:var(--muted)}
.checks li{display:flex;gap:12px}
.checks .icon{margin-top:2px;color:var(--ok)}
.checks strong{color:var(--text);font-weight:500}

/* FAQ (Chrome: accordion of questions under one h2) */
.faq-list{border-top:1px solid var(--line)}
.faq-list details{border-bottom:1px solid var(--line)}
.faq-list summary{display:flex;align-items:center;justify-content:space-between;gap:var(--spacer-02);padding:var(--spacer-03) 0;cursor:pointer;list-style:none}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{content:"";flex:none;width:24px;height:24px;background:var(--muted);-webkit-mask:url(/icons/arrow-down.svg) center/20px no-repeat;mask:url(/icons/arrow-down.svg) center/20px no-repeat;transition:transform .2s}
.faq-list details[open] summary::after{transform:rotate(180deg)}
.faq-list summary:hover h3{color:var(--primary)}
.faq-answer{max-width:840px;padding:0 0 var(--spacer-03);color:var(--muted)}
.faq-answer ol,.faq-answer ul{padding-left:1.25rem}
.faq-answer li + li{margin-top:4px}
.faq-answer p + p,.faq-answer ol + p,.faq-answer p + ol{margin-top:12px}

/* Steps (download page: 설치, 베타 참여) */
.steps{display:grid;gap:var(--spacer-03);padding:0;list-style:none;counter-reset:step}
@media(min-width:768px){.steps{grid-template-columns:repeat(var(--cols,3),minmax(0,1fr))}}
.steps li{counter-increment:step;display:flex;flex-direction:column;gap:var(--spacer-02);padding:var(--spacer-04);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card);color:var(--muted)}
.steps li::before{content:counter(step);display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--primary);color:var(--on-primary);font-weight:700;font-size:1.125rem}
.steps strong{color:var(--text);font-weight:500}
.steps-2{--cols:2}
.note{display:flex;gap:12px;max-width:840px;margin-top:var(--spacer-04);padding:var(--spacer-03);border-radius:16px;background:var(--surface);border:1px solid var(--line);color:var(--muted);font-size:.875rem;line-height:1.375rem}
.note .icon{margin-top:1px;color:var(--primary)}
.note strong{color:var(--text);font-weight:500}

/* Checksums table */
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:16px}
table{width:100%;border-collapse:collapse;font-size:.875rem;line-height:1.25rem}
th,td{padding:14px var(--spacer-03);text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
th{background:var(--surface);color:var(--muted);font-weight:500;white-space:nowrap}
tbody tr:last-child td{border-bottom:0}
td{white-space:nowrap}
td code{white-space:normal;word-break:break-all;color:var(--text)}
td:last-child{white-space:normal;min-width:280px}
/* <600: each file becomes a block — name, then "version · size", then the hash. */
@media(max-width:599px){
 .table-wrap thead{display:none}
 .table-wrap tbody,.table-wrap tr,.table-wrap td{display:block}
 .table-wrap tr{padding:var(--spacer-02) var(--spacer-03);border-bottom:1px solid var(--line)}
 .table-wrap tr:last-child{border-bottom:0}
 .table-wrap td{padding:0;border:0;white-space:normal;min-width:0}
 .table-wrap td:first-child{color:var(--text);font-weight:500}
 .table-wrap td:nth-child(2),.table-wrap td:nth-child(3){display:inline;color:var(--muted)}
 .table-wrap td:nth-child(3)::before{content:" · "}
 .table-wrap td:last-child{margin-top:var(--spacer-01)}
}

/* Footer (Chrome: link row, then legal bar with logo) */
.site-footer{margin-top:var(--spacer-08);border-top:1px solid var(--line);background:var(--bg)}
.site-footer .container{display:flex;flex-wrap:wrap;align-items:center;gap:var(--spacer-02) var(--spacer-04);padding-top:var(--spacer-04);padding-bottom:var(--spacer-04)}
.site-footer .brand{font-size:1rem}
.site-footer .brand img{width:24px;height:24px;border-radius:6px}
.footer-links{display:flex;flex-wrap:wrap;gap:var(--spacer-01) var(--spacer-03);padding:0;list-style:none;font-size:.875rem;line-height:1.25rem}
.footer-links a{color:var(--text);text-decoration:none}
.footer-links a:hover{color:var(--primary);text-decoration:underline}
.footer-meta{display:flex;flex-wrap:wrap;gap:4px var(--spacer-03);margin-left:auto;font-size:.75rem;line-height:1.125rem;color:var(--muted)}
@media(max-width:767px){.footer-meta{margin-left:0;width:100%}}

/* Legal documents (privacy, terms) */
.doc{width:100%;max-width:calc(720px + 2 * var(--gutter));margin:0 auto;padding:var(--spacer-07) var(--gutter) 0}
.doc h1{font-size:2.25rem;line-height:2.75rem;letter-spacing:-.05rem;margin-bottom:var(--spacer-03)}
@media(min-width:600px){.doc h1{font-size:2.5rem;line-height:3rem}}
.doc h2{font-size:1.25rem;line-height:1.75rem;letter-spacing:-.01rem;margin:var(--spacer-06) 0 12px}
.doc p,.doc ul{color:var(--muted)}
.doc p + p,.doc ul + p,.doc p + ul{margin-top:12px}
.doc ul{padding-left:1.25rem}
.doc li + li{margin-top:6px}

/* Centered single message (404, sign-in complete) */
.center{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--spacer-02);padding:var(--spacer-08) var(--gutter);text-align:center}
.center img{width:64px;height:64px;border-radius:14px;margin-bottom:var(--spacer-01)}
.center h1{font-size:2rem;line-height:2.5rem;letter-spacing:-.04rem}
.center p{color:var(--muted)}
.center .btn-primary{margin-top:var(--spacer-02)}
.center-page main{display:flex}
.center-page .center{flex:1}
.auth-done p:first-of-type{color:var(--text);font-size:1.25rem;line-height:1.75rem;font-weight:600;max-width:24em}

@media(max-width:599px){.dl,.dl-main,.hero-actions{align-self:stretch;max-width:none}
 .dl-main > .btn-primary,.dl-choices,.dl-choices a{width:100%;white-space:normal;text-align:center}
 .dl-choices{flex-direction:column}}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
