/* TilesDeck's universe: the stylesheet its presentation page and its privacy
   page share, so the two read as one place. Extracted from tilesdeck.html on
   2026-09-18 when Matt asked for the policy to follow the page's UI. The
   glass comes from glass.css, loaded beside this one, never from here. */
/* TilesDeck has its own world: light, tactile, and coloured by the app's own
   four tiles. It deliberately shares nothing with the Appro site's dark shell,
   because the point is that each application is its own place. */
:root {
  --ink: #15171C;
  --ink-2: #3D434E;
  --muted: #6B7280;
  --paper: #FFFFFF;
  --wash: #F4F3F9;
  --line: #15171C14;

  --blue: #0A84FF;
  --violet: #9B5CFF;
  --coral: #FF6045;
  --emerald: #00B99A;
  --amber: #FFA32F;

  --radius: 1.6rem;
  --tile: 23%;              /* the icon's own corner ratio */
  --pad: clamp(1.25rem, 5vw, 5.5rem);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-width: 320px; background: var(--paper); color: var(--ink);
  font-family: var(--sans); -webkit-font-smoothing: antialiased; line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .25em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -9999px; top: .6rem; z-index: 20; padding: .7rem 1.1rem;
  border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { left: var(--pad); }

h1, h2, h3 { margin: 0; letter-spacing: -.035em; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.03; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; }
h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -.02em; }
p { margin: 0; }
.kicker {
  font: 600 .74rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.lede { max-width: 36rem; font-size: clamp(1.12rem, 1.5vw, 1.35rem); line-height: 1.55; color: var(--ink-2); }
.note { font-size: .88rem; line-height: 1.6; color: var(--muted); max-width: 34rem; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem; padding: .95rem 1.6rem;
  border: 0; border-radius: 999px; background: var(--blue); color: #fff;
  font: 600 1.02rem/1 var(--sans); letter-spacing: -.01em; text-decoration: none;
  box-shadow: 0 .6rem 1.6rem #0a84ff3d; transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 .9rem 2.2rem #0a84ff52; }
.btn.plain { background: #15171C0d; color: var(--ink); box-shadow: none; }
.btn.plain:hover { background: #15171C17; box-shadow: none; }
/* The site's glass (glass.css), tinted with this page's paper. */
.bar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1.2rem;
  padding: .7rem var(--pad); isolation: isolate; --glass: #ffffff;
}
.bar > *:not(.glass-fade) { position: relative; z-index: 1; }
.bar .who { display: flex; align-items: center; gap: .6rem; font-weight: 650; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.bar .who img { width: 30px; height: 30px; }
/* The one button every application bar carries: Support, at the right,
   to the contact page in this application's support mode (site convention). */
.bar .support { margin-left: auto; padding: .55rem 1.05rem; font-size: .92rem; }

section { padding: clamp(4rem, 8vw, 7.5rem) var(--pad); }
.wrap { max-width: 74rem; margin: 0 auto; }
.head { max-width: 44rem; display: grid; gap: 1rem; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }

/* Hero: the app's colours as light, the desktop it lives on as a mesh. */
/* The hero and the deck band share the same wash, so a full section padding on
   both sides of that seam reads as a hole rather than as a rhythm. */
.hero { position: relative; padding-top: clamp(3rem, 5vw, 4.5rem); padding-bottom: clamp(1.5rem, 2.5vw, 2.5rem); overflow: clip; background: var(--wash); }
.hero .mesh {
  position: absolute; inset: -20% -5% auto; height: 130%; pointer-events: none; opacity: .5;
  background:
    radial-gradient(28% 34% at 18% 22%, color-mix(in srgb, var(--violet) 70%, transparent), transparent 70%),
    radial-gradient(26% 30% at 78% 14%, color-mix(in srgb, var(--coral) 52%, transparent), transparent 70%),
    radial-gradient(30% 36% at 58% 40%, color-mix(in srgb, var(--blue) 46%, transparent), transparent 70%),
    radial-gradient(22% 26% at 88% 52%, color-mix(in srgb, var(--emerald) 40%, transparent), transparent 70%);
  filter: blur(30px);
}
.hero .wrap { position: relative; }
.hero-copy { display: grid; gap: 1.5rem; justify-items: center; justify-self: center; max-width: 46rem; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: .55rem; padding: .42rem .9rem;
  border-radius: 999px; background: #ffffffb8; border: 1px solid var(--line);
  font: 600 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.badge i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--emerald); }
.hero h1 em { font-style: normal; display: inline-block; }
/* On a phone the forced break leaves "Launchpad is / gone."; there the two
   sentences read better flowing into whatever balance gives them. */
@media (max-width: 30rem) { .hero h1 br { display: none; } }
.hero h1 em span {
  background: linear-gradient(104deg, var(--blue), var(--violet) 46%, var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; justify-content: center; }
.stage { margin: clamp(2.5rem, 5vw, 4rem) auto clamp(2rem, 4vw, 3rem); max-width: 62rem; }
.stage img { display: block; width: 100%; filter: drop-shadow(0 2rem 3.2rem #15171c3d); }

/* Little tile row, the app's own signature */
.tilerow { display: flex; gap: .4rem; }
.tilerow i { width: 1.15rem; height: 1.15rem; border-radius: var(--tile); }
.tilerow i:nth-child(1) { background: var(--blue); }
.tilerow i:nth-child(2) { background: var(--violet); }
.tilerow i:nth-child(3) { background: var(--coral); }
.tilerow i:nth-child(4) { background: var(--emerald); }

/* Cards */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card {
  display: grid; gap: .7rem; align-content: start; padding: clamp(1.4rem, 2.2vw, 2rem);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  box-shadow: 0 .3rem 1rem #15171c0a;
}
.card p { color: var(--ink-2); font-size: .98rem; line-height: 1.6; }
.card .dot { width: 1.6rem; height: 1.6rem; border-radius: var(--tile); }
.card:nth-child(1) .dot { background: var(--blue); }
.card:nth-child(2) .dot { background: var(--violet); }
.card:nth-child(3) .dot { background: var(--coral); }
.card:nth-child(4) .dot { background: var(--emerald); }

/* Decks */
.decks-band { background: var(--wash); }
.decks {
  display: grid; gap: clamp(1.8rem, 3.5vw, 3rem); align-items: end; justify-items: center;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.decks figure { margin: 0; display: grid; gap: 1rem; justify-items: center; }
/* Capped at the size the app actually draws, so a wide column never blows a
   160 pt deck up to 700 px. */
.decks img { width: 100%; max-width: var(--w); height: auto; filter: drop-shadow(0 1.2rem 2.4rem #15171c40); }
.decks figcaption { max-width: 18rem; text-align: center; font-size: .94rem; line-height: 1.5; color: var(--muted); }

/* Appearance */
.split { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); align-items: center; }
@media (max-width: 54rem) { .split { grid-template-columns: 1fr; justify-items: center; } }
.split figure { margin: 0; display: grid; justify-items: center; }
.split figure img { filter: drop-shadow(0 1.4rem 2.8rem #15171c3d); border-radius: .9rem; }
/* The top edge of the deck the panel is pointing at, the way it sits in the
   app. Only the lip of it: the tiles would fight the panel for attention, and
   the point here is that the panel belongs to a deck. It fades out rather than
   stopping, because a cut edge would read as a crop. */
.deck-peek {
  /* A touch wider than the panel, so it reads as the surface underneath it
     rather than as more of the same panel. */
  width: min(112%, 20rem); height: 4.5rem; margin-top: .35rem;
  border-radius: 1.15rem 1.15rem 0 0;
  background: linear-gradient(180deg, #6C7873 0%, #66726D 45%, #616D68 100%);
  box-shadow: inset 0 1px 0 #ffffff2e;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 26%, #0000 96%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 26%, #0000 96%);
}
.controls { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.controls li { display: grid; grid-template-columns: minmax(7rem, 10rem) 1fr; gap: .3rem 1.4rem; padding: 1.15rem 1.4rem; background: var(--paper); }
.controls li + li { border-top: 1px solid var(--line); }
@media (max-width: 36rem) { .controls li { grid-template-columns: 1fr; } }
.controls b { font-size: .95rem; font-weight: 650; letter-spacing: -.01em; }
.controls span { color: var(--ink-2); font-size: .96rem; line-height: 1.55; }
.controls .swatches { display: flex; gap: .3rem; margin-top: .55rem; }
.controls .swatches i { width: 1rem; height: 1rem; border-radius: var(--tile); }

/* Price */
.price { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.tier {
  display: grid; gap: .8rem; align-content: start; padding: clamp(1.6rem, 2.6vw, 2.3rem);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.tier.is-paid { border-color: color-mix(in srgb, var(--blue) 40%, transparent); box-shadow: 0 1rem 2.4rem #0a84ff1f; }
.amount { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.04em; }
.amount small { display: block; margin-top: .2rem; font: 600 .74rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tier p { color: var(--ink-2); font-size: .98rem; line-height: 1.6; }
.tier ul { margin: .2rem 0 0; padding-left: 1.15rem; display: grid; gap: .45rem; color: var(--ink-2); font-size: .96rem; }

/* Footer */
.foot { padding: 2.6rem var(--pad) 3.4rem; border-top: 1px solid var(--line); display: grid; gap: 1.1rem; background: var(--wash); }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.foot nav a { font-size: .9rem; font-weight: 550; color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot p { font-size: .86rem; color: var(--muted); }
.foot .by { display: flex; align-items: center; gap: .5rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}

/* ---- the privacy page, in the same universe (policy-page.js, universe mode) */
.policy-page .wrap { max-width: 44rem; }
.policy-page h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1.2rem; }
.policy-page h2 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; letter-spacing: -.02em; }
.policy-page p, .policy-page li { color: var(--ink-2); line-height: 1.65; }
.policy-page p + p { margin-top: .9rem; }
.policy-page ul { margin: .6rem 0 0; padding-left: 1.2rem; }
.policy-page .said { margin: 0 0 1.6rem; padding-left: .9rem; border-left: 2px solid var(--violet); color: var(--muted); font-size: .92rem; }
.policy-page .policy-date { color: var(--muted); font: 600 .74rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-top: 2rem; }
.policy-page .policy-contact { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.policy-page .policy-contact a { font-weight: 600; }
