/* Indra's inner pages: How it works, the forecast, devices, pricing, 404.
   One centred column: a still of the Grand Teton from the homepage's
   mountain (site/img/) behind the headline, then short sections of tiles,
   steps and tables, questions that open in place, and one call to action.
   Every word is in the HTML, readable without JavaScript. */

@font-face {
  font-family: 'Michroma';
  src: url('/fonts/Michroma-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --c0: #F7FAFC; --c3: #E8F0F6; --c12: #C2D3DF; --c22: #8FA6B8;
  --c30: #5C7183; --c38: #1B2C40; --c47: #0B1523; --c52: #050A12;
  --signal: #FFCB22; --signal-press: #E1B801; --on-signal: #050A12;
  --ground: #06101F;
  --card: rgba(16, 30, 50, .55);
  --card-edge: rgba(200, 222, 238, .12);
  --hairline: rgba(143, 166, 184, .18);
  --mono: 'Fragment Mono', ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sys: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --disp: 'Michroma', var(--sys);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--ground); }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--ground);
  color: var(--c3);
  font-family: var(--sys);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--c0); text-decoration: none; border-bottom: 1px solid rgba(255, 203, 34, .7); }
a:hover { color: #fff; border-color: var(--signal); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .92em; }
.eyebrow {
  font-family: var(--disp);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c22);
}

/* the header floats over the still */
.site-header { position: absolute; inset: 0 0 auto 0; }
.site-header a, .site-footer a { border-bottom: 0; }
.site-header .nav a { border-bottom: 1px solid transparent; }
.site-footer .flinks a { border-bottom: 1px solid var(--ch-rule); }
.site-footer .foot-meta a { border-bottom: 0; }

/* ---- the top of a page: the still, the headline, one sentence ---- */

.phero {
  position: relative;
  min-height: min(70svh, 640px);
  display: flex;
  align-items: flex-end;
  background: var(--ground) center 78% / cover no-repeat;
  overflow: hidden;
}
.phero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 14, .55) 0%, rgba(2, 6, 14, 0) 22%),
    linear-gradient(180deg, rgba(6, 16, 31, .1) 30%, rgba(6, 16, 31, .8) 76%, var(--ground) 100%);
}
.phero .inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 28px 40px;
  text-align: center;
}
.phero h1 {
  margin: 14px auto 0;
  max-width: 16ch;
  font-weight: 650;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -.025em;
  color: var(--c0);
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(2, 8, 20, .45);
}
.phero .lede {
  margin: 20px auto 0;
  max-width: 44ch;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.45;
  color: var(--c12);
  text-wrap: pretty;
  text-shadow: 0 1px 10px rgba(2, 8, 20, .5);
}
.phero .eyebrow { color: var(--c12); text-shadow: 0 1px 8px rgba(2, 8, 20, .6); }
.phero .eyebrow a { color: inherit; border: 0; }
.phero .eyebrow a:hover { color: var(--c0); }
.phero.plain { min-height: 0; padding-top: 150px; background: none; }
.phero.plain::after { display: none; }

/* ---- sections ---- */

main.page { padding-bottom: 24px; }
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 28px; }
.page section { padding-top: 112px; }
.page section.tight { padding-top: 56px; }

.head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.page h2 {
  margin: 0;
  font-weight: 650;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.022em;
  color: var(--c0);
  text-wrap: balance;
}
.page .head p {
  margin: 16px auto 0;
  max-width: 46ch;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.5;
  color: var(--c22);
  text-wrap: pretty;
}
.page h3 {
  margin: 0 0 8px;
  font-weight: 650;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--c0);
}
.page p { margin: 0 0 16px; color: var(--c12); }
.page p strong, .page li strong { color: var(--c0); font-weight: 600; }
.page ul, .page ol { margin: 0 0 18px; padding-left: 22px; color: var(--c12); }
.page li { margin: 0 0 8px; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.note { font-size: 14.5px; line-height: 1.6; color: var(--c22); }
.more { font-size: 17px; }
.more::after { content: ' ›'; }

/* tiles: one idea each */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tiles.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.tile {
  display: flex;
  flex-direction: column;
  padding: 30px 30px 28px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 22px;
}
.tile p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--c12); }
.tile p + p { margin-top: 12px; }
.tile .k {
  margin-bottom: 14px;
  font-family: var(--disp);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c22);
}
.tile .more { margin-top: auto; padding-top: 18px; align-self: flex-start; font-size: 16px; }
.tile .code { margin-top: 16px; font-family: var(--mono); font-size: 13.5px; color: var(--signal); }

/* numbered steps */
.page .steps { list-style: none; padding: 0; margin: 0 auto; max-width: 620px; counter-reset: step; }
.steps > li {
  position: relative;
  margin: 0;
  padding: 26px 0 26px 72px;
  border-top: 1px solid var(--hairline);
  counter-increment: step;
}
.steps > li:last-child { border-bottom: 1px solid var(--hairline); }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 4px;
  top: 18px;
  font-weight: 650;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}
.steps h3 { margin: 0 0 6px; }
.steps p { margin: 0; font-size: 16.5px; line-height: 1.55; }

/* a picture of the app beside its words */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip .shot { order: 2; }
.split h2 { text-align: left; }
.split .copy p { margin: 18px 0 0; font-size: clamp(17px, 1.8vw, 19px); line-height: 1.55; color: var(--c12); max-width: 42ch; }
.split .copy .more { display: inline-block; margin-top: 20px; }
/* the app picture: a phone in a rounded tile of the contour map. The tile's
   edge crops the phone, so nothing fades and the words beside it sit on
   plain ground */
.shot {
  position: relative;
  margin: 0;
  height: 540px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;          /* the phone rises from below the top edge */
  border: 1px solid var(--card-edge);
  border-radius: 28px;
  background: #0a1626 url('/img/contours.svg') 30% 40% / 1900px auto;
}
.shot img { display: block; width: 340px; max-width: 78%; height: auto; margin-bottom: 36px; }
.shot.drop { align-items: flex-start; }               /* the phone runs off the bottom edge */
.shot.drop img { margin: 44px 0 0; }
.shot.fit { align-items: center; }                    /* the whole picture, inside the tile */
.shot.fit img { width: auto; max-width: 84%; height: 86%; margin: 0; object-fit: contain; }

/* a text as it is sent or received */
.msgs { display: grid; gap: 10px; margin: 0 auto; max-width: 600px; }
.msg {
  justify-self: start;
  max-width: 100%;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(194, 211, 223, .1);
  border: 1px solid var(--card-edge);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  color: var(--c3);
  overflow-wrap: anywhere;
}
.msg.out { justify-self: end; background: rgba(255, 203, 34, .12); border-color: rgba(255, 203, 34, .35); }
.msg .who {
  display: block;
  margin-bottom: 4px;
  font-family: var(--disp);
  font-size: 8.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c22);
}
.msgs + .note { margin: 18px auto 0; max-width: 600px; text-align: center; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--hairline); }
.tbl thead th { font-weight: 650; font-size: 17px; color: var(--c0); padding-bottom: 14px; }
.tbl tbody th { font-weight: 400; color: var(--c22); width: 34%; }
.tbl td { color: var(--c3); }
.tbl-wrap { overflow-x: auto; max-width: 820px; margin: 0 auto; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 820px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; padding: 34px 32px 30px; background: var(--card); border: 1px solid var(--card-edge); border-radius: 22px; }
.plan.pro { border-color: rgba(255, 203, 34, .5); }
.plan .name { font-weight: 650; font-size: 22px; letter-spacing: -.01em; color: var(--c0); }
.plan .price { margin: 18px 0 2px; font-weight: 650; font-size: 44px; line-height: 1; letter-spacing: -.03em; color: var(--c0); }
.plan .price small { font-weight: 400; font-size: 16px; letter-spacing: 0; color: var(--c22); }
.plan .per { font-size: 15px; color: var(--c22); min-height: 1.6em; }
.plan ul { margin: 24px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--hairline); font-size: 16px; }
.plan li { margin-bottom: 10px; color: var(--c3); }

/* questions: each opens in place */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-of-type { border-bottom: 1px solid var(--hairline); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { display: inline; margin: 0; font-size: 19px; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -8px;
  border-right: 2px solid var(--c22);
  border-bottom: 2px solid var(--c22);
  transform: rotate(45deg);
  transition: transform 200ms ease-out;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover h3 { color: #fff; }
.faq summary:focus-visible { outline: 2px solid var(--c30); outline-offset: 2px; }
.faq details p { margin: -4px 0 24px; max-width: 62ch; font-size: 16.5px; }

/* /forecast: the encoder */
.encoder .console { background: var(--card); border: 1px solid var(--card-edge); border-radius: 22px; padding: 28px 30px; max-width: 820px; margin: 0 auto; }
.enc-fields { display: flex; flex-wrap: wrap; gap: 18px 30px; margin-bottom: 20px; }
.enc-fields .field label { display: block; font-family: var(--disp); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--c22); margin-bottom: 8px; }
.enc-fields .step { display: flex; align-items: center; gap: 9px; font-family: var(--mono); }
.enc-fields .step button { font-family: var(--mono); font-size: 14px; line-height: 1; color: var(--c12); background: none; border: 1px solid rgba(194, 211, 223, .3); border-radius: 2px; width: 26px; height: 26px; cursor: pointer; transition: border-color 150ms ease-out, color 150ms ease-out; }
.enc-fields .step button:hover { border-color: var(--signal); color: var(--c0); }
.enc-fields .step button:focus-visible { outline: 2px solid var(--c30); outline-offset: 2px; }
.enc-fields .val { min-width: 5.5ch; text-align: center; font-size: 14px; color: var(--c0); font-variant-numeric: tabular-nums; }
.payload-line { font-family: var(--mono); font-size: clamp(14px, 2.2vw, 18px); letter-spacing: .06em; word-break: break-all; color: var(--c12); padding: 16px 0 4px; border-top: 1px dashed var(--hairline); }
.seg { padding: 2px 1px; border-bottom: 2px solid transparent; transition: border-color 150ms ease-out, color 150ms ease-out; cursor: default; }
.seg.hot { color: var(--c0); border-bottom-color: var(--signal); }
.seg.hdr, .seg.crc { color: var(--c30); }
.enc-meta { margin-top: 12px; font-family: var(--disp); font-size: 9.5px; letter-spacing: .08em; line-height: 1.9; color: var(--c22); min-height: 1.6em; }
.enc-meta b { color: var(--c0); font-weight: 400; border-bottom: 2px solid var(--signal); }
@media (hover: none) { .seg { cursor: pointer; padding: 6px 1px; } }
@media (max-width: 640px) {
  .encoder .console { padding: 18px 16px; }
  .enc-fields .step button { width: 34px; height: 34px; }
}


/* the last thing on a page: get the app */
.cta-band { padding-top: 128px; text-align: center; }
.cta-band p { margin: 16px auto 0; max-width: 40ch; font-size: clamp(17px, 1.9vw, 20px); color: var(--c22); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 26px; margin-top: 28px; }
.btn {
  display: inline-block;
  padding: 13px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--signal);
  color: var(--on-signal);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  transition: background 150ms ease-out;
}
.btn:hover { background: var(--signal-press); color: var(--on-signal); }

.safety { margin: 96px auto 0; padding-top: 20px; border-top: 1px solid var(--hairline); font-size: 12.5px; line-height: 1.65; color: var(--c30); max-width: 820px; }
.safety p { margin: 0 0 6px; color: inherit; }

a:focus-visible, .btn:focus-visible { outline: 2px solid var(--c30); outline-offset: 3px; }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.flip .shot { order: 0; }
  .split h2, .split .copy { text-align: center; }
  .split .copy p { margin-left: auto; margin-right: auto; }
  .shot { height: 440px; }
  .shot img { width: 290px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .phero { min-height: 62svh; background-position: 62% 40%; }
  .phero .inner { padding: 0 20px 28px; }
  .wrap { padding: 0 20px; }
  .page section { padding-top: 84px; }
  .head { margin-bottom: 32px; }
  .tile { padding: 26px 24px 24px; border-radius: 18px; }
  .steps > li { padding: 22px 0 22px 56px; }
  .steps > li::before { font-size: 32px; top: 18px; }
  .tbl { font-size: 15px; }
  .tbl th, .tbl td { padding-right: 12px; }
  .cta-band { padding-top: 96px; }
}
