/* Platbound landing — the app's Achieva visual language, dark-only.
 * Tokens are copied verbatim from AppColors.dark (lib/ui/theme/app_colors.dart);
 * never invent a hex here — read it from there. */

:root {
  --bg: #2A2E34;
  --surface: #31353C;
  --surface-alt: #25282D;
  --border: #3A3F47;
  --divider: #33383F;
  --teal: #2FD9C5;
  --teal-soft: rgba(47, 217, 197, 0.15);
  --on-teal: #14312E;
  --lime: #C6F03A;
  --missable: #FF5E63;
  --text: #E8EAED;
  --text-2: #9BA1AA;
  --text-3: #979EA7;
}

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

/* A class with its own `display` (e.g. .notify-form) outranks the UA rule for
 * [hidden], so the attribute silently stops hiding. Restate it once, here. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Film grain, the way the app does it: a fixed, non-interactive overlay so the
 * flat graphite never reads as a dead fill. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 16px;
}

/* ---- page chrome ---------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--divider);
  padding: 20px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--text);
}

.logo:hover {
  text-decoration: none;
}

.nav-mono {
  font-family: 'Noto Sans Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid var(--divider);
  margin-top: 72px;
  padding: 32px 0 56px;
}

.site-footer nav {
  margin-bottom: 12px;
  color: var(--text-2);
  font-size: 15px;
}

.site-footer .current {
  color: var(--text-2);
}

/* ---- type ------------------------------------------------------------ */

h1 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}

.section-h {
  font-family: 'Noto Sans Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  border-bottom: 1px solid var(--divider);
  padding-bottom: 8px;
  margin: 0 0 24px;
}

.lede {
  font-size: 18px;
  color: var(--text-2);
  max-width: 62ch;
}

.caption {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.5;
}

/* A caption is the quietest text on the page, so the one thing in it that must
 * not be missed (a limitation, a condition) gets the body colour back. */
.caption strong {
  color: var(--text);
  font-weight: 600;
}

.prose p {
  max-width: 72ch;
  color: var(--text-2);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose ul {
  max-width: 72ch;
  color: var(--text-2);
  padding-left: 20px;
  margin: 0 0 16px;
}

.prose li {
  margin-bottom: 8px;
}

section {
  margin-top: 64px;
}

/* ---- controls -------------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--on-teal);
  border-radius: 0;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

/* The two plans on the checkout. EQUAL weight, with a real gap.
 *
 * They were a filled button next to an outlined one, which in this palette is
 * how a segmented control shows a selection — so the page read as "Monthly is
 * already chosen, Yearly is the other option" when in fact both are buttons
 * that open a checkout. Touching edges finished the illusion. Two identical
 * buttons with air between them read as what they are: two ways to buy. The
 * value difference lives in the label, where it can be read. */
.plan-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 16px;
}

/* ---- surfaces -------------------------------------------------------- */

.card,
.shot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.card {
  padding: 20px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* The two plans. Equal width and equal weight — the same reasoning as
 * .plan-choice on the checkout: a highlighted "recommended" column is a nudge,
 * and the free column is not a decoy here, it is the product most visitors
 * will keep using. */
.cards-two {
  grid-template-columns: repeat(2, 1fr);
}

.price {
  margin: 0 0 16px;
  color: var(--text-2);
  font-size: 15px;
}

/* Mono for the figure only: it is a number to be read exactly, and the app's
 * own numerals are monospaced for the same reason. */
.price-figure {
  font-family: 'Noto Sans Mono', ui-monospace, monospace;
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  margin-right: 4px;
}

.price-note {
  color: var(--teal);
  white-space: nowrap;
}

.plan-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-2);
  font-size: 15px;
}

.plan-list li {
  margin-bottom: 8px;
}

.plan-list li:last-child {
  margin-bottom: 0;
}

.plan-list strong {
  color: var(--text);
  font-weight: 600;
}

.shot {
  overflow: hidden;
  padding: 0;
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.shot-figure {
  margin: 0 0 24px;
}

.shot-figure figcaption {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 13px;
}

/* ---- hero ------------------------------------------------------------ */

.hero {
  margin-top: 56px;
}

.hero .btn {
  margin-top: 8px;
}

/* The gap the hero's no-affiliation line used to hold open. The line itself is
 * gone from the hero on purpose (2026-09-19): the requirement — Steam Web API
 * Terms, and nominative trademark use — is met by the footer of every page and
 * by the clause in terms.html, while an apology directly under the call to
 * action reads as a placeholder. Precedent: wiki/intel/competitor-achievement-
 * manager.md, where a competitor spent a storefront screenshot on the same
 * disclaimer and was read as a mock-up. */
.hero .shot {
  margin-top: 28px;
  margin-bottom: 8px;
}

/* ---- notify form ----------------------------------------------------- */

.notify-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin-bottom: 12px;
}

.notify-form input {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 0;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 12px;
}

.notify-form input::placeholder {
  color: var(--text-3);
}

.notify-form input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 2px var(--teal-soft);
}

#notify-done {
  color: var(--lime);
  font-weight: 600;
}

/* ---- narrow ---------------------------------------------------------- */

@media (max-width: 640px) {
  h1 {
    font-size: 28px;
  }

  .lede {
    font-size: 16px;
  }

  .cards,
  .cards-two {
    grid-template-columns: 1fr;
  }

  .notify-form {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  section {
    margin-top: 48px;
  }
}
