:root{
  --navy:#1b2a4e; --navy-deep:#16223f; --red:#c4291f; --red-dark:#9e2018;
  --bg:#ffffff; --bg-soft:#eef1f6; --ink:#1c2333; --ink-soft:#5b6472; --ink-faint:#8d94a3;
  --line:#e3e7ee; --shadow:0 14px 30px -18px rgba(20,30,60,.28);
  color-scheme:light;
}
*{box-sizing:border-box}
body{
  margin:0; background:var(--bg); color:var(--ink);
  /* sticky footer: short pages (404) still fill the viewport */
  min-height:100vh; min-height:100dvh; display:flex; flex-direction:column;
  font-family:"Manrope",ui-sans-serif,system-ui,sans-serif; font-size:16px; line-height:1.6;
}
::selection{background:var(--red); color:#fff}
a{color:inherit}
img{max-width:100%; display:block}
svg.icon{width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round}
.wrap{max-width:1180px; margin:0 auto;
  padding-left:max(16px, env(safe-area-inset-left,0px));
  padding-right:max(16px, env(safe-area-inset-right,0px))}
h1,h2,h3,h4{font-family:"Manrope",sans-serif; color:var(--navy); margin:0; text-wrap:balance}
h1{font-weight:800} h2{font-weight:800} h3,h4{font-weight:700}
p{margin:0}
[hidden]{display:none!important}

.btn{display:inline-flex; align-items:center; gap:8px; font:700 .95rem/1 "Manrope",sans-serif;
  padding:13px 24px; border-radius:8px; text-decoration:none; border:1.5px solid transparent; cursor:pointer;}
.btn-red{background:var(--red); color:#fff}
.btn-red:hover{background:var(--red-dark)}
.btn-white{background:#fff; color:var(--navy)}
.btn-white:hover{background:#f1f3f8}
.btn-outline-light{background:transparent; color:#fff; border-color:rgba(255,255,255,.55)}
.btn-outline-light:hover{border-color:#fff}
.btn-outline-navy{background:transparent; color:#fff; border-color:rgba(255,255,255,.5)}

/* ---------- topbar ---------- */
.topbar{background:var(--red); color:#fff; font-size:.82rem; font-weight:600; padding-top:env(safe-area-inset-top,0px)}
.topbar .wrap{display:flex; gap:26px; padding-block:8px; flex-wrap:wrap}
.topbar a{text-decoration:none; color:#fff; display:inline-flex; align-items:center; gap:7px}
.topbar svg.icon{width:15px; height:15px}

/* ---------- header ---------- */
header.site{background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20}
.header-row{display:flex; align-items:center; justify-content:space-between; padding-block:14px; gap:14px; flex-wrap:wrap}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none; min-width:0}
.brand-mark{width:40px; height:40px; border-radius:10px; background:var(--red); display:flex; align-items:center; justify-content:center; color:#fff; flex-shrink:0}
.brand-mark svg.icon{width:22px; height:22px; stroke:#fff}
.brand-name{font-weight:800; font-size:1.02rem; letter-spacing:.04em; color:var(--navy); text-transform:uppercase; line-height:1.15; white-space:nowrap}
.brand-sub{font-weight:700; font-size:.82rem; color:var(--red)}
nav.main-nav{display:flex; align-items:center; gap:24px; font-weight:700; font-size:.92rem; flex-wrap:wrap}
nav.main-nav a{text-decoration:none; color:var(--navy)}
nav.main-nav a:hover{color:var(--red)}
nav.main-nav a.active{color:var(--red)}
.header-right{display:flex; align-items:center; gap:10px; flex-shrink:0}

/* ---------- mobile off-canvas nav ---------- */
.menu-toggle{display:none; align-items:center; justify-content:center; background:none; border:0; cursor:pointer; padding:5px; color:var(--navy)}
.menu-toggle svg{width:25px; height:25px}
.nav-close{display:none}
.nav-overlay{display:none}
@media (max-width:760px){
  .menu-toggle{display:flex}
  nav.main-nav{
    position:fixed; top:0; right:0; z-index:60; height:100%; width:min(78vw,300px);
    background:#fff; flex-direction:column; align-items:flex-start; justify-content:flex-start;
    gap:2px; padding:22px 24px 24px; padding-top:calc(22px + env(safe-area-inset-top,0px));
    box-shadow:-10px 0 30px rgba(20,30,60,.2); transform:translateX(100%); transition:transform .25s ease;
  }
  nav.main-nav.open{transform:translateX(0)}
  nav.main-nav a{font-size:1.05rem; padding:13px 0; width:100%; border-bottom:1px solid var(--line)}
  .nav-close{display:block; align-self:flex-end; background:none; border:0; font-size:1.7rem; line-height:1; color:var(--ink-soft); cursor:pointer; padding:4px 6px; margin-bottom:10px}
  .nav-overlay{
    display:block; position:fixed; inset:0; z-index:55; background:rgba(10,15,25,.4);
    opacity:0; pointer-events:none; transition:opacity .25s ease;
  }
  .nav-overlay.open{opacity:1; pointer-events:auto}
}

/* ---------- language dropdown ---------- */
.lang-dropdown{position:relative}
.lang-dropdown-btn{
  display:flex; align-items:center; gap:7px;
  background:var(--bg-soft); border:1px solid var(--line); border-radius:7px;
  padding:6px 10px; font:700 .85rem "Manrope"; color:var(--ink-soft); cursor:pointer;
}
.lang-dropdown-btn .caret{font-size:.6rem; opacity:.6; margin-left:1px}
.lang-dropdown-menu{
  position:absolute; top:calc(100% + 6px); right:0; min-width:150px;
  background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow);
  padding:6px; z-index:30; display:flex; flex-direction:column; gap:2px;
}
.lang-dropdown-menu[hidden]{display:none!important}
.lang-option{text-decoration:none; 
  display:flex; align-items:center; gap:9px; width:100%; text-align:left;
  background:none; border:0; border-radius:7px; padding:8px 10px;
  font:600 .88rem "Manrope"; color:var(--ink); cursor:pointer;
}
.lang-option:hover{background:var(--bg-soft)}
.lang-option.active{background:var(--bg-soft); font-weight:800}
.lang-dropdown.dark .lang-dropdown-btn{background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.18); color:#d7deec}
.lang-dropdown.dark .lang-dropdown-menu{background:var(--navy-deep); border-color:rgba(255,255,255,.14)}
.lang-dropdown.dark .lang-option{color:#d7deec}
.lang-dropdown.dark .lang-option:hover,.lang-dropdown.dark .lang-option.active{background:rgba(255,255,255,.08)}

/* ---------- hero ---------- */
.hero{background:radial-gradient(1100px 520px at 15% -10%, #24365e 0%, var(--navy-deep) 55%, #101a30 100%); position:relative; overflow:hidden; padding:58px 0 70px}
.hero::before{content:""; position:absolute; inset:0;
  background-image:repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px 46px),
                   repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 46px);
  mask-image:radial-gradient(700px 500px at 78% 30%, #000 0%, transparent 72%);}
.hero .wrap{position:relative}
.hero-grid{display:grid; grid-template-columns:1.02fr .98fr; gap:44px; align-items:center}
@media (max-width:900px){.hero-grid{grid-template-columns:1fr}}
.badge-pill{display:inline-block; background:rgba(255,255,255,.1); color:#fff; border:1px solid rgba(255,255,255,.25);
  font:700 .78rem/1 "Manrope"; padding:7px 14px; border-radius:999px; margin-bottom:18px}
.hero h1{color:#fff; font-size:clamp(2rem,4.2vw,2.9rem); line-height:1.14}
.hero h1 span{color:#ff8a72}
.hero-sub{margin-top:16px; color:#c7cfe0; font-size:1.04rem; max-width:48ch}
.cta-row{margin-top:26px; display:flex; gap:12px; flex-wrap:wrap}
.device-shot{background:#fff; border-radius:14px; padding:8px; box-shadow:0 30px 60px -20px rgba(0,0,0,.55); transform:rotate(.6deg)}
.device-shot img{border-radius:8px; display:block}
.device-shot .bar{display:flex; gap:6px; padding:6px 6px 10px}
.device-shot .bar span{width:10px; height:10px; border-radius:50%; background:var(--line)}

/* ---------- page header (Help / Features) ---------- */
.page-hero{background:var(--bg-soft); padding:46px 0; border-bottom:1px solid var(--line)}
.page-hero h1{font-size:clamp(1.8rem,3.4vw,2.4rem)}
.page-hero p{margin-top:10px; color:var(--ink-soft); font-size:1.02rem; max-width:62ch}

/* ---------- trio ---------- */
.trio{padding:50px 0 44px; border-bottom:1px solid var(--line)}
.trio-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:30px; text-align:center}
@media (max-width:760px){.trio-grid{grid-template-columns:1fr}}
.trio-icon{width:54px; height:54px; border-radius:50%; background:var(--bg-soft); display:flex; align-items:center; justify-content:center; margin:0 auto 14px; color:var(--red)}
.trio h4{font-size:1rem}
.trio p{margin-top:7px; color:var(--ink-soft); font-size:.88rem}

/* ---------- sections ---------- */
section{padding:62px 0}
.section-head{text-align:center; max-width:660px; margin:0 auto 40px}
.section-head h2{font-size:clamp(1.6rem,2.8vw,2.1rem)}
.section-head p{margin-top:12px; color:var(--ink-soft); font-size:1rem}

/* teaser row (home - condensed "what it does") */
.teaser-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px}
@media (max-width:760px){.teaser-grid{grid-template-columns:1fr}}
.teaser{display:flex; gap:14px; align-items:flex-start}
.teaser .trio-icon{margin:0; flex-shrink:0; width:46px; height:46px}
.teaser .trio-icon svg.icon{width:20px; height:20px}
.teaser h4{font-size:.98rem}
.teaser p{margin-top:5px; color:var(--ink-soft); font-size:.86rem}
.teaser-cta{text-align:center; margin-top:34px}
.teaser-cta a{font-weight:700; color:var(--red); text-decoration:none; font-size:.95rem}

.card-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px}
@media (max-width:900px){.card-grid{grid-template-columns:1fr 1fr}}
@media (max-width:620px){.card-grid{grid-template-columns:1fr}}
.card{background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; box-shadow:var(--shadow); display:flex; flex-direction:column}
.card-top{border-top:3px solid var(--red)}
.card-shot{height:180px; overflow:hidden; background:var(--bg-soft); position:relative; display:flex; align-items:center; justify-content:center}
.card-shot img{width:100%; height:100%; object-fit:contain; object-position:center}
.card-body{padding:18px 20px 22px; display:flex; flex-direction:column; gap:9px; flex:1}
.card-icon-row{display:flex; align-items:center; gap:10px}
.card-icon-row svg.icon{color:var(--red); width:20px; height:20px; flex-shrink:0}
.card h3{font-size:1.02rem}
.card p.desc{color:var(--ink-soft); font-size:.87rem}

/* ---------- steps ---------- */
.steps-section{background:var(--bg-soft)}
.steps-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:36px; text-align:center}
@media (max-width:760px){.steps-grid{grid-template-columns:1fr}}
.step-num{width:44px; height:44px; border-radius:50%; background:var(--navy); color:#fff; display:flex; align-items:center; justify-content:center; margin:0 auto 14px; font-weight:800; font-size:1rem}
.steps-grid h3{font-size:1rem}
.steps-grid p{margin-top:7px; color:var(--ink-soft); font-size:.88rem}

/* ---------- hardware / fact pills ---------- */
.vendor-group{text-align:center; margin-top:4px}
.vendor-label{font:800 .76rem/1 "Manrope"; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-faint); margin-bottom:12px}
.pill-row{display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-bottom:32px}
.pill-row:last-child{margin-bottom:0}
.pill{padding:9px 20px; border-radius:999px; font-weight:700; font-size:.9rem; border:1.5px solid var(--line); color:var(--ink-soft)}
.pill-live{background:var(--red); border-color:var(--red); color:#fff}

/* ---------- download cards ---------- */
.download-grid{display:flex; gap:24px; flex-wrap:wrap; justify-content:center}
.download-card{width:340px; max-width:100%; text-align:center}
.download-card .card-body{align-items:center}
.download-card .trio-icon{margin-bottom:2px}
.download-card .card-body .btn{margin-top:auto}
.download-meta{display:flex; gap:8px; justify-content:center; margin-top:auto; font-size:.8rem; font-weight:700; color:var(--ink-faint)}
.download-meta span{background:var(--bg-soft); border-radius:999px; padding:3px 10px}
.download-card .download-meta ~ .btn{margin-top:6px}
.download-count{font-size:.82rem; font-weight:600; color:var(--ink-soft)}
.btn-disabled{background:var(--bg-soft); color:var(--ink-faint); cursor:default; margin-top:auto}

/* ---------- buy me a coffee banner ---------- */
.bmc-banner{background:#fdf3e2; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:20px 0}
.bmc-banner-inner{display:flex; align-items:center; justify-content:center; gap:16px; flex-wrap:wrap; text-align:center}
.bmc-text{display:flex; align-items:center; gap:8px; color:var(--ink-soft); font-weight:600; font-size:.95rem}
.bmc-text svg.icon{color:#b9830c; width:20px; height:20px; flex-shrink:0}
.btn-bmc{background:#ffdd00; color:#1c2333; border-color:#ffdd00}
.btn-bmc:hover{background:#f5d000}

/* ---------- safety / follow-style highlight ---------- */
.follow{background:var(--bg-soft)}
.follow-grid{display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center}
@media (max-width:860px){.follow-grid{grid-template-columns:1fr}}
.follow h2,.follow h3{font-size:clamp(1.3rem,2.4vw,1.7rem)}
.follow p{margin-top:13px; color:var(--ink-soft)}
.warn-card{background:var(--navy-deep); border-radius:14px; aspect-ratio:16/10.5; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; color:#fff; text-align:center; padding:22px}
.warn-circle{width:62px; height:62px; border-radius:50%; background:var(--red); display:flex; align-items:center; justify-content:center}
.warn-circle svg.icon{width:28px; height:28px; stroke:#fff}
.warn-card .warn-line{font-weight:700; color:#c7cfe0; font-size:.92rem; max-width:30ch}

/* ---------- doc layout (Help page) ---------- */
.doc{max-width:740px; margin:0 auto}
.doc-article{padding:26px 0; border-bottom:1px solid var(--line)}
.doc-article:first-child{padding-top:0}
.doc-article:last-child{border-bottom:0}
.doc-article h2{font-size:1.15rem; display:flex; align-items:center; gap:10px}
.doc-article h2 .step-num{width:30px; height:30px; font-size:.82rem; margin:0; flex-shrink:0}
.doc-article p{margin-top:10px; color:var(--ink-soft); font-size:.96rem; line-height:1.65}
.doc-article img{border-radius:10px; border:1px solid var(--line); margin-top:14px; box-shadow:var(--shadow)}
.doc-next{text-align:center; padding-top:36px}
.doc-next a{font-weight:700; color:var(--red); text-decoration:none}

/* ---------- final cta ---------- */
.final-cta{background:var(--navy); color:#fff; text-align:center}
.final-cta h2{color:#fff; font-size:clamp(1.6rem,2.8vw,2.1rem)}
.final-cta p{margin-top:12px; color:#c7cfe0; max-width:56ch; margin-inline:auto}
.final-cta .cta-row{justify-content:center; margin-top:26px}

/* ---------- footer ---------- */
footer{background:var(--navy-deep); color:#b9c2d6}
.footer-grid{display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:36px; padding-block:50px 32px}
@media (max-width:760px){.footer-grid{grid-template-columns:1fr}}
.footer-brand{display:flex; align-items:center; gap:10px; margin-bottom:13px}
.footer-brand .brand-mark{width:32px; height:32px; border-radius:8px}
.footer-brand span{font-weight:800; color:#fff; letter-spacing:.03em; font-size:.92rem}
footer p{font-size:.88rem; line-height:1.6}
footer h5{color:#fff; font:800 .78rem/1 "Manrope"; letter-spacing:.06em; text-transform:uppercase; margin-bottom:15px}
footer ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px}
footer a{text-decoration:none; color:#b9c2d6; font-size:.9rem}
footer a:hover{color:#fff}
.footer-contact{display:flex; align-items:center; gap:9px; font-size:.9rem}
.footer-contact svg.icon{width:16px; height:16px; color:#ff8a72}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1); padding:17px 16px; display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; font-size:.8rem; color:#7c869d}

/* ---------- layout: main grows, footer stays at the bottom ---------- */
body > main{flex:1 0 auto}

/* ---------- error page (404) ---------- */
body > main:has(.error-hero){display:flex; flex-direction:column}
.error-hero{padding:56px 0 64px; flex:1 0 auto; display:flex; align-items:center}
.error-hero > .wrap{width:100%}
.error-grid{display:grid; grid-template-columns:.95fr 1.05fr; gap:36px; align-items:center}
.error-grid:has(> :only-child){grid-template-columns:1fr; max-width:720px}
.error-text h1{font-size:clamp(1.8rem,3.6vw,2.6rem)}
.error-visual img{width:100%; height:auto; filter:drop-shadow(0 30px 40px rgba(0,0,0,.45))}
@media (max-width:900px){
  .error-grid{grid-template-columns:1fr; gap:12px}
  .error-visual{order:-1; max-width:520px; margin:0 auto}
}

/* ---------- supported stations: brand logos ---------- */
.station-logos{display:flex; justify-content:center; align-items:flex-end; gap:56px; flex-wrap:wrap}
.station-logo{margin:0; display:flex; flex-direction:column; align-items:center; gap:12px}
.station-logo img{width:auto}
.station-logo .logo-achi{height:36px}
.station-logo .logo-ly{height:58px}
.station-logo figcaption{font-weight:700; font-size:.85rem; color:var(--ink-soft)}

/* ---------- screenshot lightbox (features) ---------- */
a.card-shot{cursor:zoom-in}
a.card-shot img{transition:transform .25s ease}
a.card-shot:hover img, a.card-shot:focus-visible img{transform:scale(1.04)}
a.card-shot::after{
  content:"⤢"; position:absolute; right:10px; bottom:10px; width:30px; height:30px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:.95rem; line-height:1;
  background:rgba(22,34,63,.75); color:#fff; opacity:0; transition:opacity .2s ease;
}
a.card-shot:hover::after, a.card-shot:focus-visible::after{opacity:1}

dialog.lightbox{
  border:0; padding:0; margin:0; background:transparent; color:#fff;
  width:100vw; height:100vh; height:100dvh; max-width:none; max-height:none; overflow:hidden;
}
dialog.lightbox::backdrop{background:rgba(10,15,25,.9)}
html:has(dialog.lightbox[open]){overflow:hidden}
dialog.lightbox[open]{display:flex; align-items:center; justify-content:center}
.lightbox-figure{margin:0; width:100%; height:100%; padding:56px 72px 24px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; box-sizing:border-box}
.lightbox-figure img{max-width:100%; max-height:calc(100% - 40px); width:auto; height:auto; object-fit:contain; border-radius:8px; box-shadow:0 30px 60px -20px rgba(0,0,0,.6); background:#fff}
.lightbox-figure figcaption{font-weight:700; font-size:.95rem; color:#d7deec; text-align:center}
.lightbox-counter{color:#8d94a3; font-weight:600; margin-left:8px}
.lightbox-btn{
  position:absolute; width:44px; height:44px; border-radius:50%; border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.08); color:#fff; font:400 1.8rem/1 "Manrope",sans-serif; cursor:pointer;
  display:flex; align-items:center; justify-content:center; padding:0 0 3px;
}
.lightbox-btn:hover{background:rgba(255,255,255,.18)}
.lightbox-close{top:16px; right:16px}
.lightbox-prev{left:16px; top:50%; transform:translateY(-50%)}
.lightbox-next{right:16px; top:50%; transform:translateY(-50%)}
@media (max-width:620px){
  .lightbox-figure{padding:64px 12px 16px}
  .lightbox-prev, .lightbox-next{top:auto; bottom:14px; transform:none}
  .lightbox-figure{padding-bottom:72px}
}
