/*
 * Stage Note: components
 * Needs tokens.css first. Every class starts with "sn-" so it can sit next to any other CSS.
 */

/* Base */
.sn { margin: 0; background: var(--sn-paper); color: var(--sn-ink); font-family: var(--sn-sans); font-size: var(--sn-text-body); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.sn *, .sn *::before, .sn *::after { box-sizing: border-box; }
:where(.sn) a { color: inherit; }
.sn-container { width: min(100% - 2 * var(--sn-gutter), var(--sn-container)); margin-inline: auto; }
.sn-narrow { width: min(100% - 2 * var(--sn-gutter), var(--sn-narrow)); margin-inline: auto; }
.sn-center { text-align: center; }
.sn-center .sn-lead { margin-inline: auto; }

/* Sections */
.sn-section { padding-block: var(--sn-section); }
.sn-band { padding-block: var(--sn-section); background: var(--sn-yellow); color: var(--sn-ink); }
.sn-rule { height: 1px; border: 0; margin: 0; background: var(--sn-line); }

/* Type: one grotesk for everything; the band headline is huge and uppercase */
.sn-shout, .sn-hero-title, .sn-h2, .sn-h3 { margin: 0; font-family: var(--sn-sans); color: inherit; }
.sn-shout { font-size: var(--sn-text-shout); font-weight: 500; text-transform: uppercase; letter-spacing: var(--sn-tracking-shout); line-height: .96; text-wrap: balance; }
.sn-hero-title { font-size: var(--sn-text-hero); font-weight: 500; letter-spacing: var(--sn-tracking-hero); line-height: 1.02; text-wrap: balance; }
.sn-h2 { font-size: var(--sn-text-h2); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; }
.sn-h3 { font-size: var(--sn-text-h3); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.sn-lead { max-width: 640px; margin: 18px 0 0; font-size: var(--sn-text-lead); line-height: 1.3; letter-spacing: -.01em; }
.sn-soft { color: var(--sn-soft); }
.sn-mono { font-family: var(--sn-mono); font-size: var(--sn-text-note); letter-spacing: 0; line-height: 1.55; }
.sn-link { color: var(--sn-cobalt); text-decoration: underline; text-underline-offset: 3px; }

/* Header: stacked text menu left, wordmark center, status pill and login right */
.sn-header { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 16px; padding: 12px var(--sn-gutter) 0; }
.sn-menu { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; font-size: var(--sn-text-menu); line-height: 1.06; letter-spacing: -.02em; }
.sn-menu a { text-decoration: none; }
.sn-menu a:hover { color: var(--sn-cobalt); }
.sn-menu sup { margin-left: 4px; padding: 1px 5px; border-radius: var(--sn-radius-pill); background: var(--sn-yellow); font-family: var(--sn-mono); font-size: 9px; vertical-align: super; }
.sn-wordmark { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.sn-wordmark i { width: 18px; height: 12px; border-radius: 50% 50% 40% 40%; background: var(--sn-tomato); transform: rotate(-12deg); }
.sn-header__right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.sn-pill.sn-burger { display: none; }

/* Pills: the small gray chips used for filters, status and tabs */
.sn-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.sn-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 0; border-radius: var(--sn-radius-pill); background: var(--sn-pill); color: var(--sn-ink); font-family: var(--sn-sans); font-size: var(--sn-text-small); text-decoration: none; white-space: nowrap; cursor: pointer; }
.sn-pill:hover { background: var(--sn-stage-2); }
.sn-pill.is-on { background: var(--sn-ink); color: var(--sn-paper); }
.sn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sn-mint); }
.sn-dot--live { background: var(--sn-tomato); }

/* Buttons: black pills, yellow pills, gray pills */
.sn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 0; border-radius: var(--sn-radius-pill); font-family: var(--sn-sans); font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .25s var(--sn-ease); }
.sn-btn:hover { transform: translateY(-2px) rotate(-1deg); }
.sn-btn--ink { background: var(--sn-ink); color: var(--sn-paper); }
.sn-btn--yellow { background: var(--sn-yellow); color: var(--sn-ink); }
.sn-btn--gray { background: var(--sn-pill); color: var(--sn-ink); }
.sn-btn--block { width: 100%; }
.sn-btn--sm { padding: 7px 14px; font-size: var(--sn-text-small); }

/* Stage: the big soft-gray rounded panel that holds one tilted object */
.sn-stage { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 440px; padding: 48px 24px 96px; border-radius: var(--sn-radius-stage); background: var(--sn-stage); }
.sn-stage--sm { min-height: 260px; padding: 32px 20px 72px; }
.sn-stage__bar { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sn-stage__field { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 1 1 auto; max-width: 420px; padding: 6px 6px 6px 16px; border-radius: var(--sn-radius-pill); background: var(--sn-paper); font-size: 15px; }
.sn-stage__pager { display: flex; gap: 4px; font-size: var(--sn-text-small); }
.sn-stage__pager span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.sn-stage__pager span.is-on { background: var(--sn-ink); color: var(--sn-paper); }

/* The tilted object: a flat card laid on the stage at an isometric angle */
.sn-object { position: relative; width: min(100%, 420px); aspect-ratio: 16 / 10; transform: perspective(1200px) rotateX(48deg) rotateZ(-16deg); transform-style: preserve-3d; }
.sn-object__slab { position: absolute; inset: 0; border-radius: 10px; background: var(--sn-paper); box-shadow: var(--sn-object-shadow); }
.sn-object__slab:nth-child(2) { transform: translateZ(8px); }
.sn-object__slab:nth-child(3) { transform: translateZ(16px); }
.sn-object__face { position: absolute; inset: 0; transform: translateZ(24px); border-radius: 10px; background: var(--sn-cobalt); color: var(--sn-ink); display: grid; place-items: center; padding: 18px; font-size: clamp(30px, 6vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: .9; text-transform: uppercase; text-align: center; -webkit-text-stroke: 1px var(--sn-ink); }

.sn-object__face--yellow { background: var(--sn-yellow); }
.sn-object__face--tomato { background: var(--sn-tomato); }
.sn-object__face--ink { background: var(--sn-ink); color: var(--sn-paper); -webkit-text-stroke: 0; }
.sn-badge--paper { background: var(--sn-paper); }

/* Sticky note: a small yellow card set in mono, pinned to a corner */
.sn-note { width: 260px; padding: 12px 14px; border-radius: var(--sn-radius-sm); background: var(--sn-yellow); font-family: var(--sn-mono); font-size: var(--sn-text-note); line-height: 1.55; }
.sn-note p { margin: 0 0 8px; }
.sn-note a { display: inline-block; padding: 1px 6px; border: 1px solid var(--sn-ink); border-radius: var(--sn-radius-pill); text-decoration: none; }
.sn-note--pinned { position: absolute; top: 54px; right: var(--sn-gutter); transform: rotate(1.5deg); }

/* Stickers: little CSS characters that sit on section edges */
.sn-stickers { display: flex; gap: 0; }
.sn-sticker { display: grid; place-items: center; width: 64px; height: 64px; border: 2px solid var(--sn-ink); background: var(--sn-yellow); font-size: 22px; line-height: 1; }
.sn-sticker--round { border-radius: 50%; background: var(--sn-cobalt); color: var(--sn-paper); transform: rotate(8deg) translateY(-6px); }
.sn-sticker--square { border-radius: 10px; background: var(--sn-tomato); transform: rotate(-10deg); }
.sn-sticker--tri { border-radius: 4px 32px 4px 32px; transform: rotate(-4deg); }

/* Cards: flat gray tiles, no borders, no shadows */
.sn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sn-card { padding: 24px; border-radius: var(--sn-radius); background: var(--sn-pill); }
.sn-card__tag { display: inline-block; margin-bottom: 14px; font-family: var(--sn-mono); font-size: var(--sn-text-note); text-transform: uppercase; }
.sn-card p { margin: 8px 0 0; color: var(--sn-soft); }

/* Badge: a tiny yellow label */
.sn-badge { display: inline-block; padding: 2px 8px; border-radius: var(--sn-radius-pill); background: var(--sn-yellow); font-family: var(--sn-mono); font-size: 10px; text-transform: uppercase; white-space: nowrap; }

/* Forms */
.sn-form { display: grid; gap: 14px; }
.sn-label { display: grid; gap: 6px; font-size: var(--sn-text-small); font-weight: 500; }
.sn-input, .sn-select { width: 100%; padding: 13px 18px; border: 2px solid transparent; border-radius: var(--sn-radius-pill); background: var(--sn-pill); color: var(--sn-ink); font-family: var(--sn-sans); font-size: 16px; }
.sn-input:focus, .sn-select:focus { outline: none; border-color: var(--sn-ink); background: var(--sn-paper); }
.sn-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--sn-text-small); color: var(--sn-soft); }
.sn-check input { margin-top: 3px; accent-color: var(--sn-ink); }

/* Pricing: gray tiles, the picked one goes yellow */
.sn-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.sn-price { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--sn-radius-stage); background: var(--sn-pill); }
.sn-price--pick { background: var(--sn-yellow); }
.sn-price__amount { font-size: clamp(44px, 5vw, 64px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.sn-price__amount small { font-size: 16px; letter-spacing: 0; color: var(--sn-soft); }
.sn-price ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sn-price li::before { content: "+ "; font-family: var(--sn-mono); }
.sn-price .sn-btn { margin-top: auto; }
.sn-price .sn-btn--gray, .sn-card .sn-btn--gray { background: var(--sn-paper); }

/* Article */
.sn-article { font-size: 19px; line-height: 1.6; }
.sn-article p { margin: 0 0 22px; }
.sn-article h2 { margin: 48px 0 14px; font-size: 28px; font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.sn-article blockquote { margin: 36px 0; padding: 24px 28px; border-radius: var(--sn-radius); background: var(--sn-yellow); font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.sn-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Table */
.sn-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sn-table th, .sn-table td { padding: 12px 8px; border-bottom: var(--sn-border); text-align: left; }
.sn-table th { font-family: var(--sn-mono); font-size: var(--sn-text-note); font-weight: 400; text-transform: uppercase; color: var(--sn-soft); }

/* Footer: big stacked menu again, mono small print */
.sn-footer { padding: 56px 0 28px; }
.sn-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.sn-footer__small { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--sn-mono); font-size: var(--sn-text-note); color: var(--sn-soft); }

/* Phone */
@media (max-width: 760px) {
  .sn-header { grid-template-columns: auto 1fr; }
  .sn-header .sn-menu { display: none; }
  .sn-header .sn-wordmark { justify-self: start; }
  .sn-header__right .sn-pill:not(.sn-burger) { display: none; }
  .sn-pill.sn-burger { display: inline-flex; }
  .sn-note--pinned { position: static; width: auto; margin: 16px var(--sn-gutter) 0; transform: none; }
  .sn-grid, .sn-prices, .sn-footer__grid { grid-template-columns: 1fr; }
  .sn-stage { min-height: 320px; padding-bottom: 120px; }
  .sn-object { width: 74%; }
  .sn-stage__bar { flex-direction: column; align-items: stretch; }
  .sn-stage__pager { justify-content: center; }
}
