/* Varlet site: an ember ground, the app's own amber, one hot word per headline. Dark only. */
:root {
  color-scheme: dark;
  --ground: #1c120b; --band: #150d07; --panel: #2a1b10; --line: #4a3322; --line-soft: #33231a;
  --ink: #fbf3ea; --dim: #dccbbb; --faint: #a8927f;
  --amber: #ff9f0a; --hot: #ff4f7b; --live: #5ad8ff; --ok: #58d68d; --err: #ff8f80;
  --neon: linear-gradient(120deg, var(--hot), var(--amber) 55%, #ffd34d);
  --display: "Bricolage Grotesque", "Rubik", system-ui, sans-serif;
  --sans: "Rubik", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.6 var(--sans); overflow-x: hidden; }
body.home::before {  /* film grain over everything, painted fields included, so no field shows an edge; under the sticky header */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 4; opacity: .012;  /* plain alpha, not a blend mode: it sits over everything, so it must composite cheaply */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Painted fields (web/ground.py): a spray-paint raster behind a section, the way Sentry prints its hero. Each image
   fades to the ground at every edge, so the layer never shows a rectangle. */
.painted { position: relative; isolation: isolate; }
.painted::before { content: ""; position: absolute; z-index: -1; pointer-events: none; left: 50%; top: var(--py, 50%); translate: -50% -50%;
  width: var(--pw, 1700px); aspect-ratio: 2200 / 2000; max-width: none; background: url(/media/hero-ground.webp) center / 100% no-repeat; }
.painted.field::before { --pw: 1500px; aspect-ratio: 4 / 3; background-image: url(/media/field.webp); }
@media (max-width: 700px) { .painted::before { --pw: 820px; aspect-ratio: 1400 / 1800; background-image: url(/media/hero-ground-phone.webp); } .painted.field::before { --pw: 900px; } }
.doodles { position: relative; }
.doodles::before {  /* Sentry's doodle wallpaper behind the card band: outline shapes, faint, fading at the edges */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='200'%3E%3Cg fill='none' stroke='%23ffb45a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 40l14-24 14 24z'/%3E%3Ccircle cx='120' cy='30' r='10'/%3E%3Cpath d='M170 70q8-12 16 0t16 0'/%3E%3Crect x='40' y='110' width='18' height='18' rx='4' transform='rotate(14 49 119)'/%3E%3Cpath d='M110 120l10 10M120 120l-10 10'/%3E%3Cpath d='M160 160h20M170 150v20'/%3E%3Cpath d='M20 170q10-14 20 0'/%3E%3Ccircle cx='90' cy='180' r='3'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
main, footer, header { position: relative; z-index: 1; }
main { overflow-x: clip; }  /* painted layers are wider than a phone */
img, video { max-width: 100%; }
a { color: var(--amber); }
:focus-visible { outline: 2px solid var(--live); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--panel); padding: 8px 12px; z-index: 9; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.02; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(40px, 6.4vw, 72px); margin-bottom: 28px; }
h2 em { font-style: normal; color: var(--hot); }
.big { font: 600 clamp(20px, 2.4vw, 27px)/1.35 var(--display); letter-spacing: -.01em; max-width: 30em; margin: 0 0 48px; }
.big u { text-decoration-color: var(--amber); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.note { color: var(--faint); font-size: 14px; }
.lede { font-size: clamp(18px, 2vw, 22px); color: var(--dim); max-width: 34em; }
.kicker { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
section { padding-block: clamp(72px, 10vw, 128px); }
.center { text-align: center; }

/* Buttons: white primary, outlined secondary (Sentry's pair) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 8px;
  font: 700 14px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  position: relative; border: 2px solid transparent; background: transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:not(.go, .light)::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; background: var(--neon); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }  /* a gradient edge on any surface */
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 -2px var(--hot); }
.btn.go, .btn.light { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.btn.go:hover, .btn.light:hover { box-shadow: 0 6px 0 -2px var(--amber); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 13px; }

/* Header */
header.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--ground) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 20px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.links { display: flex; align-items: center; gap: 26px; }
.links a:not(.btn) { color: var(--ink); text-decoration: none; font: 700 14px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.links a:not(.btn):hover { color: var(--amber); }
@media (max-width: 860px) { .links a:not(.btn) { display: none; } }

/* Hero */
.hero { padding-block: 40px 24px; text-align: center; --py: 460px; }
.announce { display: inline-flex; gap: 8px; align-items: center; color: var(--ink); text-decoration: none; font: 600 14px/1.3 var(--sans);
  padding: 8px 14px; border-radius: 8px; margin-bottom: 36px; box-shadow: 0 10px 30px -12px #000;
  background: linear-gradient(120deg, #b0284f, #9c3f12 30%, #6b3510 55%) 100% 0 / 250% 100%; transition: background-position .6s var(--ease); }
.announce:hover, .announce:focus-visible { background-position: 0 0; }
.hero h1 { font-size: clamp(52px, 11vw, 132px); letter-spacing: -.035em; line-height: .98; margin-bottom: 28px; }
.skew { display: inline-block; color: var(--hot); transform: rotate(-5deg) translateY(.08em); font-size: 1.08em; }
.skew[data-verbs] { position: relative; }  /* the slot keeps the width of "ship"; other verbs overlay it and the words beside move aside */
.skew .sizer, .skew .off { visibility: hidden; } .skew .w { position: absolute; top: 0; left: 50%; translate: -50% 0; white-space: nowrap; } .skew i { display: inline-block; font-style: normal; }
.hero .lead, .hero .tail { display: inline-block; transition: transform .5s var(--ease); } .hero .lead { transform: translateX(var(--gl, 0)); } .hero .tail { transform: translateX(var(--gt, 0)); }  /* a transform, so a longer or shorter verb never reflows the line */
.hero .lede { margin: 0 auto 30px; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.store { display: block; line-height: 0; padding: 12px; margin: -12px; border-radius: 12px; transition: transform .2s var(--ease); }  /* Apple: clear space ≥ ¼ badge height */
.store:hover { transform: translateY(-2px); }
.store img { height: 50px; width: auto; }
.soon { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); padding: 6px 10px; border: 1px solid currentColor; border-radius: 99px; }
.hint { color: var(--faint); font-size: 14px; margin-top: 18px; }

.stage { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; gap: 36px; align-items: center; margin-top: 56px; }
.float { display: grid; gap: 26px; }
.float.l { justify-items: end; } .float.r { justify-items: start; }
@property --lit { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.card { position: relative; margin: 0; width: min(100%, 300px); border: 1px solid transparent; border-radius: 16px; padding: 12px; text-align: left; cursor: pointer;
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(120deg, var(--hot) calc(var(--lit) - 40%), var(--amber) calc(var(--lit) - 12%), #7a4d2a var(--lit), #4a3322) border-box;  /* all brown at rest */
  box-shadow: 0 30px 60px -30px #000; transition: transform .35s var(--ease), box-shadow .5s var(--ease), --lit .8s var(--ease); }
.card:hover, .card:focus-visible, .card.lit { --lit: 100%; }
.card:hover { transform: translateY(-4px) rotate(-.5deg); }
.card.lit { box-shadow: 0 30px 60px -30px #000, 0 18px 50px -22px #ff4f7b99; }
.beam { position: absolute; z-index: 4; left: 0; top: -2px; height: 4px; border-radius: 4px; transform-origin: 0 50%; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, #ff9f0a40, #ffb44d 30%, var(--hot) 85%, #fff); filter: drop-shadow(0 0 10px #ff9f0acc) drop-shadow(0 0 3px var(--hot)); }
.float.l .card:nth-child(2), .float.r .card:nth-child(1) { margin-inline: 30px 0; }
.tag { display: inline-block; font: 600 12px/1 var(--mono); letter-spacing: .06em; color: var(--amber); margin: 2px 2px 10px; }
.tag.live { color: var(--live); } .tag.ok { color: var(--ok); }
.crop { position: relative; overflow: hidden; border-radius: 10px; background: #000;
  aspect-ratio: calc((var(--x1) - var(--x0)) * 720) / calc((var(--y1) - var(--y0)) * 1564); }
.crop img { position: absolute; max-width: none; width: calc(10000% / (var(--x1) - var(--x0))); left: calc(-100% * var(--x0) / (var(--x1) - var(--x0)));
  top: calc(-100% * var(--y0) / (var(--y1) - var(--y0))); height: auto; aspect-ratio: 720 / 1564; }  /* sized before it loads: WebKit never fetches a 0px-tall lazy image */

/* The device: a CSS iPhone 17 Pro Max frame around a native capture */
.device { --w: 330px; position: relative; width: var(--w); aspect-ratio: 720 / 1564; border-radius: calc(var(--w) * .16);
  padding: calc(var(--w) * .03); background: linear-gradient(145deg, #3b3632, #0d0b0a 40%, #26221f);
  box-shadow: 0 0 0 1px #6b5a4c inset, 0 40px 100px -30px #ff4f7b44, 0 60px 140px -40px #ff9f0a66, 0 30px 60px -20px #000; }
.device.small { --w: 280px; }
.device::before, .device::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2a2521; }  /* side keys */
.device::before { left: -3px; top: 22%; height: 11%; } .device::after { right: -3px; top: 27%; height: 15%; }
.device .screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * .135); overflow: hidden; background: #000; }
.device .screen > img, .device .screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.island { position: absolute; z-index: 3; top: calc(var(--w) * .052); left: 50%; translate: -50% 0; width: 29%; height: calc(var(--w) * .085); border-radius: 99px; background: #000; }
.screen img.in { animation: push .5s var(--ease) both; } .screen img.tab { animation: fade .3s ease both; }
.screen img.out { animation: fade .35s ease reverse both; }
@keyframes push { from { transform: translateX(28%); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.hot { position: absolute; inset: calc(var(--w) * .03); border-radius: calc(var(--w) * .135); }
.hot button { position: absolute; background: transparent; border: 0; padding: 0; cursor: pointer; border-radius: 12px; }
.hot button:hover, .hot button:focus-visible { background: #ffffff14; box-shadow: 0 0 0 2px #ff9f0a88; }
@media (max-width: 1000px) {
  .stage { grid-template-columns: 1fr; justify-items: center; gap: 28px; }
  .device { --w: min(300px, 78vw); order: -1; }
  .float { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; width: 100%; padding-bottom: 6px; }
  .float .card { flex: 0 0 240px; scroll-snap-align: center; margin: 0 !important; }
  .float.r { margin-top: -14px; }
}

/* Agent marquee */
.marquee { padding-block: 56px; text-align: center; background: var(--hot); color: var(--ground); }  /* Sentry's logo band: one loud block, edge to edge */
.marquee .kicker { color: var(--ground); margin: 0 0 24px; }
.belt { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 48px; width: max-content; margin: 0; padding: 0 24px; list-style: none; animation: belt 48s linear infinite; }
.belt:hover .track { animation-play-state: paused; }
.track li { display: flex; align-items: center; gap: 10px; font: 800 24px/1 var(--display); white-space: nowrap; }
.track svg { width: 28px; height: 28px; flex: none; }
@keyframes belt { to { transform: translateX(calc(-50% - 24px)); } }

/* Neon cards (Sentry's "Developer first") */
.quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 40px; }
@media (max-width: 760px) { .quad { grid-template-columns: 1fr; } }
.neon { position: relative; }
.neon .art, .price.neon { border: 2px solid transparent; border-radius: 12px;
  background: linear-gradient(var(--band), var(--band)) padding-box, var(--neon) border-box; }
.neon .art { padding: 18px; margin-bottom: 20px; min-height: 180px; display: grid; place-items: center; overflow: hidden; }
.neon .art .crop { width: 100%; }
.neon h3 { font-size: 26px; margin-bottom: 8px; }
.neon p { color: var(--dim); margin: 0; }

/* Step lists beside a device with a lens (Sentry's "Issue → Context → Fix") */
.steps-band { --px: 72%; --py: 6%; }
@media (max-width: 760px) { .steps-band { --px: 50%; --py: 30%; } }
.steps { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
.steps .list { display: grid; gap: 26px; }
.steps h3 { font-size: 26px; }
.step { all: unset; cursor: pointer; font: 500 clamp(19px, 2vw, 25px)/1.4 var(--display); color: #9a8472; padding-left: 20px;
  border-left: 3px solid #5b3a24; transition: color .3s, border-color .3s; }
.step.on, .step:hover { color: var(--ink); }
.step.on { border-image: var(--neon) 1; }
.step:focus-visible { outline: 2px solid var(--live); outline-offset: 6px; }
.viewer { position: relative; width: 300px; aspect-ratio: 720 / 1564; border-radius: 40px; overflow: hidden; border: 1px solid #5b3a24; background: #000; }
.viewer img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.lens { position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 4px solid transparent; pointer-events: none;
  background: var(--neon) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  top: var(--ly, 20%); left: var(--lx, 50%); translate: -50% -50%; transition: top .6s var(--ease), left .6s var(--ease); filter: drop-shadow(0 8px 16px #0009); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; justify-items: center; } .viewer { width: min(280px, 80vw); } }

/* The Mac window */
.window { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px #5b3a24, 0 60px 120px -40px #000, 0 30px 60px -30px #000; max-width: 980px; }
.window img { display: block; width: 100%; height: auto; }
.window .bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: #2b2724; border-bottom: 1px solid #0006; font: 600 13px var(--sans); color: #cfc6bd; }
.window .bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; } .window .bar i:nth-child(2) { background: #febc2e; } .window .bar i:nth-child(3) { background: #28c840; }
.window .bar span { margin-left: 10px; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }
.quotes figure { margin: 0; }
.quotes blockquote { margin: 0 0 22px; font: italic 500 20px/1.45 var(--sans); }
.quotes blockquote::before { content: "//"; display: block; font: 800 22px/1 var(--display); margin-bottom: 14px;
  background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.quotes figcaption { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: center; }
.quotes figcaption img { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; }
.quotes figcaption span { color: var(--faint); font-size: 14px; }

/* Get started */
.picker { display: flex; justify-content: center; margin-bottom: 36px; }
.picker select { appearance: none; min-width: min(360px, 100%); min-height: 46px; padding: 0 44px 0 16px; border-radius: 8px; border: 0;
  background: #6b3510 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0h12L6 8z' fill='%23fbf3ea'/%3E%3C/svg%3E") no-repeat right 16px center;
  color: var(--ink); font: 600 16px var(--sans); cursor: pointer; }
.term { display: grid; grid-template-columns: 120px minmax(0, 1fr) 120px; gap: 24px; align-items: center; }
.term .face { border-radius: 28px; rotate: -6deg; box-shadow: 0 20px 40px -12px #000; } .term .face.r { rotate: 6deg; }
@media (max-width: 760px) { .term { grid-template-columns: 1fr; } .term .face { display: none; } }
.code { position: relative; background: #0f0905; border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; }
.code > span { display: block; font: 12px var(--sans); color: var(--faint); padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.code button { position: absolute; right: 8px; top: 5px; background: none; border: 1px solid var(--line); color: var(--dim); border-radius: 6px; padding: 3px 8px; font: 12px var(--sans); cursor: pointer; }
.code pre { margin: 0; padding: 26px 28px; overflow-x: auto; font: 16px/1.5 var(--mono); color: #ffb44d; }

/* Film */
.launch { display: block; width: 100%; max-width: 980px; aspect-ratio: 16 / 9; height: auto; border-radius: 14px; background: #000; box-shadow: 0 0 0 1px #5b3a24, 0 40px 80px -30px #000; margin-bottom: 14px; }
#film .film { margin-top: 48px; }
.film { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 56px; align-items: center; }
.beats { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: b; }
.beats li { display: grid; gap: 4px; color: var(--dim); font-size: 18px; }
.beats b { font: 800 24px/1 var(--display); color: var(--ink); }
@media (max-width: 760px) { .film { grid-template-columns: 1fr; justify-items: center; } }

/* Safety */
.seals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; margin-bottom: 40px; }
@media (max-width: 860px) { .seals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.seals div { display: grid; gap: 8px; align-content: start; }
.seals svg { width: 54px; height: 54px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.seals b { font: 800 19px/1.15 var(--display); } .seals span { color: var(--faint); font-size: 15px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Pricing: the one card that gets a lit edge at rest */
.price { padding: 36px; max-width: 620px; box-shadow: 0 50px 110px -50px #ff4f7b88, 0 30px 60px -30px #000; }
.amount { font: 800 64px/1 var(--display); margin-bottom: 18px; }
.amount small { font: 500 17px var(--sans); color: var(--dim); }
.price ul { margin: 0 0 18px; padding-left: 20px; color: var(--dim); display: grid; gap: 6px; }

/* FAQ */
details { border-bottom: 1px solid var(--line-soft); padding-block: 20px; max-width: 820px; }
details summary { cursor: pointer; font: 700 20px/1.35 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--amber); font-family: var(--mono); }
details[open] summary::after { content: "–"; }
details p { color: var(--dim); margin: 10px 0 0; max-width: 64ch; }

/* Waitlist */
.cta p[data-note] { color: var(--dim); max-width: 36em; margin: 0 0 22px; }
form.waitlist { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; }
form.waitlist input { flex: 1 1 240px; min-height: 48px; border-radius: 8px; border: 1px solid var(--line); background: var(--band); color: var(--ink); font: 16px var(--sans); padding: 0 16px; }
.status { min-height: 1.6em; font-size: 15px; } .status.ok { color: var(--ok); } .status.err { color: var(--err); }

/* Ship It */
.ship { text-align: center; padding-bottom: 96px; }
.ship::before { --pw: 1150px; top: auto; bottom: 0; translate: -50% 0; scale: 1 -1; }  /* the hero's ground, mirrored and ending with the section: it fades out before the footer */
.ship h2 { font-size: clamp(64px, 12vw, 150px); margin-bottom: 32px; }
.ship p { font-size: clamp(19px, 2.2vw, 24px); max-width: 32em; margin: 0 auto 34px; }
.faces { display: flex; justify-content: center; margin-bottom: 26px; }
.faces img { width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--ground); margin-inline: -10px; }
.faces img:nth-child(odd) { translate: 0 10px; }

/* Footer */
footer { padding-block: 56px 36px; font-size: 14px; }
footer .base { position: relative; margin-top: 44px; padding-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
footer .base::before { content: ""; position: absolute; top: 0; inset-inline: 20px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='12'%3E%3Cpath d='M0 6q7-8 14 0t14 0' fill='none' stroke='%23fbf3ea' stroke-width='3'/%3E%3C/svg%3E") repeat-x; }  /* Sentry's squiggle */
footer .base .fine { margin: 0; }
footer .mascot { position: absolute; top: -44px; right: 12%; width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--ground); transform-origin: 50% 100%; }  /* the Manager, peeking over the wave */
@media (prefers-reduced-motion: no-preference) { footer .mascot { animation: peek 4s var(--ease) infinite; } }
@keyframes peek { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(-12deg); } 86% { transform: rotate(8deg); } }
footer .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 700px) { footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
footer h3 { font: 700 15px var(--sans); letter-spacing: 0; color: var(--hot); margin-bottom: 16px; }
footer .cols a { display: block; color: var(--ink); text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; margin-bottom: 14px; overflow-wrap: anywhere; }
footer .cols a:hover { color: var(--amber); }
footer .fine { color: var(--faint); font-size: 13px; margin-top: 28px; }
footer > .wrap:not(.cols) nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer > .wrap:not(.cols) a { color: var(--dim); text-decoration: none; }

/* Pointer light: on a mouse, a soft highlight follows the cursor across a card (site.js sets --mx/--my) */
@media (hover: hover) and (pointer: fine) {
  [data-glow] { position: relative; }
  [data-glow]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), #ff9f0a26, transparent 70%); }
  [data-glow]:hover::after { opacity: 1; }
}

/* Scroll reveal: always visible at rest; motion only adds an entrance */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
  .skew { animation: stamp .6s var(--ease) both .45s; }
  @supports (animation-timeline: view()) {
    section h2, .neon, .quotes figure, .seals div, .steps .viewer { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes lift { from { transform: translateY(48px) scale(.97); } }  /* transform only: nothing is ever hidden at rest */
@keyframes stamp { from { opacity: 0; transform: rotate(-16deg) scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .card, .announce, .btn, .store, [data-glow]::after { transition: none; } .track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } .track li[aria-hidden] { display: none; } html { scroll-behavior: auto; } }

/* Long-form pages (docs, legal, welcome) */
.doc { max-width: 780px; margin: 0 auto; padding: 48px 20px 88px; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 14px; }
.doc h2 { font-size: 28px; margin: 48px 0 12px; }
.doc h3 { font-size: 20px; margin: 30px 0 8px; }
.doc p, .doc li { color: var(--dim); margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 14px; }
.doc code { font: 14px var(--mono); background: var(--band); border: 1px solid var(--line-soft); border-radius: 5px; padding: 1px 5px; }
.doc img { width: min(100%, 300px); border-radius: 34px; border: 1px solid var(--line); display: block; margin: 22px 0; background: #000; }
.doc img[src*="mac-"] { width: 100%; border-radius: 14px; }
.doc img.signature { width: 220px; border: 0; border-radius: 0; background: #f3efe4; padding: 6px 10px; }
.doc figure { margin: 22px 0; } .doc figure.phoneshot img { width: 260px; } .doc figcaption { font-size: 14px; color: var(--faint); margin-top: 8px; }
.doc .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 12px; margin: 0 0 18px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th { font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); background: var(--band); }
tr:last-child td { border-bottom: 0; }
.docnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.docnav a { font-size: 14px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--dim); text-decoration: none; }
.docnav a[aria-current="page"] { border-color: var(--amber); color: var(--amber); }

/* Experts: the home section and /experts, drawn from templates.py by web/render.py */
.experts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
@media (max-width: 960px) { .experts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .experts { grid-template-columns: 1fr; } }
.expert { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; row-gap: 12px; align-content: start; align-items: center; padding: 20px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; transition: border-color .2s var(--ease), translate .2s var(--ease); }
.expert:hover, .expert:focus-visible { border-color: var(--amber); translate: 0 -2px; }
.expert img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; aspect-ratio: 1; }
.expert b { font: 700 21px/1.15 var(--display); }
.expert .about { grid-column: 1 / -1; color: var(--dim); font-size: 15px; line-height: 1.5; }
.expert .knows { grid-column: 1 / -1; }
.knows { display: flex; flex-wrap: wrap; gap: 6px; }
.knows span { font: 500 12.5px/1 var(--mono); padding: 6px 9px; border-radius: 99px; color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent); }
.team-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 34px 0 30px; }
.team-row a { display: grid; justify-items: center; gap: 6px; width: 92px; color: var(--dim); font-size: 13px; text-align: center; text-decoration: none; }
.team-row a:hover span, .team-row a:focus-visible span { color: var(--ink); }
.team-row img { width: 56px; height: 56px; border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.experts-page { width: min(1000px, 100%); margin: 0 auto; padding: 48px 20px 88px; }
.experts-page .intro { max-width: 720px; margin-bottom: 40px; }
.experts-page h1 { font-size: clamp(40px, 6vw, 64px); margin: 0 0 14px; }
.profile { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; padding: 40px 0; border-top: 1px solid var(--line-soft); scroll-margin-top: 80px; }
.profile > img { width: 160px; height: 160px; border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.profile h2 { margin: 0 0 8px; font-size: 32px; }
.profile h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 22px 0 10px; }
.profile p { color: var(--dim); margin: 0 0 10px; max-width: 65ch; }
.profile .persona { font-style: italic; color: var(--ink); }
.profile .rules { font-size: 15px; }
@media (max-width: 640px) { .profile { grid-template-columns: 1fr; gap: 18px; } .profile > img { width: 112px; height: 112px; } }
