/* Public site of atlas.low.vn (plans/PLAN_landing_pages.md): tokens, base, the shared header bar
   with its burger menu, breadcrumb, footer, buttons and cards. Loaded by landing.html and the four
   static pages (features, schools, systems, contact), with the page blocks of those four further
   down. Dark only: the reference site has no light theme. */
:root{
  /* palette of the reference, measured (plan "Reference") */
  --c-accent:#ffa500; --c-accent-hover:#ffb733; --c-on-accent:#111;
  --c-page:#0c0c0c; --c-sunken:#0a0a0a; --c-band:#0e0e0e; --c-panel:#111; --c-panel-2:#141414;
  --c-chip:#161616; --c-card:#1a1a1a; --c-bar:#1d1d1d; --c-header:#262626;
  --c-line:#333; --c-line-soft:#2e2e2e;
  --c-text:#fff; --c-text-2:#e6e6e6; --c-text-3:#ddd; --c-muted:#bbb; --c-muted-2:#aaa; --c-faint:#8a8a8a;
  --fs-h1:clamp(38px,4.4vw,50px); --fs-h2:clamp(24px,2.6vw,31px); --fs-h3:clamp(18px,1.8vw,22px);
  --fs-lead:clamp(17px,1.5vw,20px); --fs-body:clamp(16px,1.4vw,17px); --lh-body:1.55;
  --header-h:56px;
  --bg-features:radial-gradient(ellipse at 50% 30%,#2e2007 0%,#0e0e0e 55%);
  --bg-edu:linear-gradient(180deg,#1b1508 0%,#35270b 60%,#3b2b0c 100%);
  --bg-warm:radial-gradient(ellipse at 50% 45%,#2a1f08 0%,#0c0c0c 45%);
  --bg-support:radial-gradient(ellipse at 50% 0%,#2a1f08 0%,#111 55%);
  --shadow-card:0 10px 30px rgba(0,0,0,.4);

  /* the names landing.html and auth.css were written with, one value each (aliases) */
  --page:var(--c-page); --card:var(--c-card); --chip:var(--c-chip);
  --line:var(--c-line); --line-soft:var(--c-line-soft);
  --text:var(--c-text); --muted:var(--c-muted); --faint:var(--c-faint);
  --accent:var(--c-accent); --accent-text:var(--c-accent); --accent-strong:var(--c-accent);
  --accent-deep:var(--c-accent-hover); --accent-on:var(--c-on-accent);
  --font:"Helvetica Neue",Helvetica,Arial,system-ui,sans-serif;
  --container:1200px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:72px}
body{font:16px/1.65 var(--font);background:var(--page);color:var(--text)}
a{color:inherit;text-decoration:none}
ul{list-style:none}
:focus-visible{outline:2px solid var(--accent-text);outline-offset:3px;border-radius:6px}
.wrap{max-width:var(--container);margin:0 auto;padding:0 28px}
.skip{position:absolute;left:12px;top:-60px;z-index:200;display:inline-flex;align-items:center;min-height:44px;background:#fff;color:#0c0c0c;padding:8px 14px;border-radius:8px;font-weight:600}
.skip:focus{top:12px}
main:focus{outline:none}
svg.i{width:1em;height:1em;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* buttons: filled orange with dark text (white on orange is under 4.5:1), ghost, large */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 22px;border-radius:999px;font-weight:700;font-size:15px;border:1px solid transparent;white-space:nowrap;cursor:pointer;transition:background-color .18s,border-color .18s}
.btn-p{background:var(--accent-strong);color:var(--accent-on)}
.btn-p:hover{background:var(--accent-deep)}
.btn-g{border-color:var(--line);color:var(--text)}
.btn-g:hover{background:var(--card)}
.btn-l{font-size:17px;padding:14px 34px}

/* header bar: logo, links (inline on wide screens, a full-screen panel under the bar on narrow
   ones), login controls (home page) or link (other pages), the orange pill, the burger */
nav.site-bar{position:sticky;top:0;z-index:100;background:var(--c-header)}
.site-bar .wrap{display:flex;align-items:center;min-height:var(--header-h);gap:8px 14px}
.logo{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-weight:700;font-size:18px;line-height:1.3;letter-spacing:.2px;white-space:nowrap}
.logo svg{width:28px;height:28px;flex:none}
.logo b{color:var(--accent-text);font-weight:700}
.nav-sp{flex:1}
.site-links{display:flex;align-items:center;gap:2px}
.site-link{display:inline-flex;align-items:center;min-height:44px;padding:0 9px;border-radius:8px;font-size:15px;line-height:1.3;color:var(--c-text-3);white-space:nowrap;transition:color .18s}
.site-link:hover{color:var(--text)}
.site-link[aria-current=page]{color:var(--accent-text)}
.pill{padding:10px 20px}
.burger{display:none;place-items:center;width:44px;height:44px;flex:none;margin-right:-8px;border:0;border-radius:10px;background:none;color:var(--text);cursor:pointer}
.burger svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.burger .x,.burger[aria-expanded=true] .bars{display:none}
.burger[aria-expanded=true] .x{display:block}
.burger:hover{background:rgba(255,255,255,.08)}

@media(max-width:960px){
  /* without the class set by the inline head script (no JavaScript) the links stay on the page as
     a plain wrapped row under the logo, and the bar scrolls away with the page */
  .site-bar .wrap{flex-wrap:wrap}
  .site-links{order:9;flex-basis:100%;flex-wrap:wrap;padding-bottom:6px}
  html:not(.js) nav.site-bar{position:relative}
  .js .burger{display:grid}
  .js .site-links{display:none}
  .js .site-bar .wrap{flex-wrap:nowrap}
  /* the open panel: covers the screen under the bar, one link a row with divider lines */
  .menu-open .site-links{display:block;position:fixed;top:var(--header-h);left:0;right:0;bottom:0;z-index:99;
    padding:6px max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));background:var(--c-panel-2);overflow-y:auto;overscroll-behavior:contain}
  .menu-open .site-links li{border-bottom:1px solid var(--c-line-soft)}
  .menu-open .site-link{display:flex;min-height:56px;padding:0 4px;font-size:19px;color:var(--text)}
  .menu-open .site-link[aria-current=page]{color:var(--accent-text)}
  html.menu-open{overflow:hidden}
}
@media(max-width:720px){
  .wrap{padding:0 20px}
  .pill{padding:10px 16px}
}
@media(max-width:559px){
  .site-bar .logo span{display:none}
  /* the mark alone is 28 px: widen the link to a 44 px target, the mark stays on the gutter line */
  .site-bar .logo{min-width:44px;justify-content:center;margin-left:-8px}
}
@media(max-width:359px){
  .site-bar .wrap{gap:6px;padding:0 12px}
  .pill{padding:10px 12px}
}

/* breadcrumb of the four pages */
.crumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;list-style:none;font-size:15px;line-height:1.4;color:var(--c-muted-2)}
.crumbs li+li::before{content:">";margin-right:8px;color:var(--c-faint)}
.crumbs a{display:inline-flex;align-items:center;min-height:44px;min-width:44px;color:var(--c-muted-2)}
.crumbs a:hover{color:var(--text)}
.crumbs [aria-current=page]{color:var(--c-muted)}

/* footer: the image credits of the page on top, then the shared part (logo, tagline, link columns
   with uppercase grey labels) */
footer.site-foot{background:var(--c-panel-2);color:var(--c-muted-2);font-size:15px;line-height:1.6;padding:48px 0 40px}
.foot-top{display:grid;grid-template-columns:1fr 1.6fr;gap:32px 48px}
.foot-brand .logo{color:var(--text);font-size:21px;font-weight:600}
.foot-brand p{margin-top:12px;max-width:360px}
.foot-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 24px}
.foot-h{font-size:13px;line-height:1.5;letter-spacing:1.6px;text-transform:uppercase;color:var(--c-muted-2);margin-bottom:6px}
.foot-cols a{display:inline-flex;align-items:center;min-height:44px;min-width:44px;color:var(--c-text-2);overflow-wrap:anywhere}
.foot-cols a:hover{color:var(--accent-text)}
.foot-cols a[aria-current=page]{color:var(--accent-text)}
.foot-credits{margin-bottom:36px;padding-bottom:28px;border-bottom:1px solid var(--c-line);font-size:13.5px;color:var(--c-faint)}
.credits li{position:relative;padding-left:16px}
.credits li+li{margin-top:8px}
.credits li::before{content:"";position:absolute;left:0;top:.62em;width:5px;height:5px;border-radius:50%;background:var(--c-faint)}
.credits a,.foot-credits a{color:var(--accent-text);text-decoration:underline;text-underline-offset:2px}
@media(max-width:960px){
  .foot-top{grid-template-columns:1fr}
}
@media(max-width:560px){
  .foot-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
}

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

/* ---------- page blocks of the four static pages ---------- */
.page-top{padding:4px 0 0}
.page-h1{font-size:var(--fs-h1);line-height:1.2;font-weight:700;letter-spacing:-.5px;margin-top:6px}
.sub{color:var(--accent-text);font-size:var(--fs-h3);font-weight:700;line-height:1.35;margin-top:10px}
.lead{color:var(--c-text-3);font-size:var(--fs-lead);line-height:var(--lh-body);margin-top:16px;max-width:760px}
.lead a,.prose a{color:var(--accent-text);text-decoration:underline;text-underline-offset:3px}
.prose{color:var(--c-text-2);font-size:var(--fs-body);line-height:var(--lh-body)}
.prose p+p{margin-top:14px}
.band{padding:48px 0}
.band-tight{padding:28px 0}
.page-head{background:var(--bg-support);padding:4px 0 36px}
.page-head + .band{background:var(--c-sunken)}
.sec-h{font-size:var(--fs-h2);line-height:1.3;font-weight:700;letter-spacing:-.3px}
.sec-h+.prose,.sec-h+.lead{margin-top:12px}
.cards{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
.card{display:flex;flex-direction:column;background:var(--c-panel-2);border:1px solid var(--c-line);border-radius:22px;padding:24px 24px 20px}
.card h2,.card h3{font-size:var(--fs-h3);line-height:1.35;font-weight:700}
.card p,.card li{color:var(--c-muted);font-size:var(--fs-body);line-height:var(--lh-body)}
.card p{margin-top:8px}
.card .ticks{margin-top:10px}
.ticks li{position:relative;padding-left:18px}
.ticks li+li{margin-top:6px}
.ticks li::before{content:"";position:absolute;left:2px;top:.62em;width:7px;height:7px;border-radius:50%;background:var(--accent)}
.more{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-top:auto;padding-top:6px;color:var(--accent-text);font-weight:700;font-size:16px;line-height:1.4}
.more svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.more:hover{color:var(--c-accent-hover)}
.shot{display:block;width:100%;height:auto;border:1px solid var(--c-line);border-radius:18px;background:var(--c-panel)}

/* contact */
.contact-cards .card h2{font-size:var(--fs-h3)}
.contact-cards .card p{margin-top:8px}
.contact-cards .more{margin-top:4px}
.contact-cards .card > :last-child{margin-top:auto}
.link-list{display:flex;flex-direction:column;margin-top:8px}

/* schools */
.edu-hero{background:var(--bg-edu);padding:4px 0 36px}
/* two cards: the tracks stretch over the row instead of leaving a third one empty */
.cards-fit{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.faq{display:flex;flex-direction:column;gap:14px;margin-top:20px}
.faq details{background:var(--c-panel-2);border:1px solid var(--c-line);border-radius:22px}
.faq summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;padding:16px 20px 16px 22px;font-weight:700;font-size:var(--fs-lead);line-height:1.4;cursor:pointer;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary svg{width:24px;height:24px;flex:none;fill:none;stroke:var(--accent);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s}
.faq details[open] summary svg{transform:rotate(90deg)}
.faq details p{padding:0 22px 20px;color:var(--c-muted);font-size:var(--fs-body);line-height:var(--lh-body);max-width:760px}
.closing{background:var(--c-panel-2);border:1px solid var(--c-line);border-radius:22px;padding:28px 24px}
.closing .sec-h{max-width:620px}
.closing p{margin-top:12px;color:var(--c-muted);font-size:var(--fs-body);line-height:var(--lh-body);max-width:620px}
.closing .btn{margin-top:20px;min-width:200px}

/* systems */
.sys-card{padding:0;overflow:hidden}
/* the whole card is the link to its scene; the ring is drawn inside, the card clips what is outside */
.sys-link{display:flex;flex-direction:column;flex:1;border-radius:inherit;outline-offset:-3px}
.sys-go{width:36px;height:36px;flex:none;margin-left:auto;padding:7px;border:1px solid var(--c-line);border-radius:50%;fill:none;stroke:var(--accent-text);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:background-color .18s,border-color .18s,stroke .18s}
.sys-link:hover .sys-go,.sys-link:focus-visible .sys-go{background:var(--accent);border-color:var(--accent);stroke:var(--c-on-accent)}
.sys-card:hover{border-color:var(--c-accent)}
.sys-card .pic{display:block;margin:16px 16px 0;aspect-ratio:16/10;border-radius:14px;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#2a1f08 0%,#111 72%)}
.sys-card .pic img{display:block;width:100%;height:100%;object-fit:contain}
.sys-body{display:flex;flex-direction:column;flex:1;padding:18px 22px 16px}
.sys-title{display:flex;align-items:center;gap:12px}
.badge{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:50%;background:#fff;color:#111}
.badge svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* features */
.f-head{background:var(--bg-features);padding:4px 0 44px}
.f-head-grid{display:grid;gap:28px;align-items:center}
.phone{width:min(280px,72vw);margin:0 auto;padding:10px;border-radius:44px;background:#1d1d1d;border:1px solid #3a3a3a;box-shadow:var(--shadow-card)}
.phone img{display:block;width:100%;height:auto;border-radius:34px}
.fsec{display:grid;grid-template-columns:44px 1fr;gap:0 16px;padding:40px 0 8px}
.fsec-rail{position:relative;display:flex;justify-content:center}
.fsec-rail::after{content:"";position:absolute;top:52px;bottom:-8px;left:50%;width:1px;background:var(--c-line)}
.fnum{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--c-bar);border:1px solid var(--c-line);color:var(--c-text-3);font-weight:700;font-size:15px;line-height:1;font-variant-numeric:tabular-nums}
.fsec-main{min-width:0}
.fsec-main .sec-h{padding-top:4px}
.fsec-main .prose{margin-top:10px;max-width:720px}
.tilt{width:min(260px,64vw);margin:24px auto 8px;transform:rotate(-4deg)}
/* Callout stage of the features page (plans/PLAN_site_round2.md). Narrow: the phone, then the
   cards in one or two columns. From 1100 px: cards, phone, cards, and site.js draws one line from
   each card to its dot on the phone (class co-on on the stage; without it the dots stay hidden). */
.co-stage{position:relative;display:flex;flex-direction:column;gap:12px;margin-top:24px}
.co-stage .phone{order:-1;margin-bottom:20px}
.co-col{display:grid;gap:12px;grid-template-columns:1fr}
.co-screen{position:relative}
.co-dot{position:absolute;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px rgba(255,165,0,.35),0 0 0 1px #1d1d1d;opacity:0;pointer-events:none}
.co-on .co-dot{opacity:1}
.co-lines{display:none;position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.co-on .co-lines{display:block}
.co-lines path{fill:none;stroke:var(--accent);stroke-width:1.5;stroke-linecap:round}
@media(min-width:560px){
  .co-col{grid-template-columns:1fr 1fr}
}
@media(min-width:1100px){
  .co-stage{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:0 56px;align-items:stretch;margin-top:36px}
  .co-stage .phone{order:0;width:300px;margin:12px 0}
  .co-col{grid-template-columns:1fr;align-content:space-around;gap:16px}
}
.anchor{display:block;min-height:44px;padding:14px 16px;background:var(--c-panel-2);border:1px solid var(--c-line);border-radius:14px;transition:border-color .18s}
.anchor:hover{border-color:var(--accent)}
.anchor b{display:block;color:var(--accent-text);font-size:13px;line-height:1.5;letter-spacing:1.2px;text-transform:uppercase}
.anchor span{display:block;margin-top:4px;color:var(--c-text-2);font-size:16px;line-height:1.45}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px;max-width:640px}
.pair figure{margin:0}
.pair figcaption{margin-top:8px;color:var(--c-muted);font-size:15px;line-height:1.45}
@media(min-width:961px){
  .f-head-grid{grid-template-columns:1.1fr .9fr}
  .fsec{grid-template-columns:56px 1fr;gap:0 28px;padding-top:56px}
  .fnum{width:56px;height:56px;font-size:17px}
  .fsec-rail::after{top:64px}
}
.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
