/* SubSentry public site. Text colour pairs are checked for WCAG AA in tests/site/site.test.ts. */
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #080B14;
  --surface: #0D1220;
  --raised: #121A2C;
  --line: #1C2436;
  --line-2: #2A3550;
  --text: #E8EBF3;
  --text-2: #9AA3BA;
  --link: #8FAEFF;
  --accent: #2D67FF;
  --mint: #3DD6A3;
  --amber: #F5B544;
  --todo-bg: #3A2A07;
  --todo-text: #F5B544;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* the hero figure's palette (see hairline/) */
  --hairline-plate: #080B14;
  --hairline-hi: #C9D6FF;
  --hairline-edge: #6C7690;
  --hairline-mid: #3A445E;
  --hairline-lo: #232C42;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* pages cross-fade into each other where the browser supports it */
  @view-transition { navigation: auto; }
}
[id] { scroll-margin-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 1.5px solid var(--link); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(8, 11, 20, 0.82); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 25px; letter-spacing: -0.2px; line-height: 1; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 15px; }
.site-header nav a { color: var(--text-2); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .2s, background-size .3s cubic-bezier(.2, .7, .2, 1); padding-bottom: 2px; }
.site-header nav a:hover { background-size: 100% 1px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 10px; font: 500 16px/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; transition: background-color .2s, border-color .2s, box-shadow .3s; }
.btn-primary { background: #2D67FF; color: #FFFFFF; }
.btn-primary:hover { background: #3F75FF; color: #FFFFFF; box-shadow: 0 0 0 4px rgba(45, 103, 255, 0.16), 0 10px 30px -10px rgba(45, 103, 255, 0.7); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-2); color: var(--text); }
.arrow { color: var(--text); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s; }
.arrow:hover { border-color: var(--text); color: var(--text); }

/* Hero */
.hero { position: relative; padding: 76px 0 84px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
/* the hero's opening: copy rises in, line by line (CSS, so nothing waits on a script) */
@media (prefers-reduced-motion: no-preference) {
  .hero .wrap > div > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .wrap > div > :nth-child(2) { animation-delay: .08s; }
  .hero .wrap > div > :nth-child(3) { animation-delay: .16s; }
  .hero .wrap > div > :nth-child(4) { animation-delay: .24s; }
  .hero .wrap > div > :nth-child(5) { animation-delay: .32s; }
  .hero .plate { animation: rise 1.1s .2s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero h1 { font: 400 clamp(52px, 7vw, 92px)/0.95 var(--serif); letter-spacing: -1.5px; margin: 22px 0 26px; }
.hero h1 em { color: var(--link); }
.hero .lede { font-size: 19px; line-height: 1.55; color: var(--text-2); margin: 0 0 34px; max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 40px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.facts li { margin: 0; }

.plate { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.plate .tag { position: absolute; top: 14px; z-index: 1; pointer-events: none; }
.plate .tag.l { left: 16px; }
.plate .tag.r { right: 16px; color: var(--text); font-variant-numeric: tabular-nums; }
.plate figcaption { border-top: 1px solid var(--line); padding: 12px 16px; display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.figure { width: 100%; }
.coins-stage { width: 100%; aspect-ratio: 400 / 320; }
.coins-stage canvas { display: block; }

/* Islands (fx/, built from site-src/): wrappers that must not change layout */
.fx-host, .fx-keep { display: contents; }
.hero-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-particles-layer, .particles-canvas { width: 100%; height: 100%; }
.hero-particles::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 80% at 30% 40%, transparent, rgba(8, 11, 20, 0.45) 98%); }
.hero-particles::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(40% 45% at 72% 42%, rgba(45, 103, 255, 0.20), transparent 70%), radial-gradient(30% 35% at 18% 30%, rgba(143, 174, 255, 0.10), transparent 70%); }
/* Magic UI MagicCard on the figure plates: its own border replaces the plate's */
.plate.fx-card { border-color: transparent; background: transparent; }
.mc { --color-background: var(--bg); --color-border: var(--line); position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; border: 1px solid transparent; }
.mc-fill { position: absolute; inset: 1px; z-index: 20; border-radius: 15px; background: var(--bg); }
.mc-glow { pointer-events: none; position: absolute; inset: 1px; z-index: 30; border-radius: 15px; opacity: 0; transition: opacity .3s; }
.mc:hover .mc-glow { opacity: 1; }
.mc-orb { pointer-events: none; position: absolute; z-index: 30; }
.mc-body { position: relative; z-index: 40; }
.plate .mc { height: 100%; }
/* steps and ledger cells become cards once MagicCard wraps them */
.steps.fx-cards { gap: 16px; border-top: 0; }
.steps.fx-cards li, .steps.fx-cards li + li { padding: 0; border: 0; }
.steps.fx-cards .mc-body { padding: 28px 28px 30px; }
.ledger.fx-cards { gap: 16px; border-top: 0; }
.ledger.fx-cards div { padding: 0; border: 0; }
.ledger.fx-cards .mc { border: 1px solid transparent; }
.ledger.fx-cards .mc-body { padding: 22px 24px; }
.fx-cards .mc { height: 100%; --color-border: var(--line-2); }
.fx-cards > * > .fx-host { display: block; height: 100%; }
/* Magic UI BorderBeam: a light running round a plate's border */
.fx-beam { position: absolute; inset: 0; border-radius: 16px; pointer-events: none; z-index: 2; }
.border-beam { position: absolute; inset: 0; border-radius: inherit; border: var(--border-beam-width) solid transparent; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0) border-box; -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0) border-box; }
.border-beam-dot { position: absolute; aspect-ratio: 1; background: linear-gradient(to left, var(--color-from), var(--color-to), transparent); }
/* Magic UI ScrollProgress */
.scroll-progress { position: fixed; inset: 0 0 auto 0; top: 0; z-index: 60; height: 2px; transform-origin: left; background: linear-gradient(90deg, #2D67FF, #8FAEFF, #C9D6FF); box-shadow: 0 0 12px rgba(45, 103, 255, 0.8); }
/* Magic UI AnimatedShinyText on the hero eyebrow */
.shiny-text { --shiny-width: 140px; color: var(--text-2); background: linear-gradient(90deg, transparent, #FFFFFF 50%, transparent) 0 0 / var(--shiny-width) 100% no-repeat; -webkit-background-clip: text; background-clip: text; animation: shiny-text 6s infinite; }
@keyframes shiny-text { 0%, 90%, 100% { background-position: calc(-100% - var(--shiny-width)) 0; } 30%, 60% { background-position: calc(100% + var(--shiny-width)) 0; } }
/* Magic UI Marquee: the band under the hero */
.band { border-bottom: 1px solid var(--line); overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.band:empty { display: none; }
.marquee { --duration: 38s; --gap: 3rem; display: flex; gap: var(--gap); overflow: hidden; padding: 26px 0; }
.marquee-track { display: flex; flex-shrink: 0; justify-content: space-around; gap: var(--gap); animation: marquee var(--duration) linear infinite; }
.marquee:hover .marquee-pause { animation-play-state: paused; }
.marquee-reverse { animation-direction: reverse; }
.marquee-still .marquee-track { animation: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-100% - var(--gap))); } }
.band-item { display: inline-flex; align-items: center; gap: var(--gap); font: 400 clamp(30px, 4vw, 48px)/1 var(--serif); letter-spacing: -0.5px; color: var(--text); white-space: nowrap; }
.band-item em { color: var(--link); }
.band-dot { font-size: 0.45em; color: var(--line-2); }
/* Magic UI AnimatedGridPattern behind two sections */
section.fx-grid { position: relative; overflow: hidden; }
section.fx-grid > .wrap { position: relative; z-index: 1; }
.fx-grid-layer { position: absolute; inset: 0; pointer-events: none; -webkit-mask: radial-gradient(70% 80% at 50% 40%, #000, transparent); mask: radial-gradient(70% 80% at 50% 40%, #000, transparent); }
.grid-pattern { position: absolute; inset: 0; width: 100%; height: 100%; fill: rgba(45, 103, 255, 0.35); stroke: rgba(143, 174, 255, 0.10); color: #2D67FF; }
.number-ticker { display: inline-block; font-variant-numeric: tabular-nums; }
.plate.side { margin-top: 36px; }
.gmail-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; margin-bottom: 48px; }
.gmail-head .promise { margin-bottom: 0; }

/* Sections */
section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; }
.split > header { align-self: start; position: sticky; top: 28px; }
section h2 { font: 400 clamp(38px, 4.6vw, 58px)/1.02 var(--serif); letter-spacing: -0.8px; margin: 14px 0 18px; }
section h2 em { color: var(--link); }
.split > header p { color: var(--text-2); margin: 0; max-width: 24em; }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: row; }
.rows li { counter-increment: row; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 20px; padding: 26px 0; border-bottom: 1px solid var(--line); margin: 0; }
.rows li::before { content: counter(row, decimal-leading-zero); font: 500 13px/1.9 var(--mono); color: var(--text-2); grid-row: span 2; }
.rows h3 { margin: 0; font: 500 20px/1.35 var(--sans); letter-spacing: -0.2px; }
.rows p { margin: 0; color: var(--text-2); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { padding: 28px 28px 8px 0; margin: 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps .n { font: italic 400 56px/1 var(--serif); color: var(--text-2); display: block; margin-bottom: 18px; }
.steps h3 { margin: 0 0 6px; font: 500 20px/1.35 var(--sans); }
.steps p { margin: 0; color: var(--text-2); }

.promise { font: 400 clamp(34px, 4.2vw, 52px)/1.1 var(--serif); letter-spacing: -0.6px; margin: 14px 0 48px; max-width: 18em; }
.promise em { color: var(--link); }
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 0; border-top: 1px solid var(--line); }
.ledger div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.ledger dt { margin: 0 0 6px; }
.ledger dd { margin: 0; }
.fineprint { margin: 30px 0 0; font-size: 15px; color: var(--text-2); max-width: 46em; }

.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-weight: 400; padding-top: 0; }
.compare thead th + th { font: 400 30px/1.1 var(--serif); color: var(--text); text-transform: none; letter-spacing: 0; }
.compare td { color: var(--text); }
.compare td:first-child { color: var(--text-2); width: 40%; }
.note { color: var(--text-2); font-size: 14px; margin: 16px 0 0; }

.closing .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; }
.closing h2 { margin: 14px 0 0; }
section.closing { border-bottom: 0; }

/* Document pages (privacy, terms, support) */
.doc-hero { padding: 72px 0 36px; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); margin: 0; }
.doc-hero h1 { font: 400 clamp(48px, 6vw, 76px)/1 var(--serif); letter-spacing: -1px; margin: 18px 0 16px; }
.doc-hero .lede { color: var(--text-2); font-size: 19px; margin: 0; }
.meta { font: 400 13px/1.6 var(--mono); color: var(--text-2); }
.doc { border-top: 1px solid var(--line); padding: 8px 0 80px; }
.doc h2 { font: 400 32px/1.15 var(--serif); letter-spacing: -0.3px; margin: 44px 0 10px; }
.doc h3 { font: 500 18px/1.4 var(--sans); margin: 30px 0 6px; }
.doc p, .doc li { color: #CDD3E2; }
.doc ul { padding-left: 20px; }
.doc li { margin: 8px 0; }
.doc li::marker { color: var(--text-2); }
.doc code { font: 14px var(--mono); padding: 1px 6px; border-radius: 5px; background: var(--raised); border: 1px solid var(--line); }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 26px 0 30px; margin: 20px 0 0; border-bottom: 1px solid var(--line); }
.contact-card h2 { margin: 0 0 8px; }
.contact-card p { margin: 0 0 6px; max-width: 34em; }
.todo { background: var(--todo-bg); color: var(--todo-text); padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 28px; padding-bottom: 44px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 960px) {
  .hero .wrap, .split, .gmail-head { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split > header { position: static; }
  .hero { padding-top: 48px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 18px; }
  section { padding: 68px 0; }
  .steps, .ledger { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .rows li { grid-template-columns: 40px minmax(0, 1fr); }
  .site-header { position: static; }
  .steps.fx-cards, .ledger.fx-cards { gap: 12px; }
  .steps.fx-cards li, .steps.fx-cards li + li { border: 0; padding: 0; }
  .site-header nav { gap: 4px 16px; font-size: 14px; }
  .compare td:first-child { width: auto; }
}
