/* 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-mouse-pointer-click{--icon:url(/icons/mouse-pointer-click.svg)}
.i-telescope{--icon:url(/icons/telescope.svg)}
.i-calendar-clock{--icon:url(/icons/calendar-clock.svg)}
.i-brain{--icon:url(/icons/brain.svg)}
.i-book-open{--icon:url(/icons/book-open.svg)}
.i-terminal{--icon:url(/icons/terminal.svg)}
.i-container{--icon:url(/icons/container.svg)}
.i-app-window{--icon:url(/icons/app-window.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-monitor{--icon:url(/icons/monitor.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)}

/* 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}

/* 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}
@media(max-width:599px){.site-nav{display:none}}
@media(min-width:600px) and (max-width:767px){.site-header .container{gap:8px}.site-nav{margin-left:0}.site-nav a{padding:8px 6px;font-size:.8125rem}}

/* 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}

/* Download hero retains its two-column layout. */
.hero{padding:var(--spacer-07) 0}
.hero .container{display:grid;gap:var(--spacer-06);align-items:center}
@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}
 .dl{align-items:center;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)}
.shot{border-radius:16px;border:1px solid var(--line);background:var(--surface);box-shadow:0 24px 64px rgb(0 0 0 / .35)}

/* Landing: centered headline, fixed comparison stats, and a full-width app capture. */
.landing-hero{padding:var(--spacer-08) 0}
.landing-hero .container{display:flex;flex-direction:column;align-items:center;text-align:center}
.landing-hero h1{font-size:clamp(2.5rem,7vw,5.5rem);line-height:1.05;letter-spacing:-.04em;font-weight:700}
.hero-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:640px;margin:var(--spacer-06) 0;padding:0;list-style:none}
.hero-stats li{display:flex;flex-direction:column;gap:12px;padding:0 8px}
.hero-stats li + li{border-left:1px solid var(--line)}
.hero-stats strong{font-size:clamp(3rem,8vw,5rem);line-height:1;font-weight:700;font-variant-numeric:tabular-nums;color:var(--text)}
.hero-stats span{font-size:.9375rem;line-height:1.5rem;color:var(--muted)}
.landing-hero .shot{width:100%;max-width:1120px;margin-top:var(--spacer-07)}
@media(min-width:1024px){.landing .section{padding:var(--spacer-09) 0}}

/* 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}

/* Agent capabilities */
.feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:var(--spacer-06);padding:0;list-style:none}
.feature-grid li{display:flex;flex-direction:column;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:16px}
@media(min-width:600px){.feature-grid{gap:var(--spacer-03)}.feature-grid li{gap:12px;padding:24px}}
.nowrap{white-space:nowrap}
.feature-grid .icon,.vault-features .icon{width:24px;height:24px;color:var(--primary)}
.feature-grid p,.split-text p{color:var(--muted)}
@media(max-width:599px){.feature-grid h3{font-size:1.0625rem;line-height:1.5rem}.feature-grid p{font-size:.875rem;line-height:1.25rem}}
@media(min-width:1024px){.feature-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Models and password vault */
.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-mirrored .split-text{grid-column:8 / span 5;grid-row:1}
 .split-mirrored .split-media{grid-column:1 / span 7;grid-row:1}}
.split-text h2{margin-bottom:var(--spacer-03)}
.split > *{min-width:0}
.model-chips{display:flex;flex-wrap:wrap;gap:12px;margin-top:var(--spacer-04);padding:0;list-style:none}
.model-chips li{padding:8px 16px;background:var(--surface-2);border:1px solid var(--line);border-radius:999px;font-size:.9375rem}
.vault-features{display:flex;flex-direction:column;gap:var(--spacer-04);padding:0;list-style:none}
.vault-features li{display:flex;gap:var(--spacer-02)}
.vault-features .icon{margin-top:2px}
.vault-features h3{margin-bottom:8px}

/* 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{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}}
