/* Placey site pages (privacy, terms, support, press). Same Pop Stickers system as the landing page:
   a saturated poster band with the giant word behind, and the page's content on a white sticker
   card with a hard offset shadow. One look in light and dark, colors set explicitly. */
:root {
  color-scheme: light;
  --indigo: #6246ff;   --indigo-2: #4028d6;
  --coral: #f03c48;    --coral-2: #cd2238;
  --tangerine: #ff8028; --tangerine-2: #ef5a14;
  --sunflower: #ffd228; --sunflower-2: #ffb014;
  --jade: #14c8a0;     --jade-2: #0a9682;
  --grape: #aa46f0;    --grape-2: #7828c8;
  --midnight: #1c1a3c; --midnight-2: #0c0c1c;
  --ink: #14141e;      --ink-soft: #4a4658;
  --paper: #fff8ec;    --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.25);

  /* surfaces that flip with the browser's light/dark setting (the poster band stays as it is) */
  --surface: var(--paper);  --on-surface: var(--ink);  --muted: var(--ink-soft);
  --card: var(--white);  --edge: var(--ink);

  --display: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --band: var(--indigo); --band-2: var(--indigo-2); --accent: var(--indigo);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface: #12101f;  --on-surface: #f3efff;  --muted: #b8b1d4;
    --card: #1d1a30;  --edge: #3a3560;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #12101f;  --on-surface: #f3efff;  --muted: #b8b1d4;
  --card: #1d1a30;  --edge: #3a3560;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--surface); color: var(--on-surface);
  font-family: var(--body); font-size: 18px; line-height: 1.6; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--sunflower); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Page colors */
.page-privacy { --band: var(--jade); --band-2: var(--jade-2); --accent: var(--jade-2); }
.page-terms { --band: var(--grape); --band-2: var(--grape-2); --accent: var(--grape-2); }
.page-support { --band: var(--coral); --band-2: var(--coral-2); --accent: var(--coral-2); }
.page-press { --band: var(--tangerine); --band-2: var(--tangerine-2); --accent: var(--tangerine-2); }

/* Poster band */
.band {
  position: relative; overflow: hidden; isolation: isolate; color: var(--white);
  background: linear-gradient(135deg, var(--band), var(--band-2));
}
.bigword {
  position: absolute; inset: -40% -30%; z-index: -1; display: flex; flex-direction: column;
  transform: rotate(-8deg); font-family: var(--display); font-weight: 900;
  font-size: clamp(110px, 18vw, 260px); line-height: 0.82; letter-spacing: -0.03em;
  white-space: nowrap; pointer-events: none; user-select: none;
}
.bigword span { opacity: 0.16; }
.bigword span:nth-child(even) { opacity: 0.08; transform: translateX(-12%); }

/* Nav (same as the landing page) */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 28px; }
.brand img { width: 46px; height: 46px; border-radius: 12px; border: 3px solid var(--white); box-shadow: 4px 5px 0 var(--shadow); }
.nav-links { display: flex; align-items: center; gap: 26px; font-family: var(--display); font-weight: 800; font-size: 17px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font-family: var(--display); font-weight: 900; font-size: 20px;
  padding: 16px 28px; border-radius: 99px; border: 4px solid var(--white);
  box-shadow: 8px 10px 0 var(--shadow); transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 10px 12px 0 var(--shadow); }
.btn:active { transform: translate(4px, 5px); box-shadow: 3px 4px 0 var(--shadow); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.nav-links .btn { font-size: 16px; padding: 10px 18px; border-width: 3px; box-shadow: 5px 6px 0 var(--shadow); }

/* Pinned top bar: clear over the top of the hero, exactly like the in-band menu; once the page
   scrolls it turns into frosted glass tinted with the page's color, so white text reads over any section. */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  transition: background-color 0.25s, box-shadow 0.25s;
}
.topbar .nav { max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; color: var(--white); transition: padding 0.25s; }
.topbar.scrolled {
  /* real glass: no color of its own, the blurred section underneath shows through */
  background: rgba(10, 8, 30, 0.10);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16);
}
.topbar.scrolled[data-tone="light"] { background: rgba(255, 255, 255, 0.30); box-shadow: 0 1px 0 rgba(20, 20, 30, 0.10); }
/* over light sections (yellow strip, cream features, yellow CTA) the text and button flip to ink */
.topbar[data-tone="light"] .nav { color: var(--ink); }
.topbar[data-tone="light"] .btn-light { background: var(--ink); color: var(--white); border-color: var(--ink); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar.scrolled { background: rgba(20, 18, 40, 0.88); }
  .topbar.scrolled[data-tone="light"] { background: rgba(255, 248, 236, 0.94); }
}
.topbar.scrolled .nav { padding-block: 12px; }
[id] { scroll-margin-top: 100px; }

/* Page heading inside the band */
.page-head { display: grid; gap: 14px; padding-block: 130px 150px; }
.eyebrow { font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; }
.page-head h1 {
  margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: -0.02em; line-height: 0.98;
  font-size: clamp(48px, 8vw, 96px); text-wrap: balance;
}

/* Content card: a white sticker overlapping the band */
.sheet-wrap { padding-bottom: 100px; }
.sheet {
  position: relative; max-width: 860px; margin: -110px auto 0;
  background: var(--card); border: 4px solid var(--edge); border-radius: 40px;
  box-shadow: 12px 14px 0 var(--edge); padding: clamp(28px, 5vw, 60px);
}
.sheet .sticker { position: absolute; width: 110px; top: -54px; right: 28px; transform: rotate(12deg); }

/* Long-form text */
.prose { max-width: 68ch; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 18px; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose h2 {
  font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3vw, 32px); line-height: 1.1;
  letter-spacing: -0.01em; margin: 44px 0 12px; text-wrap: balance;
}
.prose h3 {
  display: inline-block; font-family: var(--display); font-weight: 900; font-size: 19px;
  margin: 18px 0 10px; padding: 6px 16px; border-radius: 99px;
  background: var(--surface); border: 3px solid var(--edge); box-shadow: 4px 5px 0 var(--edge);
}
.prose a { color: var(--accent); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--on-surface); }
.prose .intro { font-size: 20px; font-weight: 500; color: var(--muted); }

/* Centered short pages (support, press) */
.center { display: grid; justify-items: center; text-align: center; gap: 20px; }
.center p { margin: 0; max-width: 46ch; }
.email-pill {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  background: var(--surface); border: 4px solid var(--edge); border-radius: 99px;
  padding: 10px 10px 10px 26px; box-shadow: 8px 10px 0 var(--edge);
  font-family: var(--display); font-weight: 900; font-size: clamp(19px, 3vw, 26px);
}
.email-pill a { text-decoration: none; }
.email-pill button {
  font: inherit; font-size: 16px; cursor: pointer; color: var(--white); background: var(--accent);
  border: 0; border-radius: 99px; padding: 10px 18px;
}
.email-pill button:hover { background: var(--edge); }
.app-sticker { width: 150px; padding: 10px; background: var(--white); border-radius: 40px; box-shadow: 12px 14px 0 var(--shadow); border: 4px solid var(--edge); transform: rotate(-6deg); }
.app-sticker img { border-radius: 30px; }

/* Footer (same as the landing page) */
footer { background: var(--midnight-2); color: rgba(255, 255, 255, 0.78); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 44px; }
.foot .brand { color: var(--white); font-size: 22px; }
.foot .brand img { width: 36px; height: 36px; border-radius: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a { text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--white); text-decoration: underline; }
.email { user-select: all; color: var(--white); font-weight: 600; }

@media (max-width: 760px) {
  .page-head { padding-block: 116px 130px; }
  .sheet { border-radius: 30px; }
  .sheet .sticker { width: 84px; top: -42px; right: 18px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .nav { gap: 12px; }
  .nav-links { gap: 14px; font-size: 16px; }
  .brand { font-size: 23px; gap: 10px; }
  .brand img { width: 38px; height: 38px; }
  .nav-links .btn { font-size: 15px; padding: 9px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar, .topbar .nav { transition: none; } .btn { transition: none; } }

/* Dark mode: page accents switch to the brighter band color so links stay readable on the dark card */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body { --accent: var(--band); }
}
:root[data-theme="dark"] body { --accent: var(--band); }
