/* The public site's shared styles: the homepage (landing.html) and the module pages (crew-scheduling,
   itinerary, operations-control, crew-app) load this before their own <style>. Moved out of landing.html
   on 2026-10-11 so the pages cannot drift; the design system is DESIGN.md. */
  /* ── Tokens. The page is dark, and the product's own surfaces (the boards, the phones) keep the app's navy. ── */
  :root{
    color-scheme:dark;
    --navy:#0a1017; --navy-2:#0d1622; --panel:#121d29; --panel-2:#172433;
    --cyan:#4fd1c5; --cyan-hi:#74ddd3; --cyan-ink:#07110f; --amber:#f2a93b; --violet:#a78bfa; --green:#5fcb8c;
    --on-dark:#eef3f7; --on-dark-2:#b9c6d2; --on-dark-3:#93a4b4;
    --mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
    --text:"Barlow",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    --display:"Big Shoulders Display","Barlow",sans-serif;
    --wrap:1280px; --gutter:clamp(20px,4vw,56px);
    --ease:cubic-bezier(.16,1,.3,1);
  }
  :root{
    --bg:#0a1017; --surface:#0e1721; --surface-2:#101b26; --ink:#e9eff4; --ink-2:#aebcc8; --ink-3:#8f9fae;
    --line:rgba(143,163,181,.16); --line-strong:rgba(143,163,181,.3); --accent:#4fd1c5;
    --shadow:0 30px 70px -30px rgba(0,0,0,.9); --card-shadow:0 24px 50px -26px rgba(0,0,0,.95);
  }
  *{box-sizing:border-box}
  html{-webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:84px; scrollbar-color:var(--line-strong) transparent}
  body{margin:0; background:var(--bg); color:var(--ink); font-family:var(--text); font-size:18px; line-height:1.6;
       -webkit-font-smoothing:antialiased; overflow-x:hidden}
  ::selection{background:var(--cyan); color:var(--cyan-ink)}
  input, textarea{caret-color:var(--accent)}
  a{color:inherit; text-underline-offset:3px}
  img{max-width:100%}
  :focus-visible{outline:2px solid var(--accent); outline-offset:3px; border-radius:6px}
  .hero :focus-visible, .band :focus-visible, .close :focus-visible, footer :focus-visible, .topnav:not(.is-solid) :focus-visible{outline-color:var(--cyan)}
  .close .form-card :focus-visible{outline-color:var(--accent)}
  .wrap{width:100%; max-width:var(--wrap); margin-left:auto; margin-right:auto; padding-left:var(--gutter); padding-right:var(--gutter)}
  .sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0}

  /* ── Nav: over the photo it is clear; past the hero it takes the page's surface (landing-page.js). ── */
  .nav-sentinel{position:absolute; top:0; left:0; width:1px; height:110px; pointer-events:none}
  .topnav{position:fixed; top:0; left:0; right:0; z-index:50; color:var(--on-dark);
          transition:background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease)}
  .topnav.is-solid{background:var(--surface); color:var(--ink); box-shadow:0 1px 0 var(--line)}
  @supports (backdrop-filter:blur(1px)){
    .topnav.is-solid{background:color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter:saturate(1.4) blur(14px)}
  }
  .nav-inner{display:flex; align-items:center; gap:30px; height:76px}
  .logo{display:flex; align-items:center; gap:10px; text-decoration:none; font-family:var(--display); font-weight:800; font-size:25px; letter-spacing:.4px}
  .logo .mark{display:block; color:var(--cyan); transition:color .35s var(--ease)}
  .topnav.is-solid .logo .mark{color:var(--accent)}
  .logo .mark svg{display:block; height:1.2em; width:auto; aspect-ratio:1125.5/784.9; fill:currentColor; overflow:visible}
  .logo .plane{transform-box:fill-box; transform-origin:center; animation:fly-in 1.5s .35s var(--ease) backwards}
  .logo:hover .plane{animation:fly-hover 1.1s var(--ease)}
  @keyframes fly-in{0%{transform:translate(-300px,170px) rotate(-14deg); opacity:0} 60%{transform:translate(30px,-26px) rotate(4deg); opacity:1} 100%{transform:none}}
  @keyframes fly-hover{0%{transform:none} 45%{transform:translate(90px,-80px) rotate(9deg)} 100%{transform:none}}
  .nav-sp{flex:1}
  .nav-link{text-decoration:none; font-size:16px; font-weight:500; opacity:.84; padding:8px 2px; transition:opacity .2s}
  .nav-link:hover{opacity:1}
  /* Below 1180 px the section links move into a drawer, as on Leon's and AIMS's phone sites (the
     operator, 2026-10-11): the bar keeps the logo, the demo button and the menu button, and the
     drawer carries the same four links, so a phone reaches every section a desktop does. */
  .nav-burger{display:none; position:relative; width:44px; height:44px; margin-right:-10px; padding:0; border:0; border-radius:10px;
              background:none; color:inherit; cursor:pointer}
  .nav-burger i, .nav-burger i::before, .nav-burger i::after{position:absolute; left:11px; width:22px; height:2px; border-radius:2px; background:currentColor}
  .nav-burger i{top:21px}
  .nav-burger i::before, .nav-burger i::after{content:""; left:0}
  .nav-burger i::before{top:-7px} .nav-burger i::after{top:7px}
  @media (max-width:1180px){ .nav-link{display:none} .nav-burger{display:block} .nav-inner{gap:14px} }

  .nav-drawer{position:fixed; inset:0; z-index:60}
  .nav-drawer[hidden]{display:none}
  .nd-scrim{position:absolute; inset:0; background:rgba(4,8,13,.62); opacity:0; transition:opacity .3s var(--ease)}
  .nd-panel{position:absolute; top:0; right:0; bottom:0; width:min(86vw, 400px); display:flex; flex-direction:column;
            padding-left:28px; padding-right:var(--gutter); padding-bottom:max(28px, env(safe-area-inset-bottom));
            background:var(--surface); color:var(--ink); box-shadow:-1px 0 0 var(--line), -40px 0 90px -30px rgba(0,0,0,.7);
            overflow-y:auto; overscroll-behavior:contain; transform:translateX(100%); transition:transform .3s cubic-bezier(.5,0,.75,0)}
  .nav-drawer.is-open .nd-scrim{opacity:1}
  .nav-drawer.is-open .nd-panel{transform:none; transition:transform .5s var(--ease)}
  .nd-head{display:flex; align-items:center; justify-content:flex-end; height:76px; flex:none}
  .nd-close{position:relative; width:44px; height:44px; margin-right:-10px; padding:0; border:0; border-radius:10px; background:none; color:inherit; cursor:pointer}
  .nd-close i::before, .nd-close i::after{content:""; position:absolute; left:11px; top:21px; width:22px; height:2px; border-radius:2px; background:currentColor}
  .nd-close i::before{rotate:45deg} .nd-close i::after{rotate:-45deg}
  .nd-links{list-style:none; margin:10px 0 0; padding:0}
  .nd-links a{display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:66px; border-bottom:1px solid var(--line);
              font-family:var(--display); font-weight:800; font-size:36px; line-height:1; text-decoration:none; color:var(--ink)}
  .nd-links a .arr{flex:none; width:20px; height:20px; color:var(--ink-3); transition:transform .25s var(--ease), color .2s}
  .nd-links a:hover .arr, .nd-links a:focus-visible .arr{color:var(--accent); transform:translateX(3px)}
  .nd-foot{margin-top:auto; padding-top:32px}
  .nd-foot .btn{width:100%}
  /* The links come in after the panel, top to bottom; closing takes them away at once. */
  .nd-links li, .nd-foot{opacity:0; translate:24px 0; transition:opacity .15s, translate .15s}
  .nav-drawer.is-open .nd-links li, .nav-drawer.is-open .nd-foot{opacity:1; translate:none;
              transition:opacity .45s var(--ease) var(--d,.1s), translate .6s var(--ease) var(--d,.1s)}
  .nd-links li:nth-child(2){--d:.14s} .nd-links li:nth-child(3){--d:.18s} .nd-links li:nth-child(4){--d:.22s} .nd-foot{--d:.28s}
  html.nd-open{overflow:hidden}

  /* ── Buttons ── */
  .btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:50px; padding-left:24px; padding-right:24px;
       border-radius:10px; border:1px solid transparent; font:600 16.5px/1 var(--text); text-decoration:none; white-space:nowrap; cursor:pointer;
       transition:transform .2s var(--ease), background-color .2s, border-color .2s, color .2s}
  .btn .arr{width:18px; height:18px; transition:transform .25s var(--ease)}
  .btn:hover .arr{transform:translateX(3px)}
  .btn-primary{background:var(--cyan); color:var(--cyan-ink)}
  .btn-primary:hover{background:var(--cyan-hi); transform:translateY(-1px)}
  .btn-primary:active{transform:scale(.98)}
  .btn-primary:disabled{opacity:.55; cursor:default; transform:none}
  .btn-ghost{border-color:rgba(238,243,247,.4); color:var(--on-dark)}
  .btn-ghost:hover{border-color:var(--cyan); color:var(--cyan)}
  .cta-row{display:flex; flex-wrap:wrap; gap:14px; align-items:center}
  .btn-nav{min-height:42px; padding-left:18px; padding-right:18px; font-size:15px}
  .btn-nav .cta-s{display:none}
  @media (max-width:480px){ .btn-nav .cta-f{display:none} .btn-nav .cta-s{display:inline} }

  /* ── Sections ── */
  .section{padding-top:clamp(84px,10vw,136px); padding-bottom:clamp(84px,10vw,136px)}
  .sec-head{max-width:760px; margin-bottom:clamp(36px,4vw,56px)}
  .sec-head h2, .band h2, .app-copy h2, .close-copy h2{font-family:var(--display); font-weight:800; font-size:clamp(38px,4.6vw,64px);
       line-height:.98; letter-spacing:-.3px; margin:0 0 18px; text-wrap:balance}
  .sec-head p{margin:0; color:var(--ink-2); font-size:clamp(17.5px,1.4vw,20px); max-width:56ch; text-wrap:pretty}
  .sec-head p a{color:var(--accent); font-weight:600}

  /* ── Photographic bands ── */
  .band, .close{position:relative; color:var(--on-dark); background:var(--navy); overflow:hidden; isolation:isolate}
  .band-photo{position:absolute; inset:0; z-index:-2; margin:0}
  .band-photo img{display:block; width:100%; height:100%; object-fit:cover}
  .band::before, .close::before{content:""; position:absolute; inset:0; z-index:-1}
  .band::before{background:linear-gradient(90deg, rgba(10,16,23,.94) 0%, rgba(10,16,23,.74) 46%, rgba(10,16,23,.3) 100%)}
  .band-inner{padding-top:clamp(100px,12vw,168px); padding-bottom:clamp(96px,11vw,150px)}
  .band h2{max-width:13ch}
  .band-lead{color:var(--on-dark-2); max-width:50ch; font-size:clamp(17.5px,1.4vw,20px); margin:0}
  .rules{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0 28px; margin:56px 0 0; border-top:1px solid rgba(238,243,247,.24)}
  .rules div{padding-top:22px}
  .rules dt{font-weight:600; font-size:18px; color:#fff; margin-bottom:6px}
  .rules dd{margin:0; color:var(--on-dark-2); font-size:16px; line-height:1.5}
  @media (max-width:900px){ .rules{grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px} .rules div{padding-bottom:6px} }
  @media (max-width:520px){ .rules{grid-template-columns:minmax(0,1fr)} }

  /* ── Close: the wing at dusk, and the form ── */
  .close::before{background:linear-gradient(90deg, rgba(10,16,23,.9) 0%, rgba(10,16,23,.62) 50%, rgba(10,16,23,.4) 100%)}
  .close .band-photo img{object-position:40% 60%}
  .close-grid{display:grid; grid-template-columns:minmax(0,5fr) minmax(0,6fr); gap:clamp(32px,5vw,88px); align-items:center;
              padding-top:clamp(92px,11vw,150px); padding-bottom:clamp(92px,11vw,150px)}
  .close-copy p{color:var(--on-dark-2); max-width:40ch; font-size:clamp(17.5px,1.4vw,20px); margin:0}
  .mail-card h3{font-family:var(--display); font-weight:800; font-size:31px; line-height:1.04; margin:0 0 12px}
  .mail-addr{display:inline-block; margin:0 0 14px; font-weight:600; font-size:clamp(22px,2.2vw,28px); line-height:1.2; color:var(--accent);
             text-decoration:none; overflow-wrap:anywhere}
  .mail-addr:hover{text-decoration:underline}
  .mail-card p{margin:0 0 24px; color:var(--ink-2); font-size:17px; text-wrap:pretty}
  .btn-line{border-color:var(--line-strong); color:var(--ink); background:none}
  .btn-line:hover{border-color:var(--accent); color:var(--accent)}
  @media (max-width:480px){ .mail-card .cta-row{flex-direction:column; align-items:stretch} }
  /* 2026-11-15 — the WhatsApp button's chat glyph (the site's stroke icons) and the number under the buttons */
  .wa-ico{width:18px; height:18px; flex:0 0 auto; margin-right:8px; vertical-align:-3px}
  .mail-card .wa-line{margin:18px 0 0; font-size:15.5px; color:var(--ink-3)}
  .wa-line a{color:var(--accent); font-weight:600; text-decoration:none; white-space:nowrap}
  .wa-line a:hover{text-decoration:underline}
  .form-card{background:var(--surface); color:var(--ink); border-radius:16px; padding:clamp(24px,3vw,38px);
             box-shadow:0 44px 90px -34px rgba(0,0,0,.7); border:1px solid var(--line)}
  .cf{display:grid; gap:16px}
  .cf-row{display:grid; grid-template-columns:1fr 1fr; gap:16px}
  .cf label{display:grid; gap:8px; font-weight:600; font-size:15px; color:var(--ink)}
  .cf input, .cf textarea{background:var(--bg); border:1px solid var(--line-strong); border-radius:10px; padding:13px 15px; color:var(--ink);
       font:400 16px/1.4 var(--text); width:100%; transition:border-color .2s, box-shadow .2s}
  .cf input{min-height:50px}
  .cf input:focus, .cf textarea:focus{outline:none; border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent)}
  .cf textarea{min-height:140px; resize:vertical}
  .cf .hp-field{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden}
  .cf-status{font-size:15px; color:var(--ink-3); min-height:22px; margin:2px 0 0}
  .cf-status.is-ok{color:var(--accent)}
  .cf-status.is-err{color:#f0a37a}
  @media (max-width:980px){ .close-grid{grid-template-columns:minmax(0,1fr)} }
  @media (max-width:560px){ .cf-row{grid-template-columns:1fr} }

  /* ── Footer ── */
  footer{background:var(--navy); color:var(--on-dark-2); font-size:15.5px}
  .foot-grid{display:grid; grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr)); gap:40px; padding-top:76px; padding-bottom:52px}
  .foot-brand p{margin:16px 0 0; max-width:30ch; color:var(--on-dark-3)}
  .foot-brand .logo{color:var(--on-dark)}
  .foot-col h2{font:600 15px/1.2 var(--text); color:#fff; margin:0 0 16px}
  .foot-col ul{list-style:none; margin:0; padding:0; display:grid; gap:11px}
  .foot-col a{text-decoration:none; color:var(--on-dark-2)}
  .foot-col a:hover{color:var(--cyan)}
  .foot-base{display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px 24px; padding-top:22px; padding-bottom:36px;
             border-top:1px solid rgba(143,163,181,.16); font-size:14px; color:var(--on-dark-3)}
  @media (max-width:860px){ .foot-grid{grid-template-columns:repeat(2,minmax(0,1fr))} .foot-brand{grid-column:1 / -1} }

  /* ── Apple's App Store badge, exactly as Apple ships it (landing-img/photos.json): the black one, which stays
     right once a Google Play badge joins it, 48 px tall (Apple's floor is 40), a quarter of its height clear
     around it, and never animated, restyled or revealed, hover included. ── */
  .store-badge{display:inline-block; border-radius:9px}
  .store-badge img{display:block; height:48px; width:auto}

  /* ── Reveal: a block fades up once as it reaches the screen (.rv; landing-page.js adds .in, and sets
     html.rv-on only after a real paint and never under reduced motion, so a failed script shows everything). ── */
  .form-card.rv{--d:.12s}
  @media (prefers-reduced-motion:no-preference){
    .rv-on .rv{transition:opacity .8s var(--ease) var(--d,0s), translate 1s var(--ease) var(--d,0s)}
    .rv-on .rv:not(.in):not(:focus-within){opacity:0; translate:0 22px}
  }
  @media print{ .rv{opacity:1 !important; translate:none !important} }
  @media (prefers-reduced-motion:reduce){
    .logo .plane{animation:none}
    .btn:hover, .btn-primary:hover{transform:none}
    *{transition-duration:.01ms !important; animation-duration:.01ms !important}
    html{scroll-behavior:auto}
  }
