/* Spamurai public site. Tokens copied from ~/power-dialer/styles/tailwind.css: "Ronin" (dark) is the body,
   "Paper" (light, class .paper) is used for heroes and the footer. The two meet in a glowing ember "eclipse". */
:root {
  color-scheme: dark;
  --bg: 10 10 11; --page: 10 10 11; --surface-1: 24 24 27; --surface-2: 39 39 42;
  --border: 63 63 70; --border-strong: 113 113 122;
  --text: 228 228 231; --text-secondary: 161 161 170; --text-muted: 113 113 122;
  --red: 200 16 46; --red-hover: 220 31 60; --red-text: 255 107 115; --red-subtle: 42 10 16; --red-border: 92 18 32;
  --ember: 255 120 60;                 /* the hot edge of the eclipse glow */
  --success: 45 212 191; --success-subtle: 15 46 43;
  --warning: 251 191 36; --warning-subtle: 46 35 16;
  --info: 77 163 255; --info-subtle: 13 32 51;
  --violet: 167 139 250; --yellow: 229 194 74;
  --focus: #FF6B73;
  --radius: 20px;
  --sans: "DM Sans", system-ui, sans-serif;
  --display: Syne, "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
.paper {
  color-scheme: light;
  --bg: 250 250 250; --page: 248 247 245; --surface-1: 255 255 255; --surface-2: 240 239 237;
  --border: 226 225 222; --border-strong: 113 113 122;
  --text: 10 10 11; --text-secondary: 82 82 91; --text-muted: 130 130 138;
  --red-text: 176 14 40; --red-subtle: 253 236 238; --red-border: 245 184 192;
  --focus: #C8102E;
  background: rgb(var(--page)); color: rgb(var(--text));
}
.ink, .paper .app {
  color-scheme: dark;
  --bg: 10 10 11; --page: 10 10 11; --surface-1: 24 24 27; --surface-2: 39 39 42; --border: 63 63 70; --border-strong: 113 113 122;
  --text: 228 228 231; --text-secondary: 161 161 170; --text-muted: 113 113 122; --red-text: 255 107 115; --red-subtle: 42 10 16; --red-border: 92 18 32;
  color: rgb(var(--text));
}
.paper .mark-dark { display: none; }
.paper .mark-light { display: inline; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0; background: rgb(var(--page)); color: rgb(var(--text));
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgb(var(--red) / .35); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
a { color: rgb(var(--red-text)); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 .45em; font-weight: 700; }
h1 { font-size: clamp(42px, 6.6vw, 80px); }
h2 { font-size: clamp(32px, 4.2vw, 52px); }
h3 { font-size: 18px; font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.grad { background: linear-gradient(90deg, rgb(var(--red-hover)), rgb(var(--ember))); -webkit-background-clip: text; background-clip: text; color: transparent; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--mono); font-size: .88em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: rgb(var(--text-secondary)); }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: rgb(var(--surface-1)); padding: 8px 12px; border-radius: 8px; }
.mark-light { display: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: rgb(var(--text)); }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.wordmark { font: 700 20px/1 var(--display); letter-spacing: -0.02em; }

/* Small labels */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; font: 500 13px/1.5 var(--sans);
  background: rgb(var(--surface-1)); border: 1px solid rgb(var(--border)); color: rgb(var(--text-secondary)); margin-bottom: 26px; }
.badge b { font: 700 10.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgb(var(--red)); padding: 5px 8px; border-radius: 999px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--sans); color: rgb(var(--red-text)); margin-bottom: 18px; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 15px; height: 15px; background: rgb(var(--red)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill-rule='evenodd' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill-rule='evenodd' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3C/svg%3E") center / contain no-repeat; transform: rotate(15deg); }
.tag { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--sans); color: rgb(var(--text-secondary)); margin-bottom: 16px; }
.tag b { font-weight: 600; color: #fff; background: rgb(var(--red)); padding: 5px 9px; border-radius: 999px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 10px;
  font: 600 15px/1 var(--sans); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .15s, background .15s, box-shadow .15s, border-color .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: rgb(var(--red)); color: #fff; box-shadow: 0 10px 26px -10px rgb(var(--red) / .9), inset 0 1px 0 rgb(255 255 255 / .2); }
.btn-primary:hover { background: rgb(var(--red-hover)); }
.btn-dark { background: rgb(10 10 11); color: #fff; box-shadow: 0 10px 24px -12px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .12); }
.btn-dark:hover { background: rgb(30 30 33); }
.btn-ghost { border-color: rgb(var(--border)); color: rgb(var(--text)); background: rgb(var(--surface-1)); }
.btn-ghost:hover { border-color: rgb(var(--border-strong)); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }

/* Floating capsule header */
.site-header { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.site-header .bar {
  pointer-events: auto; max-width: 1020px; margin: 0 auto; height: 54px; padding: 0 8px 0 18px; border-radius: 14px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  background: rgb(16 16 18 / .88); border: 1px solid rgb(255 255 255 / .08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px -14px rgb(0 0 0 / .6);
}
.site-header .brand { color: #f4f4f5; }
.site-nav { display: flex; gap: 22px; justify-content: center; }
.site-nav a { color: rgb(212 212 216); font-weight: 500; font-size: 14.5px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; text-decoration: none; }
.site-header .login { justify-self: end; }
.menu-btn { display: none; justify-self: end; background: none; border: 1px solid rgb(255 255 255 / .15); color: #fff; border-radius: 8px; height: 36px; padding: 0 12px; font: 500 14px var(--sans); }
@media (max-width: 1060px) { .site-header .bar { margin: 0 12px; } }
@media (max-width: 900px) and (min-width: 761px) { .site-nav { gap: 14px; } .site-nav a { font-size: 13.5px; } }
@media (max-width: 760px) {
  .site-header .bar { grid-template-columns: 1fr auto; }
  .menu-btn { display: inline-flex; align-items: center; }
  .site-nav, .site-header .login { display: none; }
  .site-header.open .bar { height: auto; padding: 9px 8px 16px 18px; grid-template-columns: 1fr auto; }
  .site-header.open .site-nav { display: flex; flex-direction: column; gap: 14px; grid-column: 1 / -1; padding-top: 8px; }
  .site-header.open .login { display: inline-flex; grid-column: 1 / -1; justify-self: start; }
}

/* Sections */
section.band { padding: 120px 0; }
.lead { font-size: 19px; color: rgb(var(--text-secondary)); max-width: 620px; line-height: 1.55; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 56px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.center .actions { justify-content: center; }

/* Hero: paper with an ember "gravity well" grid */
.hero { position: relative; overflow: hidden; padding: 150px 0 0; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 960px; margin: 0 auto 20px; }
.hero .lead { margin: 0 auto 32px; }
.hero-shot { position: relative; z-index: 1; margin-top: 250px; }
.hero.sub { padding-bottom: 40px; }

/* Eclipse: paper above, dark dome below, glowing ember edge (and the reverse above the footer) */
.eclipse { position: relative; height: 380px; overflow: hidden; background: rgb(248 247 245); }
.eclipse::before { content: ""; position: absolute; left: -26%; right: -26%; top: 120px; height: 1400px; border-radius: 50%; background: rgb(10 10 11);
  box-shadow: 0 -16px 50px -6px rgb(var(--ember) / .7), 0 -50px 130px 10px rgb(var(--ember) / .3),
    inset 0 18px 22px -8px rgb(var(--ember)), inset 0 46px 56px -22px rgb(var(--red)), inset 0 90px 80px -50px rgb(90 8 22); }
.eclipse.up::before { top: auto; bottom: 120px;
  box-shadow: 0 16px 50px -6px rgb(var(--ember) / .7), 0 50px 130px 10px rgb(var(--ember) / .3),
    inset 0 -18px 22px -8px rgb(var(--ember)), inset 0 -46px 56px -22px rgb(var(--red)), inset 0 -90px 80px -50px rgb(90 8 22); }
.after-shot { margin-top: -200px; }  /* the dark app shot dips into the eclipse */

/* Cards */
.card { position: relative; background: rgb(var(--surface-1)); border: 1px solid rgb(var(--border) / .6); border-radius: var(--radius); padding: 28px; overflow: hidden; }
.card h3 { margin-bottom: 6px; }
.card p { color: rgb(var(--text-secondary)); font-size: 15px; margin: 0; }
.card .more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; }
.card.hot { background: linear-gradient(170deg, rgb(var(--red-hover)), rgb(150 10 32) 75%); border-color: rgb(255 255 255 / .12); color: #fff; }
.card.hot p { color: rgb(255 255 255 / .82); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px; color: rgb(var(--red-text));
  background: rgb(var(--red-subtle)); border: 1px solid rgb(var(--red-border) / .7); }
.icon svg { width: 20px; height: 20px; }

/* Bento */
.bento { display: grid; grid-template-columns: 1.15fr .9fr .8fr; grid-template-rows: 340px 340px; gap: 18px; }
.bento .big { grid-row: span 2; display: flex; flex-direction: column; }
.bento .tall { grid-row: span 2; display: flex; flex-direction: column; }
.bento .card .art { flex: 1; position: relative; display: grid; place-items: center; min-height: 0; }
.bento .card.small { display: flex; flex-direction: column; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .bento .big { grid-column: span 2; grid-row: auto; min-height: 560px; } .bento .tall { grid-row: auto; min-height: 520px; } .bento .small { min-height: 300px; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento .big { grid-column: auto; } }
.line-head { height: 1px; width: 50%; margin: 72px 0 48px; background: linear-gradient(90deg, rgb(var(--ember) / .7), transparent); }
.mini-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.mini-feats h3 { margin-bottom: 8px; }
.mini-feats p { color: rgb(var(--text-secondary)); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .mini-feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mini-feats { grid-template-columns: 1fr; } }

/* Rotating tabs */
.tabs-wrap { display: grid; grid-template-columns: .8fr 1.4fr; gap: 64px; align-items: stretch; }
@media (max-width: 900px) { .tabs-wrap { grid-template-columns: 1fr; } }
.tab-list { display: flex; flex-direction: column; justify-content: end; margin-top: 40px; }
.tab-item { border-top: 1px solid rgb(var(--border) / .7); padding: 18px 0; cursor: pointer; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; color: inherit; font: inherit; position: relative; }
.tab-item h3 { margin: 0; color: rgb(var(--text-muted)); font-size: 17px; transition: color .2s; }
.tab-item p { margin: 8px 0 0; color: rgb(var(--text-secondary)); font-size: 15px; display: none; }
.tab-item.on h3 { color: rgb(var(--text)); }
.tab-item.on p { display: block; }
.tab-item .bar { position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: linear-gradient(90deg, rgb(var(--red)), rgb(var(--ember))); }
.tab-item.on .bar { width: 100%; }
.tabs-wrap.playing .tab-item.on .bar { animation: fill 6s linear; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
.tab-stage { position: relative; border-radius: 24px; overflow: hidden; min-height: 520px; display: grid; place-items: center; }
.tab-stage::before { content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgb(var(--ember)), rgb(var(--red)) 70%); opacity: .9; }
.tab-panel { position: relative; width: min(460px, 86%); display: none; animation: rise .5s ease; }
.tab-panel.on { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* "Talk to your dialer" */
.ai { position: relative; overflow: hidden; }
.ai-bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 24px; max-width: 1240px; margin: 0 auto; opacity: .35;
  -webkit-mask: radial-gradient(60% 55% at 50% 30%, #000, transparent); mask: radial-gradient(60% 55% at 50% 30%, #000, transparent); pointer-events: none; }
.ai .wrap { position: relative; }
.prompt { position: relative; max-width: 560px; margin: 0 auto 56px; padding: 2px; border-radius: 18px; background: conic-gradient(from 180deg, rgb(var(--red)), rgb(var(--ember)), rgb(var(--violet)), rgb(var(--red)));
  box-shadow: 0 0 60px -10px rgb(var(--red) / .7); }
.prompt div { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; background: rgb(14 14 16); color: rgb(var(--text-secondary)); font-size: 15px; text-align: left; }
.prompt .caret { width: 2px; height: 18px; background: rgb(var(--ember)); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.prompt kbd { margin-left: auto; }
.ai-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.ai-feats .icon { margin: 0 auto 16px; }
.ai-feats h3 { font-size: 16px; }
@media (max-width: 860px) { .ai-feats { grid-template-columns: 1fr 1fr; } }

/* Integrations */
.int-grid { display: grid; grid-template-columns: 1fr .9fr 1fr; gap: 18px; }
.int-grid .col { display: grid; gap: 18px; }
@media (max-width: 960px) { .int-grid { grid-template-columns: 1fr; } }
.int-card h3 { font-size: 20px; }
.int-card p { margin-bottom: 20px; }
.int-card .count { position: absolute; top: 0; right: 0; width: 46px; height: 42px; display: grid; place-items: center; font: 600 13px var(--mono); color: rgb(var(--text-secondary)); border-left: 1px solid rgb(var(--border) / .6); border-bottom: 1px solid rgb(var(--border) / .6); border-bottom-left-radius: 14px; }
.int-card hr { border: 0; border-top: 1px solid rgb(var(--border) / .6); margin: 0 0 20px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span { padding: 8px 14px; border-radius: 10px; background: rgb(var(--surface-2) / .7); border: 1px solid rgb(var(--border) / .6); font-size: 14px; font-weight: 600; }
.forge { min-height: 460px; display: grid; place-items: center; border-color: rgb(var(--red) / .5);
  background: radial-gradient(90% 55% at 50% 100%, rgb(var(--ember) / .95), rgb(var(--red) / .6) 35%, transparent 75%),
    radial-gradient(rgb(var(--ember) / .5) 1px, transparent 1.5px) 0 0 / 22px 22px, rgb(14 14 16); }
.forge .tile { width: 132px; height: 132px; border-radius: 28px; display: grid; place-items: center; background: rgb(28 28 31); border: 1px solid rgb(255 255 255 / .1);
  box-shadow: 0 30px 60px -20px rgb(0 0 0), 0 10px 0 -4px rgb(var(--red) / .7); }
.forge .tile img { width: 72px; height: 72px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .9fr 1.3fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 32px; } }
.faq { display: grid; gap: 12px; }
.faq details { background: rgb(var(--surface-1)); border: 1px solid rgb(var(--border) / .6); border-radius: 14px; padding: 0 24px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 22px var(--sans); color: rgb(var(--text-secondary)); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; color: rgb(var(--text-secondary)); }

/* Works-with strip */
.logos { display: flex; justify-content: center; align-items: center; gap: 56px; flex-wrap: wrap; margin-top: 18px; }
.logos span { font: 700 22px var(--display); letter-spacing: -0.02em; color: rgb(var(--text)); opacity: .55; }

/* Footer: call to action + links on paper, with a giant faded wordmark */
.site-footer { padding: 40px 0 32px; font-size: 14px; overflow: hidden; }
.foot-cta { text-align: center; padding: 10px 0 80px; }
.foot-cta h2 { margin-bottom: 14px; }
.foot-cta .lead { margin: 0 auto 28px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 32px; padding-top: 40px; border-top: 1px solid rgb(var(--red) / .25); }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { font: 500 13px var(--sans); margin: 0 0 14px; color: rgb(var(--text-muted)); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer .cols a { color: rgb(var(--text)); font-size: 15px; }
.site-footer .about p { color: rgb(var(--text-secondary)); max-width: 320px; }
.legal-line { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgb(var(--text-muted)); font-size: 13px; }

/* Scroll reveal (site.js only hides what starts below the fold) */
.reveal { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.pre { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.pre { opacity: 1; transform: none; transition: none; } }

/* Split rows (features page) */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.flip > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 12px; color: rgb(var(--text-secondary)); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; background: rgb(var(--red)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill-rule='evenodd' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill-rule='evenodd' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3C/svg%3E") center / contain no-repeat; transform: rotate(15deg); }
.checks strong { color: rgb(var(--text)); font-weight: 600; }
.card.visual { padding: 0; }
.card.visual .art { height: 260px; position: relative; display: grid; place-items: center; overflow: hidden; }
.card.visual .body { padding: 22px 26px 26px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid rgb(var(--border) / .6); border-radius: var(--radius); background: rgb(var(--surface-1)); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid rgb(var(--border) / .6); vertical-align: top; }
th { font-weight: 600; font-size: 13px; color: rgb(var(--text-secondary)); }
tr:last-child td { border-bottom: 0; }
.yes { color: rgb(var(--success)); font-weight: 600; }
.no { color: rgb(var(--text-muted)); }

/* ------------------------------------------------------------------------------------------------
   Product visuals (HTML mock-ups of Spamurai screens; decorative, aria-hidden)
   ------------------------------------------------------------------------------------------------ */
.mock { font-family: var(--sans); color: rgb(var(--text)); user-select: none; text-align: left; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgb(var(--surface-2)); color: rgb(var(--text-secondary)); white-space: nowrap; }
.chip.red { background: rgb(var(--red)); color: #fff; }
.chip.ok { background: rgb(var(--success-subtle)); color: rgb(var(--success)); }
.chip.warn { background: rgb(var(--warning-subtle)); color: rgb(var(--warning)); }
.chip.info { background: rgb(var(--info-subtle)); color: rgb(var(--info)); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.live-dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 10.5px var(--sans); color: #fff; background: rgb(var(--violet)); flex: none; }
.avatar.b { background: rgb(var(--info)); } .avatar.c { background: rgb(var(--success)); color: rgb(10 10 11); } .avatar.d { background: rgb(var(--warning)); color: rgb(10 10 11); }
.who { display: flex; align-items: center; gap: 8px; font-weight: 600; }

/* The big app screen */
.app { border-radius: 22px; background: rgb(14 14 16); border: 1px solid rgb(255 255 255 / .09); box-shadow: 0 60px 120px -40px rgb(0 0 0 / .55), 0 0 0 8px rgb(255 255 255 / .35); overflow: hidden;
  display: grid; grid-template-columns: 220px 1fr; min-height: 600px; color: rgb(228 228 231); }
.app aside { border-right: 1px solid rgb(var(--border) / .6); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.app aside .brand { padding: 4px 8px 16px; color: rgb(var(--text)); }
.app aside .brand img { width: 24px; height: 24px; }
.app aside .me { display: flex; align-items: center; gap: 10px; padding: 10px 8px 16px; border-bottom: 1px solid rgb(var(--border) / .5); margin-bottom: 8px; }
.app aside .me small { display: block; color: rgb(var(--text-muted)); font-size: 11.5px; }
.nav-i { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: rgb(var(--text-secondary)); }
.nav-i.on { background: rgb(var(--surface-2)); color: rgb(var(--text)); font-weight: 600; box-shadow: inset 2px 0 0 rgb(var(--red)); }
.nav-i .n { margin-left: auto; font: 600 11px var(--mono); color: rgb(var(--red-text)); background: rgb(var(--red-subtle)); padding: 1px 6px; border-radius: 6px; }
.app aside h5 { margin: 14px 10px 6px; font: 600 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--text-muted)); }
.app main { min-width: 0; display: flex; flex-direction: column; }
.app .top { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid rgb(var(--border) / .6); font-size: 13px; color: rgb(var(--text-secondary)); }
.app .top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.app .crumbs { padding: 18px 22px 0; font-size: 12.5px; color: rgb(var(--text-muted)); }
.app .title { display: flex; align-items: center; justify-content: space-between; padding: 6px 22px 16px; }
.app .title b { font: 700 24px var(--display); letter-spacing: -0.02em; color: rgb(var(--text)); }
.app .cols { display: grid; grid-template-columns: 1.15fr 1fr .9fr; gap: 14px; padding: 0 22px 22px; flex: 1; }
@media (max-width: 1000px) { .app { grid-template-columns: 1fr; } .app aside { display: none; } .app .cols { grid-template-columns: 1fr 1fr; } .app .cols .queue { display: none; } }
@media (max-width: 640px) { .app .cols { grid-template-columns: 1fr; } }
.pane { background: rgb(var(--surface-1)); border: 1px solid rgb(var(--border) / .6); border-radius: 14px; padding: 16px; }
.pane h6 { margin: 0 0 12px; font: 600 12px var(--sans); color: rgb(var(--text-muted)); display: flex; justify-content: space-between; }
.lead-name { font: 700 22px var(--display); letter-spacing: -0.02em; margin: 8px 0 2px; }
.lead-meta { font-size: 13px; color: rgb(var(--text-secondary)); }
.lead-phone { font: 600 17px var(--mono); margin: 12px 0 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgb(var(--border) / .6); }
.kv dt { color: rgb(var(--text-muted)); } .kv dd { margin: 0; }
.call-state { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.timer { font: 600 24px var(--mono); }
.wave { display: flex; align-items: center; gap: 3px; height: 32px; margin-bottom: 14px; }
.wave i { flex: 1; border-radius: 3px; background: rgb(var(--red)); animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.6s; } .wave i:nth-child(4n) { animation-delay: -.9s; }
@keyframes wave { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.outcomes { display: grid; gap: 7px; }
.outcome { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-radius: 10px; border: 1px solid rgb(var(--border) / .7); font-size: 13px; font-weight: 500; background: rgb(var(--surface-1)); }
.outcome .cat { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; }
.outcome.pick { border-color: rgb(var(--red)); background: rgb(var(--red-subtle)); }
.c-nc { background: rgb(62 140 253); } .c-cb { background: rgb(143 37 219); } .c-pos { background: rgb(11 166 148); } .c-neg { background: rgb(201 9 46); }
.q-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgb(var(--border) / .45); font-size: 13px; }
.q-item:last-child { border-bottom: 0; }
.q-item small { display: block; color: rgb(var(--text-muted)); font-size: 11.5px; }
.q-item .chip { margin-left: auto; }
kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid rgb(var(--border-strong)); border-bottom-width: 2px; border-radius: 6px; font-size: 12px; text-align: center; color: rgb(var(--text)); background: rgb(var(--surface-1)); }

/* Rings (parallel dialing) */
.rings { position: relative; width: 170px; height: 170px; }
.rings span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgb(var(--red) / .35); background: rgb(var(--red) / .05); animation: ripple 3s ease-out infinite; }
.rings span:nth-child(2) { animation-delay: -1s; } .rings span:nth-child(3) { animation-delay: -2s; }
@keyframes ripple { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.12); opacity: 0; } }
.rings .core { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--red)); color: #fff; box-shadow: 0 0 0 8px rgb(var(--red) / .18), 0 10px 30px -6px rgb(var(--red)); }
.rings .core svg { width: 22px; height: 22px; }
.rings .chip { position: absolute; }

/* Cursor-style name tags (coaching) */
.coach-card { position: relative; width: 250px; padding: 14px; border-radius: 14px; background: rgb(var(--surface-2) / .7); border: 1px solid rgb(var(--border) / .7); }
.name-tag { position: absolute; display: flex; align-items: center; gap: 2px; font: 600 12.5px var(--sans); color: #fff; }
.name-tag span { background: rgb(var(--red)); padding: 4px 9px; border-radius: 6px; }
.name-tag svg { width: 14px; height: 14px; color: rgb(var(--red)); }
.name-tag.alt span { background: rgb(var(--info)); } .name-tag.alt svg { color: rgb(var(--info)); }

/* Flow pills (hot card) */
.flow-pills { display: flex; flex-direction: column; align-items: center; gap: 0; }
.flow-pills .p { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgb(60 0 12 / .35); border: 1px solid rgb(255 255 255 / .22); font-size: 13.5px; font-weight: 500; color: #fff; }
.flow-pills .p i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / .7); }
.flow-pills .p.done i { background: #fff; border-color: #fff; }
.flow-pills .j { width: 1px; height: 26px; background: rgb(255 255 255 / .35); position: relative; }
.flow-pills .j::after { content: ""; position: absolute; left: -3px; top: 10px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .5); background: rgb(150 10 32); }

/* Phone */
.phone { width: 250px; height: 470px; border-radius: 40px; padding: 9px; position: relative; background: rgb(30 30 33); border: 1px solid rgb(255 255 255 / .12); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .9); }
.phone .screen { height: 100%; border-radius: 32px; background: rgb(10 10 11); overflow: hidden; padding: 42px 16px 16px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.phone .notch { position: absolute; top: 11px; left: 50%; width: 82px; height: 22px; margin-left: -41px; border-radius: 12px; background: #000; }
.phone .push { padding: 10px 12px; border-radius: 16px; background: rgb(var(--surface-1)); border: 1px solid rgb(var(--border) / .8); font-size: 12px; display: flex; gap: 10px; align-items: center; animation: drop 6s ease-in-out infinite; }
.phone .push img { width: 26px; height: 26px; border-radius: 7px; }
@keyframes drop { 0%, 8% { transform: translateY(-80px); opacity: 0; } 16%, 80% { transform: none; opacity: 1; } 92%, 100% { transform: translateY(-80px); opacity: 0; } }
.phone .call-btn { margin: auto auto 6px; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgb(var(--red)); box-shadow: 0 0 0 10px rgb(var(--red) / .15), 0 12px 28px -8px rgb(var(--red)); }
.phone .call-btn svg { width: 26px; height: 26px; }

/* Bars, mini table, flow (tabs and features page) */
.bars { display: flex; align-items: end; gap: 12px; height: 150px; }
.bars i { flex: 1; border-radius: 8px 8px 4px 4px; background: rgb(var(--surface-2)); }
.bars i.hi { background: linear-gradient(180deg, rgb(var(--ember)), rgb(var(--red))); }
.bars-legend { display: flex; justify-content: space-between; font-size: 11.5px; color: rgb(var(--text-muted)); margin-top: 8px; }
.stat { font: 700 30px/1 var(--display); letter-spacing: -0.03em; display: flex; align-items: center; gap: 10px; }
.mini-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.mini-table td, .mini-table th { padding: 9px 6px; border-bottom: 1px solid rgb(var(--border) / .5); text-align: left; }
.mini-table th { font-size: 11.5px; color: rgb(var(--text-muted)); font-weight: 600; }
.mini-table td.n { font-family: var(--mono); font-size: 12.5px; }
.flow { display: grid; gap: 12px; width: min(340px, 88%); position: relative; }
.flow::before { content: ""; position: absolute; left: 22px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(rgb(var(--red)), rgb(var(--red) / .1)); }
.flow-step { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: rgb(var(--surface-1)); border: 1px solid rgb(var(--border) / .8); font-size: 13.5px; }
.flow-step .ic { width: 18px; height: 18px; border-radius: 6px; flex: none; display: grid; place-items: center; background: rgb(var(--red)); color: #fff; font-size: 11px; position: relative; z-index: 1; }
.flow-step .chip { margin-left: auto; }
.stage-card { background: rgb(14 14 16); border: 1px solid rgb(255 255 255 / .1); border-radius: 18px; padding: 20px; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .8); }

/* Long text: legal pages and docs */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(32px, 4.4vw, 48px); }
.prose h2 { font-size: 26px; margin-top: 52px; letter-spacing: -0.025em; }
.prose h3 { margin-top: 32px; }
.prose p, .prose li { color: rgb(var(--text-secondary)); }
.prose strong { color: rgb(var(--text)); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose table { margin: 16px 0 24px; border: 1px solid rgb(var(--border) / .8); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: rgb(var(--surface-1)); }
@media (max-width: 700px) { .prose table { display: block; overflow-x: auto; } }
.prose td, .prose th { font-size: 14px; }
.prose code { background: rgb(var(--surface-2)); padding: 2px 6px; border-radius: 6px; color: rgb(var(--text)); }
.prose pre { background: rgb(var(--surface-1)); border: 1px solid rgb(var(--border) / .8); border-radius: 14px; padding: 18px; overflow-x: auto; line-height: 1.55; margin: 0 0 1.2em; }
.prose pre code { background: none; padding: 0; }
.note { border: 1px solid rgb(var(--info) / .4); background: rgb(var(--info-subtle)); border-radius: 12px; padding: 14px 16px; margin: 0 0 1.2em; }
.note.warn { border-color: rgb(var(--warning) / .4); background: rgb(var(--warning-subtle)); }
.note p:last-child { margin: 0; }
.ph { background: rgb(var(--warning-subtle)); color: rgb(var(--warning)); padding: 0 4px; border-radius: 4px; font-weight: 600; }
.legal { padding: 140px 0 96px; }
.legal .updated { color: rgb(var(--text-muted)); font-size: 14px; }
.method { font: 600 12px var(--mono); padding: 2px 6px; border-radius: 4px; margin-right: 6px; }
.m-get { color: rgb(var(--success)); background: rgb(var(--success-subtle)); }
.m-post { color: rgb(var(--info)); background: rgb(var(--info-subtle)); }
.m-put, .m-patch { color: rgb(var(--warning)); background: rgb(var(--warning-subtle)); }

/* Docs layout */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding: 120px 0 96px; }
.docs-nav { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 124px); overflow-y: auto; font-size: 14px; padding-right: 8px; }
.docs-nav h4 { font: 600 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--text-muted)); margin: 24px 0 8px; }
.docs-nav h4:first-child { margin-top: 0; }
.docs-nav ul { list-style: none; padding: 0; margin: 0; }
.docs-nav a { display: block; padding: 6px 10px; border-radius: 9px; color: rgb(var(--text-secondary)); }
.docs-nav a:hover { color: rgb(var(--text)); background: rgb(var(--surface-1)); text-decoration: none; }
.docs-nav a[aria-current="page"] { color: rgb(var(--text)); background: rgb(var(--surface-1)); font-weight: 600; box-shadow: inset 2px 0 0 rgb(var(--red)); }
.docs-toggle { display: none; }
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; gap: 16px; padding-top: 100px; }
  .docs-nav { position: static; max-height: none; display: none; border: 1px solid rgb(var(--border)); border-radius: var(--radius); padding: 16px; }
  .docs-nav.open { display: block; }
  .docs-toggle { display: inline-flex; }
}
.docs .crumb { font-size: 13px; color: rgb(var(--text-muted)); margin-bottom: 12px; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgb(var(--border) / .6); }
.pager a { display: block; border: 1px solid rgb(var(--border) / .8); background: rgb(var(--surface-1)); border-radius: 14px; padding: 12px 16px; font-weight: 600; max-width: 48%; }
.pager a span { display: block; font: 500 12px var(--sans); color: rgb(var(--text-muted)); }
.pager a:hover { border-color: rgb(var(--border-strong)); text-decoration: none; }
.pager .next { margin-left: auto; text-align: right; }

/* ------------------------------------------------------------------------------------------------
   Samurai details: the sliced sun, shurikens, the brush cut
   ------------------------------------------------------------------------------------------------ */
.sunrise { position: relative; height: 0; }
.sunrise .sun { position: absolute; left: 50%; top: 36px; width: 760px; height: 760px; margin-left: -380px; z-index: 0; filter: drop-shadow(0 30px 60px rgb(var(--red) / .35)); }
.sunrise .slash { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: slash .9s .5s cubic-bezier(.7,0,.2,1) forwards; }
@keyframes slash { to { stroke-dashoffset: 0; } }
.sunrise .waves { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cg fill='%23C8102E' fill-opacity='.12' fill-rule='evenodd'%3E%3Cpath transform='translate(97 45) rotate(6) scale(0.2) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(22 161) rotate(74) scale(0.12) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(170 -16) rotate(80) scale(0.2) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(170 284) rotate(80) scale(0.2) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(119 -7) rotate(71) scale(0.08) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(119 293) rotate(71) scale(0.08) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(258 87) rotate(69) scale(0.1) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(35 93) rotate(87) scale(0.24) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(19 18) rotate(63) scale(0.1) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(19 318) rotate(63) scale(0.1) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(319 18) rotate(63) scale(0.1) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(319 318) rotate(63) scale(0.1) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(204 128) rotate(59) scale(0.12) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(73 172) rotate(63) scale(0.16) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(263 219) rotate(77) scale(0.12) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(229 172) rotate(40) scale(0.24) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(102 105) rotate(74) scale(0.14) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(239 21) rotate(34) scale(0.08) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(142 199) rotate(89) scale(0.08) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(18 230) rotate(31) scale(0.1) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(318 230) rotate(31) scale(0.1) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(-13 45) rotate(19) scale(0.1) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(287 45) rotate(19) scale(0.1) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 380px 380px; position: absolute; left: 50%; width: 100vw; margin-left: -50vw; top: 140px; height: 520px; z-index: 0;
  -webkit-mask: linear-gradient(transparent, #000 40%, #000 70%, transparent), linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000); -webkit-mask-composite: source-in;
  mask: linear-gradient(transparent, #000 40%, #000 70%, transparent), linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000); mask-composite: intersect; }
@media (max-width: 800px) { .sunrise .sun { width: 520px; height: 520px; margin-left: -260px; } .hero-shot { margin-top: 180px; } }

.cut { position: relative; white-space: nowrap; }
.cut::after { content: ""; position: absolute; left: -2%; right: -3%; bottom: .04em; height: .13em; z-index: -1;
  background: linear-gradient(90deg, rgb(var(--red)), rgb(var(--ember))); clip-path: polygon(0 55%, 100% 0, 97% 100%, 3% 85%);
  transform: rotate(-2deg) scaleX(0); transform-origin: left; animation: brush .7s .3s cubic-bezier(.7,0,.2,1) forwards; }
@keyframes brush { to { transform: rotate(-2deg) scaleX(1); } }


.card.hot > .hot-waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask: linear-gradient(#000, transparent 70%); mask: linear-gradient(#000, transparent 70%); }
.card.hot > :not(.hot-waves) { position: relative; z-index: 1; }
.spin { animation: spin 20s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.landscape { width: 100vw; margin: 72px 0 0 calc(50% - 50vw); line-height: 0; }
.landscape svg { width: 100%; height: 280px; display: block; }
.site-footer { padding-bottom: 0; }
.site-footer .legal-line { background: rgb(10 10 11); color: rgb(161 161 170); margin: 0 calc(50% - 50vw); padding: 6px max(24px, calc(50vw - 596px)) 26px; }
.seal-line { display: inline-flex; align-items: center; gap: 10px; }
.seal-mark { width: 26px; height: 26px; border-radius: 6px; transform: rotate(-8deg); }
@media (prefers-reduced-motion: reduce) { .sunrise .slash { stroke-dashoffset: 0; animation: none; } .cut::after { transform: rotate(-2deg); animation: none; } .spin { animation: none; } }

/* Divider: an ember line with a shuriken where it starts */
.divider { position: relative; height: 1px; width: min(640px, 70%); margin: 84px 0 52px 28px; background: linear-gradient(90deg, rgb(var(--red)), rgb(var(--ember) / .5) 40%, transparent); }
.divider::before { content: ""; position: absolute; left: -28px; top: -8px; width: 17px; height: 17px; background: rgb(var(--red)); transform: rotate(15deg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill-rule='evenodd' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill-rule='evenodd' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 0 8px rgb(var(--red))); }

/* Depth: ember glows and edge waves behind the dark sections, film grain over everything */
#main { position: relative; isolation: isolate; }
#main::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(700px 520px at 6% 18%, rgb(var(--red) / .13), transparent 70%),
    radial-gradient(760px 560px at 96% 38%, rgb(var(--red) / .10), transparent 70%),
    radial-gradient(900px 600px at 50% 62%, rgb(var(--ember) / .07), transparent 70%),
    radial-gradient(700px 520px at 8% 84%, rgb(var(--red) / .10), transparent 70%); }
#main::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cg fill='white' fill-opacity='.05' fill-rule='evenodd'%3E%3Cpath transform='translate(97 45) rotate(6) scale(0.2) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(22 161) rotate(74) scale(0.12) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(170 -16) rotate(80) scale(0.2) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(170 284) rotate(80) scale(0.2) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(119 -7) rotate(71) scale(0.08) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(119 293) rotate(71) scale(0.08) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(258 87) rotate(69) scale(0.1) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(35 93) rotate(87) scale(0.24) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(19 18) rotate(63) scale(0.1) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(19 318) rotate(63) scale(0.1) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(319 18) rotate(63) scale(0.1) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(319 318) rotate(63) scale(0.1) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(204 128) rotate(59) scale(0.12) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(73 172) rotate(63) scale(0.16) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(263 219) rotate(77) scale(0.12) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(229 172) rotate(40) scale(0.24) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(102 105) rotate(74) scale(0.14) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(239 21) rotate(34) scale(0.08) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(142 199) rotate(89) scale(0.08) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(18 230) rotate(31) scale(0.1) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(318 230) rotate(31) scale(0.1) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(-13 45) rotate(19) scale(0.1) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3Cpath transform='translate(287 45) rotate(19) scale(0.1) translate(-50 -50)' d='M50 6L60 40L94 50L60 60L50 94L40 60L6 50L40 40Z M50 41a9 9 0 1 0 0.01 0Z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 380px 380px;
  -webkit-mask: linear-gradient(90deg, #000, transparent 24%, transparent 76%, #000); mask: linear-gradient(90deg, #000, transparent 24%, transparent 76%, #000); }
body::after { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' 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 .55 0'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 200px 200px; }
.card:not(.hot):not(.forge), .faq details, .pane { background-image: linear-gradient(180deg, rgb(255 255 255 / .025), transparent 40%); }
.paper .card, .paper .faq details { background-image: none; }


/* Docs navigation: sidebar search, "On this page", the docs home overview */
@media (min-width: 1200px) { .docs { grid-template-columns: 240px minmax(0, 1fr) 190px; } }
.toc { display: none; }
@media (min-width: 1200px) {
  .toc { display: block; position: sticky; top: 100px; align-self: start; font-size: 13.5px; border-left: 1px solid rgb(var(--border) / .6); padding-left: 16px; }
  .toc h4 { font: 600 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--text-muted)); margin: 0 0 10px; }
  .toc ul { list-style: none; padding: 0; margin: 0; }
  .toc a { display: block; padding: 4px 0; color: rgb(var(--text-secondary)); line-height: 1.35; }
  .toc a:hover { color: rgb(var(--text)); text-decoration: none; }
  .toc a.on { color: rgb(var(--red-text)); }
}
.docs-home { max-width: none; }
.docs-filter, .docs-home-search input { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid rgb(var(--border)); background: rgb(var(--surface-1)); color: rgb(var(--text)); font: 14px var(--sans); }
.docs-filter { margin-bottom: 18px; }
.docs-filter:focus, .docs-home-search input:focus { outline: none; border-color: rgb(var(--red)); box-shadow: 0 0 0 3px rgb(var(--red) / .2); }
.nav-empty { display: none; color: rgb(var(--text-muted)); font-size: 13px; }
.docs .crumb a { color: rgb(var(--text-muted)); }
.docs .crumb a:hover { color: rgb(var(--text)); }
.docs .crumb span { margin: 0 4px; }

.docs-home-search { position: relative; max-width: 640px; margin: 8px 0 44px; }
.docs-home-search input { height: 54px; font-size: 16px; padding: 0 18px; border-radius: 14px; }
.docs-home-search .results { position: absolute; left: 0; right: 0; top: 60px; z-index: 5; background: rgb(var(--surface-1)); border: 1px solid rgb(var(--border)); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 40px -16px rgb(0 0 0 / .7); }
.docs-home-search .results:empty { display: none; }
.docs-home-search .results a, .docs-home-search .results p { display: block; padding: 12px 18px; margin: 0; border-bottom: 1px solid rgb(var(--border) / .5); }
.docs-home-search .results a:hover, .docs-home-search .results a.first { background: rgb(var(--surface-2)); text-decoration: none; }
.docs-home-search .results b { display: block; color: rgb(var(--text)); }
.docs-home-search .results span { font-size: 13px; color: rgb(var(--text-muted)); }

.quick h4, .map-head h2 { font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--red-text)); margin: 0 0 14px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 1000px) { .quick-grid { grid-template-columns: 1fr 1fr; } }
.quick-grid a, .map-item { display: block; padding: 14px 16px; border-radius: 12px; border: 1px solid rgb(var(--border) / .6); background: rgb(var(--surface-1)); transition: border-color .15s, transform .15s; }
.quick-grid a:hover, .map-item:hover { border-color: rgb(var(--red) / .7); text-decoration: none; transform: translateY(-1px); }
.quick-grid b, .map-item b { display: block; color: rgb(var(--text)); font-size: 15px; }
.quick-grid span, .map-item span { display: block; color: rgb(var(--text-muted)); font-size: 13px; margin-top: 3px; line-height: 1.4; }
.docs-map { margin-top: 56px; display: grid; gap: 44px; }
.map-group { display: grid; grid-template-columns: 220px 1fr; gap: 24px; scroll-margin-top: 100px; }
@media (max-width: 900px) { .map-group { grid-template-columns: 1fr; gap: 12px; } }
.map-head h2 { margin: 6px 0 8px; }
.map-head p { color: rgb(var(--text-secondary)); font-size: 14.5px; margin: 0; }
.map-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .map-list { grid-template-columns: 1fr; } }
.nav-group + .nav-group h4 { margin-top: 24px; }
@media (min-width: 1200px) { .docs:has(.docs-home) { grid-template-columns: 240px minmax(0, 1fr); } }
