/* The site that introduces the app.
   Plain CSS, no build step. The colours and the shapes are the app's own, so
   the two feel like one thing: every value below is lifted from the Ocean
   accent in src/styles/main.css, which is what the app opens in. */

:root {
  --pu: #2275d3;          /* the app's --pu, Ocean */
  --pu-dark: #1868c3;     /* --put, the one that carries text on white */
  --pu-deep: #1a5aa2;     /* --pu2, the edge a button sits on */
  --pu-soft: #ecf2f9;     /* --pux */
  --pu-line: #c2daf5;     /* --pue */
  --ink: #16283d;
  --body: #3e4a5a;
  --muted: #566579;       /* 5.4:1 on white, so small print still reads */
  --card: #ffffff;
  --line: #d8e5f3;        /* --br */
  --bg: #f0f4fa;          /* --bg */
  --radius: 18px;
  --btn-radius: 14px;     /* --ra: what a button is shaped like in the app */
  --shadow: 0 6px 0 var(--line), 0 14px 28px rgba(13, 45, 85, .10);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  /* nothing on this site is wider than the screen */
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--pu-dark); }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--pu); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 32px, 1060px); margin-inline: auto; }

/* ── the bar across the top ─────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(240, 244, 250, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 1.08rem; color: var(--ink); text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 9px; display: block; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
  padding: 8px 14px; border-radius: 10px; text-decoration: none;
  font-weight: 800; font-size: .93rem; color: var(--body);
}
.nav a:hover { background: var(--pu-soft); color: var(--pu-deep); }
.nav a[aria-current="page"] { background: var(--pu-soft); color: var(--pu-deep); }

/* ── buttons ────────────────────────────────────────────────────────────── */
/* Not pills. These are the app's own buttons: a rounded rectangle at the
   app's corner radius, sitting on a solid edge of the darker blue, which the
   press takes away so the button travels down onto the page. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px; border-radius: var(--btn-radius); border: 0;
  font: inherit; font-weight: 900; font-size: 1.02rem; cursor: pointer;
  text-decoration: none;
  background: linear-gradient(180deg, var(--pu), var(--pu-dark));
  color: #fff;
  box-shadow: 0 5px 0 var(--pu-deep), 0 12px 24px rgba(34, 117, 211, .30);
  transition: transform .09s ease, box-shadow .09s ease, filter .09s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--pu-deep); }
.btn.ghost {
  background: #fff; color: var(--pu-dark);
  box-shadow: 0 5px 0 var(--line), 0 10px 20px rgba(13, 45, 85, .08);
}
.btn.ghost:hover { filter: none; background: var(--pu-soft); }
.btn.ghost:active { box-shadow: 0 1px 0 var(--line); }

/* ── the hero ───────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 44px; text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 520px; z-index: -1;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(34, 117, 211, .17), transparent 70%),
    radial-gradient(40% 50% at 12% 12%, rgba(34, 117, 211, .11), transparent 70%);
}
.hero .robot {
  width: 112px; height: 112px; border-radius: 28px; display: block;
  margin: 0 auto 22px; box-shadow: 0 10px 26px rgba(13, 45, 85, .24);
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.1; font-weight: 900;
  color: var(--ink); margin: 0 0 14px; letter-spacing: -.5px;
}
.hero .lede {
  font-size: clamp(1.02rem, 2.4vw, 1.2rem); max-width: 620px; margin: 0 auto 28px;
  color: var(--body);
}
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.beta {
  display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 8px;
  background: var(--pu-soft); color: var(--pu-deep); border: 1.5px solid var(--pu-line);
  font-size: .8rem; font-weight: 900; letter-spacing: .4px; text-transform: uppercase;
}
.note { font-size: .88rem; color: var(--muted); margin-top: 16px; }

/* ── cards ──────────────────────────────────────────────────────────────── */
section { padding: 42px 0; }
h2 {
  font-size: clamp(1.4rem, 3.4vw, 1.9rem); font-weight: 900; color: var(--ink);
  margin: 0 0 8px; letter-spacing: -.2px;
}
.sub { margin: 0 0 26px; color: var(--muted); max-width: 640px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin: 12px 0 6px; font-size: 1.12rem; font-weight: 900; color: var(--ink); }
.card p { margin: 0; font-size: .96rem; }
.ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--pu-soft); border: 1.5px solid var(--pu-line); font-size: 1.4rem;
}
.disc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.disc span {
  padding: 9px 16px; border-radius: 11px; background: #fff; border: 1.5px solid var(--line);
  font-weight: 800; font-size: .93rem; color: var(--ink);
}

/* ── the long text pages ────────────────────────────────────────────────── */
.doc { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); margin-bottom: 40px; }
.doc h1 { font-size: clamp(1.7rem, 4.4vw, 2.3rem); font-weight: 900; color: var(--ink); margin: 0 0 6px; }
.doc .lede { font-size: 1.03rem; color: var(--body); margin: 0 0 8px; }
.doc .updated { font-size: .86rem; color: var(--muted); margin: 0 0 26px; }
.doc h2 { font-size: 1.16rem; margin: 30px 0 8px; }
.doc p { margin: 0 0 12px; font-size: .99rem; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em; font-weight: 700; color: var(--pu-deep); background: var(--pu-soft);
  padding: 1px 6px; border-radius: 6px; white-space: nowrap; }

/* ── the foot of the page ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line); background: #fff; padding: 30px 0 40px; margin-top: 20px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer a { color: var(--pu-dark); font-weight: 800; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.foot-note { color: var(--muted); font-size: .88rem; width: 100%; margin: 0; }

/* ── the page that says something is missing ────────────────────────────── */
.mid { text-align: center; padding: 70px 0 50px; }
.mid h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 900; color: var(--ink); margin: 0 0 10px; }

/* On a narrow phone the brand and the three links will not share a line, so
   they stop pretending to and stack, both centred. */
@media (max-width: 560px) {
  .top .wrap { flex-wrap: wrap; justify-content: center; gap: 4px 10px; min-height: 0; padding-block: 10px; }
  .brand { font-size: 1rem; }
  .nav { margin-left: 0; width: 100%; justify-content: center; }
  .nav a { padding: 6px 12px; font-size: .9rem; }
  .hero { padding-top: 38px; }
  footer .wrap { gap: 10px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
