/* GarlicOS landing page (garlicos.html).
   Its own look, separate from the main site: GarlicOS's palette from Brand Identity/garlic-media-colour.css
   (Garlic blue on white and paper, near-black ink), set in Plus Jakarta Sans like the app itself.
   Two bento grids (what the app does, and rewards) use one tile system: .cell, with a picture on top
   (.cell-vis, a size container so each picture adapts to its tile) and a title and one line under it. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1f4fd8;
  --blue-600: #1a45c4;
  --blue-700: #1638a6;
  --blue-900: #0e2570;
  --blue-300: #7e9bee;
  --blue-100: #d6e0fc;
  --blue-50: #eef2fe;
  --ink: #0c0f16;
  --ink-700: #2b3140;
  --ink-600: #545b6a;
  --ink-500: #626a7b;
  --ink-400: #878ea0;
  --line: #dce1e9;
  --line-soft: #e9edf3;
  --paper: #f4f6f9;
  --white: #fff;
  /* Colours that differ in the dark. Light values first; the dark ones are at the end of this file,
     taken from the app's own dark theme (public/brand/garlic-media-colour.css) */
  --page: #fff;
  --surface-2: #FBFCFD;
  --chip: #eef0f4;
  --blue-text: var(--blue);
  --ok-fill: #197847;
  --vis-top: #eef1f6;
  --vis-mid: #f4f6f9;
  --tint: rgb(72 105 155 / 6%);
  --tint-0: rgb(72 105 155 / 0%);
  --glow: rgb(31 79 216 / 10%);
  --glass: rgb(255 255 255 / 84%);
  --frame: rgb(255 255 255 / 55%);
  --bezel: #f1f3f7;
  --batt: rgb(12 15 22 / 38%);
  --note-1: #FBFCFD;
  --note-2: #f6f8fa;
  --dot: rgb(12 15 22 / 8%);
  --ok: #197847;
  --ok-bg: #e6f4ec;
  --warn: #8a5a00;
  --warn-bg: #fbf0dc;

  --shadow-xs: 0 1px 2px rgb(12 15 22 / 5%);
  --shadow-sm: 0 1px 2px rgb(12 15 22 / 4%), 0 4px 12px rgb(12 15 22 / 4%);
  --shadow-md: 0 1px 2px rgb(12 15 22 / 4%), 0 16px 40px rgb(12 15 22 / 8%);
  --shadow-lg: 0 2px 6px rgb(12 15 22 / 5%), 0 30px 80px rgb(31 79 216 / 14%);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --wrap: 1180px;
  --gutter: 24px;
  --dots: radial-gradient(rgb(12 15 22 / 11%) 1px, transparent 1.4px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font: 400 16px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background-color: var(--page);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
  background-size: 22px 22px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
b, strong { font-weight: 700; }
em { font-style: normal; }
svg { fill: currentColor; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; border-radius: 12px;
  background: var(--ink); color: var(--page); font-weight: 700; transform: translateY(-160%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.closing :focus-visible { outline-color: #fff; }

/* ---------- Type ---------- */

.h1 { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.042em; font-weight: 800; }
.h2 { font-size: clamp(32px, 4.5vw, 54px); line-height: 1.06; letter-spacing: -0.036em; font-weight: 800; }
.h3 { font-size: 16.5px; line-height: 1.3; letter-spacing: -0.014em; font-weight: 800; }
.accent { color: var(--blue-text); }
.sub { font-size: 18px; color: var(--ink-600); }
.h1, .h2 { text-wrap: balance; }
.sub, .lede, .fineprint { text-wrap: balance; }
.cell-txt p { text-wrap: pretty; }
.h3, .bubble { text-wrap: balance; }
/* Pulls a full stop or comma up to its word: the font gives them wide side space at tight tracking */
.p { margin-left: -0.06em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-xs);
  font-size: 13px; font-weight: 700; color: var(--ink-600);
}
.eyebrow .icon { width: 15px; height: 15px; color: var(--blue-text); }

.chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; background: var(--blue-50); color: var(--blue-text); font-size: 12px; font-weight: 800; white-space: nowrap; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; flex: none;
  background: var(--chip); color: var(--ink-600); font-size: 11.5px; font-weight: 700; white-space: nowrap;
  transition: background-color 0.3s, color 0.3s;
}
.tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-blue { background: var(--blue-50); color: var(--blue-text); }

.bar { display: block; height: 6px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue-300), var(--blue)); transition: width 1.3s var(--ease); }
.bar-lg { height: 8px; }

.ring { position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.ring circle { fill: none; stroke-width: 9; }
.ring-bg { stroke: var(--blue-50); }
.ring-fg { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0.6; transition: stroke-dashoffset 1.4s var(--ease); }
.ring b { position: relative; display: flex; align-items: baseline; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.ring b small { font-size: 11px; font-weight: 700; color: var(--ink-400); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 15px/1 "Plus Jakarta Sans", system-ui, sans-serif; white-space: nowrap;
  transition: transform 0.3s var(--pop), box-shadow 0.3s var(--ease), background-color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn .icon { width: 17px; height: 17px; }
.btn .nudge { transition: transform 0.25s var(--ease); }
.btn:hover .nudge { transform: translateX(3px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgb(31 79 216 / 28%), inset 0 1px 0 rgb(255 255 255 / 18%); }
.btn-blue:hover { background: var(--blue-600); box-shadow: 0 12px 28px rgb(31 79 216 / 34%), inset 0 1px 0 rgb(255 255 255 / 18%); }
.btn-line { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow-xs); }
.btn-line:hover { box-shadow: 0 0 0 1px var(--blue-100), var(--shadow-md); }
.btn-white { background: #fff; color: var(--blue); box-shadow: 0 10px 26px rgb(14 37 112 / 35%); }

/* ---------- Top bar ---------- */

.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 0.3s, box-shadow 0.3s; }
.top.scrolled {
  background: var(--glass); box-shadow: 0 1px 0 var(--line-soft);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.top-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.top-left { display: flex; align-items: center; gap: 14px; }
.top-right { display: flex; align-items: center; gap: 8px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.logo svg { width: 25px; height: 25px; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden; padding-top: 136px; isolation: isolate;
  background: radial-gradient(55% 30% at 50% 66%, var(--glow), transparent), linear-gradient(180deg, var(--tint), var(--tint-0) 94%);
}
.hero-copy { position: relative; z-index: 2; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; position: relative; overflow: hidden;
  background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-xs);
  font-size: 14px; font-weight: 600; color: var(--ink-600); white-space: nowrap; transition: box-shadow 0.3s, transform 0.3s var(--pop);
}
.pill:hover { box-shadow: 0 0 0 1px var(--blue-100), var(--shadow-md); }
.pill b { padding: 4px 10px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; }
.pill .icon { width: 14px; height: 14px; color: var(--ink-400); }
.pill::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgb(31 79 216 / 12%) 50%, transparent 70%);
  transform: translateX(-100%); animation: sweep 3.6s 1.8s var(--ease) 2;
}
@keyframes sweep { 55%, 100% { transform: translateX(100%); } }

.hero .h1 { margin: 24px auto 20px; }
.hero .h1 .w { display: inline-block; animation: rise 0.9s var(--ease) both; }
.hero .h1 .w:nth-of-type(1) { animation-delay: 0.10s; }
.hero .h1 .w:nth-of-type(2) { animation-delay: 0.18s; }
.hero .h1 .w:nth-of-type(3) { animation-delay: 0.28s; }
.hero .h1 .w:nth-of-type(4) { animation-delay: 0.35s; }
.hero .h1 .w:nth-of-type(5) { animation-delay: 0.42s; }
.hero .h1 .w:nth-of-type(6) { animation-delay: 0.50s; }
.hero .pill { animation: rise 0.8s var(--ease) both; }
.hero .lede { max-width: 52ch; margin: 0 auto 32px; font-size: 19px; color: var(--ink-600); animation: rise 0.9s 0.62s var(--ease) both; }
.hero .ctas { animation: rise 0.9s 0.75s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.presence { position: absolute; z-index: 3; display: none; align-items: flex-start; gap: 2px; pointer-events: none; }
.presence svg { width: 20px; height: 20px; filter: drop-shadow(0 3px 6px rgb(12 15 22 / 25%)); }
.presence span { margin-top: 16px; padding: 4px 10px; border-radius: 999px; color: var(--page); font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow-sm); }
.presence-team { left: max(24px, calc(50% - 560px)); top: 330px; color: var(--ink-700); animation: presence-in 0.8s 1.3s var(--ease) both; }
.presence-team span { background: var(--ink-700); }
.presence-ed { right: max(24px, calc(50% - 560px)); top: 236px; color: #d9480f; animation: presence-in 0.8s 1.5s var(--ease) both; }
.presence-ed span { background: #d9480f; color: #fff; }
@keyframes presence-in { from { opacity: 0; translate: 0 8px; } }

/* The app, framed: a soft outer ring around a browser window */
.stage { position: relative; z-index: 2; max-width: 1160px; margin-top: 64px; }
.frame {
  padding: 8px 8px 0; border-radius: 26px 26px 0 0;
  background: var(--frame); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: rise-far 1.2s 0.9s var(--ease) both;
}
@keyframes rise-far { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
.win { overflow: hidden; border-radius: 18px 18px 0 0; background: var(--white); box-shadow: 0 0 0 1px var(--line); font-size: 13px; color: var(--ink); cursor: default; user-select: none; }
.win-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.win-dots i:nth-child(2) { background: #febc2e; }
.win-dots i:nth-child(3) { background: #28c840; }
.win-url { display: flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 8px; background: var(--paper); color: var(--ink-500); font-size: 12px; font-weight: 600; }
.win-url svg { width: 11px; height: 11px; }

.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); height: 516px; }
.app-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; border-right: 1px solid var(--line-soft); background: var(--surface-2); }
.ws { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.ws-mark { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(150deg, #3d6cf0, var(--blue-700)); color: #fff; }
.ws-mark svg { width: 16px; height: 16px; }
.ws b { display: block; font-size: 13.5px; line-height: 1.2; }
.ws small { display: block; font-size: 11.5px; color: var(--ink-500); }
.nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink-600); font-size: 13.5px; font-weight: 600; }
.nav svg { width: 16px; height: 16px; opacity: 0.85; }
.nav.on { background: var(--blue-50); color: var(--blue-text); }
.count { display: grid; place-items: center; min-width: 18px; height: 18px; margin-left: auto; padding: 0 5px; border-radius: 99px; background: var(--blue); color: #fff; font-size: 10.5px; font-weight: 800; transition: transform 0.35s var(--pop), opacity 0.3s; }
.count.quiet { background: var(--chip); color: var(--ink-600); }
.count.gone { transform: scale(0); opacity: 0; }
.new { margin-left: auto; padding: 2px 7px; border-radius: 99px; background: var(--blue); color: #fff; font-size: 10px; font-weight: 800; }
.side-reward { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding: 12px; border-radius: 12px; background: var(--white); box-shadow: 0 0 0 1px var(--line-soft), var(--shadow-xs); }
.side-reward-top { display: flex; align-items: center; gap: 7px; }
.side-reward-top svg { width: 15px; height: 15px; color: var(--blue-text); }
.side-reward-top b { font-size: 12.5px; }
.side-reward-top small { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--ink-500); }
.side-reward > small { font-size: 11.5px; color: var(--ink-500); }

.app-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 18px 24px; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.app-hello small { display: block; font-size: 12px; color: var(--ink-500); font-weight: 600; }
.app-greet { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.022em; line-height: 1.25; }
.app-greet span { color: var(--ink-400); }
.app-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.app-search { display: flex; align-items: center; gap: 8px; width: 196px; height: 32px; padding: 0 8px 0 10px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line-soft); color: var(--ink-500); font-size: 12.5px; }
.app-search svg { width: 14px; height: 14px; }
.app-search kbd { margin-left: auto; padding: 1px 6px; border-radius: 5px; background: var(--paper); color: var(--ink-500); font: 600 11px/1.5 inherit; }
.app-bell { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line-soft); color: var(--ink-600); }
.app-bell svg { width: 16px; height: 16px; }
.app-bell i { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--blue); color: #fff; font-size: 10px; font-weight: 800; font-style: normal; box-shadow: 0 0 0 2px var(--white); transition: transform 0.35s var(--pop), opacity 0.3s; }
.app-bell i.gone { transform: scale(0); opacity: 0; }

.app-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; }
.need { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; min-height: 152px; padding: 12px; border-radius: 14px; background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-xs); }
.need-thumb { position: relative; display: block; align-self: start; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--paper); }
.need-thumb img { width: 100%; height: 100%; object-fit: cover; }
.need-thumb > i { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgb(255 255 255 / 28%); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.need-thumb > i svg { width: 13px; height: 13px; margin-left: 2px; }
.need-thumb em { position: absolute; right: 5px; bottom: 5px; padding: 1px 5px; border-radius: 5px; background: rgb(12 15 22 / 65%); color: #fff; font-size: 10px; font-weight: 700; }
.need-body { position: relative; min-width: 0; }
.need-a { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100%; transition: opacity 0.35s var(--ease); }
.need-a > b { font-size: 15px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; }
.need-a > small { font-size: 12px; color: var(--ink-500); }
.need-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.mini-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; transition: transform 0.18s var(--ease); }
.mini-blue { background: var(--blue); color: #fff; box-shadow: none; }
.mini-btn.pressed { transform: scale(0.94); }
.need-b { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px; opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease), transform 0.45s var(--ease); }
.need-b b { font-size: 16px; }
.need-b small { font-size: 12.5px; color: var(--ink-600); }
.need-ok { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 6px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.need-ok svg { width: 17px; height: 17px; }
.need.done .need-a { opacity: 0; }
.need.done .need-b { opacity: 1; transform: none; }

.month { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-xs); }
.month-top { display: flex; align-items: center; gap: 12px; }
.month-copy { min-width: 0; }
.month-copy b { display: block; font-size: 14.5px; letter-spacing: -0.01em; }
.month-copy small { display: block; font-size: 12px; color: var(--ink-600); }
.month-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.month-stats > span { padding-left: 12px; border-left: 1px solid var(--line-soft); }
.month-stats > span:first-child { padding-left: 0; border-left: 0; }
.month-stats small { display: block; font-size: 11px; color: var(--ink-500); font-weight: 600; white-space: nowrap; }
.month-stats b { display: inline-block; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; transition: transform 0.4s var(--pop), color 0.3s; }
.month-stats b.bump { transform: scale(1.2); color: var(--blue-text); }

.list { display: block; border-radius: 14px; background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-xs); overflow: hidden; }
.list-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.list-head b { font-size: 13px; font-weight: 800; }
.list-head small { font-size: 12px; color: var(--ink-500); }
.row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 52px; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line-soft); font-size: 13px; font-weight: 600; }
.row:last-child { border-bottom: 0; }
.row-thumb { display: block; width: 26px; height: 34px; border-radius: 6px; overflow: hidden; background: var(--paper); flex: none; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-thumb-empty { display: grid; place-items: center; color: var(--ink-400); background: linear-gradient(160deg, var(--chip), var(--paper)); }
.row-thumb-empty svg { width: 13px; height: 13px; }
.row-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-date { text-align: right; font-size: 12px; color: var(--ink-500); font-variant-numeric: tabular-nums; }

/* Cards that float around the window, only on wide screens where they cover nothing */
.float {
  position: absolute; z-index: 4; display: none; padding: 14px 16px; border-radius: 16px;
  background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 24px 50px rgb(12 15 22 / 12%);
  opacity: 0; transform: translateY(12px) scale(0.96); transition: opacity 0.6s var(--ease), transform 0.7s var(--pop);
}
.float.in { opacity: 1; transform: none; }
@keyframes ring-bell { 20%, 60% { rotate: 14deg; } 40%, 80% { rotate: -14deg; } }
.float-views small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-600); }
.float-views .num { display: block; margin: 2px 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gain { display: inline-block; align-self: flex-start; padding: 3px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 11.5px; font-weight: 800; white-space: nowrap; }

.demo-cursor { position: absolute; left: 0; top: 0; z-index: 6; display: flex; align-items: flex-start; gap: 2px; pointer-events: none; color: var(--blue-text); opacity: 0; transition: transform 1.1s var(--ease), opacity 0.35s; }
.demo-cursor svg { width: 20px; height: 20px; filter: drop-shadow(0 3px 6px rgb(12 15 22 / 25%)); }
.demo-cursor span { margin-top: 16px; padding: 4px 10px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; }
.ripple { position: absolute; z-index: 5; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid var(--blue); pointer-events: none; animation: ripple 0.6s ease-out forwards; }
@keyframes ripple { to { transform: scale(4.5); opacity: 0; } }

/* ---------- Sections ---------- */

.section { padding: 128px 0; }
.section-tint { position: relative; background: linear-gradient(180deg, var(--tint-0), var(--tint) 20%, var(--tint) 80%, var(--tint-0)); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .h2 { margin: 18px 0 14px; }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Bento ---------- */

.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 264px;
  grid-template-areas:
    "review review track track"
    "review review month stat"
    "perf perf cal chat"
    "brief say alerts chat"
    "inv inv home home";
}
.cell-review { grid-area: review; }
.cell-track { grid-area: track; }
.cell-month { grid-area: month; }
.cell-stat { grid-area: stat; }
.cell-perf { grid-area: perf; }
.cell-cal { grid-area: cal; }
.cell-chat { grid-area: chat; }
.cell-brief { grid-area: brief; }
.cell-say { grid-area: say; }
.cell-alerts { grid-area: alerts; }
.cell-inv { grid-area: inv; }
.cell-home { grid-area: home; }

.cell {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 24px;
  background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-xs);
}
/* Each picture sits on a soft grey surface that fades to white where the words begin (the look of the alerts tile) */
.cell-vis {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  flex: 1; min-height: 0; padding: 20px 20px 6px; overflow: visible; container-type: inline-size;
  background: linear-gradient(180deg, var(--vis-top) 0%, var(--vis-mid) 45%, var(--white) 100%);
}
.cell-txt { padding: 6px 22px 20px; }
.cell-txt p { margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--ink-600); }
.vis-spot { background: radial-gradient(55% 60% at 50% 45%, rgb(31 79 216 / 8%), transparent 75%), linear-gradient(180deg, var(--vis-top) 0%, var(--vis-mid) 45%, var(--white) 100%); }

.ui { width: 100%; border-radius: 16px; background: var(--white); box-shadow: 0 1px 2px rgb(12 15 22 / 5%), 0 12px 32px color-mix(in srgb, var(--ink) 8%, transparent); }

/* A. Review, on a phone */
.cell-review .cell-vis { flex-direction: row; padding: 22px; }
.phone {
  position: relative; display: flex; flex-direction: column; gap: 8px; flex: none;
  width: 214px; height: 396px; padding: 10px; overflow: hidden; border-radius: 26px; background: var(--white);
  box-shadow: 0 0 0 6px var(--bezel), 0 0 0 7px var(--line), 0 30px 60px rgb(12 15 22 / 14%);
  font-size: 12px;
}
.phone-status { display: flex; align-items: center; justify-content: space-between; height: 16px; padding: 0 6px; font-size: 11px; }
.phone-status i, .hs-status i { position: relative; width: 22px; height: 11px; padding: 2px; border-radius: 3.5px; box-shadow: inset 0 0 0 1.2px var(--batt); }
.phone-status i::before, .hs-status i::before { content: ""; display: block; width: 80%; height: 100%; border-radius: 1.5px; background: #34c759; }
.phone-status i::after, .hs-status i::after { content: ""; position: absolute; right: -3px; top: 3.5px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: var(--batt); }
.phone-bar { display: flex; align-items: center; gap: 4px; min-width: 0; }
.phone-bar svg { width: 14px; height: 14px; color: var(--ink-400); flex: none; }
.phone-bar b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.phone-video { position: relative; display: block; flex: none; height: 236px; border-radius: 12px; overflow: hidden; background: var(--ink); }
.phone-video img { width: 100%; height: 100%; object-fit: cover; }
.phone-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: rgb(255 255 255 / 26%); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.phone-play svg { width: 17px; height: 17px; margin-left: 2px; }
@keyframes play { to { width: 100%; } }
.phone-meta { font-size: 11.5px; color: var(--ink-500); }
.phone-meta b { color: var(--warn); transition: color 0.3s; }
.phone-meta b.ok { color: var(--ok); }
.phone-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 6px; margin-top: auto; }
.phone-btn { display: grid; place-items: center; height: 36px; border-radius: 10px; font-size: 11px; font-weight: 800; white-space: nowrap; transition: transform 0.18s var(--ease), background-color 0.2s; }
.phone-btn.pressed { transform: scale(0.94); }
.phone-approve { background: var(--blue); color: #fff; }
.phone-ask { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 8px; padding: 8px 12px 12px;
  border-radius: 16px 16px 0 0; background: var(--white); box-shadow: 0 -10px 30px rgb(12 15 22 / 12%), 0 -1px 0 var(--line-soft);
  transform: translateY(105%); transition: transform 0.5s var(--ease);
}
.sheet.open { transform: none; }
.sheet-grip { display: block; width: 34px; height: 4px; margin: 0 auto 4px; border-radius: 4px; background: var(--line); }
.sheet b { font-size: 12.5px; }
.sheet-field { display: block; min-height: 58px; padding: 8px 10px; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-soft); font-size: 11.5px; line-height: 1.45; }
.caret { display: inline-block; width: 1.5px; height: 12px; margin-left: 1px; vertical-align: -2px; background: var(--blue); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.phone-send { background: var(--ink); color: #fff; }
.tap { position: absolute; z-index: 3; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgb(31 79 216 / 22%); box-shadow: 0 0 0 2px rgb(31 79 216 / 55%); opacity: 0; transform: scale(0.6); pointer-events: none; }
.tap.go { animation: tap 0.7s var(--ease); }
@keyframes tap { 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
.side-toast {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px;
  background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 16px 36px rgb(12 15 22 / 12%);
  opacity: 0; transition: opacity 0.4s var(--ease), transform 0.5s var(--pop); pointer-events: none;
}
.side-toast.in { opacity: 1; }
.side-toast b { display: block; font-size: 13px; line-height: 1.3; white-space: nowrap; }
.side-toast small { display: block; font-size: 11.5px; color: var(--ink-500); white-space: nowrap; }
.toast-ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; }
.toast-ic svg { width: 16px; height: 16px; }
.toast-ok { background: var(--ok-bg); color: var(--ok); }
.toast-blue { background: var(--blue-50); color: var(--blue-text); }
.review-stage { position: relative; flex: none; }
/* Wide tile: the phone left of centre, the result beside it */
.review-log { display: none; }
@container (min-width: 470px) {
  .review-stage { margin-right: 246px; }
  .side-toast { display: none; }
  .review-log {
    position: absolute; left: calc(100% + 30px); top: 50%; display: flex; flex-direction: column; gap: 4px; width: 216px; padding: 14px; border-radius: 16px;
    background: var(--white); box-shadow: 0 1px 2px rgb(12 15 22 / 5%), 0 14px 34px rgb(12 15 22 / 9%); transform: translateY(-50%);
  }
}
.log-title { margin-bottom: 4px; font-size: 12px; color: var(--ink-500); }
.log-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 11px; }
.log-row b { display: block; font-size: 12.5px; line-height: 1.3; white-space: nowrap; }
.log-row small { display: block; font-size: 11.5px; color: var(--ink-500); white-space: nowrap; }
.log-feed { display: flex; flex-direction: column; gap: 4px; height: 146px; overflow: hidden; }
.log-row { flex: none; transition: background-color 0.4s; }
.log-row.now { background: var(--paper); }
.log-ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; }
.log-ic svg { width: 15px; height: 15px; }
.log-blue { background: var(--blue-50); color: var(--blue-text); }
.log-warn { background: var(--warn-bg); color: var(--warn); }
.log-ok { background: var(--ok-bg); color: var(--ok); }
/* Narrow tile: the result drops in at the top of the phone's screen, like a notification */
@container (max-width: 469.98px) {
  .side-toast { left: 10px; right: 10px; top: 30px; padding: 9px 10px; transform: translateY(-12px); }
  .side-toast.in { transform: none; }
  .side-toast b { font-size: 12.5px; }
}

/* B. Where each video is */
.track { max-width: 500px; padding: 14px 16px 16px; }
.track-head { display: flex; align-items: center; gap: 12px; }
.track-head .row-thumb { width: 30px; height: 40px; }
.track-name { flex: 1; min-width: 0; }
.track-name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.track-name small { display: block; font-size: 11.5px; color: var(--ink-500); }
.stepper { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 16px; --fill: 0; }
.stepper::before, .stepper::after { content: ""; position: absolute; top: 8px; left: calc(100% / 12); height: 3px; border-radius: 3px; }
.stepper::before { right: calc(100% / 12); background: var(--line-soft); }
.stepper::after { width: calc((100% - 100% / 6) * var(--fill)); background: var(--blue); transition: width 0.6s var(--ease); }
.stepper li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.stepper i { width: 19px; height: 19px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 2px var(--line); transition: background-color 0.35s, box-shadow 0.35s, transform 0.4s var(--pop); }
.stepper b { font-size: 11.5px; font-weight: 700; color: var(--ink-500); white-space: nowrap; transition: color 0.3s; }
.stepper li.done i { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; box-shadow: none; }
.stepper li.now i { box-shadow: inset 0 0 0 5px var(--blue), 0 0 0 4px var(--blue-50); transform: scale(1.08); }
.stepper li.done b, .stepper li.now b { color: var(--ink); }
@container (max-width: 420px) {
  .stepper b { visibility: hidden; }
  .stepper li.now b { visibility: visible; }
}

/* C. The month */
.cell-month .cell-vis { gap: 14px; }
.ring-lg { width: 108px; height: 108px; }
.ring-lg b { font-size: 26px; }
.ring-lg b small { font-size: 14px; }

/* D. One number, big */

/* E. Views by platform */
.perf { max-width: 500px; padding: 6px 16px; }
.perf-row { display: grid; grid-template-columns: 22px 78px minmax(0, 1fr) 58px 48px; align-items: center; gap: 12px; height: 44px; border-bottom: 1px solid var(--line-soft); }
.perf-row:last-child { border-bottom: 0; }
.plat { width: 22px; height: 22px; }
.perf-name { font-size: 13px; font-weight: 700; }
.perf-row > b { text-align: right; font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.perf-row .gain { justify-self: end; align-self: center; padding: 3px 6px; font-size: 11px; }
@container (max-width: 400px) {
  .perf-row { grid-template-columns: 22px minmax(0, 1fr) 54px 46px; gap: 10px; }
  .perf-name { display: none; }
}
@container (max-width: 300px) {
  .perf-row { grid-template-columns: 22px minmax(0, 1fr) 54px; }
  .perf-row .gain { display: none; }
}

/* F. Calendar */
.cal { width: 100%; max-width: 250px; }
.cal-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font-size: 13.5px; }
.cal-head small { font-size: 11.5px; color: var(--ink-500); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-grid i { position: relative; display: grid; place-items: center; height: 42px; border-radius: 8px; background: var(--white); box-shadow: 0 1px 2px rgb(12 15 22 / 5%); font-size: 11.5px; font-weight: 700; font-style: normal; color: var(--ink-600); overflow: hidden; }
.cal-grid i.cal-day { height: 18px; background: none; box-shadow: none; font-size: 10.5px; color: var(--ink-400); }
.cal-grid i.today { background: var(--white); color: var(--ink); font-weight: 800; box-shadow: inset 0 0 0 1px var(--line); }
.cal-grid i.today::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink); }
.cal-grid i.has { background: var(--ink); }
.cal-grid i.has img { width: 100%; height: 100%; object-fit: cover; }
.cal-grid i.next { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--blue); overflow: visible; }
.cal-grid i.next img { border-radius: 8px; }
.cal-grid i.done::after { content: ""; position: absolute; right: 2px; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 9px no-repeat; }
.js .cell-cal .cal-grid i.has { transform: scale(0.6); opacity: 0; transition: transform 0.5s var(--pop), opacity 0.3s; }
.js .cell-cal.in .cal-grid i.has { transform: none; opacity: 1; transition-delay: 0.4s; }
.js .cell-cal.in .cal-grid i.has.next { transition-delay: 0.7s; }

/* G. Chat */
/* G. Chat: a whole chat screen, header to message box */
.cell-chat .cell-vis { align-items: stretch; padding: 0; }
.cell-chat .cell-vis::after { display: none; }
.chat { display: flex; flex-direction: column; width: 100%; height: 100%; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); background: var(--white); }
.avs { display: flex; }
.avs .av + .av { margin-left: -8px; box-shadow: 0 0 0 2px var(--white); }
.chat-head b { display: block; font-size: 13px; line-height: 1.2; }
.chat-head small { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-500); }
.chat-head small i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.chat-body { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 0; padding: 12px 14px; overflow: hidden; mask-image: linear-gradient(transparent 4px, #000 18px); -webkit-mask-image: linear-gradient(transparent 4px, #000 18px); }
@container (max-width: 300px) { .chat-body > :first-child { display: none; } }
.composer { display: flex; align-items: center; gap: 8px; margin: 0 12px 12px; padding: 5px 5px 5px 12px; border-radius: 12px; background: var(--white); box-shadow: 0 0 0 1px var(--line); font-size: 12px; color: var(--ink-400); }
.composer span { flex: 1; }
.composer i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--blue); color: #fff; }
.composer svg { width: 13px; height: 13px; }
.bubble-media { display: flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px; }
.bubble-media b { display: block; font-size: 12.5px; }
.bubble-media small { display: block; font-size: 11.5px; color: var(--ink-500); }
.media { position: relative; flex: none; width: 36px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--ink); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media i { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: rgb(255 255 255 / 30%); color: #fff; }
.media i svg { width: 9px; height: 9px; margin-left: 1px; }
.av-ed { background: #d9480f; font-size: 10.5px; font-weight: 800; }
.day { align-self: center; padding: 2px 9px; border-radius: 99px; background: var(--white); box-shadow: 0 0 0 1px var(--line-soft); font-size: 10.5px; font-weight: 700; color: var(--ink-500); }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.msg.me { justify-content: flex-end; }
.msg.hide { display: none; }
.msg.show { animation: msg-in 0.45s var(--ease) both; }
.msg.leaving { opacity: 0; transform: translateY(-6px); transition: opacity 0.35s, transform 0.35s; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } }
.av { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--page); }
.av svg { width: 12px; height: 12px; }
.bubble { max-width: 86%; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--white); box-shadow: 0 0 0 1px var(--line-soft), var(--shadow-xs); font-size: 12.5px; line-height: 1.45; }
.msg.me .bubble { border-radius: 14px 14px 4px 14px; background: var(--blue); color: #fff; box-shadow: none; }
.typing .bubble { display: flex; gap: 4px; padding: 12px; }
.typing .bubble i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-400); animation: dots 1.2s infinite; }
.typing .bubble i:nth-child(2) { animation-delay: 0.15s; }
.typing .bubble i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dots { 30% { transform: translateY(-3px); opacity: 1; } 0%, 60%, 100% { opacity: 0.45; } }

/* H. Brief */
.brief { max-width: 250px; padding: 12px; }
.brief-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.brief-head svg { width: 15px; height: 15px; color: var(--blue-text); }
.brief-head b { font-size: 13px; }
.brief-head em { margin-left: auto; padding: 1px 7px; border-radius: 99px; background: var(--paper); color: var(--ink-500); font-size: 11px; font-weight: 700; }
.rule { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: 12px; font-weight: 600; white-space: nowrap; }
.rule i { display: grid; place-items: center; flex: none; width: 17px; height: 17px; border-radius: 5px; background: var(--ok-fill); color: #fff; }
.rule i svg { width: 11px; height: 11px; }
.brief-files { display: flex; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.brief-files span { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 7px; background: var(--paper); font-size: 11px; font-weight: 700; color: var(--ink-600); white-space: nowrap; }
.brief-files svg { width: 12px; height: 12px; color: var(--blue-text); }
.brief-files b { font-size: 12px; color: var(--ink); }
@container (max-width: 236px) { .brief-files span:last-child { display: none; } }


/* J. Alerts: a stack of notifications */
.stack { position: relative; width: 100%; max-width: 236px; height: 92px; }
.note {
  position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 13px;
  background: var(--white); box-shadow: 0 0 0 1px var(--line-soft), 0 8px 20px rgb(12 15 22 / 8%);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, background-color 0.4s;
}
.note > span:last-child { min-width: 0; }
.note b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.note small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--ink-500); }
.note-ic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--blue); color: #fff; }
.note-ic svg { width: 14px; height: 14px; }
.note-green { background: var(--ok-fill); }
.note-ink { background: var(--ink-700); }
.note > * { transition: opacity 0.35s ease; }
.note[data-pos="1"] > * { transition-delay: 0.3s; }
.note:not([data-pos]):nth-child(1), .note[data-pos="0"] { z-index: 3; transform: none; opacity: 1; }
.note:not([data-pos]):nth-child(2), .note[data-pos="1"] { z-index: 2; transform: translateY(12px) scale(0.94); background: var(--note-1); }
.note:not([data-pos]):nth-child(3), .note[data-pos="2"] { z-index: 1; transform: translateY(23px) scale(0.88); background: var(--note-2); }
.note:not([data-pos]):nth-child(4) { opacity: 0; }
.note[data-pos="in"] > * { transition: none; }
.note:not([data-pos]):nth-child(n+2) > *, .note[data-pos="1"] > *, .note[data-pos="2"] > *, .note[data-pos="gone"] > * { opacity: 0; }
.note[data-pos="gone"] { z-index: 0; transform: translateY(23px) scale(0.88); opacity: 0; }
.note[data-pos="in"] { z-index: 4; transform: translateY(-22px) scale(1.02); opacity: 0; }

/* K. Invoices */
.inv { max-width: 500px; padding: 4px 14px; }
.inv-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; height: 46px; border-bottom: 1px solid var(--line-soft); }
.inv-row:last-child { border-bottom: 0; }
.inv-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--paper); color: var(--ink-500); }
.inv-ic svg { width: 15px; height: 15px; }
.inv-name b { display: block; font-size: 13px; }
.inv-name small { display: block; font-size: 11.5px; color: var(--ink-500); }
.inv-amt { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.inv-row .tag { justify-self: end; min-width: 92px; justify-content: center; }
@container (max-width: 360px) { .inv-amt { display: none; } }


/* 20. On your phone: the top of an iPhone 14 Pro on its home screen.
   Frame geometry adapted from devices.css v0.2.0 (MIT License, github.com/picturepan2/devices.css), scaled by --k.
   The screen follows iOS proportions (1pt = 1px at --k: 1) and uses the system font, as iOS does. */
.cell-home .cell-vis { justify-content: flex-start; padding: 20px 16px 0; }
/* The phone runs on under the words; the words carry a soft fade, so the phone dissolves into the title with no gap */
.cell-home .cell-txt { position: relative; z-index: 2; margin-top: -44px; padding-top: 50px; background: linear-gradient(transparent 0, color-mix(in srgb, var(--white) 88%, transparent) 30px, var(--white) 44px); }
.device {
  --k: 0.6;
  position: relative; flex: none; width: calc(428px * var(--k)); height: calc(868px * var(--k));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  filter: drop-shadow(0 24px 40px rgb(12 15 22 / 22%));
}
.dv-frame {
  width: 100%; height: 100%; padding: calc(19px * var(--k)); border: 1px solid #1b1721; border-radius: calc(68px * var(--k)); background: #010101;
  box-shadow: inset 0 0 calc(4px * var(--k)) calc(2px * var(--k)) #c0b7cd, inset 0 0 0 calc(6px * var(--k)) #342c3f;
}
.dv-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(49px * var(--k)); color: #fff;
  background: #3c0a1e url("garlicos/wallpaper.webp") center top / cover no-repeat;
}
.dv-stripe::before, .dv-stripe::after { content: ""; position: absolute; left: 0; z-index: 9; width: 100%; height: calc(7px * var(--k)); border: solid rgb(1 1 1 / 25%); border-width: 0 calc(7px * var(--k)); }
.dv-stripe::after { top: calc(85px * var(--k)); }
.dv-stripe::before { bottom: calc(85px * var(--k)); }
.dv-header { position: absolute; left: 50%; top: calc(29px * var(--k)); z-index: 5; width: calc(114px * var(--k)); height: calc(34px * var(--k)); margin-left: calc(-57px * var(--k)); border-radius: 999px; background: #000; }
.dv-btns, .dv-btns::before, .dv-btns::after, .dv-power { position: absolute; width: 3px; border-radius: 2px; background: #1b1721; }
.dv-btns { left: -2px; top: calc(115px * var(--k)); height: calc(32px * var(--k)); }
.dv-btns::before, .dv-btns::after { content: ""; left: 0; height: calc(62px * var(--k)); }
.dv-btns::after { top: calc(60px * var(--k)); }
.dv-btns::before { top: calc(140px * var(--k)); }
.dv-power { right: -2px; top: calc(200px * var(--k)); height: calc(100px * var(--k)); }

/* iOS status bar */
.ios-status { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; height: calc(54px * var(--k)); padding: 0 calc(30px * var(--k)) 0 calc(46px * var(--k)); }
.ios-status b { font-size: calc(17px * var(--k)); font-weight: 600; letter-spacing: -0.02em; }
.ios-sys { display: flex; align-items: center; gap: calc(6px * var(--k)); }
.ios-sys svg { height: calc(11.5px * var(--k)); width: auto; fill: #fff; }
.ios-batt { position: relative; width: calc(25px * var(--k)); height: calc(12px * var(--k)); padding: calc(2px * var(--k)); border-radius: calc(4px * var(--k)); box-shadow: inset 0 0 0 calc(1px * var(--k)) rgb(255 255 255 / 40%); }
.ios-batt::before { content: ""; display: block; width: 82%; height: 100%; border-radius: calc(2px * var(--k)); background: #fff; }
.ios-batt::after { content: ""; position: absolute; right: calc(-3px * var(--k)); top: 50%; width: calc(1.5px * var(--k)); height: calc(4px * var(--k)); margin-top: calc(-2px * var(--k)); border-radius: 0 2px 2px 0; background: rgb(255 255 255 / 40%); }

/* A notification banner, the way iOS shows one */
.ios-banner {
  position: absolute; left: calc(9px * var(--k)); right: calc(9px * var(--k)); top: calc(52px * var(--k)); z-index: 6;
  display: flex; align-items: center; gap: calc(11px * var(--k)); padding: calc(13px * var(--k)) calc(14px * var(--k)); border-radius: calc(24px * var(--k));
  background: rgb(245 245 247 / 86%); color: #000; backdrop-filter: blur(20px) saturate(1.8); -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 calc(8px * var(--k)) calc(24px * var(--k)) rgb(0 0 0 / 22%);
  transform: translateY(-140%); opacity: 0; transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s;
}
.ios-banner.in { transform: none; opacity: 1; }
.ios-banner-ic { display: grid; place-items: center; flex: none; width: calc(38px * var(--k)); height: calc(38px * var(--k)); border-radius: calc(9px * var(--k)); background: var(--blue); color: #fff; }
.ios-banner-ic svg { width: 54%; height: 54%; }
.ios-banner-txt { flex: 1; min-width: 0; line-height: 1.25; }
.ios-banner-txt b { display: block; font-size: calc(15px * var(--k)); font-weight: 600; }
.ios-banner-txt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(15px * var(--k)); color: #1c1c1e; }
.ios-banner em { align-self: flex-start; font-size: calc(13px * var(--k)); color: #8a8a8e; }

/* Home screen grid: 60pt icons, four across, a small widget taking two by two */
.ios-grid { display: grid; grid-template-columns: repeat(4, calc(62px * var(--k))); justify-content: space-between; row-gap: calc(22px * var(--k)); padding: calc(14px * var(--k)) calc(26px * var(--k)) 0; }
/* A widget takes two columns and two rows: its square runs from the first row's icon tops to the second row's icon
   bottoms, and its name sits on the second row's label line, as on iOS */
.ios-wapp { grid-column: span 2; grid-row: span 2; align-items: stretch; }
.ios-wapp > small { text-align: center; }
.ios-widget {
  display: flex; flex: 1; flex-direction: column; min-height: 0; width: 100%;
  padding: calc(12px * var(--k)) calc(12px * var(--k)) calc(12px * var(--k)) calc(14px * var(--k)); border-radius: calc(22px * var(--k)); background: #fff; color: #000; box-shadow: 0 calc(4px * var(--k)) calc(14px * var(--k)) rgb(0 0 0 / 18%);
}
.ios-widget small { font-size: calc(11.5px * var(--k)); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: #ff3b30; }
.ios-widget > b { margin: 0 0 calc(7px * var(--k)); font-size: calc(36px * var(--k)); font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.ios-event { position: relative; display: block; margin-left: calc(7px * var(--k)); padding: calc(3px * var(--k)) calc(6px * var(--k)); border-radius: calc(5px * var(--k)); background: #d1effe; line-height: 1.2; }
.ios-event::before { content: ""; position: absolute; left: calc(-7px * var(--k)); top: 0; bottom: 0; width: calc(3.5px * var(--k)); border-radius: 99px; background: #1badf8; }
.ios-event + .ios-event { margin-top: calc(4px * var(--k)); }
.ios-event b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(13px * var(--k)); font-weight: 700; letter-spacing: -0.01em; color: #145f86; }
.ios-widget .ios-event small { display: block; font-size: calc(12px * var(--k)); font-weight: 500; letter-spacing: 0; text-transform: none; color: #1590d0; }
.ios-event s { text-decoration: none; font-size: 0.78em; }
.ios-app { display: flex; flex-direction: column; align-items: center; gap: calc(6px * var(--k)); min-width: 0; }
.ios-app > small { display: block; height: calc(15px * var(--k)); line-height: calc(15px * var(--k)); font-size: calc(12px * var(--k)); font-weight: 500; letter-spacing: -0.01em; color: #fff; white-space: nowrap; text-shadow: 0 1px 2px rgb(0 0 0 / 30%); }
.ios-ic { position: relative; display: grid; place-items: center; width: calc(62px * var(--k)); height: calc(62px * var(--k)); border-radius: calc(14px * var(--k)); color: #fff; box-shadow: 0 calc(2px * var(--k)) calc(6px * var(--k)) rgb(0 0 0 / 15%); }
.ios-ic svg { width: 48%; height: 48%; }
/* Icon artwork fills its rounded square, the way iOS icons do */
.ios-ic.art { overflow: hidden; box-shadow: 0 calc(2px * var(--k)) calc(6px * var(--k)) rgb(0 0 0 / 18%), inset 0 0 0 0.5px rgb(0 0 0 / 6%); }
.ios-ic.art svg { display: block; width: 100%; height: 100%; }
.c-gos { background: var(--blue); }
.c-gos em { position: absolute; top: calc(-6px * var(--k)); right: calc(-6px * var(--k)); display: grid; place-items: center; min-width: calc(23px * var(--k)); height: calc(23px * var(--k)); padding: 0 calc(6px * var(--k)); border-radius: 99px; background: #ff3b30; color: #fff; font-size: calc(14px * var(--k)); font-weight: 600; font-style: normal; transition: transform 0.4s var(--pop), opacity 0.25s; }
.c-gos em.gone { transform: scale(0); opacity: 0; }
.js .cell-home .c-gos { transform: scale(0.4); opacity: 0; transition: transform 0.6s var(--pop), opacity 0.3s; }
.js .cell-home.in .c-gos { transform: none; opacity: 1; transition-delay: 0.45s; }
@container (max-width: 330px) { .device { --k: 0.54; } }

/* ---------- Rewards ---------- */

.bento-rewards {
  grid-template-areas:
    "fan fan path path"
    "fan fan count next";
}
.cell-fan { grid-area: fan; }
.cell-path { grid-area: path; }
.cell-count { grid-area: count; }
.cell-next { grid-area: next; }

/* Three gift cards, fanned */
.fan { position: relative; width: 100%; height: 100%; min-height: 220px; --w: 256px; --spread: 126px; }
.gift {
  --lift: 0px; --rot: 0deg; --x: 0px; --rx: 0deg; --ry: 0deg;
  position: absolute; left: 50%; top: 50%; width: var(--w); aspect-ratio: 1.586; margin: calc(var(--w) / -3.172) 0 0 calc(var(--w) / -2);
  transform: translateX(var(--x)) translateY(var(--lift)) rotate(var(--rot)) perspective(800px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.7s var(--pop);
}
.gift-face {
  position: absolute; inset: 0; border-radius: 13px; overflow: hidden;
  box-shadow: 0 1px 1px rgb(0 0 0 / 8%), 0 18px 36px rgb(12 15 22 / 22%), inset 0 0 0 1px rgb(255 255 255 / 16%);
  transition: filter 0.7s var(--ease);
}
.gift-sb { --x: calc(var(--spread) * -1); --rot: -9deg; --lift: 22px; z-index: 1; }
.gift-cp { --x: var(--spread); --rot: 9deg; --lift: 22px; z-index: 1; }
.gift-mc { z-index: 2; --lift: -16px; }
.fan .gift-sb img { left: 27%; }
.fan .gift-cp img { left: 73%; }
.gift-face::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(155deg, rgb(255 255 255 / 26%) 0%, rgb(255 255 255 / 6%) 32%, transparent 55%, rgb(0 0 0 / 12%) 100%);
}
.gift-face::after {
  content: ""; position: absolute; inset: -20%; z-index: 2; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgb(255 255 255 / 45%) 50%, transparent 62%); transform: translateX(-120%);
}
.gift img { position: absolute; left: 50%; top: 10%; height: 60%; width: auto; transform: translateX(-50%); filter: drop-shadow(0 4px 10px rgb(0 0 0 / 22%)); }
.gift-sb .gift-face { background: radial-gradient(120% 120% at 30% 20%, #0d7d50 0%, #00643c 48%, #004529 100%); }
.gift-mc .gift-face { background: #ff0002; }
.gift-mc img { top: 1%; height: 78%; filter: none; }
.gift-cp .gift-face { background: radial-gradient(120% 120% at 30% 20%, #6a2208 0%, #441500 50%, #2b0d00 100%); }
.gift-label { position: absolute; left: 7%; bottom: 9%; z-index: 3; color: rgb(255 255 255 / 92%); font-size: 9.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; text-shadow: 0 1px 2px rgb(0 0 0 / 25%); }
/* The tag is a sticker on the card's outer top corner, outside the face, so the front card never hides it */
.gift-badge {
  position: absolute; right: 12px; top: -11px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px 4px 7px; border-radius: 999px;
  background: var(--ink-700); color: var(--page); font-size: 11px; font-weight: 800; box-shadow: 0 0 0 2px var(--white), var(--shadow-sm);
  transition: background-color 0.3s, color 0.3s;
}
.gift-sb .gift-badge { right: auto; left: 12px; }
.gift-cp .gift-label { left: auto; right: 7%; }
.gift-badge svg { width: 11px; height: 11px; }
.gift-badge.open { background: var(--ok-fill); color: #fff; }
.gift.locked .gift-face { filter: grayscale(1) brightness(1.12) contrast(0.85); }
.gift.unlocked .gift-face::after { animation: gleam 1.3s 0.15s var(--ease); }
@keyframes gleam { to { transform: translateX(120%); } }
.gift.tilting { transition: transform 0.15s linear; }
@container (max-width: 500px) { .fan { --w: 200px; --spread: 98px; } }
@container (max-width: 400px) {
  .fan { --w: 150px; --spread: 68px; }
  .fan .gift-sb img { left: 25%; }
  .fan .gift-cp img { left: 75%; }
  .gift-badge { gap: 0; padding: 4px; }
  .gift-badge span { display: none; }
  .gift-badge svg { width: 12px; height: 12px; }
}
@container (max-width: 320px) { .fan { --w: 124px; --spread: 54px; } }

/* A straight milestone track */
.milestones { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; max-width: 520px; --fill: 0; }
.milestones::before, .milestones::after { content: ""; position: absolute; top: 18px; left: calc(100% / 12); height: 4px; border-radius: 4px; }
.milestones::before { right: calc(100% / 12); background: var(--line-soft); }
.milestones::after { width: calc((100% - 100% / 6) * var(--fill)); background: var(--blue); transition: width 0.7s var(--ease); }
.milestones li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; }
.milestones i {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-style: normal;
  background: var(--white); box-shadow: inset 0 0 0 3px var(--line-soft), var(--shadow-xs);
  font-size: 13px; font-weight: 800; color: var(--ink-500); transition: background-color 0.35s, box-shadow 0.35s, transform 0.5s var(--pop);
}
.milestones .ms-check { position: absolute; width: 17px; height: 17px; color: #fff; opacity: 0; transform: scale(0.4); transition: opacity 0.3s, transform 0.4s var(--pop); }
.milestones li.lit:not(.reward) i { background: var(--blue); box-shadow: 0 0 0 5px rgb(31 79 216 / 14%); color: transparent; }
.milestones li.lit .ms-check { opacity: 1; transform: none; }
.milestones li.reward i { background: var(--white); }
.milestones li.reward img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; filter: grayscale(1); opacity: 0.55; transition: filter 0.5s, opacity 0.5s; }
.milestones li.reward s { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-fill); color: #fff; box-shadow: 0 0 0 2px var(--white); transform: scale(0); transition: transform 0.4s var(--pop); }
.milestones li.reward s svg { width: 10px; height: 10px; }
.milestones li.reward.lit img { filter: none; opacity: 1; }
.milestones li.reward.lit i { box-shadow: 0 0 0 5px rgb(31 79 216 / 14%); transform: scale(1.06); }
.milestones li.reward.lit s { transform: none; }
.milestones li.next i { box-shadow: 0 0 0 3px var(--blue), var(--shadow-xs); }
.milestones li.next i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; box-shadow: 0 0 0 3px var(--blue); animation: pulse 1.8s var(--ease) infinite; }
.milestones li.next img { opacity: 0.85; }
@keyframes pulse { from { opacity: 0.6; transform: scale(1); } to { opacity: 0; transform: scale(1.5); } }
.milestones b { font-size: 11.5px; font-weight: 700; color: var(--ink-500); white-space: nowrap; transition: color 0.3s; }
.milestones li.lit b, .milestones li.next b { color: var(--ink); }
@container (max-width: 420px) {
  .milestones i, .milestones li.reward img { width: 32px; height: 32px; }
  .milestones::before, .milestones::after { top: 14px; }
  .milestones b { display: none; }
}

.cell-count, .cell-next { justify-content: center; gap: 6px; padding: 22px; background: linear-gradient(180deg, var(--vis-top) 0%, var(--vis-mid) 45%, var(--white) 100%); }
.count-label { font-size: 13px; font-weight: 700; color: var(--ink-500); }
.count-num { display: flex; align-items: baseline; font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.count-num small { font-size: 26px; color: var(--ink-400); letter-spacing: -0.02em; }
.cell-count .bar { margin-top: 10px; }
.count-foot { font-size: 13px; color: var(--ink-600); }
.next-logo { display: block; width: 56px; height: 56px; margin: 4px 0; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--blue-50); }
.next-logo img { width: 100%; height: 100%; object-fit: cover; }
.next-name { font-size: 17px; letter-spacing: -0.015em; }

.confetti { position: absolute; z-index: 6; width: 7px; height: 11px; border-radius: 2px; pointer-events: none; animation: confetti 1.3s var(--ease) forwards; }
@keyframes confetti { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }

.fineprint { max-width: 68ch; margin: 22px auto 0; text-align: center; font-size: 13px; color: var(--ink-500); }

/* ---------- Closing ---------- */

.closing-wrap { background: var(--blue); }
.closing { position: relative; padding: 120px 24px; overflow: hidden; isolation: isolate; text-align: center; color: #fff; }
.closing .sub { max-width: 52ch; margin: 14px auto 34px; color: #dbe4ff; }

.foot { background: var(--blue); color: #dbe4ff; font-size: 14px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 26px 34px; border-top: 1px solid rgb(255 255 255 / 16%); }
.foot-brand { display: inline-flex; align-items: center; gap: 9px; }
.foot-brand svg { width: 17px; height: 17px; color: #fff; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { transition: color 0.2s; }
.foot-links a:hover { color: #fff; }
.foot :focus-visible { outline-color: #fff; }

/* ---------- From the page notes, 19 November ---------- */

/* 1. Buttons: a sweep of light on hover, no lift */
.btn-blue, .btn-white { position: relative; overflow: hidden; isolation: isolate; }
.btn-blue::after, .btn-white::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 25%, rgb(255 255 255 / 40%) 50%, transparent 75%);
  transform: translateX(-110%);
}
.btn-white::after { background: linear-gradient(105deg, transparent 25%, rgb(31 79 216 / 16%) 50%, transparent 75%); }
.btn-blue:hover::after, .btn-white:hover::after { transform: translateX(110%); transition: transform 1.25s cubic-bezier(0.45, 0.05, 0.25, 1); }

/* 5. Cursors: a white outline and a shadow; yours is black */
.presence svg, .demo-cursor svg { overflow: visible; stroke: var(--page); stroke-width: 1.6px; stroke-linejoin: round; paint-order: stroke fill; filter: drop-shadow(0 2px 5px rgb(12 15 22 / 35%)); }
.demo-cursor { color: var(--ink); }
.demo-cursor span { background: var(--ink); color: var(--page); box-shadow: 0 0 0 1.5px var(--page), var(--shadow-sm); }

/* 26. Nothing inside a card or the app can be selected or dragged */
.cell, .stage, .bento-rewards, .float { -webkit-user-select: none; user-select: none; }
img { -webkit-user-drag: none; user-drag: none; }

/* The app window fades out at the bottom of the hero instead of stopping at an edge */
.frame { -webkit-mask-image: linear-gradient(#000 calc(100% - 140px), transparent); mask-image: linear-gradient(#000 calc(100% - 140px), transparent); }

/* 7. Words that change in the app slide rather than snap */
[data-hero="greet"], [data-hero="dated"], [data-hero="ship"] { display: inline-block; }

/* 10 + 11. The hero list: a clock on each status, a calendar on each date */
.tag-ic svg { width: 12px; height: 12px; margin-left: -2px; }
.row { grid-template-columns: 26px minmax(0, 1fr) auto 70px; }
.row-date { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; }
.row-date svg { width: 12px; height: 12px; color: var(--ink-400); }

/* 27. An iPhone-style notification */
.float-notif {
  left: -130px; top: 372px; width: 300px; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px;
  padding: 12px 12px 12px 14px; border-radius: 20px; background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 0 0 1px rgb(12 15 22 / 6%), 0 20px 50px rgb(12 15 22 / 16%);
}
.fn-app { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; }
.fn-ic { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--blue); color: #fff; }
.fn-ic svg { width: 11px; height: 11px; }
.fn-app b { font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-600); }
.fn-app small { margin-left: auto; font-size: 11.5px; color: var(--ink-400); }
.fn-body { min-width: 0; align-self: center; }
.fn-body b { display: block; font-size: 13.5px; line-height: 1.3; }
.fn-body small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--ink-600); }
.fn-thumb { width: 34px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--ink); }
.fn-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* 28. The views card: a filled chart that draws in and ends on a dot */
.float-views { right: -142px; top: 176px; width: 188px; padding: 14px 14px 12px; border-radius: 20px; }
.fv-top { display: flex; align-items: center; gap: 7px; }
.fv-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--blue-50); color: var(--blue-text); }
.fv-ic svg { width: 13px; height: 13px; }
.fv-top small { font-size: 12px; font-weight: 600; color: var(--ink-600); }
.float-views .num { margin: 8px 0 6px; font-size: 26px; }
.spark { display: block; width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.spark-area { fill: url(#fv-fill); opacity: 0; transition: opacity 0.8s 0.6s var(--ease); }
.spark-line { fill: none; stroke: var(--blue); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s 0.2s var(--ease); }
.spark-grid { fill: none; stroke: var(--line-soft); stroke-width: 1; stroke-dasharray: 2 3; }
.spark-halo { fill: rgb(31 79 216 / 16%); opacity: 0; transform-origin: 156px 8.9px; }
.float-views.in .spark-halo { opacity: 1; animation: halo 2.2s 1.7s var(--ease) 2; }
@keyframes halo { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.spark-dot { fill: var(--blue); stroke: var(--white); stroke-width: 2.2; opacity: 0; transform-origin: 156px 8.9px; transform: scale(0.4); transition: opacity 0.3s 1.4s, transform 0.4s 1.4s var(--pop); }
.float-views.in .spark-area { opacity: 1; }
.float-views.in .spark-line { stroke-dashoffset: 0; }
.float-views.in .spark-dot { opacity: 1; transform: none; }
/* 6. Leaving: a gentle fade upward, no bounce */
.float.leaving { opacity: 0; transform: translateY(-8px) scale(0.98); transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }

/* 30. Activity feed */
.log-ink { background: var(--chip); color: var(--ink-600); }

/* 15. Views this week: a white tile with the week as bars */
.cell-stat .cell-vis { align-items: stretch; justify-content: flex-start; padding: 20px 20px 4px; }
.stat { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink-600); }
.stat-label svg { width: 16px; height: 16px; color: var(--blue-text); }
.stat-num { margin-top: 8px; font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-bars { display: flex; flex: 1; min-height: 0; align-items: flex-end; gap: 6px; margin-top: 14px; }
.stat-bars > span { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.stat-bars i { display: block; width: 100%; height: calc((100% - 22px) * var(--h)); border-radius: 6px; background: var(--blue-50); transition: height 0.9s var(--ease); transition-delay: calc(var(--i) * 60ms + 200ms); }
.stat-bars .today i { background: linear-gradient(180deg, #3d6cf0, var(--blue)); box-shadow: 0 6px 14px rgb(31 79 216 / 25%); }
.stat-bars small { font-size: 10.5px; font-weight: 700; line-height: 1; color: var(--ink-400); }
.stat-bars .today small { color: var(--blue-text); }
.js .cell-stat:not(.in) .stat-bars i { height: 4px; }

/* 17. Calendar: the tick sits on the cover's corner */
.cal-grid i.has { z-index: 1; overflow: visible; }
.cal-grid i.has img { border-radius: 8px; }
.cal-grid i.done::after { top: -5px; right: -5px; bottom: auto; width: 16px; height: 16px; background-size: 10px; box-shadow: 0 0 0 2px var(--white); }

/* 18. The statement tile shows the approvals it talks about */
.say-row { display: flex; gap: 12px; }
.say-thumb { position: relative; display: block; width: 36px; height: 48px; }
.say-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; box-shadow: 0 0 0 1.5px rgb(255 255 255 / 14%); }
.say-thumb s { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--ok-fill); color: #fff; box-shadow: 0 0 0 2.5px #141922; transition: transform 0.45s var(--pop); }
.say-thumb s svg { width: 11px; height: 11px; }
.say-thumb.wait img { opacity: 0.55; }
.say-thumb.wait s { background: #f5a524; }
.say-thumb.wait s::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; box-shadow: 0 0 0 2px #f5a524; animation: pulse 1.8s var(--ease) infinite; }
.js .cell-say .say-thumb s { transform: scale(0); }
.js .cell-say.in .say-thumb s { transform: none; }
.js .cell-say.in .say-thumb:nth-child(1) s { transition-delay: 0.5s; }
.js .cell-say.in .say-thumb:nth-child(2) s { transition-delay: 0.75s; }
.js .cell-say.in .say-thumb:nth-child(3) s { transition-delay: 1s; }



/* ---------- From the page notes, 19 November (evening) ---------- */

/* The phone, the gift cards and the chat still crop to their tile */
.cell-fan .cell-vis, .cell-chat .cell-vis { overflow: hidden; }

/* 6, 8, 9. Lists sit straight on the tile's surface: no panel, so nothing reads as a widget inside a widget */
.ui { background: none; box-shadow: none; border-radius: 0; }
.track { padding: 2px 6px 6px; }
.perf, .inv { padding: 0 4px; }
.brief { padding: 2px; }
.perf-row, .inv-row { border-bottom-color: color-mix(in srgb, var(--ink) 8%, transparent); }
.rule, .brief-files { border-top-color: color-mix(in srgb, var(--ink) 8%, transparent); }
.stepper::before { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.bar { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.inv-ic, .brief-files span, .brief-head em { background: var(--white); box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 7%, transparent); }

/* 5. Views this week */
.cell-stat .stat-num { margin-top: 0; }

/* 7. Every cut waits for your OK: three covers, two approved and one waiting */
.say-row { display: flex; gap: 18px; }
.say-item { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.say-thumb { width: 56px; height: 74px; }
.say-thumb img { border-radius: 12px; box-shadow: 0 8px 18px rgb(12 15 22 / 16%); }
.say-thumb s { right: -7px; bottom: -7px; width: 22px; height: 22px; box-shadow: 0 0 0 2.5px var(--white); }
.say-thumb s svg { width: 12px; height: 12px; }
.say-item small { font-size: 11.5px; font-weight: 700; color: var(--ok); }
.say-item.wait small { color: var(--warn); }

/* ---------- Wide screens: room for the cursors and floating cards ---------- */

@media (min-width: 1180px) { .presence { display: flex; } }
@media (min-width: 1440px) {
  .stage { max-width: 1120px; }
  .float { display: flex; flex-direction: column; }
  .float-notif { display: grid; }
}

/* ---------- Tablets ---------- */

@media (max-width: 1100px) {
  .app { grid-template-columns: 200px minmax(0, 1fr); }
  .app-search { width: 150px; }
}

@media (max-width: 1023px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "review review" "review review"
      "track track"
      "month stat"
      "perf perf"
      "cal chat" "brief chat"
      "say alerts"
      "inv inv"
      "home home";
  }
  .bento-rewards { grid-template-areas: "fan fan" "fan fan" "path path" "count next"; }
}

@media (max-width: 899px) {
  .app { grid-template-columns: minmax(0, 1fr); height: auto; }
  .app-side { display: none; }
  .section { padding: 96px 0; }
}

/* ---------- Phones ---------- */

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .top-row { height: 64px; }
  .top .btn-sm { min-height: 44px; }
  .top-right .btn-sm { padding: 0 14px; }

  .hero { padding-top: 112px; }
  .hero .lede { font-size: 17px; }
  .stage { margin-top: 48px; padding-inline: 12px; }
  .frame { padding: 6px 6px 0; border-radius: 22px 22px 0 0; }
  .win { border-radius: 16px 16px 0 0; }
  .win-bar { height: 36px; }
  .app-main { padding: 14px 14px 18px; gap: 14px; }
  .app-head { align-items: flex-start; }
  .app-search { display: none; }
  .app-greet { font-size: 17px; }
  .app-row { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .row-date { display: none; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .sub { font-size: 16.5px; }

  .bento, .bento-rewards { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; grid-template-areas: none; gap: 12px; }
  .bento > .cell, .bento-rewards > .cell { grid-area: auto; min-height: 270px; }
  .bento > .cell-review { min-height: 560px; }
  .bento > .cell-chat { min-height: 420px; }
  .bento > .cell-home { min-height: 0; }
  .bento > .cell-home .cell-vis { flex: none; height: 250px; }
  .bento > .cell-track, .bento > .cell-alerts { min-height: 240px; }
  .bento > .cell-stat { min-height: 280px; }
  .bento-rewards > .cell-fan { min-height: 340px; }
  .bento-rewards > .cell-path { min-height: 220px; }
  .bento-rewards > .cell-count, .bento-rewards > .cell-next { min-height: 200px; }
  .cell { border-radius: 22px; }

  .closing { padding: 90px 20px; }
  .foot-row { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 420px) {
  .row { grid-template-columns: 26px minmax(0, 1fr); row-gap: 3px; }
  .row .row-thumb { grid-row: span 2; }
  .row .tag { justify-self: start; }
}

/* The narrowest phones: the logo keeps just its bulb, so Sign in and Book a call fit beside it */
@media (max-width: 349.98px) {
  .top-left { gap: 10px; }
  .logo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 380px) {
  .top-right { gap: 6px; }
  .top-right .btn-sm { padding: 0 11px; font-size: 13.5px; }
  .ctas .btn { width: 100%; }
  .pill { gap: 8px; padding-right: 12px; font-size: 13px; }
  .pill .icon { display: none; }
}

/* ---------- Less motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .presence { display: none !important; }
  .milestones li.next i::after { display: none; }
}

/* ---------- Dark: follows the device, or the Light/Dark choice saved in the app ----------
   The same rule as the app: a dark device turns this on unless the app was set to Light, and setting
   the app to Dark turns it on anywhere. The inline script in index.html applies that saved choice
   before the first paint. Brand colours (gift cards, logos, the iPhone, the blue closing) don't change. */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --page: #090B10;
  --white: #12161F;
  --surface-2: #0F131B;
  --paper: #0E121A;
  --chip: #1A1F2B;
  --ink: #E8EBF1;
  --ink-700: #CBD1DC;
  --ink-600: #A0A7B6;
  --ink-500: #868D9D;
  --ink-400: #6B7282;
  --line: #242A38;
  --line-soft: #1C2230;
  --blue-50: #141B33;
  --blue-100: #22305A;
  --blue-text: #7E9BEE;
  --ok: #6FD79E;
  --ok-bg: #10231A;
  --ok-fill: #1F8F55;
  --warn: #E5B25C;
  --warn-bg: #241C0B;
  --vis-top: #0B0E14;
  --vis-mid: #0E121A;
  --tint: rgb(120 150 230 / 5%);
  --tint-0: rgb(120 150 230 / 0%);
  --glow: rgb(31 79 216 / 16%);
  --glass: rgb(9 11 16 / 80%);
  --frame: rgb(18 22 31 / 55%);
  --bezel: #1E2430;
  --batt: rgb(232 235 241 / 45%);
  --note-1: #151A24;
  --note-2: #131721;
  --dot: rgb(255 255 255 / 6%);
  --dots: radial-gradient(rgb(255 255 255 / 8%) 1px, transparent 1.4px);
  --shadow-xs: 0 1px 2px rgb(0 0 0 / 40%);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 35%), 0 4px 12px rgb(0 0 0 / 25%);
  --shadow-md: 0 1px 2px rgb(0 0 0 / 35%), 0 16px 40px rgb(0 0 0 / 40%);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / 35%), 0 30px 80px rgb(31 79 216 / 18%);
  color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --page: #090B10;
  --white: #12161F;
  --surface-2: #0F131B;
  --paper: #0E121A;
  --chip: #1A1F2B;
  --ink: #E8EBF1;
  --ink-700: #CBD1DC;
  --ink-600: #A0A7B6;
  --ink-500: #868D9D;
  --ink-400: #6B7282;
  --line: #242A38;
  --line-soft: #1C2230;
  --blue-50: #141B33;
  --blue-100: #22305A;
  --blue-text: #7E9BEE;
  --ok: #6FD79E;
  --ok-bg: #10231A;
  --ok-fill: #1F8F55;
  --warn: #E5B25C;
  --warn-bg: #241C0B;
  --vis-top: #0B0E14;
  --vis-mid: #0E121A;
  --tint: rgb(120 150 230 / 5%);
  --tint-0: rgb(120 150 230 / 0%);
  --glow: rgb(31 79 216 / 16%);
  --glass: rgb(9 11 16 / 80%);
  --frame: rgb(18 22 31 / 55%);
  --bezel: #1E2430;
  --batt: rgb(232 235 241 / 45%);
  --note-1: #151A24;
  --note-2: #131721;
  --dot: rgb(255 255 255 / 6%);
  --dots: radial-gradient(rgb(255 255 255 / 8%) 1px, transparent 1.4px);
  --shadow-xs: 0 1px 2px rgb(0 0 0 / 40%);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 35%), 0 4px 12px rgb(0 0 0 / 25%);
  --shadow-md: 0 1px 2px rgb(0 0 0 / 35%), 0 16px 40px rgb(0 0 0 / 40%);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / 35%), 0 30px 80px rgb(31 79 216 / 18%);
  color-scheme: dark;
}
