/* Privatize brand book (brand.privatizeapp.com). Builds on /assets/site.css: same palette, type and header. */

.bk .sec { padding-top: clamp(72px, 10vw, 120px); }
.bk .brand img { width: 26px; height: 26px; margin: 0 2px 0 0; }
.bk .lead b { color: var(--ink); }
.bk h3 { font-size: 22px; letter-spacing: -0.02em; }
.note { font-size: 14px; color: var(--text3); margin-top: 16px; max-width: 46em; }

/* ---------- hero ---------- */
.bk-hero { padding-top: clamp(48px, 7vw, 88px); }
.bk-hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.bk-h1 { font-size: clamp(42px, 6.6vw, 72px); margin-top: 12px; letter-spacing: -0.04em; }
.bk-hero .orb { --s: min(360px, 80vw); }
.bk-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.pill.bk-blue { background: var(--blue); color: #fff; }
.pill.bk-blue:hover { background: #0070EB; }
.pill.bk-blue small { font-weight: 400; font-size: 13px; opacity: .8; }
.bk-link { font-size: 17px; font-weight: 500; }
#downloads .pill { margin-top: 28px; }

/* ---------- tiles ---------- */
.tile { border-radius: var(--radius); display: grid; place-items: center; padding: clamp(28px, 5vw, 48px) 24px; margin: 0; }
.tile.on-white { background: var(--card); }
.tile.on-paper { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.tile.on-ink { background: #1D1D1F; color: #F5F5F7; }
.tile.on-blue { background: var(--blue); color: #fff; }
.tile img { width: 100%; height: auto; }
.tile figcaption { justify-self: stretch; font-size: 14px; color: var(--text2); margin-top: 22px; line-height: 1.45; }
.tile.on-ink figcaption, .tile.on-blue figcaption { color: rgba(255, 255, 255, .78); }
.tile figcaption b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.tile.on-ink figcaption b, .tile.on-blue figcaption b { color: #fff; }

.bk-hero-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.tile.big { aspect-ratio: 16 / 9; padding: 32px; }
.tile.big img { width: min(78%, 420px); }

.grid2, .grid3, .grid4 { display: grid; gap: 16px; margin-top: 16px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; }
.grid3 > .tile { align-content: space-between; }
.h-stack { max-width: 110px; }
.h-row { max-width: 240px; }
.h-word { max-width: 160px; }
.tile.sq { padding: 28px 20px 22px; }
.tile.sq img { width: 56%; max-width: 140px; }

.dl { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 13px; font-weight: 500; }
.tile.on-ink .dl a, .tile.on-blue .dl a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); }

/* ---------- clear space and minimum size ---------- */
.bk-rules { margin-top: 24px; }
.bk-rules .card p { margin-top: 8px; }
.clear-demo { position: relative; width: max-content; margin: 26px auto 4px; padding: 30px; outline: 1.5px dashed rgba(0, 122, 255, .55); outline-offset: -1px;
  background: repeating-linear-gradient(45deg, rgba(0, 122, 255, .05) 0 6px, transparent 6px 12px); }
.clear-demo img { width: 120px; height: 120px; background: var(--card); }
.clear-demo .q { position: absolute; font-size: 12px; font-weight: 600; color: var(--blue); }
.clear-demo .q.t { top: 7px; left: 50%; transform: translateX(-50%); }
.clear-demo .q.l { left: 9px; top: 50%; transform: translateY(-50%); }
.min-demo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 22px 34px; margin-top: 34px; }
.min-demo span { display: grid; justify-items: center; gap: 10px; }
.min-demo i { font-style: normal; font-size: 12px; color: var(--text3); }

/* ---------- app icons ---------- */
.icons figure { margin: 0; text-align: center; }
.icons { margin-top: 40px; }
.appicon { display: inline-block; width: min(180px, 100%); aspect-ratio: 1; border-radius: 22.4%; overflow: hidden;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, .12), 0 18px 36px -18px rgba(16, 24, 64, .35); }
.appicon.dark { background: linear-gradient(#3A3A3C, #161618); }
.appicon img { width: 100%; height: 100%; }
.icons figcaption { margin-top: 16px; font-size: 14px; color: var(--text2); }
.icons figcaption b { display: block; color: var(--ink); font-size: 16px; }
.icons .dl { justify-content: center; }

/* ---------- orb ---------- */
.bk-orb { --s: min(340px, 78vw); }
#orb .points li { grid-template-columns: 30px 1fr; }

/* ---------- color ---------- */
.mix { display: flex; height: 64px; border-radius: 18px; overflow: hidden; margin-top: 36px; border: 1px solid var(--line); }
.mix span { display: flex; align-items: flex-end; padding: 10px 12px; font-size: 13px; font-weight: 600; min-width: 0; overflow: hidden; white-space: nowrap; }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.swatch { all: unset; box-sizing: border-box; cursor: pointer; background: var(--card); border-radius: 20px; padding: 14px 14px 18px; display: grid; gap: 2px;
  transition: transform .15s ease, box-shadow .15s ease; }
.swatch:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(16, 24, 64, .3); }
.swatch:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.swatch i { display: block; height: 84px; border-radius: 12px; margin-bottom: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.swatch b { font-size: 16px; font-weight: 600; }
.swatch span { font: 13px/1.4 var(--mono); color: var(--text2); }
.swatch em { font-style: normal; font-size: 13px; color: var(--text3); }
.bk-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; padding: 10px 18px; border-radius: 999px; transition: opacity .2s, transform .2s; }
.bk-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- type ---------- */
.fontcard .specimen { font-size: 112px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin: 14px 0 6px; color: var(--ink); }
.inter { font-family: "Inter Tight", system-ui, sans-serif; }
.sf { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; }
.fontcard .abc { margin-top: 18px; font-size: 15px; line-height: 1.6; color: var(--ink); letter-spacing: 0; word-break: break-all; }
.scale { margin-top: 16px; padding: 8px 28px; }
.scale .row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 20px 0; border-top: 0.5px solid var(--line); }
.scale .row:first-child { border-top: 0; }
.scale .meta { font-size: 12px; line-height: 1.5; color: var(--text3); }
.s-h { font-size: clamp(34px, 5.4vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.s-t { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; }
.s-l { font-size: clamp(19px, 2.2vw, 22px); color: var(--text2); letter-spacing: -0.015em; line-height: 1.4; }
.s-b { font-size: 17px; color: var(--text2); }
.scale .count { font-size: clamp(56px, 9vw, 88px); }

/* ---------- words ---------- */
.names dl { margin-top: 2px; }
.names dt { font-weight: 600; font-size: 16px; margin-top: 16px; }
.names dd { color: var(--text2); font-size: 15px; line-height: 1.45; margin-top: 2px; }
.saythis ul { list-style: none; margin-top: 12px; display: grid; gap: 10px; }
.saythis li { font-size: 16px; line-height: 1.4; padding-left: 28px; position: relative; }
.saythis li::before { position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; }
.saythis .yes li::before { content: "✓"; background: var(--green); }
.saythis .no li::before { content: "✕"; background: var(--red); }
.saythis .yes .label { color: #248A3D; }
.saythis .no .label { color: #D70015; }

/* ---------- don'ts ---------- */
.donts { margin-top: 40px; }
.donts figure { margin: 0; }
.donts .tile { aspect-ratio: 16 / 10; position: relative; overflow: hidden; padding: 24px; }
.donts .tile::after { content: "✕"; position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff;
  font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.donts img { width: min(72%, 220px); }
.donts figcaption { font-size: 14px; color: var(--text2); margin-top: 10px; }
.d-stretch { transform: scaleX(1.35) scaleY(.8); }
.d-color { filter: invert(30%) sepia(90%) saturate(2400%) hue-rotate(300deg); }
.d-tilt { transform: rotate(-14deg); }
.d-glow { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)) drop-shadow(0 0 14px rgba(0, 122, 255, .9)); }
.d-busy { background: url(/assets/scenes/2-student.webp) center / cover; }
.d-retype { display: flex; align-items: center; gap: 10px; font: italic 600 34px/1 Georgia, "Times New Roman", serif; color: #8E44AD; }
.d-retype img { width: 54px; transform: scaleX(-1); }

/* ---------- downloads ---------- */
.files { margin-top: 24px; padding: 6px 28px; }
.frow { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px 20px; padding: 16px 0; border-top: 0.5px solid var(--line); font-size: 15px; }
.frow:first-child { border-top: 0; }
.frow .w { color: var(--text3); }

/* ---------- narrow screens ---------- */
@media (max-width: 860px) {
  .bk-hero-in { grid-template-columns: 1fr; }
  .bk-hero .orb { --s: min(260px, 70vw); order: -1; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .swatches { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr 1fr; }
  .frow b { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .bk .nav-links a:nth-child(n+3):not(:last-child) { display: none; }
}
@media (max-width: 560px) {
  .bk-hero-tiles, .grid2, .grid3 { grid-template-columns: 1fr; }
  .scale { padding: 4px 20px; }
  .scale .row { grid-template-columns: 1fr; gap: 6px; }
  .files { padding: 4px 20px; }
  .frow { grid-template-columns: 1fr; }
  .fontcard .specimen { font-size: 88px; }
}
/* The three app icons stay side by side, even on a phone. */
.grid3.icons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .icons .dl a { font-size: 12px; } }

@media (prefers-reduced-motion: reduce) { .swatch { transition: none; } .swatch:hover { transform: none; } }
