/* Homepage based on the user's 4 October 2026 design study. */
.home-layout{--card:#1b283c;--local:#7ee0b8;--external:#edb66b;--lina-size:160px;min-height:100vh;display:flex;flex-direction:column}
.home-layout .wrap{width:100%;max-width:1240px;margin-inline:auto;padding-inline:clamp(20px,4.5vw,56px)}
.home-layout .home-page{flex:1}
.home-layout .site-header{flex-wrap:wrap;gap:16px 30px;padding-block:26px}
.home-layout .site-header .wordmark{font-size:26px;letter-spacing:-1.6px}
.home-layout .site-header>nav{order:0;width:auto;justify-content:flex-start;gap:12px 26px;margin:0;padding:0;border:0}
.home-layout .site-header nav a{font-size:13px}
.home-layout .site-header .header-actions{display:flex;gap:0;margin:0}
.home-layout .language-switch{margin:0}
.home-layout .language-switch a{min-height:0}
.home-layout .eyebrow{font-size:11px;font-weight:600;letter-spacing:1.9px;text-transform:uppercase;color:#9bbaff}
.home-layout .home-page h2{font-size:clamp(30px,3.4vw,40px);line-height:1.15;letter-spacing:-.04em;font-weight:500}
.home-layout .button{margin:0;padding:16px 28px;font-size:14px}
.home-layout .text-link{font-weight:600;text-decoration-color:#6d86ad}
.home-layout .text-link:hover{text-decoration-color:currentColor}

.home-hero{position:relative;padding-top:clamp(24px,4vw,44px)}
.hero-intro{max-width:1100px;margin:0 auto;text-align:center;padding-bottom:calc(clamp(28px,4vw,44px) + 12px)}
.home-layout .home-hero .hero-description{max-width:1080px;margin:20px auto 0;font-size:clamp(30px,4vw,48px);font-weight:500;line-height:1.16;letter-spacing:-.03em;color:#d6e2ff}
.home-layout .home-hero .hero-feature{color:#9bbaff}
.home-layout .home-hero .hero-slogan{max-width:none;margin:38px 0 0;font-size:clamp(20px,2.2vw,26px);font-weight:400;line-height:1.45;letter-spacing:-.01em;color:#a8b8d2}
.home-layout .home-hero .hero-slogan strong{color:#d6e2ff;font-weight:600}
.home-layout .home-hero .slogan-punchline{color:#9bbaff;font-weight:500}
.hero-download{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:16px 22px;margin-top:70px;padding-left:clamp(0px,3vw,40px)}
.hero-download-note{font-size:12px;line-height:1.5;color:var(--muted);text-align:left}
.home-hero .hero-mascot{--mascot-width:clamp(120px,18vw,220px);position:absolute;z-index:2;left:clamp(16px,7vw,80px);bottom:calc(var(--mascot-width) * -.17);width:var(--mascot-width);height:auto;pointer-events:none}
.home-product{position:relative;margin:0;background:linear-gradient(var(--paper) 0,var(--paper) 60px,var(--dark) 60px)}
.product-window{position:relative;max-height:clamp(120px,32vw,380px);overflow:hidden;border-radius:14px 14px 0 0;box-shadow:0 -10px 40px #0004;transition:max-height .45s ease,border-radius .45s ease}
.product-window .app-capture{border-radius:14px;box-shadow:none}
.product-window::after{content:"";position:absolute;inset:auto 0 0;height:120px;background:linear-gradient(transparent,var(--dark));pointer-events:none;transition:opacity .35s ease}
.home-product.is-expanded .product-window{max-height:720px;border-radius:14px}
.home-product.is-expanded .product-window::after{opacity:0}
.home-product figcaption{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:0 20px;background:var(--dark);border-bottom:1px solid var(--line);padding:10px clamp(20px,4.5vw,56px);font-size:12px;text-align:center;color:var(--muted)}
.screenshot-toggle{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:8px 0;border:0;background:none;color:var(--strong);font:inherit;font-weight:600;cursor:pointer}
.screenshot-toggle[hidden]{display:none}
/* Extend the native button's hit area over the screenshot without adding a second tab stop. */
.screenshot-toggle::before{content:"";position:absolute;inset:0;z-index:1;cursor:pointer}
.screenshot-toggle:hover{text-decoration:underline;text-underline-offset:4px}
.screenshot-toggle:focus-visible{outline:2px solid var(--strong);outline-offset:5px;border-radius:3px}
.screenshot-chevron{display:inline-block;font-size:17px;transition:transform .35s ease}
.home-product.is-expanded .screenshot-chevron{transform:rotate(180deg)}

.home-features{padding-block:clamp(48px,6vw,72px) clamp(44px,5vw,64px)}
.features-heading{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:16px 30px}
.features-heading p{font-size:14px;color:var(--muted);max-width:380px}
.feature-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:clamp(20px,3vw,36px);margin-top:36px}
.feature-card{display:flex;flex-direction:column;min-width:0;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:28px 28px 26px}
.feature-card>img{display:block;width:var(--lina-size);height:var(--lina-size);max-width:100%;object-fit:contain;margin:0 auto 18px}
.feature-card>img[src="/assets/lina-tasks-v1.png"]{transform:scale(1.2)}
.feature-card h3{font-size:22px;font-weight:600;letter-spacing:-.5px}
.feature-card p{margin-top:8px;font-size:14px;line-height:1.7;color:var(--muted)}
.feature-card .text-link{margin-top:auto;padding-top:20px;font-size:13px}

.home-local{position:relative;background:var(--dark);border-block:1px solid var(--line);padding-block:clamp(44px,5vw,64px)}
.home-layout .home-local h2{margin-top:16px;max-width:700px}
.local-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:40px;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.local-column{padding:32px 34px;min-width:0}
.stays-local{--status:var(--local);border-right:1px solid var(--line)}
.goes-out{--status:var(--external)}
.local-column h3{font-size:11px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:var(--status)}
.local-column ul{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:14px;font-size:15px;line-height:1.6}
.local-column li{display:flex;gap:12px}
.local-column li::before{content:"";flex:none;width:.65em;height:.65em;border-radius:50%;background:var(--status);margin-top:.48em}
.local-note{margin-top:22px;font-size:14px;color:var(--muted);max-width:760px}

.home-setup{position:relative;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:clamp(32px,5vw,60px);align-items:start;padding-block:clamp(44px,5vw,64px)}
.setup-list{list-style:none;padding:0;margin:30px 0 0}
.setup-list li{display:grid;grid-template-columns:48px minmax(0,1fr);gap:16px;padding:20px 0;border-top:1px solid var(--line)}
.setup-list li:last-child{border-bottom:1px solid var(--line)}
.setup-list .small-index{font-size:11px;letter-spacing:1.5px;color:#9bbaff;padding-top:5px}
.setup-list h3{font-size:18px;font-weight:600}
.setup-list p{font-size:14px;color:var(--muted);margin-top:4px}
.download-card{width:100%;max-width:420px;justify-self:end;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:30px}
.download-card .button{display:flex;width:100%;margin-top:18px;padding:16px 26px}
.download-card dl{margin:22px 0 0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 16px;font-size:12px;color:var(--muted)}
.download-card dt{font-weight:600;color:var(--ink)}
.download-card dd{margin:0}
.download-card .text-link{display:inline-block;margin-top:20px;font-size:13px}

.hardware-note{display:grid;grid-template-columns:minmax(150px,1fr) minmax(0,2.65fr) minmax(150px,1fr);gap:clamp(20px,3vw,36px);align-items:center;border-top:1px solid var(--line);padding-block:36px 44px}
.hardware-illustration{display:block;width:195px;height:195px;max-width:100%;object-fit:contain;justify-self:center}
.hardware-copy{min-width:0}
.home-layout .hardware-note h2{font-size:clamp(28px,3.4vw,40px);max-width:none;margin-inline:calc(-1 * clamp(28px,4vw,56px));text-wrap:balance}
.hardware-note p{max-width:800px;margin-top:16px;font-size:15px;line-height:1.75;color:var(--muted)}
.hardware-note .text-link{display:inline-block;margin-top:18px;font-size:14px}
.hardware-note .hardware-caption{font-size:12px;line-height:1.6;margin-top:20px}
@media(max-width:1000px){
  .hardware-note{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  .hardware-copy{grid-column:1/-1;grid-row:1}
  .home-layout .hardware-note h2{margin-inline:-12px}
}

.home-contribute{position:relative}
.contribute-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:32px 50px;align-items:center;border-top:1px solid var(--line);padding-block:48px 56px}
.home-contribute .wanted-poster{width:100%;max-width:180px;justify-self:start}
.home-layout .contribute-copy h2{font-size:clamp(28px,3vw,36px)}
.project-tags{list-style:none;display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 0;padding:0;font-size:12px;font-weight:600}
.project-tags li{border:1px solid var(--line);border-radius:100px;padding:6px 12px}
.project-tags a{text-decoration:none}.project-tags a:hover{text-decoration:underline}
.contribute-copy>p{margin-top:16px;font-size:14px;line-height:1.8;color:var(--muted);max-width:620px}
.contribute-copy>.text-link{display:inline-block;margin-top:16px;font-size:14px}
.home-footer{border-top:1px solid var(--line)}
.footer-inner{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:24px 30px;padding-block:26px;font-size:12px;color:var(--muted)}
.home-footer .wordmark{font-size:20px;letter-spacing:-1.4px;color:var(--ink)}
.section-alias{position:absolute;top:0;left:0;width:0;height:0;overflow:hidden}

/* Keep Lina clear of the CTA where the centered row reaches her corner. */
@media(max-width:900px){.hero-intro{padding-bottom:132px}}
@media(max-width:680px){
  .home-layout .hardware-note h2{margin-inline:0}
  .home-layout .site-header>nav{order:3;width:100%;justify-content:center;gap:12px 22px}
  .home-layout .site-header .header-actions{margin-left:auto}
  .hero-download{padding-left:0}
  .hero-download-note{text-align:center}
  .local-comparison{grid-template-columns:1fr}
  .stays-local{border-right:0;border-bottom:1px solid var(--line)}
  .local-column{padding:28px}
  .download-card{justify-self:start;max-width:none}
  .contribute-layout{grid-template-columns:1fr;gap:28px}
  .home-contribute .wanted-poster{justify-self:center}
}
@media(max-width:370px){
  .home-layout .site-header>nav{gap:12px 18px}
  .feature-card,.local-column,.download-card{padding-inline:24px}
}

/* Screenshot gallery: keep the opener above the expanded image button hit area. */
.gallery-open{position:relative;z-index:2;border:0;background:none;color:var(--strong);font:inherit;font-weight:600;min-height:44px;padding:8px 0;cursor:pointer}
.gallery-open[hidden],.gallery-slide[hidden]{display:none}
.gallery-open:hover{text-decoration:underline;text-underline-offset:4px}
.screenshot-gallery{width:min(1240px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:clamp(12px,2vw,24px);border:1px solid var(--line);border-radius:18px;background:var(--dark);color:var(--ink);box-shadow:0 24px 100px #0008;overflow:auto}
.screenshot-gallery::backdrop{background:#060c18dc}
.gallery-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.home-layout .gallery-header h2{font-size:20px;letter-spacing:0;margin:0}
.screenshot-gallery button{border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--ink);min-width:44px;min-height:44px;font-size:24px;cursor:pointer}
.screenshot-gallery button:hover{background:#31425b}
.gallery-open:focus-visible,.screenshot-gallery :focus-visible{outline:2px solid var(--strong);outline-offset:3px}
.gallery-slide{margin:0}
.gallery-slide .app-capture{width:min(100%,calc((100dvh - 250px) * 1.7311));min-width:min(100%,260px);margin-inline:auto;box-shadow:none}
.gallery-slide figcaption{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px 20px;margin-top:18px}
.gallery-slide h3{font-size:18px;margin:0}
.gallery-slide .text-link{font-size:14px}
.gallery-controls{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:20px}
.gallery-controls [role=status]{font-size:13px;text-align:center;color:var(--muted)}

.home-delegation{display:grid;grid-template-columns:minmax(0,.6fr) minmax(0,1.75fr);align-items:center;gap:24px 30px;margin-top:28px;padding-top:24px}
.home-delegation>div{min-width:0}
.delegation-illustration{display:block;width:100%;height:auto;margin-inline:auto}
.home-delegation h3{font-size:20px;font-weight:500;line-height:1.35;letter-spacing:-.02em}
.home-delegation p{margin-top:8px;font-size:14px;line-height:1.7;color:var(--muted)}
.home-delegation .text-link{display:inline-block;margin-top:12px;font-size:13px}
@media(max-width:700px){.home-delegation{grid-template-columns:1fr}.delegation-illustration{width:60%;max-width:300px;margin-inline:auto}}
