/* Shared by the project page and its sub-pages (send/). */
:root { color-scheme: dark;
  --bg: #0f1216; --panel: #171b21; --line: #2a3038; --text: #e6e9ee; --text2: #a9b2bf;
  --ok: #4fb06d; --accent: #3bb3a1; --warn: #e0a43a; --alert: #e25b4b; --link: #7cb8ff;
  --r: 12px; --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg) radial-gradient(1100px 520px at 70% -120px, rgba(59,179,161,.10), transparent 70%) no-repeat; color: var(--text); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--link); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
/* sections told apart by a slight change of shade, each with a very gentle gradient */
section:nth-of-type(odd)  { background: linear-gradient(180deg, #14181e 0%, #101318 100%); }
section:nth-of-type(even) { background: linear-gradient(180deg, #0e1013 0%, #12151a 100%); }
section#install { background: linear-gradient(180deg, #121820 0%, #0f141a 100%); }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.02em; }
h2 { font-size: clamp(23px, 3.2vw, 30px); line-height: 1.2; margin: 0 0 18px; letter-spacing: -0.01em; }
h3 { font-size: 18px; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--text2); max-width: 720px; }
.muted { color: var(--text2); }
small, .small { font-size: 14px; color: var(--text2); }

/* top */
header { padding: 18px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); text-decoration: none; }
.brand svg { width: 24px; height: 24px; }
header nav a { color: var(--text2); text-decoration: none; margin-left: 18px; font-size: 15px; }
header nav a:hover { color: var(--text); }
.hero { padding: 36px 0 56px; }
.hero .shot { margin-top: 34px; }

/* hero mock-up: a tablet in landscape with a phone in front of it, drawn in CSS */
.devices { position: relative; margin: 40px 0 0; padding: 0 9% 6% 0; }
.tablet, .handset { background: linear-gradient(145deg, #2a2f37, #0b0d10 55%, #1b1f25); box-shadow: 0 30px 70px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.07); }
.tablet { border-radius: clamp(16px, 3vw, 34px); padding: clamp(8px, 1.6vw, 18px); }
.tablet .screen { border-radius: clamp(8px, 1.4vw, 16px); overflow: hidden; background: #000; aspect-ratio: 1600 / 1000; }
.handset { position: absolute; right: 0; bottom: 0; width: 23%; border-radius: clamp(16px, 3.2vw, 36px); padding: clamp(4px, .7vw, 8px); }
.handset .screen { border-radius: clamp(12px, 2.6vw, 29px); overflow: hidden; background: #000; aspect-ratio: 9 / 19.5; }
.handset .screen img, .tablet .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.devices + .cap { margin-top: 14px; }

/* buttons */
.dl { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: 16px;
       text-decoration: none; border: 1px solid #3c434e; color: var(--text); background: #20252c; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #04201b; }
.btn:hover { filter: brightness(1.1); }
button.btn { font-family: inherit; cursor: pointer; }
.btn .sub { font-weight: 400; font-size: 13px; opacity: .8; }

/* screenshots */
.shot { border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; background: #000; }
.cap { font-size: 14px; color: var(--text2); margin-top: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.phone { aspect-ratio: 600 / 1298; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* points */
.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 34px; margin-top: 8px; }
.point { padding-left: 16px; border-left: 3px solid var(--line); }
.point p { color: var(--text2); margin: 0; }
.point.ok { border-color: var(--ok); } .point.warn { border-color: var(--warn); } .point.alert { border-color: var(--alert); }

/* levels table */
.levels { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 16px; }
.levels td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.levels td:first-child { white-space: nowrap; font-weight: 600; width: 1%; }
.tag { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.tag.ok { background: rgba(79,176,109,.18); color: var(--ok); }
.tag.warn { background: rgba(224,164,58,.18); color: var(--warn); }
.tag.alert { background: rgba(226,91,75,.2); color: var(--alert); }

.steps { list-style: none; counter-reset: st; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 34px; }
.steps li { counter-increment: st; position: relative; padding-left: 46px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--accent); background: rgba(59,179,161,.14); border: 1px solid rgba(59,179,161,.35); }
.steps p { color: var(--text2); margin: 0; }

/* settings pop-up */
dialog#settings { width: min(720px, calc(100vw - 32px)); max-height: min(86vh, 900px); overflow: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, #181c22, #121519); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
dialog#settings::backdrop { background: rgba(5,7,9,.7); backdrop-filter: blur(2px); }
.dlg-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px;
  background: #181c22; border-bottom: 1px solid var(--line); }
.dlg-head h2 { margin: 0; font-size: 21px; }
.dlg-x { background: none; border: 1px solid var(--line); color: var(--text2); border-radius: 8px; width: 34px; height: 34px; font-size: 22px; line-height: 1; cursor: pointer; }
.dlg-x:hover { color: var(--text); }
.dlg-body { padding: 16px 20px 22px; font-size: 15.5px; }
.dlg-body h3 { margin: 20px 0 8px; font-size: 15px; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.dlg-body dl { margin: 0; display: grid; grid-template-columns: 11em 1fr; gap: 8px 16px; }
.dlg-body dt { font-weight: 600; }
.dlg-body dd { margin: 0; color: var(--text2); }
@media (max-width: 560px) { .dlg-body dl { grid-template-columns: 1fr; gap: 2px; } .dlg-body dd { margin-bottom: 8px; } }

/* install */
.install { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card ol { margin: 10px 0 0; padding-left: 20px; color: var(--text2); }
.card li { margin-bottom: 6px; }
.card .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
code { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: #0a0c0f; border: 1px solid var(--line);
       border-radius: 6px; padding: 2px 6px; word-break: break-all; }
pre { margin: 10px 0 0; } pre code { display: block; padding: 10px; white-space: pre-wrap; }
.copy { margin-top: 8px; font-size: 13px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--text2); cursor: pointer; }

footer { padding: 36px 0 60px; background: #0a0c0f; color: var(--text2); font-size: 15px; }
footer a { color: var(--text2); }

@media (max-width: 820px) {
  .points, .install, .steps { grid-template-columns: 1fr; }
  header nav { display: none; }
  section { padding: 48px 0; }
}
@media (max-width: 520px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid3 > :nth-child(3) { display: none; }
  .wrap { padding: 0 16px; }
  .btn { width: 100%; justify-content: center; }
  .devices { padding: 0 14% 10% 0; }
  .handset { width: 30%; }
}

/* planner: the Send panel floating in front of the tablet, like a Mac window */
.tablet .screen.wide { aspect-ratio: 1600 / 964; }
.window { position: absolute; right: -2%; bottom: 0; width: 44%; border-radius: 12px; overflow: hidden; border: 1px solid #3a3f47;
  box-shadow: 0 30px 70px rgba(0,0,0,.6); background: #1c1f24; }
.window img { width: 100%; }
/* features */
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 22px; }
.feat { display: flex; flex-direction: column; gap: 12px; }
.feat .shot { aspect-ratio: 16 / 10; }
.feat .shot img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.feat.tall .shot { background: #11151a; }
.feat.tall .shot img { object-fit: contain; }
.feat .cap { font-size: 16px; margin: 0; }
.feat h3 { margin-bottom: 4px; }
h3.sub { font-size: 21px; margin: 44px 0 0; }
@media (max-width: 820px) { .feats { grid-template-columns: 1fr; } }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.install.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid2, .install.two { grid-template-columns: 1fr; } }
.more-btn { margin-top: 10px; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 15px; cursor: pointer; }
.more-btn::after { content: " →"; color: var(--accent); }
.more-btn:hover { border-color: var(--accent); }
.minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.mini { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.mini h4 { margin: 0 0 6px; font-size: 16.5px; }
.mini p { margin: 0; font-size: 15px; color: var(--text2); }
@media (max-width: 1000px) { .minis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .minis { grid-template-columns: 1fr; } }
dialog.info { width: min(94vw, 980px); max-height: 92vh; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--text); overflow: auto; }
dialog.info::backdrop { background: rgba(5,7,9,.82); backdrop-filter: blur(2px); }
dialog.info .ihead { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--bg); border-bottom: 1px solid var(--line); z-index: 1; }
dialog.info .ihead h3 { margin: 0; }
dialog.info .ibody { padding: 4px 18px 18px; }
dialog.info .ilist { color: var(--text2); padding-left: 20px; margin: 18px 0 10px; }
.qr-route { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: start; margin-top: 14px; }
.qr-route .ilist { margin-top: 0; }
@media (max-width: 620px) { .qr-route { grid-template-columns: 1fr; } .qr-route .handpic { max-width: 220px; } }
dialog.info h4 { margin: 18px 0 0; font-size: 16px; }
dialog.info p { color: var(--text2); }
dialog.info code { font-size: .9em; color: var(--text); word-break: break-word; }
dialog.info .ilist li { margin-bottom: 8px; }
dialog.info .iclose { background: none; border: 1px solid var(--line); color: var(--text2); border-radius: 8px; width: 34px; height: 34px; font-size: 22px; line-height: 1; cursor: pointer; }
/* Get it: step 1 the planner, step 2 a card per rig type */
h3.step { display: flex; align-items: center; gap: 10px; margin: 30px 0 12px; }
h3.step span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: var(--accent); background: rgba(59,179,161,.14); border: 1px solid rgba(59,179,161,.35); flex: none; }
.get-app { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.get-app p { margin: 0 0 8px; }
.get-app .tips { margin: 0; padding-left: 20px; color: var(--text2); font-size: 15.5px; }
.get-app .tips li { margin-bottom: 4px; }
.get-app .btn { flex: none; }
.get-routes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.route { display: flex; flex-direction: column; }
.route h4 { margin: 0 0 8px; font-size: 17px; }
.route p { margin: 0 0 8px; color: var(--text2); font-size: 15.5px; }
.route b { color: var(--text); }
.route .small { margin-bottom: 14px; }
.route .btn { margin-top: auto; justify-content: center; }
@media (max-width: 1000px) { .get-routes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .get-app { flex-direction: column; align-items: stretch; } .get-app .btn { justify-content: center; } }
@media (max-width: 560px) { .get-routes { grid-template-columns: 1fr; } }
/* the two ASIAIR routes: the Plan Sender on a Mac, and the copy page on a phone */
.routes { display: grid; grid-template-columns: 1.75fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.routes .handpic { border-radius: 22px; }
.routes img { display: block; width: 100%; height: auto; }
@media (max-width: 820px) { .routes { grid-template-columns: 1fr; } .routes .handpic { max-width: 320px; } }
@media (max-width: 520px) { .window { width: 52%; } }

/* closer look: click a picture to see it large */
a.zoom { display: block; cursor: zoom-in; position: relative; }
a.zoom::after { content: "⤢"; position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; font-size: 17px; color: var(--text); background: rgba(15,18,22,.75); border: 1px solid var(--line); opacity: .85; }
a.zoom:hover img { filter: brightness(1.06); }
dialog#zoom { width: min(96vw, 1800px); max-height: 94vh; padding: 0; border: 1px solid var(--line); border-radius: var(--r);
  background: #0b0d10; color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.7); overflow: hidden; }
dialog#zoom::backdrop { background: rgba(5,7,9,.82); backdrop-filter: blur(2px); }
dialog#zoom img { display: block; width: 100%; height: auto; max-height: calc(94vh - 56px); object-fit: contain; cursor: zoom-out; background: #000; }
dialog#zoom .zbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 14.5px; color: var(--text2); }
dialog#zoom .zbar button { background: none; border: 1px solid var(--line); color: var(--text2); border-radius: 8px; width: 34px; height: 34px; font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
dialog#zoom .zbar button:hover { color: var(--text); }

/* the tool's short name above the headline, as on the suite home */
.short { display: flex; align-items: center; gap: 16px; margin: 0; text-decoration: none; }
.short svg { width: 52px; height: 52px; flex: none; }
.short b { display: block; font-size: 38px; letter-spacing: .06em; line-height: 1; color: var(--c); }
.short small { display: block; font-size: 17px; font-weight: 600; color: var(--text); margin-top: 6px; }
header:has(.short) { padding: 26px 0 30px; }
@media (max-width: 520px) { .short { gap: 12px; } .short svg { width: 42px; height: 42px; } .short b { font-size: 30px; } .short small { font-size: 15px; } }

footer .foot-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 6px; font-weight: 600; font-size: 17px; color: var(--c, #c9d1ff); text-decoration: none; }
footer .foot-brand svg { width: 30px; height: 30px; flex: none; }
footer a.ti { display: inline-flex; align-items: center; gap: 6px; vertical-align: bottom; }
footer a.ti svg { width: 17px; height: 17px; flex: none; }
footer .fgrid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: start; }
footer .fmain > p:first-of-type { max-width: 60ch; }
footer .fstack { flex-direction: column; align-items: stretch; margin: 4px 0 0; }
footer .fside .flabel { margin-top: 22px; }
footer .fside > .flabel:first-child { margin-top: 6px; }
footer .fside .flabel + .fbtns { margin-top: 10px; }
@media (max-width: 760px) { footer .fgrid { grid-template-columns: 1fr; } footer .fstack { align-items: flex-start; } }
footer .coffee { margin: 4px 0 0; }
footer .bmc { margin: 10px 0 0; zoom: .8; }
footer .fbtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
footer .fbtns + .flabel { margin-top: 22px; }
footer .flabel { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #8a94a3); }
footer .flabel + .fbtns { margin-top: 10px; }
footer a.fbtn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; line-height: 1.2; }
footer a.fbtn:hover { border-color: #3a424d; background: #1d222a; }
footer a.fbtn svg { width: 17px; height: 17px; flex: none; }
/* same header height on every page of the suite, so the menu sits in the same place */
header .wrap { min-height: 72px; }
@media (min-width: 1101px) { header nav { display: flex; align-items: center; } header nav a { line-height: 28px; } }
@media (max-width: 520px) { header .wrap { min-height: 60px; } }
/* Phone menu */
.menu-btn { display: none; }
.menu-btn .x { display: none; }
@media (max-width: 1100px) {
  header { position: relative; z-index: 20; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; padding: 0; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--text); cursor: pointer; }
  .menu-btn svg { width: 22px; height: 22px; }
  header.open .menu-btn .bars { display: none; }
  header.open .menu-btn .x { display: block; }
  header nav { display: none !important; position: absolute; top: calc(100% - 8px); left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
  header.open nav { display: flex !important; }
  header nav a, header nav a.navtool { margin: 0; padding: 12px 14px; border-radius: 8px; font-size: 16px; color: var(--text); }
  header nav a:hover { background: rgba(255,255,255,.05); }
  header nav a.navtool svg { width: 22px; height: 22px; }
}

/* "Your rig" selector (pick.js): one question, then only the options that apply */
.picker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 6px 0 18px; font-size: 17px; }
.picker label { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.picker select { font: inherit; font-weight: 600; color: var(--text); background: #20252c; border: 1px solid #3c434e; border-radius: 10px; padding: 9px 38px 9px 14px; cursor: pointer;
  appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233bb3a1' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 12px 8px; }
.picker select:hover, .picker select:focus { border-color: var(--accent); outline: none; }
.choice { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.choice > .card:only-child { grid-column: 1 / -1; }
.choice h4 { margin: 0 0 8px; font-size: 19px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.choice p { color: var(--text2); margin: 0 0 10px; }
.choice b { color: var(--text); }
.choice .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.choice .alt h4 { font-size: 16.5px; }
.choice .alt p { font-size: 15.5px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--accent); background: rgba(59,179,161,.14); border: 1px solid rgba(59,179,161,.35); }
@media (max-width: 820px) { .choice { grid-template-columns: 1fr; } }
html.js .oslabel { display: none; }
[hidden] { display: none !important; }

/* footer as on the suite home */
footer a.fbtn.gh { background: var(--text); border-color: var(--text); color: #0f1216; font-weight: 600; }
footer a.fbtn.gh:hover { background: #fff; border-color: #fff; }
footer .fgrid > p, footer .fmain > p { max-width: 60ch; }
a.more-btn { display: inline-block; text-decoration: none; }
