/* Quoin Suite marketing site
   Tokens come from the logo: slate grey and construction yellow on white. */

:root {
  --slate: #616f78;
  --slate-deep: #46535b;
  --ink: #26303a;
  --yellow: #ffcd07;
  --yellow-deep: #e0b000;
  --paper: #ffffff;
  --mist: #f3f5f6;
  --line: #cfd6da;
  --line-soft: #e4e9ec;
  --red: #c8472e;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --measure: 62ch;
  --radius: 4px;
  --rule: 2px;
  --header-h: 70px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.02; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6.4vw, 84px); font-variation-settings: "wdth" 88; }
h2 { font-size: clamp(32px, 4.4vw, 56px); font-variation-settings: "wdth" 88; max-width: 18ch; }
h3 { font-size: clamp(22px, 2.2vw, 28px); font-variation-settings: "wdth" 92; }
p { margin: 0; max-width: var(--measure); }
a { color: inherit; }
strong { font-weight: 700; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* The structure down the left margin: an isometric frame that draws itself as you scroll. */
:root { --art-w: 0px; }
.frame-art {
  display: none;
  position: fixed; left: calc(var(--gutter) / 2); top: 64px;
  width: var(--art-w); height: calc(100vh - 64px);
  pointer-events: none; z-index: 0; overflow: visible;
}
.frame-art path { fill: none; stroke: var(--slate); stroke-width: 1.4; stroke-linecap: butt; stroke-linejoin: round; }
.frame-art path.brace { stroke: var(--yellow-deep); stroke-width: 2; }
.frame-art path.slab { stroke: var(--slate-deep); stroke-width: 2; }


/* ---------- Mark ---------- */
.mk-grey { fill: var(--slate); }
.mk-yellow { fill: var(--yellow); }
/* Keeps the white gap around the tail while the inner ring turns beneath it */
.mk-outlined { stroke: var(--paper); stroke-width: 30; stroke-linejoin: round; paint-order: stroke fill; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h); box-sizing: border-box;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; }
.wordmark { font-weight: 900; font-size: 22px; letter-spacing: 0.02em; font-variation-settings: "wdth" 110; line-height: 1; }
.wm-a { color: var(--slate); }
.wm-b { color: var(--yellow-deep); }
.nav { display: flex; gap: 28px; align-items: center; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; color: var(--slate-deep); }
.nav a:hover { color: var(--ink); }
.nav-cta { padding: 9px 14px; background: var(--ink); color: var(--paper) !important; border-radius: var(--radius); }
@media (max-width: 720px) { .nav a:not(.nav-cta) { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 14px 22px; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-deep); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-quiet:hover { box-shadow: inset 0 0 0 2px var(--slate); }

/* ---------- Hero (pinned scrollytelling) ---------- */
.hero { height: 220vh; position: relative; padding: 0; }
.hero-pin {
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h));
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 0 var(--gutter);
  overflow: hidden;
}
.hero-pin::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: var(--rule); background: var(--line); }
.hero-copy {
  max-width: 560px; position: relative; z-index: 2;
  opacity: calc(1 - var(--p, 0) * 1.4);
  transform: translateX(calc(var(--p, 0) * 40px));
}
.hero.handed .hero-copy { pointer-events: none; }
.hero-title { margin-bottom: 24px; max-width: 12ch; }
.hero-lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--slate-deep); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { font-size: 14px; color: var(--slate); }

.hero-stage { position: relative; height: 100%; display: grid; place-items: center; }
.stage-core {
  position: relative;
  width: min(100%, calc(100vh - var(--header-h) - 48px), 820px); aspect-ratio: 1;
  transform: translateX(calc(var(--p, 0) * 10%)) scale(calc(1 - var(--p, 0) * 0.1));
  transform-origin: 50% 50%;
}
.stage-mark { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* The inner ring turns into place on load, then follows the scroll. */
.stage-mark .mk-inner { transform-origin: 810px 810px; transform: rotate(calc(var(--p, 0) * 90deg)); }
.stage-mark .mk-dial, .stage-mark .mk-rest, .stage-mark .mk-tail, .stage-mark .mk-quarter { transform-origin: 810px 810px; }
.stage-mark .mk-quarter { transform: translate(calc(var(--p, 0) * 600px), calc(var(--p, 0) * -330px)); }
@media (prefers-reduced-motion: reduce) { .stage-mark .mk-inner { transform: none; } }

/* 3D tower inside the Q. The scene is sized from the mark's inner hollow. */
.build-scene {
  position: absolute; left: 50%; top: 50%; width: 1px; height: 1px;
  perspective: 1100px; perspective-origin: 50% 30%;
  transform: translate(calc(var(--p, 0) * 0px), 0);
}
.build-world { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: translateY(var(--base, 95px)) rotateX(-26deg) rotateY(calc(-36deg - var(--p, 0) * 30deg)); }
.cube { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.face { position: absolute; left: 0; top: 0; backface-visibility: hidden; }
.face-front { background: #8793a0; background-image: repeating-linear-gradient(90deg, transparent 0 7px, rgba(255,255,255,.55) 7px 9px); }
.face-left { background: #5b6871; background-image: repeating-linear-gradient(90deg, transparent 0 7px, rgba(255,255,255,.28) 7px 9px); }
.face-right { background: #70808a; }
.face-back { background: #4c585f; }
.face-top { background: #e9edf0; box-shadow: inset 0 0 0 2px #cfd6da; }
.face-bottom { background: #46535b; }
.col .face { background: var(--yellow); background-image: none; }
.col .face-left { background: var(--yellow-deep); }
.slab .face-top { background: #f4f6f7; box-shadow: inset 0 0 0 2px var(--slate); }
.slab .face-front, .slab .face-left, .slab .face-right, .slab .face-back { background: var(--slate); background-image: none; }
.ground .face-top { background: var(--mist); box-shadow: inset 0 0 0 3px var(--slate); }
.ground .face-front, .ground .face-left, .ground .face-right, .ground .face-back { background: var(--slate-deep); background-image: none; }

/* The piece of the system the quarter hands across into the copy column */
.held-out {
  position: absolute; left: calc(50% + 24px); top: 50%;
  width: min(380px, 44%);
  transform: translate(calc(60px - var(--p, 0) * 60px), -46%);
  opacity: clamp(0, calc(var(--p, 0) * 1.6 - 0.5), 1);
  z-index: 3;
}
.held-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 6px solid var(--yellow);
  box-shadow: 0 30px 60px -30px rgba(38, 48, 58, 0.45);
  padding: 18px 20px 16px;
  font-size: 14px;
}
.hc-top { display: flex; justify-content: space-between; align-items: baseline; }
.hc-kind { font-weight: 700; color: var(--slate-deep); }
.hc-no { font-weight: 900; font-size: 22px; letter-spacing: 0.01em; }
.hc-proj { color: var(--slate); margin: 2px 0 12px; }
.hc-table { width: 100%; border-collapse: collapse; }
.hc-table td { padding: 7px 0; border-top: 1px solid var(--line-soft); }
.hc-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hc-total td { font-weight: 800; border-top: 2px solid var(--ink); font-size: 15px; }
.hc-foot { display: flex; justify-content: space-between; margin-top: 12px; color: var(--slate-deep); }
.hc-state::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--yellow); margin-right: 7px; }

@media (max-width: 900px) {
  .hero { height: auto; }
  .hero-pin { position: static; height: auto; grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 48px; gap: 24px; }
  .hero-stage { height: auto; }
  .stage-core { width: min(78vw, 380px); transform: none; }
  .stage-mark .mk-quarter, .stage-mark .mk-inner { transform: none; }
  .build-world { --base: 55px; transform: translateY(var(--base)) rotateX(-26deg) rotateY(-36deg) scale(0.62); }
  .hero-copy { opacity: 1; transform: none; pointer-events: auto; }
  .held-out { position: static; width: 100%; transform: none; opacity: 1; }
}

/* ---------- Dimension lines (section openers) ---------- */
section { position: relative; padding: clamp(56px, 8vw, 120px) var(--gutter); }
.dim-line { display: flex; align-items: center; height: 24px; margin: 0 0 clamp(32px, 4vw, 56px); }
.dim-tick { width: var(--rule); height: 24px; background: var(--slate); flex: none; }
.dim-rule { flex: 1; height: var(--rule); background: var(--slate); transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.dim-line.drawn .dim-rule { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .dim-rule { transform: none; transition: none; } }

.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head p { color: var(--slate-deep); font-size: 18px; }
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- Stations ---------- */
.stations { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 5vw, 72px); }
.station {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px clamp(16px, 3vw, 48px); align-items: start;
}
.st-mark { width: 56px; height: 56px; background: var(--slate); color: var(--yellow); display: grid; place-items: center; font-weight: 900; font-size: 22px; position: relative; }
.st-mark::after { content: ""; position: absolute; left: 27px; top: 56px; width: var(--rule); height: calc(100% + clamp(40px, 5vw, 72px)); background: var(--line); }
.station:last-child .st-mark::after { display: none; }
.st-body h3 { margin-bottom: 10px; }
.st-body p { color: var(--slate-deep); }
.st-ui { margin: 0; }
@media (max-width: 800px) {
  .station { grid-template-columns: 44px minmax(0, 1fr); }
  .st-mark { width: 44px; height: 44px; font-size: 18px; }
  .st-mark::after { left: 21px; top: 44px; }
  .st-ui { grid-column: 2; }
}

/* Mockup chrome shared by every station */
.ui { border: 1px solid var(--line); background: var(--paper); font-size: 14px; box-shadow: 0 20px 40px -32px rgba(38,48,58,.5); }
.ui-row { display: grid; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line-soft); align-items: center; }
.ui-row:first-child { border-top: 0; }
.ui-head { background: var(--mist); font-weight: 700; color: var(--slate-deep); font-size: 13px; }
.ui-row span:nth-child(n+2) { font-variant-numeric: tabular-nums; }
.ui-bids .ui-row { grid-template-columns: 1fr 64px 110px; }
.ui-boq .ui-row { grid-template-columns: 1fr 72px 72px 90px; }
.ui-boq .ui-row span:nth-child(n+2) { text-align: right; }
.ui-court .ui-row { grid-template-columns: 90px 1fr 110px; }
.ui-cert .ui-row { grid-template-columns: 1fr 90px 120px; }
.ui-cert .ui-row span:nth-child(2) { text-align: right; }
.ui-pack .ui-row { grid-template-columns: 1fr auto; }
.ui-pack .sub { padding-left: 32px; color: var(--slate); }
.who { font-weight: 700; color: var(--slate-deep); }
.file { font-weight: 700; }
.pill { display: inline-block; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; justify-self: start; }
.pill-yellow { background: var(--yellow); border-color: var(--yellow); }
.pill-grey { background: var(--mist); color: var(--slate-deep); }
.pill-red { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Firms / roles ---------- */
.firms { background: var(--mist); }
.firms-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.firms-copy h2 { margin-bottom: 20px; }
.firms-copy p { color: var(--slate-deep); margin-bottom: 14px; }
.roles { background: var(--paper); border: 1px solid var(--line); font-size: 14px; }
.roles-head, .roles-row { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); align-items: center; padding: 10px 16px; border-top: 1px solid var(--line-soft); }
.roles-head { border-top: 0; background: var(--mist); font-weight: 700; color: var(--slate-deep); font-size: 13px; }
.roles-row span { font-weight: 600; }
.roles-row i { display: block; width: 18px; height: 18px; border: 2px solid var(--line); justify-self: center; }
.roles-row i.on { background: var(--yellow); border-color: var(--yellow); }
.roles-row i.part { background: linear-gradient(135deg, var(--yellow) 50%, transparent 50%); border-color: var(--slate); }
.roles-row.custom { background: #fffbe6; }
.roles-row.custom em { font-style: normal; font-weight: 500; color: var(--slate); margin-left: 8px; font-size: 12px; }
.roles-key { display: flex; gap: 20px; padding: 10px 16px; border-top: 1px solid var(--line-soft); color: var(--slate-deep); font-size: 13px; }
.roles-key span { display: inline-flex; align-items: center; gap: 8px; }
.roles-key i { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); }
.roles-key i.on { background: var(--yellow); border-color: var(--yellow); }
.roles-key i.part { background: linear-gradient(135deg, var(--yellow) 50%, transparent 50%); border-color: var(--slate); }
@media (max-width: 900px) { .firms-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .roles-head, .roles-row { grid-template-columns: 1.3fr repeat(4, 1fr); padding: 10px; } }

/* ---------- Platform facts ---------- */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.facts li { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--slate-deep); font-size: 16px; }
.facts strong { display: block; color: var(--ink); margin-bottom: 8px; font-size: 18px; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--paper); }
.contact .dim-tick, .contact .dim-rule { background: var(--yellow); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.contact h2 { margin-bottom: 20px; }
.contact p { color: #c9d1d6; }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #c9d1d6; }
.contact-form input, .contact-form textarea { font: inherit; padding: 11px 12px; border: 1px solid #4a5660; background: #313c45; color: var(--paper); border-radius: var(--radius); }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.contact-form .btn { justify-self: start; margin-top: 6px; }
.form-note { font-size: 13px; color: #9aa6ae; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { padding: 40px var(--gutter) 48px; display: grid; gap: 14px; border-top: 1px solid var(--line-soft); }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; }
.foot-line { color: var(--slate-deep); }
.foot-legal { font-size: 13px; color: var(--slate); }

/* ========== v2: animation states, rails, module map, pricing ========== */

/* Header */
.nav-login { padding: 9px 4px; }

/* Hero headline words reveal on load */
.hero-title .w { display: inline-block; }
.js .hero-title .w { opacity: 0; transform: translateY(0.6em) rotate(1.5deg); }
.js .hero-lede, .js .hero-actions, .js .hero-note { opacity: 0; }

/* Rails: two lines of module names that slide against each other with the scroll */
.rails { position: relative; padding: 20px 0; border-top: var(--rule) solid var(--slate); border-bottom: var(--rule) solid var(--slate); overflow: hidden; background: var(--paper); }
.rail { overflow: hidden; white-space: nowrap; }
.rail + .rail { margin-top: 10px; }
.rail-track { display: inline-flex; gap: 0; will-change: transform; }
.rail-track span { display: inline-flex; align-items: center; font-weight: 800; font-size: clamp(18px, 2.2vw, 28px); font-variation-settings: "wdth" 90; color: var(--slate-deep); padding-right: 34px; }
.rail-track span::after { content: ""; display: inline-block; width: var(--rule); height: 1em; background: var(--yellow); margin-left: 34px; }
.rail-b .rail-track span { color: var(--slate); font-weight: 600; font-size: clamp(15px, 1.6vw, 20px); }

/* Stations: line draws, marks pop, rows stagger */
.js .st-mark { transform: scale(0.6); opacity: 0; }
.js .st-body { opacity: 0; transform: translateX(-16px); }
.js .st-ui .ui-row { opacity: 0; transform: translateY(10px); }
.st-mark::after { transform: scaleY(var(--draw, 0)); transform-origin: top; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 205, 7, 0.55); } 60% { box-shadow: 0 0 0 8px rgba(255, 205, 7, 0); } }
.pill-yellow { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse-red { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 71, 46, 0.5); } 60% { box-shadow: 0 0 0 8px rgba(200, 71, 46, 0); } }
.pill-red { animation: pulse-red 2.4s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .pill-yellow, .pill-red { animation: none; } }

/* Module map */
.mod-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.mod-group { padding: 24px 22px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mod-group h3 { font-size: 15px; font-weight: 800; color: var(--slate-deep); margin-bottom: 18px; padding-bottom: 10px; border-bottom: var(--rule) solid var(--yellow); display: inline-block; }
.mods { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.mods li { display: grid; grid-template-columns: 28px 1fr; gap: 2px 12px; align-items: start; }
.mods li strong { font-size: 16px; line-height: 1.25; }
.mods li span { grid-column: 2; font-size: 14px; color: var(--slate); line-height: 1.4; }
.js .mods li { opacity: 0; transform: translateY(12px); }
.ic { grid-row: span 2; width: 26px; height: 26px; display: block; position: relative; }
.ic::before, .ic::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--slate); box-sizing: border-box; }
.ic::after { border: 0; }
.ic-flag::before { width: 3px; border: 0; background: var(--slate); }
.ic-flag::after { left: 3px; top: 2px; width: 18px; height: 11px; background: var(--yellow); }
.ic-db::before { border-radius: 50% / 30%; }
.ic-db::after { top: 10px; height: 2px; background: var(--slate); }
.ic-box::before { }
.ic-box::after { top: 9px; height: 2px; background: var(--yellow); }
.ic-users::before { width: 14px; height: 14px; border-radius: 50%; left: 2px; }
.ic-users::after { width: 14px; height: 14px; border-radius: 50%; left: 10px; top: 10px; background: var(--yellow); }
.ic-grid::before { background: repeating-linear-gradient(0deg, var(--slate) 0 2px, transparent 2px 8px); border: 0; }
.ic-grid::after { background: repeating-linear-gradient(90deg, var(--slate) 0 2px, transparent 2px 8px); }
.ic-cal::before { top: 4px; }
.ic-cal::after { top: 4px; height: 6px; background: var(--yellow); }
.ic-book::before { border-radius: 2px 6px 6px 2px; }
.ic-book::after { left: 10px; width: 2px; background: var(--slate); }
.ic-q::before { border-radius: 50%; }
.ic-q::after { left: 10px; top: 7px; width: 6px; height: 12px; background: var(--yellow); }
.ic-delta::before { border: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--slate); }
.ic-delta::after { border: 0; clip-path: polygon(50% 36%, 80% 100%, 20% 100%); background: var(--yellow); }
.ic-warn::before { transform: rotate(45deg); }
.ic-warn::after { left: 11px; top: 6px; width: 4px; height: 10px; background: var(--yellow); }
.ic-truck::before { height: 16px; top: 4px; }
.ic-truck::after { left: 4px; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); box-shadow: 12px 0 0 var(--yellow); }
.ic-in::before { top: 10px; }
.ic-in::after { left: 11px; top: 0; width: 4px; height: 14px; background: var(--yellow); }
.ic-stack::before { height: 8px; top: 18px; }
.ic-stack::after { height: 8px; top: 8px; left: 4px; width: 18px; border: 2px solid var(--slate); background: var(--yellow); }
.ic-tool::before { width: 4px; left: 11px; border: 0; background: var(--slate); }
.ic-tool::after { height: 8px; top: 0; background: var(--yellow); }
.ic-cert::before { }
.ic-cert::after { left: 14px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); }
.ic-mail::before { height: 18px; top: 4px; }
.ic-mail::after { left: 2px; top: 6px; width: 22px; height: 11px; border: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); background: var(--yellow); }
.ic-chart::before { border-width: 0 0 2px 2px; }
.ic-chart::after { left: 6px; top: 12px; width: 5px; height: 12px; background: var(--yellow); box-shadow: 8px -8px 0 var(--slate); }
.ic-zip::before { }
.ic-zip::after { left: 11px; width: 4px; background: repeating-linear-gradient(0deg, var(--yellow) 0 4px, transparent 4px 8px); }
.ic-key::before { width: 14px; height: 14px; border-radius: 50%; }
.ic-key::after { left: 12px; top: 12px; width: 14px; height: 4px; background: var(--yellow); transform: rotate(45deg); transform-origin: left; }
.ic-eye::before { border-radius: 50% 0; transform: rotate(45deg); }
.ic-eye::after { left: 9px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.ic-log::before { border-width: 0 0 0 2px; }
.ic-log::after { left: 6px; background: repeating-linear-gradient(0deg, var(--slate) 0 2px, transparent 2px 7px); }
.ic-spark::before { border: 0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); background: var(--yellow); }

/* Pricing */
.bill-toggle { display: inline-flex; border: 1px solid var(--line); padding: 4px; border-radius: 999px; margin-bottom: 32px; background: var(--paper); }
.bt-opt { font: inherit; font-weight: 700; font-size: 14px; border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--slate-deep); }
.bt-opt small { font-weight: 600; color: var(--slate); margin-left: 6px; font-size: 12px; }
.bt-opt.is-on { background: var(--ink); color: var(--paper); }
.bt-opt.is-on small { color: var(--yellow); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; border: 1px solid var(--line); padding: 28px 26px 26px; display: flex; flex-direction: column; background: var(--paper); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -36px rgba(38,48,58,.55); }
.plan-lead { border-color: var(--ink); border-top: 6px solid var(--yellow); }
.plan-flag { position: absolute; top: -14px; right: 20px; background: var(--ink); color: var(--yellow); font-size: 12px; font-weight: 800; padding: 4px 10px; letter-spacing: .02em; }
.plan h3 { font-size: 26px; margin-bottom: 8px; }
.plan-for { color: var(--slate-deep); font-size: 15px; min-height: 3.2em; margin-bottom: 18px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.price .cur { font-weight: 700; color: var(--slate); }
.price .amt { font-size: 40px; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.price .amt-text { font-size: 30px; }
.price .per { color: var(--slate); font-size: 14px; }
.plan-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--slate-deep); flex: 1; }
.plan-list li { padding-left: 22px; position: relative; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; background: var(--yellow); }
.plan .btn { text-align: center; }
.pricing-note { margin-top: 24px; font-size: 14px; color: var(--slate); }
.js .plan { opacity: 0; transform: translateY(28px); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }

/* Roles grid cells fill in one by one */
.js .roles-row i { transform: scale(0); }

/* Facts and contact reveal */
.js .facts li { opacity: 0; transform: translateY(14px); }
.js .firms-copy, .js .contact-grid > div { opacity: 0; transform: translateY(14px); }

/* Room for the margin frame on wide screens (last so it wins over the section rules above). */
@media (min-width: 1100px) {
  :root { --art-w: 150px; }
  .frame-art { display: block; }
  section, .top, .foot { padding-left: calc(var(--gutter) + var(--art-w)); }
}

/* Capacity walls */
.plan-gold h3::before, .plan-platinum h3::before, .plan-enterprise h3::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: 0; }
.plan-gold h3::before { background: var(--yellow); }
.plan-platinum h3::before { background: linear-gradient(135deg, #c9d1d6, #7f8b93); }
.plan-enterprise h3::before { background: var(--ink); }
.walls { margin-top: clamp(40px, 5vw, 64px); }
.walls h3 { margin-bottom: 10px; }
.walls > p { color: var(--slate-deep); margin-bottom: 22px; }
.walls-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.walls-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 760px; }
.walls-table th, .walls-table td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.walls-table thead th { background: var(--mist); border-top: 0; font-weight: 700; color: var(--slate-deep); font-size: 13px; }
.walls-table tbody th { font-weight: 700; width: 24%; }
.walls-table td:nth-child(3) { background: #fffbe6; }
.walls-table td:last-child { color: var(--slate-deep); }
.js .walls-table tbody tr { opacity: 0; transform: translateX(-10px); }

/* ---------- On site: the phone ---------- */
.onsite { background: var(--mist); }
.onsite-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.soon { display: inline-block; background: var(--ink); color: var(--yellow); font-size: 12px; font-weight: 800; padding: 5px 10px; margin-bottom: 18px; }
.onsite-copy h2 { margin-bottom: 18px; }
.onsite-copy > p { color: var(--slate-deep); margin-bottom: 28px; }
.capture { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.capture li { display: grid; gap: 2px; padding-left: 22px; position: relative; }
.capture li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; background: var(--yellow); }
.capture strong { font-size: 16px; }
.capture span { font-size: 15px; color: var(--slate-deep); line-height: 1.45; }
.js .capture li { opacity: 0; transform: translateX(-12px); }

/* Handsets: a 3D fan of three screens */
.phones { position: relative; height: 720px; perspective: 1600px; display: grid; place-items: center; }
.phone { position: absolute; width: 272px; transform-style: preserve-3d; }
.phone-main { z-index: 3; transform: rotateY(-8deg); }
.phone-left { z-index: 2; transform: translate3d(-52%, 5%, -140px) rotateY(20deg) scale(.9); }
.phone-right { z-index: 1; transform: translate3d(52%, 9%, -180px) rotateY(-24deg) scale(.9); }
.bezel {
  position: relative; background: #1b2227; border-radius: 42px; padding: 11px;
  box-shadow: 0 50px 80px -40px rgba(38,48,58,.75), 0 0 0 1.5px #3b4750, inset 0 0 0 2px #0e1316, inset 0 1px 0 3px rgba(255,255,255,.08);
}
.bezel::before { content: ""; position: absolute; right: -3px; top: 150px; width: 3px; height: 70px; background: #2a333a; border-radius: 0 2px 2px 0; }
.bezel::after { content: ""; position: absolute; left: -3px; top: 120px; width: 3px; height: 34px; background: #2a333a; border-radius: 2px 0 0 2px; box-shadow: 0 50px 0 #2a333a; }
.island { position: absolute; left: 50%; top: 20px; width: 84px; height: 24px; background: #000; border-radius: 14px; transform: translateX(-50%); z-index: 2; }
.screen { position: relative; background: var(--paper); border-radius: 32px; padding: 50px 14px 28px; min-height: 560px; display: grid; gap: 12px; align-content: start; overflow: hidden; }
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 32%); border-radius: inherit; }
.status { position: absolute; left: 22px; right: 22px; top: 16px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: var(--ink); }
.status-light { color: #fff; }
.bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; }
.bars i { width: 3px; background: currentColor; border-radius: 1px; height: 4px; }
.bars i:nth-child(2) { height: 6px; } .bars i:nth-child(3) { height: 8px; } .bars i:nth-child(4) { height: 11px; }
.bars::after { content: ""; width: 20px; height: 10px; margin-left: 6px; border: 1.5px solid currentColor; border-radius: 3px; background: linear-gradient(90deg, currentColor 0 75%, transparent 75%); background-origin: content-box; padding: 1px; box-sizing: border-box; }
.homebar { position: absolute; left: 50%; bottom: 8px; width: 110px; height: 4px; background: var(--ink); border-radius: 2px; transform: translateX(-50%); opacity: .7; }
.homebar-light { background: #fff; }
.ps-head { display: grid; gap: 2px; }
.ps-kind { font-size: 12px; font-weight: 700; color: var(--slate); }
.ps-title { font-size: 19px; font-weight: 800; line-height: 1.1; }
.ps-meta { font-size: 12px; color: var(--slate); }
.ps-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ps-checks li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 10px; }
.ps-checks i { width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 5px; position: relative; }
.ps-checks li.on i { background: var(--yellow); border-color: var(--yellow); }
.ps-checks li.on i::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ps-checks li.fail.on i { background: var(--red); border-color: var(--red); }
.ps-checks li.fail.on i::after { border-color: #fff; left: 7px; top: 2px; width: 2px; height: 11px; border-width: 0 2px 0 0; transform: none; }
.ps-checks b { font-size: 12px; color: var(--slate); font-weight: 700; }
.ps-checks li.on b { color: var(--ink); }
.ps-checks li.fail.on b { color: var(--red); }
.ps-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ph { display: block; aspect-ratio: 1; border-radius: 8px; background: linear-gradient(160deg, #8793a0, #46535b); transform: scale(0); }
.ph-2 { background: linear-gradient(160deg, var(--yellow), #b58e00); }
.ph-3 { background: linear-gradient(160deg, #cfd6da, #7f8b93); }
.ph-add { display: grid; place-items: center; background: var(--mist); color: var(--slate); font-weight: 800; font-size: 20px; border: 2px dashed var(--line); transform: none; }
.ps-sig { display: grid; gap: 4px; font-size: 12px; color: var(--slate-deep); border-top: 1px solid var(--line-soft); padding-top: 10px; }
.sig { width: 120px; height: 30px; }
.sig path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; }
.ps-btn { font: inherit; font-weight: 700; background: var(--yellow); border: 0; border-radius: 12px; padding: 12px; margin-top: 2px; }
.ps-btn-quiet { background: var(--mist); color: var(--ink); }
/* take-off */
.to-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.to-table th, .to-table td { padding: 7px 4px; text-align: right; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.to-table th:first-child, .to-table td:first-child { text-align: left; }
.to-table thead th { font-size: 11px; color: var(--slate); font-weight: 700; }
.to-table .deduct td { color: var(--red); }
.to-table tfoot td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--ink); font-size: 13px; }
.js .to-table tbody tr { opacity: 0; }
/* camera */
.screen-cam { background: #0f1417; padding: 0; display: block; }
.viewfinder { position: relative; height: 470px; background: radial-gradient(120% 80% at 50% 20%, #9fb0bd 0%, #5f6f7a 55%, #2d373d 100%); overflow: hidden; }
.vf-scene { position: absolute; inset: 0; }
.vf-col { position: absolute; bottom: 120px; width: 26px; height: 220px; background: linear-gradient(90deg, #cfd6da, #8a969f 60%, #5b6871); border-radius: 2px; }
.vf-col:nth-child(1) { left: 48px; } .vf-col:nth-child(2) { left: 122px; height: 240px; } .vf-col:nth-child(3) { left: 196px; height: 205px; }
.vf-slab { position: absolute; left: -10px; right: -10px; bottom: 96px; height: 28px; background: linear-gradient(#e9edf0, #aeb9c1); transform: skewY(-4deg); }
.vf-slab-2 { bottom: 335px; height: 20px; transform: skewY(-3deg); opacity: .9; }
.vf-frame { position: absolute; left: 36px; right: 36px; top: 150px; bottom: 150px; border: 1.5px solid rgba(255,205,7,.9); border-radius: 4px; mix-blend-mode: screen; }
.vf-frame::before, .vf-frame::after { content: ""; position: absolute; width: 14px; height: 14px; border: 3px solid var(--yellow); }
.vf-frame::before { left: -3px; top: -3px; border-right: 0; border-bottom: 0; }
.vf-frame::after { right: -3px; bottom: -3px; border-left: 0; border-top: 0; }
.vf-tag { position: absolute; left: 14px; bottom: 44px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 6px; }
.vf-meta { position: absolute; left: 14px; bottom: 18px; color: rgba(255,255,255,.85); font-size: 10.5px; }
.cam-bar { height: 90px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 26px; }
.cam-last { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(160deg, var(--yellow), #b58e00); border: 2px solid #fff; }
.shutter { width: 62px; height: 62px; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; }
.shutter i { width: 50px; height: 50px; border-radius: 50%; background: #fff; }
.cam-mode { justify-self: end; color: #fff; font-size: 12px; font-weight: 700; opacity: .8; }
@media (max-width: 900px) {
  .phones { height: auto; perspective: none; display: grid; gap: 24px; }
  .phone { position: static; width: 280px; transform: none; }
  .phone-left, .phone-right { display: none; }
}
.mod-soon { background: #fffbe6; }
.mod-group h3 em { font-style: normal; font-weight: 600; color: var(--slate); font-size: 12px; margin-left: 8px; }
.ic-cam::before { top: 5px; height: 18px; border-radius: 3px; }
.ic-cam::after { left: 8px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.ic-check::before { border-radius: 4px; }
.ic-check::after { left: 9px; top: 4px; width: 6px; height: 12px; border: solid var(--yellow); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.ic-rule::before { top: 9px; height: 8px; border-radius: 2px; }
.ic-rule::after { top: 9px; height: 8px; background: repeating-linear-gradient(90deg, transparent 0 4px, var(--yellow) 4px 6px); }
.ic-sync::before { border-radius: 50%; border-style: dashed; }
.ic-sync::after { left: 8px; top: 8px; width: 10px; height: 10px; background: var(--yellow); border-radius: 50%; }
@media (max-width: 900px) { .onsite-grid { grid-template-columns: 1fr; } .phone { width: 300px; } }
