/*
 * The suite's design tokens, hand-copied from `packages/platform-web/src/theme/tokens.ts`.
 *
 * ⚠️ **This is the one place in the suite where those values are duplicated rather than
 * imported, and it is a deliberate trade.** `tokens.parity.test.ts` hashes that file and
 * fails in every product until an edit lands in all of them; this page is outside that net,
 * because pulling in the package would mean a build step, a `node_modules`, and a bundler
 * for a page that is otherwise three files of static HTML. The values below are the ones
 * least likely to move — the brand teal appears 477 times in pitapp and has no second — but
 * if the palette ever does change, this file will not be told. Check it.
 */

:root {
  --page: #fafafa;
  --card: #ffffff;
  --border: rgba(0, 0, 0, 0.12);
  --text: #202124;
  --text-secondary: #5f6368;
  /* Teal for small text and links ONLY. The brand #11818c measures 4.43:1 on this page —
     under AA's 4.5 — so the text tone is shifted two hex digits rather than the brand. */
  --accent-text: #117f8a;
  --brand: #11818c;
  --brand-hover: #22aba1;
  --focus: #11818c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #121212;
    --card: #1e1e1e;
    --border: rgba(255, 255, 255, 0.12);
    --text: #e8eaed;
    --text-secondary: #9aa0a6;
    /* pitapp's own hover tone, 6.61:1 on the dark page. */
    --accent-text: #22aba1;
    --focus: #22aba1;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family:
    Roboto,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.5;
  /* `dvh`, not `vh` — mobile browsers count the collapsing address bar in `vh`, so a
     centred layout sits visibly off-centre until you scroll. */
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

main {
  width: 100%;
  max-width: 720px;
}

.logo {
  display: block;
  /* At most 150px tall, and never wider than the column: a fixed height ran the wordmark off
     the right edge of a phone. Both auto, so the maxima keep the aspect ratio. */
  height: auto;
  width: auto;
  max-height: 150px;
  max-width: 100%;
  margin-bottom: 16px;
}

.mark {
  /* The one gradient, used as a mark. ⚠️ Never put text on it: white on the light end
     measures 1.65:1. Nothing is read off this bar. */
  height: 3px;
  background: linear-gradient(90deg, #33d6b7 0%, #11818c 100%);
  border-radius: 4px;
  margin-bottom: 20px;
}

h1 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 4px;
}

.lede {
  color: var(--text-secondary);
  margin: 0 0 24px;
  font-size: 0.95rem;
}

ul.products {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.tile {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  /* MUI's default 4px. pitapp overrides neither radius nor button casing, so matching the
     suite means *not* adding a larger radius here. */
  border-radius: 4px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  /* The whole tile is the target, so it clears the 44px floor many times over. */
  min-height: 44px;
}

.tile:hover {
  border-color: var(--brand);
}

.tile:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.tile-name {
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0 0 2px;
}

.tile-blurb {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.tile-go {
  color: var(--accent-text);
  font-size: 0.8125rem;
  margin: 8px 0 0;
}

/* The trial link under each tile. Its own 44px target: a link a thumb cannot hit on a phone is
   a link only desktop visitors can use. */
.tile-trial {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--accent-text);
  font-size: 0.875rem;
}

.tile-trial:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.foot {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  margin: 24px 0 0;
}

a.plain {
  color: var(--accent-text);
}

/* The redirect interstitial. Deliberately quiet — it is on screen for a few hundred
   milliseconds in the normal case, so it must not flash anything alarming. */
.redirect {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
}

/* Nothing here animates for someone who has asked for less motion. */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
