/* Sunlit
   Adaptive Sky, on the web. Same palette as the app: deep night navy through
   twilight violet into golden amber, hairline rules, tabular figures, and a
   lot of air. Nothing on these pages loads from another host: no fonts, no
   scripts, no images, no trackers. The one picture is inline SVG. */

:root {
  /* Accents. Identical values to the app. */
  --sun: #FFB020;
  --moon: #8FB8FF;
  --way: #C9A6FF;

  /* Daylight page. */
  --bg: #F1F5FB;
  --panel: #FFFFFF;
  --ink: #0E1524;
  --ink-2: #495570;
  --ink-3: #616D85;
  --rule: rgba(14, 21, 36, .13);
  --hair: #D4D8DF;
  --rule-2: rgba(14, 21, 36, .26);
  --chip: rgba(14, 21, 36, .045);
  --link: #17509B;
  --sun-ink: #8A5200;
  --moon-ink: #2B5FB8;
  --way-ink: #6B3FC4;

  --maxw: 1080px;
  --pad: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070B18;
    --panel: #0C1329;
    --ink: #E9EEF9;
    --ink-2: #9DAAC5;
    --ink-3: #808DAA;
    --rule: rgba(233, 238, 249, .15);
    --hair: #292D3A;
    --rule-2: rgba(233, 238, 249, .3);
    --chip: rgba(233, 238, 249, .055);
    --link: #8FB8FF;
    --sun-ink: #FFB020;
    --moon-ink: #8FB8FF;
    --way-ink: #C9A6FF;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.62 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
@media (max-width: 400px) { :root { --pad: 18px; } }

/* Typography ------------------------------------------------------------- */

h1, h2, h3 { font-weight: 600; margin: 0 0 14px; }
h1 { font-size: clamp(33px, 5.6vw, 58px); line-height: 1.05; letter-spacing: -.028em; }
h2 { font-size: clamp(24px, 3.2vw, 33px); line-height: 1.15; letter-spacing: -.021em; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.012em; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.measure { max-width: 34em; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px;
}

.num, table, .readout, .rail, .stats { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--sun-ink); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--panel); color: var(--ink); padding: 12px 18px;
  border: 1px solid var(--rule-2); border-radius: 0 0 10px 0; z-index: 50;
}
.skip:focus { left: 0; }

hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
@media (min-resolution: 2dppx) { hr.rule { border-top-width: .5px; } }

/* Header and footer ------------------------------------------------------ */

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap { display: flex; align-items: center; gap: 12px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); }
.brand svg { width: 28px; height: 28px; border-radius: 7px; display: block; flex: 0 0 auto; }
.brand b { font-weight: 600; font-size: 18px; letter-spacing: -.015em; }
.site-head nav { margin-left: auto; display: flex; gap: 4px; }
.site-head nav a {
  color: var(--ink-2); text-decoration: none; font-size: 15px;
  padding: 9px 11px; border-radius: 9px; min-height: 44px; display: inline-flex; align-items: center;
}
.site-head nav a:hover { color: var(--ink); background: var(--chip); }
.site-head nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 400px) { .site-head nav a { padding: 9px 7px; font-size: 14px; } }

.site-foot { border-top: 1px solid var(--rule); padding: 34px 0 56px; color: var(--ink-2); font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
.site-foot nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot a { color: var(--ink-2); text-decoration: none; padding: 10px 0; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }

/* Sections --------------------------------------------------------------- */

.sec { padding: clamp(48px, 7vw, 88px) 0; }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec-head { max-width: 46em; margin-bottom: 32px; }
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); }

/* The instrument panel --------------------------------------------------- */

.panel {
  border: 1px solid var(--rule); border-radius: 20px; overflow: hidden;
  background: #070B18; line-height: 0;
}
.panel svg { display: block; width: 100%; height: auto; }
.panel svg text { font-family: inherit; font-variant-numeric: tabular-nums; }
.panel .chrome text { font-size: 11px; }
@media (max-width: 660px) { .panel .chrome { display: none; } }

figure { margin: 0; }
figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }

/* Hairline data blocks --------------------------------------------------- */

.readout, .rail, .bands, .stats {
  display: grid; gap: 1px; background: var(--panel);
  border: 1px solid var(--hair); border-radius: 14px; overflow: hidden;
}
/* The hairlines ride on the cells, not on the container, so a row that does
   not fill leaves panel behind it rather than a bare strip of rule colour. */
.readout > div, .rail > div, .stats > div, .bands > .band { box-shadow: 0 0 0 1px var(--hair); }
.readout { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 20px; }
.rail { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
.stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

.readout > div, .rail > div, .stats > div { background: var(--panel); padding: 14px 16px; }

.k { font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.v { font-size: 21px; font-weight: 600; letter-spacing: -.015em; margin-top: 5px; line-height: 1.2; }
.v.sun { color: var(--sun-ink); }
.v.moon { color: var(--moon-ink); }
.v small { font-size: 14px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.stats .v { font-size: 18px; }

/* Adaptive Sky band strip ------------------------------------------------ */

.bands { grid-template-columns: 1fr; }
.band { background: var(--panel); display: grid; grid-template-columns: 86px 1fr; align-items: stretch; }
.band .sw { min-height: 62px; }
.band .bt { padding: 13px 16px; }
.band .deg { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.band .desc { font-size: 14px; color: var(--ink-2); margin-top: 2px; line-height: 1.45; }
@media (max-width: 420px) { .band { grid-template-columns: 56px 1fr; } }

.b1 { background: linear-gradient(180deg, #070B18, #0D1430); }
.b2 { background: linear-gradient(180deg, #0D1430, #2A2350); }
.b3 { background: linear-gradient(180deg, #2A2350, #8A4A6B); }
.b4 { background: linear-gradient(180deg, #8A4A6B, #FFB020); }
.b5 { background: linear-gradient(180deg, #FFB020, #2E7FD4); }
.b6 { background: linear-gradient(180deg, #2E7FD4, #9FD3F5); }

/* Cards ------------------------------------------------------------------ */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 18px;
  padding: 26px 24px;
}
.card .glyph { width: 42px; height: 42px; display: block; margin-bottom: 16px; color: var(--ink-3); }
.card p { color: var(--ink-2); font-size: 16px; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 16px; }
.card li { margin: 6px 0; }
.card .tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--rule-2);
  border-radius: 999px; padding: 3px 9px; margin-left: 8px; vertical-align: 3px;
}

/* Tables ----------------------------------------------------------------- */

.tablewrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule); border-radius: 14px; background: var(--panel);
}
table { width: 100%; border-collapse: collapse; font-size: 15px; }
table.wide { min-width: 560px; }
table.two { min-width: 420px; }
th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 13px 16px; border-bottom: 1px solid var(--rule-2); white-space: nowrap;
}
td { padding: 13px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
td:first-child { color: var(--ink); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
td.n { white-space: nowrap; }

/* Notes ------------------------------------------------------------------ */

.note { border-left: 2px solid var(--sun); padding: 4px 0 4px 18px; color: var(--ink-2); }
.note strong { color: var(--ink); font-weight: 600; }
.note.moon { border-left-color: var(--moon); }
.note.way { border-left-color: var(--way); }
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 26px 32px; }
@media (min-width: 760px) { .notes { grid-template-columns: repeat(2, 1fr); } }

/* Documents: privacy, support -------------------------------------------- */

.doc { padding: clamp(40px, 6vw, 64px) 0 clamp(56px, 8vw, 88px); }
.doc-body { max-width: 40em; }
.doc-body h2 { font-size: clamp(21px, 2.4vw, 25px); margin: 44px 0 12px; }
.doc-body h2:first-of-type { margin-top: 32px; }
.doc-body h3 { margin: 26px 0 8px; }
.doc-body ul { padding-left: 20px; margin: 0 0 16px; }
.doc-body li { margin: 8px 0; }
.updated { font-size: 14px; color: var(--ink-3); max-width: 40em; margin: 0 0 26px; }

.qa { max-width: 42em; }
.qa > section { border-top: 1px solid var(--rule); padding: 30px 0; }
.qa > section:last-child { border-bottom: 1px solid var(--rule); }
.qa h2 { font-size: clamp(20px, 2.2vw, 23px); margin: 0 0 12px; }
.qa p, .qa ul { color: var(--ink-2); }
.qa ul { padding-left: 20px; margin: 0 0 16px; }
.qa li { margin: 7px 0; }
.qa b { color: var(--ink); font-weight: 600; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 4px; padding: 0; list-style: none; }
.toc a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14px; text-decoration: none; color: var(--ink-2);
  border: 1px solid var(--rule); border-radius: 999px; padding: 8px 16px; background: var(--panel);
}
.toc a:hover { color: var(--ink); border-color: var(--rule-2); }

.contact {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 18px;
  padding: 26px 24px; margin: 0 0 8px; max-width: 42em;
}
.contact .addr { font-size: 21px; font-weight: 600; letter-spacing: -.015em; }

/* Two up layout for the view cards and the price panels. */
@media (min-width: 760px) { .cards.two-up { grid-template-columns: repeat(2, 1fr); } }
.rail .v { font-size: 20px; }
.rail .k { margin-top: 5px; }
.tier h3 { margin-bottom: 4px; }
.tier .price { font-size: 15px; color: var(--ink-3); margin: 0 0 16px; }
.tier ul { list-style: none; padding: 0; margin: 0; }
.tier li {
  padding: 9px 0 9px 22px; border-top: 1px solid var(--rule);
  position: relative; font-size: 16px; color: var(--ink-2);
}
.tier li::before {
  content: ""; position: absolute; left: 2px; top: 18px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--sun);
}
.tier.pro li::before { background: var(--moon); }
.tier li:first-child { border-top: 0; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.langs li {
  font-size: 15px; color: var(--ink-2); background: var(--panel);
  border: 1px solid var(--rule); border-radius: 999px; padding: 8px 15px;
}

/* At phone width the brand already links home, so the first nav item goes. */
@media (max-width: 480px) {
  .site-head nav a.home { display: none; }
  .brand b { font-size: 17px; }
}
