/* YouKnowThatSite house style: one stylesheet for every page (home, apps, extensions, support, privacy).
   Origin: the Screen Goblin landing draft and the home page dark trial.
   Built with the landing-page-design skill (Part B visual system).
   Spacing: only the B2 tokens. Radius: Tailwind values. Type: the named B1 styles.
   Backgrounds: flat, from the approved dark list. Motion: one base curve. */

@font-face { font-family: "Bowlby One SC"; src: url("/fonts/BowlbyOneSC-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("/fonts/Urbanist-VariableFont_wght.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  /* B2 spacing tokens */
  --s-0: 0;
  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;

  /* B3 Tailwind radius values */
  --r-default: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;

  /* B7 base curve */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* B4 dark backgrounds (flat) */
  --color-bg: #151412;
  --color-bg-surface: #24211c;
  --color-bg-surface-secondary: #2e2a24;
  --color-bg-surface-tertiary: #3a352c;

  --color-text-primary: #f3ecdb;
  --color-text-secondary: #b9b1a0;
  --color-border-tertiary-default: #3a352c;
  --color-border-secondary-default: #5a5346;

  /* The live site's dark mode colours (cream ink, red orange) */
  --color-bg-fill-primary-default: #ff6a45;
  --color-bg-fill-primary-hover: #ff8a68;
  --color-text-accent-default: #ff8a68;
  --color-text-on-fill-primary: #151412;
  --color-text-on-fill-accent: #151412;
  --color-bg-rgb: 21, 20, 18;
  --color-text-gradient-start: #f3ecdb;
  --color-text-gradient-end: #b9b1a0;

  /* Colour names follow color-[element]-[priority]-[state]: element (bg, bg-surface, bg-fill, text, border, icon),
     then priority (primary, secondary, tertiary, or accent), then state (default, hover, active, focus, disabled).
     Each part is optional. A theme file may override any of these. */
  --color-border-accent-focus: var(--color-text-accent-default);
  --color-bg-fill-accent-default: var(--color-text-accent-default);
  --color-bg-fill-primary-active: #e85a35;
  --color-bg-fill-primary-disabled: var(--color-bg-surface-secondary);
  --color-text-on-fill-primary-disabled: var(--color-text-secondary);
  --color-bg-fill-secondary-disabled: var(--color-bg-surface-secondary);
  --color-text-secondary-disabled: var(--color-text-secondary);
  --color-border-primary-default: #8a8272;   /* form control edges: 3:1 or better on the raised surface */
  --color-text-danger-default: #ff8a68;

  /* B1 Tailwind type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* CTA depth: lift shadow plus an inset highlight on top and an inset shade underneath */
  --shadow-cta-rest:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -3px 0 rgba(0, 0, 0, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.32);
  --shadow-cta-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -3px 0 rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.4);
  --shadow-cta-press:
    inset 0 2px 5px rgba(0, 0, 0, 0.4),
    0 1px 1px rgba(0, 0, 0, 0.4);
}

/* Angle for the rotating CTA glow. Registered so the browser can animate it. */
@property --cta-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--s-800);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: "Urbanist", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--text-base);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; }
a { color: inherit; }

/* ---------- B1 named text styles ---------- */
.heading-1, .heading-2, .heading-3, .heading-4, .heading-5, .heading-6 { font-family: "Bowlby One SC", "Urbanist", sans-serif; }
.heading-1 { font-size: var(--text-6xl); line-height: 1;      font-weight: 400; }
.heading-2 { font-size: var(--text-5xl); line-height: 1;      font-weight: 400; }
.heading-3 { font-size: var(--text-4xl); line-height: 2.5rem; font-weight: 400; }
.heading-4 { font-size: var(--text-3xl); line-height: 2.25rem; font-weight: 400; }
.heading-5 { font-size: var(--text-2xl); line-height: 2rem;   font-weight: 400; }
.heading-6 { font-size: var(--text-xl);  line-height: 1.75rem; font-weight: 400; }

.title-1 { font-size: var(--text-xl);   line-height: 1.75rem; font-weight: 500; }
.title-2 { font-size: var(--text-lg);   line-height: 1.75rem; font-weight: 500; }
.title-3 { font-size: var(--text-base); line-height: 1.5rem;  font-weight: 500; }
.title-4 { font-size: var(--text-sm);   line-height: 1.25rem; font-weight: 500; }
.title-5 { font-size: var(--text-xs);   line-height: 1rem;    font-weight: 500; }

.body-1 { font-size: var(--text-base); line-height: 1.5rem;  font-weight: 600; }
.body-2 { font-size: var(--text-base); line-height: 1.5rem;  font-weight: 500; }
.body-3 { font-size: var(--text-base); line-height: 1.5rem;  font-weight: 400; }
.body-4 { font-size: var(--text-sm);   line-height: 1.25rem; font-weight: 600; }
.body-5 { font-size: var(--text-sm);   line-height: 1.25rem; font-weight: 500; }
.body-6 { font-size: var(--text-sm);   line-height: 1.25rem; font-weight: 400; }

.button-lg  { font-size: var(--text-lg);   line-height: 1.75rem; font-weight: 600; }
.button-md  { font-size: var(--text-base); line-height: 1.5rem;  font-weight: 600; }
.button-sm  { font-size: var(--text-sm);   line-height: 1.25rem; font-weight: 600; }
.button-xsm { font-size: var(--text-xs);   line-height: 1rem;    font-weight: 600; }

.caption-1 { font-size: var(--text-sm); line-height: 1.25rem; font-weight: 500; }
.caption-2 { font-size: var(--text-sm); line-height: 1.25rem; font-weight: 400; }
.caption-3 { font-size: var(--text-xs); line-height: 1rem;    font-weight: 600; }
.caption-4 { font-size: var(--text-xs); line-height: 1rem;    font-weight: 500; }
.caption-5 { font-size: var(--text-xs); line-height: 1rem;    font-weight: 400; }

/* On phones the big headings step down one named style so they fit 390px. */
@media (max-width: 767px) {
  .heading-1 { font-size: var(--text-4xl); line-height: 2.5rem; }
  .heading-2 { font-size: var(--text-3xl); line-height: 2.25rem; }
}

h1, h2, h3 { text-wrap: balance; }
p, dd, li { text-wrap: pretty; }

.muted { color: var(--color-text-secondary); }
.mono  { font-family: "Urbanist", sans-serif; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--s-200);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--s-300); }
}
.narrow { max-width: 680px; }
.container.narrow { max-width: calc(680px + var(--s-600)); }

.section { padding-block: var(--s-700); }
@media (min-width: 768px) {
  .section { padding-block: var(--s-900); }
}

.section h2 { margin-bottom: var(--s-200); }

/* ---------- Icons (Phosphor, inline) ---------- */
.icon {
  width: var(--s-200);
  height: var(--s-200);
  flex: none;
  display: inline-block;
}
.tile .icon { width: var(--s-300); height: var(--s-300); }

/* ---------- Focus (visible everywhere) ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-border-accent-focus);
  outline-offset: 2px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: var(--s-200);
  top: var(--s-200);
  z-index: 100;
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  background: var(--color-bg-fill-accent-default);
  color: var(--color-text-on-fill-accent);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 300ms var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 300ms var(--ease), transform 300ms var(--ease), border-color 300ms var(--ease);
}
/* BUTTON RULE: only a main CTA (.btn-primary) has depth, a lift shadow and a glow. Every other button
   (secondary, unavailable, menu, icon) is a flat fill or plain text with NO outline and NO border colour. */
.btn-primary {
  position: relative;
  isolation: isolate;
  background: var(--color-bg-fill-primary-default);
  color: var(--color-text-on-fill-primary);
  box-shadow: var(--shadow-cta-rest);
  transition: background-color 300ms var(--ease), transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.btn-primary:hover { background: var(--color-bg-fill-primary-hover); }
.btn:active { transform: scale(0.98); }

/* Glow: a rotating conic gradient stroke (::before) and the same stroke blurred into a bloom (::after).
   Both sit behind the label and only show on hover, on devices that can hover. */
.btn-primary::before,
.btn-primary::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  border-radius: var(--r-lg);
  background: conic-gradient(from var(--cta-angle), var(--color-bg-fill-primary-default), var(--color-bg-fill-accent-default), var(--color-bg-fill-primary-hover), var(--color-bg-fill-primary-default));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: opacity 500ms var(--ease);
}
.btn-primary::before { inset: calc(var(--s-25) * -1); padding: var(--s-25); }
.btn-primary::after  { inset: calc(var(--s-75) * -1); padding: var(--s-75); filter: blur(var(--s-200)); }
@keyframes cta-spin { to { --cta-angle: 360deg; } }
@media (hover: hover) {
  .btn-primary:not(:disabled):hover { transform: translateY(calc(var(--s-25) * -1)); box-shadow: var(--shadow-cta-hover); }
  .btn-primary:not(:disabled):hover::before { opacity: 1; animation: cta-spin 3s linear infinite; }
  .btn-primary:not(:disabled):hover::after  { opacity: 0.7; animation: cta-spin 3s linear infinite; }
}
.btn-primary:not(:disabled):active { background: var(--color-bg-fill-primary-active); transform: scale(0.98); box-shadow: var(--shadow-cta-press); }
.btn-primary:disabled { background: var(--color-bg-fill-primary-disabled); color: var(--color-text-on-fill-primary-disabled); box-shadow: none; }

/* Touch screens: every button is at least 44px tall (desktop keeps the 8px and 12px padding). */
@media (pointer: coarse) { .btn { min-height: 44px; } }
.btn .icon { transition: transform 500ms var(--ease); }
.btn:hover .icon { transform: translateX(var(--s-50)); }

/* ---------- Navigation ---------- */
.nav-wrap {
  position: fixed;
  top: var(--s-200);
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding-inline: var(--s-200);
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--s-300);
  max-width: 100%;
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  background: rgba(var(--color-bg-rgb), 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--color-border-tertiary-default);
  border-radius: var(--r-2xl);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  text-decoration: none;
  color: var(--color-text-primary);
  border-radius: var(--r-lg);
}
.nav-brand img { border-radius: var(--r-default); display: block; }
.nav-links { display: none; align-items: center; gap: var(--s-50); }
.nav-links a {
  display: block;
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="true"] { color: var(--color-text-primary); background: var(--color-bg-surface-secondary); }
.nav-cta { display: none; }
.nav-toggle {
  display: none;
  place-items: center;
  width: var(--s-500);
  height: var(--s-500);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: transparent;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background-color 300ms var(--ease), transform 300ms var(--ease);
}
.nav-toggle:hover { background: var(--color-bg-surface-secondary); }
.nav-toggle:active { transform: scale(0.98); }
.bars { position: relative; display: block; width: var(--s-300); height: var(--s-300); }
.bars span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin-block: auto;
  width: 100%;
  height: 2px;
  border-radius: var(--s-25);
  background: currentColor;
  transition: transform 500ms var(--ease);
}
.bars span:first-child { transform: translateY(calc(var(--s-50) * -1)); }
.bars span:last-child  { transform: translateY(var(--s-50)); }
.nav-toggle[aria-expanded="true"] .bars span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:last-child  { transform: rotate(-45deg); }

@media (min-width: 480px) {
  .nav-cta { display: inline-flex; }
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none !important; }
}
@media (max-width: 767px) {
  .js .nav-toggle { display: grid; }
  .nav-cta { display: none; }
}

/* Mobile menu: full height panel, high opacity base surface, strong blur */
.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: var(--s-900) var(--s-300) var(--s-400);
  background: rgba(var(--color-bg-rgb), 0.96);
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(32px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms var(--ease), visibility 0s var(--ease) 500ms;
}
.menu.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 500ms var(--ease), visibility 0s var(--ease) 0s;
}
.menu-links { display: grid; gap: var(--s-100); max-width: 680px; margin-inline: auto; }
.menu-links li {
  opacity: 0;
  transform: translateY(var(--s-300));
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.menu.open .menu-links li {
  opacity: 1;
  transform: none;
}
.menu.open .menu-links li:nth-child(2) { transition-delay: 60ms; }
.menu.open .menu-links li:nth-child(3) { transition-delay: 120ms; }
.menu.open .menu-links li:nth-child(4) { transition-delay: 180ms; }
.menu.open .menu-links li:nth-child(5) { transition-delay: 240ms; }
.menu.open .menu-links li:nth-child(6) { transition-delay: 300ms; }
.menu-links a:not(.btn) {
  display: block;
  padding: var(--s-100) 0;
  text-decoration: none;
  color: var(--color-text-primary);
  transition: color 300ms var(--ease);
}
.menu-links a:not(.btn):hover { color: var(--color-text-accent-default); }
.menu-links .btn { margin-top: var(--s-200); }
@media (min-width: 768px) {
  .menu { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--s-900) var(--s-700); }
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-300);
  text-align: center;
}
.hero-title {
  width: fit-content;
  max-width: 680px;
  /* B5: the one place a gradient is allowed, on the heading text only */
  background: linear-gradient(90deg, var(--color-text-gradient-start), var(--color-text-gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-title span { display: block; text-wrap: balance; }
.hero-sub { max-width: 680px; color: var(--color-text-secondary); }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: var(--s-100); }
.draft-note {
  padding: var(--s-25) var(--s-75);
  border-radius: var(--r-md);
  background: var(--color-bg-surface-secondary);
  color: var(--color-text-accent-default);
}
.proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-100) var(--s-300);
  margin-top: var(--s-100);
}
.proof li { display: inline-flex; align-items: center; gap: var(--s-75); }
@media (max-width: 767px) {
  .proof { flex-direction: column; align-items: flex-start; }
}
.proof .icon { color: var(--color-text-accent-default); width: var(--s-300); height: var(--s-300); }
.hero-frame { margin-top: var(--s-100); }

/* ---------- Hero reel (2026-12-04) ----------
   Real screens from every app in four tilted columns that drift up and down (transform only).
   Desktop: words on the left, the wall on the right. Phones and tablets: the wall is a band under the words. */
.hero-has-reel { position: relative; overflow: hidden; isolation: isolate; }
.hero-split { position: relative; z-index: 2; }
.reel { position: relative; height: 440px; margin-top: var(--s-500); perspective: 1600px; overflow: hidden; pointer-events: none; }
.reel-wall {
  position: absolute;
  inset: -35% -30% -35% -15%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-300);
  transform: rotateX(18deg) rotateY(-16deg) rotateZ(8deg);
  transform-origin: 30% 50%;
}
.reel-col { display: flex; flex-direction: column; gap: var(--s-300); min-width: 0; animation: reel-down 48s linear infinite; }
.reel-col.reel-up { animation-name: reel-up; animation-duration: 40s; }
.reel-col:nth-child(3) { animation-duration: 56s; }
.reel-col:nth-child(4) { animation-duration: 44s; }
@keyframes reel-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@keyframes reel-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.reel-tile { position: relative; margin: 0; }
.reel-shot {
  width: 100%;
  height: auto;
  border-radius: var(--r-3xl);
  border: 1px solid var(--color-border-tertiary-default);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.8);
  transition: transform 200ms var(--ease);
}
.reel-tile figcaption {
  position: absolute;
  left: var(--s-100);
  bottom: var(--s-100);
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-50) var(--s-100) var(--s-50) var(--s-50);
  border-radius: 999px;
  background: rgba(var(--color-bg-rgb), 0.82);
  color: var(--color-text-primary);
  opacity: 0;
  transform: translateY(var(--s-50));
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}
.reel-tile figcaption img { border-radius: var(--r-md); }
/* Fade the wall into the page so the words stay readable */
.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--color-bg) 0%, rgba(var(--color-bg-rgb), 0.6) 12%, transparent 30%, transparent 70%, rgba(var(--color-bg-rgb), 0.6) 88%, var(--color-bg) 100%);
}
@media (min-width: 1024px) {
  .hero-has-reel { min-height: min(100svh, 860px); display: flex; align-items: center; }
  .hero-split .hero-inner { align-items: flex-start; text-align: left; max-width: 520px; }
  .hero-split .hero-actions { align-items: flex-start; }
  .hero-split .proof { justify-content: flex-start; }
  /* Starts where the words end (container is 1120 wide, words 520), never left of the middle */
  .reel { position: absolute; top: 0; bottom: 0; right: 0; left: max(50%, calc((100% - 1120px) / 2 + 600px)); height: auto; margin: 0; overflow: hidden; pointer-events: auto; z-index: 1; }
  .reel-wall { inset: -40% -12% -40% 4%; }
  .reel::after {
    background: linear-gradient(90deg, var(--color-bg) 0%, rgba(var(--color-bg-rgb), 0.5) 10%, transparent 26%),
                linear-gradient(180deg, var(--color-bg) 0%, transparent 16%, transparent 84%, var(--color-bg) 100%);
    pointer-events: none;
  }
  .reel:hover .reel-col { animation-play-state: paused; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .reel-tile:hover .reel-shot { transform: scale(1.04); }
  .reel-tile:hover figcaption { opacity: 1; transform: none; }
}
@media (max-width: 767px) {
  .reel { height: 380px; }
  .reel-wall { inset: -45% -18% -45% -8%; gap: var(--s-200); }
  .reel-col { gap: var(--s-200); }
  .reel-shot { border-radius: var(--r-2xl); }
}
@media (prefers-reduced-motion: reduce) {
  .reel-col { animation: none; }
}

/* ---------- Frames for product images ----------
   Outer radius 16 with 8 padding gives an inner radius of 8 (B3 nested formula). */
.frame {
  padding: var(--s-75);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-tertiary-default);
  border-radius: var(--r-2xl);
}
.frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  background: var(--color-bg-surface-secondary);
}
.frame figcaption { padding: var(--s-100) var(--s-75) var(--s-50); text-align: center; }

/* ---------- Split sections ---------- */
.split { display: grid; gap: var(--s-600); align-items: center; }
.split-copy > p { margin-bottom: var(--s-300); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: var(--s-800); }
  .split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.popup-frame { max-width: 360px; width: 100%; margin-inline: auto; }

.modes { display: grid; gap: var(--s-100); margin-block: var(--s-400) var(--s-300); }
.mode {
  display: flex;
  align-items: flex-start;
  gap: var(--s-200);
  padding: var(--s-100);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-tertiary-default);
  border-radius: var(--r-2xl);
}
/* 12px gap inside a 16px radius gives a 4px inner radius */
.mode .tile { border-radius: var(--r-default); }
.mode h3, .mode p { margin: 0; }
.mode > div { padding-block: var(--s-25); }
.keys { display: flex; gap: var(--s-50); margin-top: var(--s-100) !important; }
kbd {
  padding: var(--s-25) var(--s-75);
  border: 1px solid var(--color-border-secondary-default);
  border-radius: var(--r-md);
  background: var(--color-bg-surface-secondary);
  font-family: "Urbanist", sans-serif;
  color: var(--color-text-primary);
}

.tile {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--s-500);
  height: var(--s-500);
  border-radius: var(--r-lg);
  background: var(--color-bg-surface-secondary);
  color: var(--color-text-accent-default);
}

/* ---------- Cards and steps ---------- */
.cards, .steps {
  display: grid;
  gap: var(--s-300);
  margin-top: var(--s-600);
}
@media (min-width: 900px) {
  .cards, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-100);
  padding: var(--s-300);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-tertiary-default);
  border-radius: var(--r-2xl);
  transition: transform 500ms var(--ease), border-color 300ms var(--ease);
}
.card:hover { transform: translateY(calc(var(--s-50) * -1)); border-color: var(--color-border-secondary-default); }
.card .tile { margin-bottom: var(--s-75); }

.step {
  display: flex;
  flex-direction: column;
  gap: var(--s-100);
  padding: var(--s-300);
  border: 1px solid var(--color-border-tertiary-default);
  border-radius: var(--r-2xl);
}
.step-num {
  font-family: "Urbanist", sans-serif;
  color: var(--color-text-accent-default);
}

/* ---------- Tagline reveal (B11) ---------- */
.tagline { padding-block: var(--s-800); }
@media (min-width: 768px) { .tagline { padding-block: var(--s-900); } }
.tagline-text { max-width: 680px; }
.tagline-text .word {
  opacity: 0.3;
  transition: opacity 500ms var(--ease);
}
.tagline-text .word.on { opacity: 1; }

/* ---------- Privacy facts ----------
   16px outer radius, 8px padding and gap, so the rows take 8px (B3). */
.facts {
  display: grid;
  gap: var(--s-75);
  padding: var(--s-75);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-tertiary-default);
  border-radius: var(--r-2xl);
}
.fact {
  padding: var(--s-200);
  background: var(--color-bg-surface-secondary);
  border-radius: var(--r-lg);
}
.fact dt { color: var(--color-text-primary); margin-bottom: var(--s-50); }
.fact dd { margin: 0; }

.link {
  display: inline-block;
  padding: var(--s-100) 0;
  color: var(--color-text-accent-default);
  text-decoration: underline;
  text-underline-offset: var(--s-50);
  border-radius: var(--r-md);
  transition: color 300ms var(--ease);
}
.link:hover { color: var(--color-text-primary); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s-75); margin-top: var(--s-500); }
.faq-item {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-tertiary-default);
  border-radius: var(--r-xl);
  transition: background-color 300ms var(--ease);
}
.faq-item:hover, .faq-item[open] { background: var(--color-bg-surface-secondary); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-200);
  padding: var(--s-200);
  border-radius: var(--r-xl);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--color-text-secondary); transition: transform 500ms var(--ease); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-a { padding: 0 var(--s-200) var(--s-200); }
.faq-a p { max-width: 680px; }

/* ---------- Final CTA ---------- */
.final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-200);
  padding: var(--s-700) var(--s-300);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-tertiary-default);
  border-radius: var(--r-3xl);
  text-align: center;
}
.final-inner h2 { margin: 0; }
.final-inner > p { max-width: 680px; }
.final-inner .hero-actions { margin-top: var(--s-100); }

/* ---------- Footer ---------- */
.footer { padding-block: var(--s-600); background: var(--color-bg-surface); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-200) var(--s-400); }
.footer-brand { display: flex; align-items: center; gap: var(--s-75); }
.footer-brand img { border-radius: var(--r-default); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-100) var(--s-300); }
.footer-links a {
  display: inline-block;
  padding: var(--s-100) 0;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-radius: var(--r-md);
  transition: color 300ms var(--ease);
}
.footer-links a:hover { color: var(--color-text-primary); }
.credits { flex-basis: 100%; }

/* ---------- Scroll reveals (B7) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(var(--s-400));
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* Icon row: the icons rise in one after another once the row is on screen (capped at 400ms). */
.icon-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-200);
  justify-items: center;
  max-width: 680px;
  margin: var(--s-600) auto 0;
}
@media (min-width: 768px) {
  .icon-row { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
.icon-row img {
  display: block;
  width: 100%;
  max-width: 96px;
  height: auto;
  border-radius: var(--r-3xl);
  transition: transform 500ms var(--ease);
}
.icon-row li:hover img { transform: translateY(calc(var(--s-75) * -1)); }
.js .stagger li { opacity: 0; transform: translateY(var(--s-400)); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .stagger.in li { opacity: 1; transform: none; }
.js .stagger.in li:nth-child(2) { transition-delay: 60ms; }
.js .stagger.in li:nth-child(3) { transition-delay: 120ms; }
.js .stagger.in li:nth-child(4) { transition-delay: 180ms; }
.js .stagger.in li:nth-child(5) { transition-delay: 240ms; }
.js .stagger.in li:nth-child(6) { transition-delay: 300ms; }
.js .stagger.in li:nth-child(7) { transition-delay: 360ms; }
.js .stagger.reveal { opacity: 1; transform: none; }

/* App and extension cards. The heading link stretches over the whole card. */
.app-grid { display: grid; gap: var(--s-300); margin-top: var(--s-600); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ext-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.app-card { position: relative; gap: var(--s-75); }
.app-icon { width: var(--s-700); height: var(--s-700); border-radius: var(--r-xl); display: block; margin-bottom: var(--s-75); }
.platform { color: var(--color-text-accent-default); }
.card-link { color: var(--color-text-primary); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-2xl); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--color-border-accent-focus); outline-offset: 2px; }
.app-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-100) var(--s-200); margin-top: auto; padding-top: var(--s-200); }
.app-links a { position: relative; z-index: 1; }
.link-sm { display: inline-block; padding: var(--s-100) 0; color: var(--color-text-secondary); text-decoration: underline; text-underline-offset: var(--s-50); border-radius: var(--r-md); transition: color 300ms var(--ease); }
.link-sm:hover { color: var(--color-text-primary); }
.btn[aria-disabled="true"] { cursor: default; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link-inline { color: var(--color-text-accent-default); }

/* Feedback form (contact.js drives it) */
form.contact { display: grid; gap: var(--s-100); margin-top: var(--s-400); padding: var(--s-300); background: var(--color-bg-surface); border: 1px solid var(--color-border-tertiary-default); border-radius: var(--r-2xl); }
form.contact label { display: flex; justify-content: space-between; gap: var(--s-100); }
.field { width: 100%; padding: var(--s-100); background: var(--color-bg-surface-secondary); color: var(--color-text-primary); border: 1px solid var(--color-border-primary-default); border-radius: var(--r-lg); font-family: inherit; }
.field:focus-visible { outline: 2px solid var(--color-border-accent-focus); outline-offset: 2px; }
textarea.field { min-height: 120px; resize: vertical; }
form.contact .btn { justify-self: start; }
form.contact .btn:disabled { cursor: default; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
form.contact .status.ok { color: var(--color-text-accent-default); }
form.contact .status.bad { color: var(--color-text-danger-default); }

/* ---------- 404 ---------- */
.lost { min-height: 100vh; display: grid; place-items: center; padding: var(--s-300); text-align: center; }
.lost-inner { display: flex; flex-direction: column; align-items: center; gap: var(--s-200); max-width: 680px; }
.lost-inner img { border-radius: var(--r-xl); }

/* ---------- Reduced motion: opacity only, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .stagger li { transform: none; transition: opacity 300ms var(--ease); }
  .icon-row li:hover img { transform: none; }
  .menu-links li { transform: none; }
  .card:hover { transform: none; }
  .btn:hover .icon { transform: none; }
  .btn-primary:not(:disabled):hover { transform: none; }
  .btn-primary:hover::before, .btn-primary:hover::after { animation: none; }
  .tagline-text .word { opacity: 1; transition: none; }
  .bars span { transition: none; }
  .faq-item summary .icon { transition: none; }
}

/* =====================================================================
   Site-wide additions (inner pages, documents, screenshots)
   ===================================================================== */

/* Inner page head: back link, icon, title, subtitle */
.page-head { padding-block: calc(var(--s-900) + var(--s-100)) var(--s-300); }
.back {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-100) 0;
  margin-bottom: var(--s-200);
  color: var(--color-text-secondary);
  text-decoration: none;
  border-radius: var(--r-md);
  transition: color 300ms var(--ease);
}
.back:hover { color: var(--color-text-primary); }
.back .icon { transform: rotate(180deg); }
.back:hover .icon { transform: rotate(180deg) translateX(var(--s-50)); }
.page-head-row { display: flex; align-items: center; gap: var(--s-300); }
.page-head-row .app-icon { width: var(--s-800); height: var(--s-800); border-radius: var(--r-2xl); margin: 0; flex: none; }
.page-head h1 { margin: 0; }
.page-sub { color: var(--color-text-secondary); margin-top: var(--s-75); }
@media (max-width: 767px) {
  .heading-3 { font-size: var(--text-3xl); line-height: 2.25rem; }
  .page-head-row { gap: var(--s-200); }
  .page-head-row .app-icon { width: var(--s-700); height: var(--s-700); border-radius: var(--r-xl); }
}

/* Landing lede and actions */
.lede { max-width: 680px; margin-top: var(--s-300); }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-100) var(--s-300); margin-top: var(--s-300); }
.page-actions .note { color: var(--color-text-secondary); }
.page-actions .link-sm { padding: var(--s-100) 0; }
.btn-soon { background: var(--color-bg-fill-secondary-disabled); color: var(--color-text-secondary-disabled); border-color: transparent; box-shadow: none; cursor: default; }
.btn-soon:active { transform: none; }

/* Document text: legal, help and feature pages */
.doc { max-width: 680px; padding-bottom: var(--s-800); }
.doc > :first-child { margin-top: 0; }
.doc h2 { font-family: "Bowlby One SC", "Urbanist", sans-serif; font-weight: 400; font-size: var(--text-2xl); line-height: 2rem; margin: var(--s-600) 0 var(--s-100); text-wrap: balance; }
.doc h3 { font-size: var(--text-lg); line-height: 1.75rem; font-weight: 700; margin: var(--s-400) 0 var(--s-50); }
.doc p, .doc li { font-size: var(--text-base); line-height: 1.5rem; }
.doc p { margin: var(--s-100) 0; }
.doc ul, .doc ol { margin: var(--s-100) 0; padding-left: var(--s-300); }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li { margin: var(--s-75) 0; padding-left: var(--s-50); }
.doc li::marker { color: var(--color-text-accent-default); }
.doc a { color: var(--color-text-accent-default); text-underline-offset: var(--s-50); }
.doc a:hover { color: var(--color-text-primary); }
.doc a.btn { color: var(--color-text-on-fill-primary); text-decoration: none; }
.doc strong { font-weight: 700; }
.doc .muted { color: var(--color-text-secondary); }
.doc .shots { margin-block: var(--s-200); }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-200); align-items: start; }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--color-border-tertiary-default); border-radius: var(--r-xl); background: var(--color-bg-surface); }
.shots.wide, .shots.two { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.shots.wide img { max-width: 100%; }
.shots.wide img:last-child { max-width: 251px; }

/* Entrance on page load, no JavaScript needed (transform and opacity only) */
@keyframes rise { from { opacity: 0; transform: translateY(var(--s-300)); } to { opacity: 1; transform: none; } }
.page-head, .doc { animation: rise 600ms var(--ease) both; }
.doc { animation-delay: 80ms; }

/* Contact form on inner pages sits in the document column */
.doc form.contact { margin-top: var(--s-200); }
.doc form.contact h2 { margin-top: 0; }
.doc form.contact .btn { color: var(--color-text-on-fill-primary); }
.doc form.contact p { margin: 0; }

/* Thanks page */
.thanks { padding-block: calc(var(--s-900) + var(--s-100)) var(--s-800); }

/* Home: a closing note under a card grid */
.grid-note { margin-top: var(--s-300); color: var(--color-text-secondary); }

@media (prefers-reduced-motion: reduce) {
  .page-head, .doc { animation: none; }
  .back:hover .icon { transform: rotate(180deg); }
}

/* Product pages: card and step grids with 2 or 4 items, a closing note */
@media (min-width: 900px) {
  .cards.n4, .cards.n2, .steps.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.how-extra { max-width: 680px; margin-top: var(--s-400); }
