/* ==========================================================================
   Dice Apps: public website
   Colours, type and shapes come from brand-kit/ (Brand guidelines v1.0).
   ========================================================================== */

/* ---------- Fonts (self-hosted, so no third-party requests) ---------- */
@font-face { font-family: "Outfit"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter";  font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter";  font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

/* ---------- Brand tokens (brand-kit/03-Colors/palette.css) ---------- */
:root {
  --da-dice-violet: #5B5CF6;
  --da-roll-coral:  #FF6B5B;
  --da-ink:         #14142B;
  --da-cloud:       #F4F4F8;
  --da-slate:       #5A5A72;
  --da-mist:        #B4B4CC;
  --da-white:       #FFFFFF;

  /* Derived UI tokens */
  --violet-hover:  #4A4BE0;
  --ink-2:         #1C1C3A;           /* raised surface on Ink */
  --line:          #E3E3EC;           /* hairlines on light */
  --line-dark:     rgba(180,180,204,.16);

  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 32px;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--da-ink);
  background: var(--da-cloud);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--da-dice-violet); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet-hover); }
:focus-visible { outline: 3px solid var(--da-dice-violet); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--da-roll-coral); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;   /* brand: -2% at large sizes */
  margin: 0 0 .5em;
}
h1 { font-size: clamp(44px, 7.2vw, 92px); }
h2 { font-size: clamp(34px, 4.6vw, 56px); }
h3 { font-size: clamp(22px, 2vw, 26px); letter-spacing: -0.01em; }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--da-ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--da-slate);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 10px; flex: none;
  /* mini square + circle */
  background:
    radial-gradient(circle at 13px 5px, var(--da-roll-coral) 4.9px, transparent 5.2px),
    linear-gradient(var(--da-dice-violet), var(--da-dice-violet)) 0 0 / 10px 10px no-repeat;
  border-radius: 3px;
}
.on-dark .eyebrow { color: var(--da-mist); }

.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--da-slate); max-width: 60ch; }
.on-dark .lead { color: var(--da-mist); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 16px/1 var(--font-body);
  padding: 16px 24px; border-radius: 999px;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  cursor: pointer; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--da-dice-violet); color: #fff; }
.btn-primary:hover { background: var(--violet-hover); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--da-ink); background: transparent; }
.btn-ghost:hover { border-color: var(--da-ink); color: var(--da-ink); }
.on-dark .btn-ghost { border-color: rgba(180,180,204,.35); color: #fff; }
.on-dark .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 30px; width: auto; }   /* ≥ 96px wide: above the brand minimum */
.brand .logo-light { display: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font: 600 15px/1 var(--font-body); text-decoration: none;
  color: var(--da-mist); padding: 10px 14px; border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); }
.nav .btn { margin-left: 8px; padding: 12px 18px; font-size: 15px; }
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; }

/* Header after scrolling, or on light pages */
.site-header.is-solid, .site-header.is-light {
  background: rgba(244,244,248,.82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
}
.site-header.is-solid .logo-dark, .site-header.is-light .logo-dark { display: none; }
.site-header.is-solid .logo-light, .site-header.is-light .logo-light { display: block; }
.site-header.is-solid .nav a, .site-header.is-light .nav a { color: var(--da-slate); }
.site-header.is-solid .nav a:hover, .site-header.is-light .nav a:hover,
.site-header.is-solid .nav a[aria-current="page"], .site-header.is-light .nav a[aria-current="page"] { color: var(--da-ink); background: rgba(20,20,43,.06); }
.site-header.is-solid .nav .btn-primary, .site-header.is-light .nav .btn-primary { color: #fff; background: var(--da-dice-violet); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 0;
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.is-solid .menu-toggle, .is-light .menu-toggle { background: rgba(20,20,43,.06); color: var(--da-ink); }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px var(--gutter) 24px;
    background: var(--da-ink);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 12px; font-size: 17px; color: var(--da-mist); }
  .nav .btn { margin: 8px 0 0; padding: 16px; }
  .is-solid .nav, .is-light .nav { background: var(--da-cloud); border-bottom-color: var(--line); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--da-ink); color: #fff;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(72px, 10vw, 140px);
}
.hero::before { /* soft violet glow */
  content: ""; position: absolute; z-index: -1;
  width: 900px; height: 900px; left: -300px; top: -420px;
  background: radial-gradient(closest-side, rgba(91,92,246,.28), transparent);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
.hero h1 { margin-bottom: 28px; }
.hero h1 .accent { color: var(--da-roll-coral); }   /* coral on Ink is 6.4:1 */
.hero h1 .accent-violet { color: #8C8DFF; }
.hero .lead { margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 56px; color: var(--da-mist); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; opacity: .9; }

/* ---------- Hero illustration: two phones (utility + game) ----------
   Everything inside .hv is sized in cqw (1% of the illustration's width), so it scales as one piece. */
.hero-visual { position: relative; width: 100%; max-width: 520px; justify-self: end; container-type: inline-size; }
.hv { position: relative; width: 100%; height: 116cqw; font-size: 2.7cqw; line-height: 1.3; }

.phone {
  position: absolute; width: 47cqw; height: 99cqw;
  padding: 1.5cqw; border-radius: 7.5cqw;
  background: #25254A; border: 1px solid rgba(180,180,204,.22);
  box-shadow: 0 5cqw 12cqw -3cqw rgba(0,0,0,.6), inset 0 0 0 .5cqw rgba(0,0,0,.25);
}
.phone-game { right: 2cqw; top: 1cqw; transform: rotate(5deg); }
.phone-util { left: 2cqw; top: 15cqw; transform: rotate(-5deg); z-index: 2; }
.screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 6cqw; padding: 6cqw 3.6cqw 3.6cqw;
  display: flex; flex-direction: column; gap: 2.8cqw;
}
.screen::before { /* camera notch */
  content: ""; position: absolute; top: 1.6cqw; left: 50%; width: 12cqw; height: 2.6cqw;
  transform: translateX(-50%); border-radius: 99px; background: #0B0B1A;
}

/* Game screen */
.game { background: radial-gradient(120% 70% at 85% 0%, rgba(91,92,246,.55), transparent 60%), #1A1A38; color: #fff; }
.g-top { display: flex; justify-content: space-between; align-items: center; }
.g-pill { font-weight: 600; font-size: .8em; padding: .45em .9em; border-radius: 99px; background: rgba(255,255,255,.12); }
.g-score { font: 700 1.45em/1 var(--font-display); }
.g-board {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.7cqw;
  padding: 2.2cqw; border-radius: 3.6cqw; background: rgba(255,255,255,.06);
}
.g-board i { aspect-ratio: 1; border-radius: 30%; }
.g-board .s { background: var(--da-dice-violet); }
.g-board .c { background: var(--da-roll-coral); border-radius: 50%; }
.g-board .w { background: #fff; }
.g-board .e { background: rgba(255,255,255,.07); }
.g-progress span { display: block; font-size: .72em; color: var(--da-mist); margin-bottom: 1.2cqw; }
.g-progress b { display: block; height: 1.8cqw; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.g-progress em { display: block; height: 100%; width: 72%; border-radius: inherit; background: var(--da-roll-coral); }
.g-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.7cqw; }
.g-stats div { padding: 2cqw 2.4cqw; border-radius: 2.6cqw; background: rgba(255,255,255,.06); }
.g-stats small { display: block; font-size: .7em; color: var(--da-mist); }
.g-stats b { font: 700 1.15em/1.2 var(--font-display); }
.g-btn {
  margin-top: auto; text-align: center; padding: 2.6cqw; border-radius: 99px;
  background: var(--da-roll-coral); color: var(--da-ink); font: 700 1.1em/1 var(--font-display);
}

/* Utility screen */
.util { background: var(--da-cloud); color: var(--da-ink); }
.u-head small { display: block; font-size: .72em; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--da-slate); }
.u-head b { font: 700 1.5em/1.15 var(--font-display); letter-spacing: -0.01em; }
.u-card { display: flex; align-items: center; gap: 3cqw; padding: 2.8cqw; border-radius: 3.6cqw; background: #fff; }
.u-card b { display: block; font: 700 1.15em/1.1 var(--font-display); }
.u-card small { font-size: .75em; color: var(--da-slate); }
.u-ring { width: 12cqw; height: 12cqw; transform: rotate(-90deg); flex: none; }
.u-ring circle { fill: none; stroke-width: 6; }
.u-ring .track { stroke: #E6E6F0; }
.u-ring .bar { stroke: var(--da-dice-violet); stroke-linecap: round; stroke-dasharray: 80 100; }
.u-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5cqw; }
.u-list li {
  display: flex; align-items: center; gap: 2.2cqw;
  padding: 2cqw 2.4cqw; border-radius: 2.6cqw; background: #fff;
  font-size: .82em; font-weight: 600;
}
.u-list .done { color: var(--da-slate); text-decoration: line-through; text-decoration-color: rgba(90,90,114,.5); }
.ck { position: relative; width: 3.8cqw; height: 3.8cqw; flex: none; border-radius: 1.1cqw; border: .45cqw solid #D2D2E0; }
.done .ck, .tick .ck { background: var(--da-dice-violet); border-color: var(--da-dice-violet); }
.done .ck::after, .tick .ck::after {
  content: ""; position: absolute; left: 30%; top: 8%; width: 30%; height: 55%;
  border: solid #fff; border-width: 0 .5cqw .5cqw 0; transform: rotate(45deg);
}
.u-fab {
  margin-top: auto; align-self: flex-end;
  width: 10cqw; height: 10cqw; border-radius: 3cqw; display: grid; place-items: center;
  background: var(--da-dice-violet); color: #fff; font: 400 1.7em/1 var(--font-display);
}

/* Die */
.die {
  position: absolute; z-index: 3; left: 43cqw; top: 2cqw;
  width: 15cqw; height: 15cqw; padding: 2.6cqw; border-radius: 4.2cqw;
  background: #fff; box-shadow: 0 3cqw 6cqw -2cqw rgba(0,0,0,.55);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
}
.die i { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: var(--da-ink); place-self: center; }
.die i:nth-child(1) { grid-area: 1 / 1; }
.die i:nth-child(2) { grid-area: 1 / 3; }
.die i.mid          { grid-area: 2 / 2; background: var(--da-roll-coral); }
.die i:nth-child(4) { grid-area: 3 / 1; }
.die i:nth-child(5) { grid-area: 3 / 3; }

/* Floating chips */
.chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 1.4cqw;
  padding: 1.8cqw 3cqw; border-radius: 99px; white-space: nowrap;
  font-weight: 600; font-size: .85em;
  box-shadow: 0 2.5cqw 5cqw -2cqw rgba(0,0,0,.5);
}
.chip svg { width: 3.2cqw; height: 3.2cqw; color: var(--da-dice-violet); }
.chip-a { left: 0; bottom: 4cqw; background: #fff; color: var(--da-ink); }
.chip-b { right: -1cqw; top: 31cqw; background: var(--da-roll-coral); color: var(--da-ink); }

/* Motion (respects reduced-motion settings) */
@media (prefers-reduced-motion: no-preference) {
  .phone-game { animation: float-game 7s ease-in-out infinite; }
  .phone-util { animation: float-util 6s ease-in-out infinite; }
  .chip-a { animation: bob 5s ease-in-out 1s infinite; }
  .chip-b { animation: bob 4.5s ease-in-out infinite; }
  .die { animation: die-roll 5s cubic-bezier(.3,.7,.3,1) 1s infinite; }
  .g-board .m { animation: match 3s ease-in-out infinite; }
  .g-board .m:nth-of-type(6) { animation-delay: .12s; }
  .g-board .m:nth-of-type(7) { animation-delay: .24s; }
  .g-progress em { animation: fill 3s ease-in-out infinite; }
  .u-ring .bar { animation: ring 1.4s cubic-bezier(.2,.8,.2,1) .4s both; }
  .tick .ck { animation: tick-box .3s ease 1.6s both; }
  .tick .ck::after { animation: tick-mark .3s ease 1.7s both; }
  .tick { animation: tick-text .3s ease 1.7s both; }
}
@keyframes float-game { 0%,100% { transform: rotate(5deg) translateY(0); }  50% { transform: rotate(5deg) translateY(-1.6cqw); } }
@keyframes float-util { 0%,100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(1.4cqw); } }
@keyframes bob        { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1.2cqw); } }
@keyframes die-roll {
  0%, 62%  { transform: translateY(0) rotate(-8deg); }
  72%      { transform: translateY(-6cqw) rotate(170deg); }
  82%      { transform: translateY(0) rotate(352deg); }
  88%      { transform: translateY(-1cqw) rotate(352deg); }
  94%,100% { transform: translateY(0) rotate(352deg); }
}
@keyframes match { 0%, 55%, 100% { transform: scale(1); filter: none; } 65% { transform: scale(1.14); filter: brightness(1.15); } 75% { transform: scale(.96); } }
@keyframes fill { 0% { width: 48%; } 60%, 100% { width: 72%; } }
@keyframes ring { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 80 100; } }
@keyframes tick-box  { from { background: transparent; border-color: #D2D2E0; } to { background: var(--da-dice-violet); border-color: var(--da-dice-violet); } }
@keyframes tick-mark { from { opacity: 0; } to { opacity: 1; } }
@keyframes tick-text { from { color: var(--da-ink); text-decoration-color: transparent; } to { color: var(--da-slate); text-decoration: line-through; text-decoration-color: rgba(90,90,114,.5); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 420px; justify-self: center; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-dark { background: var(--da-ink); color: #fff; }
.section-white { background: var(--da-white); }

/* What we make: two big panels */
.make-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.make-card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); padding: clamp(32px, 4vw, 56px);
  min-height: 460px; display: flex; flex-direction: column;
}
.make-card h3 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 14px; }
.make-card p { max-width: 38ch; font-size: 17px; }
.make-card ul { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.make-card li { font: 600 14px/1 var(--font-body); padding: 10px 14px; border-radius: 999px; }
.make-card .deco { position: absolute; z-index: -1; pointer-events: none; }

.make-utility { background: var(--da-dice-violet); color: #fff; }
.make-utility p { color: rgba(255,255,255,.86); }
.make-utility li { background: rgba(255,255,255,.14); color: #fff; }
.make-utility .deco { width: 220px; height: 220px; right: -70px; top: -80px; border-radius: 66px; background: rgba(255,255,255,.1); }

.make-games { background: var(--da-ink); color: #fff; }
.make-games p { color: var(--da-mist); }
.make-games li { background: rgba(255,107,91,.14); color: var(--da-roll-coral); }
.make-games .deco { width: 220px; height: 220px; right: -70px; top: -80px; border-radius: 50%; background: var(--da-roll-coral); }
.make-card .tag {
  display: inline-block; align-self: flex-start;
  font: 600 13px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 8px; margin-bottom: 72px;
}
.make-utility .tag { background: #fff; color: var(--da-dice-violet); }
.make-games .tag { background: var(--da-roll-coral); color: var(--da-ink); }

/* Apps grid (placeholders) */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app-card {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--da-cloud); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.app-card:hover { transform: translateY(-4px); border-color: #D2D2E0; box-shadow: 0 18px 40px -24px rgba(20,20,43,.35); }
.app-top { display: flex; align-items: center; gap: 16px; }
.app-icon {
  width: 64px; height: 64px; flex: none; border-radius: 16px;
  display: grid; place-items: center; background: var(--da-ink);
}
.app-icon span { display: block; }
.app-icon.v span { width: 26px; height: 26px; border-radius: 8px; background: var(--da-dice-violet); }
.app-icon.c span { width: 28px; height: 28px; border-radius: 50%; background: var(--da-roll-coral); }
.app-icon.m { background: var(--da-dice-violet); }
.app-icon.m span { width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.app-card h3 { font-size: 21px; margin: 0 0 2px; }
.app-card .app-kind { font-size: 14px; color: var(--da-slate); margin: 0; }
.app-card p { color: var(--da-slate); font-size: 15.5px; margin: 0; }
.app-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 12px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 10px; border-radius: 999px; background: #fff; color: var(--da-slate); border: 1px solid var(--line);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--da-roll-coral); }
.stores { display: flex; gap: 6px; color: var(--da-slate); }
.stores svg { width: 18px; height: 18px; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.principle { background: var(--da-ink); padding: 36px 28px; }
.principle .num { font: 700 14px/1 var(--font-display); color: var(--da-roll-coral); letter-spacing: .08em; margin-bottom: 40px; display: block; }
.principle h3 { font-size: 22px; margin-bottom: 10px; }
.principle p { color: var(--da-mist); font-size: 15.5px; margin: 0; }

/* CTA band */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--da-dice-violet); color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px;
}
.cta h2 { margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,.86); margin: 0; max-width: 52ch; }
.cta .btn { background: #fff; color: var(--da-ink); }
.cta .btn:hover { background: var(--da-cloud); color: var(--da-ink); }
.cta .deco-sq { position: absolute; z-index: -1; width: 260px; height: 260px; border-radius: 78px; background: rgba(255,255,255,.08); right: 18%; bottom: -150px; }
.cta .deco-ci { position: absolute; z-index: -1; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.08); right: -60px; top: -80px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--da-ink); color: var(--da-mist); padding: 72px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; margin: 0; }
.site-footer h4 { font: 600 13px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 6px 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--da-mist); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

/* ---------- Legal / document pages ---------- */
.page-hero { background: var(--da-white); border-bottom: 1px solid var(--line); padding: calc(var(--header-h) + 64px) 0 56px; }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 68px); margin-bottom: 16px; }
.page-hero .meta { color: var(--da-slate); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 24px; }

.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding: 56px 0 var(--section); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: 14px; }
.toc h2 { font: 600 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--da-slate); margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; color: var(--da-slate); text-decoration: none; border-left: 2px solid transparent; line-height: 1.4; }
.toc a:hover { color: var(--da-ink); }
.toc a.is-active { color: var(--da-ink); border-left-color: var(--da-dice-violet); font-weight: 600; }

.prose { max-width: 760px; font-size: 16.5px; }
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 56px 0 16px; padding-top: 8px; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 32px 0 10px; }
.prose p, .prose li { color: #2E2E48; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--da-dice-violet); }
.prose strong { color: var(--da-ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; background: var(--da-white); color: var(--da-ink); }
.prose tbody tr:nth-child(even) td { background: rgba(255,255,255,.55); }
.callout {
  background: var(--da-white); border: 1px solid var(--line); border-left: 4px solid var(--da-dice-violet);
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 0 0 28px; font-size: 15.5px;
}
.callout p:last-child { margin: 0; }
.callout.summary { border-left-color: var(--da-roll-coral); }

/* Placeholder text to replace before launch. Search the codebase for class="ph". */
.ph { background: #FFF1C2; color: #6B4E00; border-radius: 4px; padding: 0 4px; font-weight: 600; }

/* Support page bits */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 64px; }
.support-card { background: var(--da-white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.support-card h3 { font-size: 20px; margin: 12px 0 0; }
.support-card p { color: var(--da-slate); font-size: 15.5px; margin: 0 0 12px; }
.support-card a.more { margin-top: auto; font-weight: 600; text-decoration: none; }
.support-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--da-cloud); color: var(--da-dice-violet); }
.support-card .ic svg { width: 22px; height: 22px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font: 600 17px/1.4 var(--font-body); color: var(--da-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--font-display); color: var(--da-dice-violet); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--da-slate); max-width: 68ch; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--da-ink); color: #fff; padding: 120px var(--gutter) 80px; }
.notfound svg { width: 180px; margin: 0 auto 40px; }
.notfound p { color: var(--da-mist); margin-bottom: 32px; }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .principles { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .doc { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; background: var(--da-white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .make-grid, .apps-grid, .principles { grid-template-columns: 1fr; }
  .make-card { min-height: 380px; }
  .cta { grid-template-columns: 1fr; }
  .hero-meta { gap: 16px 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media print {
  .site-header, .site-footer, .toc { display: none !important; }
  .page-hero { padding-top: 0; }
  .doc { display: block; }
  body { background: #fff; }
}
