/* SendWerk marketing pages: a quiet, minimal layer over style.css.
 *
 * Near-black page, plain type, generous space, thin lines. Amber is the one
 * accent, used sparingly: the primary button, small labels, check marks and
 * links. Motion: the hero film (film.js) and faint blinking pixels behind
 * every page (field.js).
 *
 * Classes are sw- prefixed so they never collide with style.css, which still
 * styles the console and the send/receive pages. The layout and header come
 * from the reWERK prototype (our own code). Fonts are self-hosted in /fonts:
 * the CSP allows no external fonts. */

:root {
  --sw-bg: #0a0a0a;
  --sw-surface: #141414;
  --sw-line: rgba(255, 255, 255, .08);
  --sw-line-strong: rgba(255, 255, 255, .16);
  --sw-text: #f5f5f5;
  --sw-muted: #9a9aa1;
  --sw-faint: #66666d;
  --sw-soft: #d6d6da;
  --sw-strong: #ffffff;
  --sw-tint: rgba(255, 255, 255, .06);
  --sw-tint-strong: rgba(255, 255, 255, .1);
  --sw-frame: rgba(19, 19, 21, .7);
  --sw-header-bg: rgba(10, 10, 10, .78);
  --sw-header-solid: rgba(10, 10, 10, .9);
  /* Amber as a fill (buttons) and amber as text, which needs to be darker on white. */
  --sw-amber: #ffa200;
  --sw-amber-ink: #ffa200;
  /* Amber for big headline words: bright on dark, a deeper amber on light so
   * it keeps enough contrast at headline size. */
  --sw-amber-display: #ffa200;
  --sw-spot: rgba(255, 162, 0, .1);
  --sw-sheen: #ffe2a3;
  --sw-on-amber: #1a0f00;
  /* Brand type (identity sheet): Exo 2 for display, Inter for reading. Both
   * self-hosted from /fonts (SIL OFL 1.1); the CSP allows no font CDNs. */
  --sw-font: "Inter", -apple-system, ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --sw-display: "Exo 2", "Inter", -apple-system, system-ui, sans-serif;
  --sw-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --sw-gutter: clamp(20px, 4vw, 40px);
  --sw-section: clamp(64px, 7vw, 104px);
  --sw-ease: cubic-bezier(.2, .8, .2, 1);
}

:root[data-theme="light"] {
  --sw-bg: #fafaf9;
  --sw-surface: #ffffff;
  --sw-line: rgba(0, 0, 0, .08);
  --sw-line-strong: rgba(0, 0, 0, .14);
  --sw-text: #141416;
  --sw-muted: #5f5f66;
  --sw-faint: #8e8e95;
  --sw-soft: #2e2e33;
  --sw-strong: #000000;
  --sw-tint: rgba(0, 0, 0, .05);
  --sw-tint-strong: rgba(0, 0, 0, .08);
  --sw-frame: rgba(255, 255, 255, .7);
  --sw-header-bg: rgba(250, 250, 249, .82);
  --sw-header-solid: rgba(255, 255, 255, .92);
  --sw-amber-ink: #a35a00;
  --sw-amber-display: #d97706;
  --sw-spot: rgba(217, 119, 6, .08);
  --sw-sheen: #fbbf24;
}

/* ---------- page ---------- */

/* Marketing type, scoped so the console (same index.html) keeps style.css's. */
.sw-head, .sw-home, .sw-footer { color: var(--sw-text); font-family: var(--sw-font); font-size: 17px; line-height: 1.55; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
/* :where() keeps the resets at zero specificity, so every class rule wins. */
:where(.sw-home, .sw-footer, .sw-head) :where(h1, h2, h3, p, ul, ol) { margin: 0; }
:where(.sw-home, .sw-footer) :where(ul, ol) { padding: 0; list-style: none; }

/* The marketing views follow the light/dark toggle like the rest of the site. */
body.sw-page { overflow-x: clip; }
/* Homepage, sign-in and the console share one background: the plain page
 * colour with the blinking pixel field (field.js) behind it. The older
 * aurora backdrop stays only on the send/receive pages. */
body.sw-page { background: var(--sw-bg); }
html:has(body.sw-page) { background: var(--sw-bg); }
body.sw-page .backdrop { display: none; }
/* With the pixel field running, the page must be see-through to show it. */
body.sw-page.sw-field-on { background: transparent; }

.sw-wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--sw-gutter); }
.sw-center { text-align: center; }
.sw-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap; }

/* style.css's components (sign-in card, comparison tables) read theme
 * variables. In dark mode the marketing views swap in neutral greys and the
 * bright amber inks to match the page. */
:root:not([data-theme="light"]) body.sw-page:not([data-view="app"]) {
  color-scheme: dark;
  --panel: rgba(28, 28, 30, 0.72);
  --panel-solid: #1c1c1e;
  --panel-edge: rgba(255, 255, 255, 0.08);
  --panel-edge-hi: rgba(255, 255, 255, 0.16);
  --field: rgba(255, 255, 255, 0.04);
  --field-hi: rgba(255, 255, 255, 0.07);
  --wash: rgba(255, 255, 255, 0.03);
  --wash-hi: rgba(255, 255, 255, 0.07);
  --chip-a: #1d1d1f;
  --chip-b: #0b0b0c;
  --shadow: rgba(0, 0, 0, 0.8);
  --text: #f2f2f3;
  --muted: #9a9aa1;
  --faint: #66666d;
  --accent-ink: #ffa200;
  --ink-1: #ffa200;
  --ink-2: #ff8a1f;
  --ink-3: #f2600c;
  /* Re-declared here: a gradient built from the inks resolves where it is
   * declared (the root), so it would keep the light theme's darker inks. */
  --signal-ink: linear-gradient(100deg, var(--ink-1) 0%, var(--ink-2) 50%, var(--ink-3) 100%);
  --cta: #ffa200;
  --on-cta: #1c1000;
  --danger: #ff6b7a;
  --danger-ink: #ffc2c8;
  color: var(--text);
}

/* Room under the fixed header for whatever sits in <main>. sw-page marks the
 * dark marketing pages; sw-app-page the send/receive pages, which keep their
 * light/dark themes and their own backdrop. */
body.sw-page main, body.sw-app-page main { padding-top: 104px; }
body.sw-page[data-view="home"] main { display: none; }

/* ---------- type and buttons ---------- */

.sw-eyebrow { color: var(--sw-amber-ink); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.sw-h1 { max-width: 14ch; margin: 14px auto 0; font-size: clamp(44px, 6.4vw, 84px); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; }
.sw-accent { color: var(--sw-amber-display); }
/* The hero headline: two lines of equal width. The shorter second line is set
 * larger (by the ratio of the two lines' widths) so both end at the same edge. */
.sw-h1:has(.sw-h1-line) { max-width: none; font-size: clamp(31px, 5.6vw, 80px); }
.sw-h1-line { display: block; white-space: nowrap; }
.sw-h1-wide { font-size: 1.42em; }
/* pixel-out.js: "Leave No Trace." bursting into pixels at the end of the hero. */
.sw-pixel-out { position: fixed; inset: 0; z-index: 50; width: 100%; height: 100%; pointer-events: none; }
.sw-h2 { max-width: 20ch; font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.sw-center .sw-h2, .sw-h2.sw-center { margin-inline: auto; }
.sw-lede { max-width: 52ch; margin-top: 16px; color: var(--sw-muted); font-size: clamp(17px, 1.4vw, 19px); }
.sw-center .sw-lede { margin-inline: auto; }

.sw-btn { display: inline-flex; align-items: center; min-height: 48px; padding-inline: 24px; border-radius: 10px; background: var(--sw-amber); color: var(--sw-on-amber); font-size: 16px; font-weight: 600; text-decoration: none; transition: opacity .2s; }
.sw-btn:hover { opacity: .88; }
.sw-link { color: var(--sw-text); font-size: 16px; font-weight: 500; text-decoration: none; }
.sw-link::after { content: " →"; color: var(--sw-amber-ink); }
.sw-link:hover { color: var(--sw-strong); text-decoration: underline; text-underline-offset: 4px; }
.sw-link { display: inline-block; margin-top: 24px; }
:is(.sw-btn, .sw-link, .sw-item, .sw-signin, .sw-island-cta, .sw-brand, .sw-footer-link):focus-visible { outline: 2px solid var(--sw-amber); outline-offset: 3px; border-radius: 6px; }

/* ---------- hero ---------- */

.sw-hero { position: relative; padding: 168px var(--sw-gutter) 0; text-align: center; }
.sw-hero-sub { max-width: 40ch; margin: 22px auto 0; color: var(--sw-muted); font-size: clamp(18px, 1.6vw, 21px); }
.sw-hero-ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 34px; }

/* ---------- hero film (film.js) ----------
 * A full-screen 3D film plays behind captions, then the headline rises over
 * its last frame. theme.js marks the page sw-walk-pending before first paint
 * so the headline never flashes before the film takes over. */

.sw-hero.sw-film-hero { padding: 0; }
.sw-film-stage { position: relative; display: grid; place-items: center; min-height: 100svh; padding: 96px var(--sw-gutter) 72px; overflow: clip; isolation: isolate; }
/* Scroll plays the film (film.js adds this): a tall track with the film
 * pinned to the screen. Without the script the hero is one screen tall. */
/* About 2.5 screens of scroll per scene: time to read each caption. */
.sw-film-scroll { height: 1600svh; }
.sw-film-scroll .sw-film-stage { position: sticky; top: 0; height: 100svh; }

/* "Scroll to play", only at the very start. */
.sw-film-hint { position: absolute; left: 50%; bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; color: var(--sw-muted); font-size: 13px; font-weight: 500; translate: -50% 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.sw-film-hint span { width: 1px; height: 28px; background: linear-gradient(var(--sw-amber), transparent); animation: sw-hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes sw-hint { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.sw-film-start .sw-film-hint { opacity: 1; }
.sw-film-canvas { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; }
/* Darkens the edges and the bottom so captions and the headline stay legible. */
.sw-film-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, color-mix(in srgb, var(--sw-bg) 70%, transparent) 100%),
              linear-gradient(to top, var(--sw-bg) 0%, transparent 24%); }
.sw-film-done .sw-film-shade { background: radial-gradient(80% 70% at 50% 50%, color-mix(in srgb, var(--sw-bg) 62%, transparent) 0%, transparent 100%), linear-gradient(to top, var(--sw-bg) 0%, transparent 30%); transition: background 1s; }

/* Captions: large, lower left, like a film's title cards. */
/* Captions: centred low on the screen, like a film's subtitles. Each part
 * rises and sharpens in turn (film.js sets --sw-k, --sw-t, --sw-s from the
 * scroll) and fades before the next scene. */
.sw-film-ui { position: absolute; left: 50%; bottom: clamp(56px, 10vh, 104px); display: grid; gap: 18px; justify-items: center; width: min(760px, calc(100% - 2 * var(--sw-gutter))); text-align: center; translate: -50% 0; transition: opacity .8s ease, visibility .8s; pointer-events: none; }
.sw-film-hero:not(.sw-film-playing) .sw-film-ui { opacity: 0; visibility: hidden; }
.sw-film-caption { display: grid; justify-items: center; gap: 10px; margin: 0; }
.sw-film-caption > span { will-change: opacity, transform, filter; }
.sw-film-num { color: var(--sw-amber-ink); text-shadow: var(--sw-caption-shadow); font-family: var(--sw-display); font-size: 12px; font-weight: 600; letter-spacing: .32em; opacity: var(--sw-k, 0); transform: translateY(calc((1 - var(--sw-k, 0)) * 10px)); }
/* pre-line: a "\n" in a SHOTS title (film.js) sets where the line breaks. */
.sw-film-title { white-space: pre-line; color: var(--sw-text); font-size: clamp(32px, 4.4vw, 60px); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; text-shadow: var(--sw-caption-shadow); opacity: var(--sw-t, 0); transform: translateY(calc((1 - var(--sw-t, 0)) * 22px)); filter: blur(calc((1 - var(--sw-t, 0)) * 10px)); }
.sw-film-sub { max-width: 46ch; color: var(--sw-soft); font-size: clamp(16px, 1.4vw, 19px); text-shadow: var(--sw-caption-shadow); opacity: var(--sw-s, 0); transform: translateY(calc((1 - var(--sw-s, 0)) * 14px)); filter: blur(calc((1 - var(--sw-s, 0)) * 6px)); }
/* A black drop shadow keeps the captions readable over bright pixels: a tight
 * dark edge, then a wider soft shadow. */
.sw-film-ui { --sw-caption-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 3px 10px rgba(0, 0, 0, .9), 0 6px 30px rgba(0, 0, 0, .8); }
/* Dark letters on a light page need the opposite: a white halo, or the shadow smudges them. */
:root[data-theme="light"] .sw-film-ui { --sw-caption-shadow: 0 0 2px rgba(255, 255, 255, .95), 0 0 12px rgba(255, 255, 255, .9), 0 0 30px rgba(255, 255, 255, .85); }
.sw-film-bar { display: flex; gap: 6px; }
.sw-film-bar i { width: 32px; height: 3px; border-radius: 2px; background: var(--sw-line-strong); transition: background .4s; }
.sw-film-bar i.sw-on { background: var(--sw-amber); }

/* Text buttons: Skip (while playing) and Watch the film (after). */
:is(.sw-film-skip, .sw-film-replay) { width: auto; margin: 0; padding: 8px 14px; border: 1px solid var(--sw-line-strong); border-radius: 999px; background: var(--sw-header-bg); box-shadow: none; color: var(--sw-muted); font: inherit; font-size: 14px; font-weight: 500; overflow: visible; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
:is(.sw-film-skip, .sw-film-replay)::after { display: none; }
:is(.sw-film-skip, .sw-film-replay):hover { transform: none; box-shadow: none; color: var(--sw-text); }
:is(.sw-film-skip, .sw-film-replay):focus-visible { outline: 2px solid var(--sw-amber); outline-offset: 2px; }
.sw-film-skip { position: absolute; right: var(--sw-gutter); bottom: clamp(36px, 8vh, 84px); transition: opacity .6s, visibility .6s; }
.sw-film-hero:not(.sw-film-playing) .sw-film-skip { opacity: 0; visibility: hidden; }
.sw-film-replay { display: none; }
.sw-film-ready .sw-film-replay { display: inline-flex; }

/* The headline waits while the film plays. */
.sw-film-hero .sw-hero-copy { position: relative; transition: opacity .6s ease, visibility .6s; }
:is(.sw-film-playing, .sw-walk-pending .sw-film-hero) .sw-hero-copy { opacity: 0; visibility: hidden; pointer-events: none; transition: none; }
/* If film.js never loads, the headline still appears after a moment. */
.sw-walk-pending .sw-film-hero:not(.sw-film-ready) .sw-hero-copy { animation: sw-failsafe 0s linear 3s forwards; }
@keyframes sw-failsafe { to { opacity: 1; visibility: visible; pointer-events: auto; } }

@media (max-width: 767px) {
  .sw-film-ui { bottom: 96px; }
  .sw-film-skip { top: 84px; bottom: auto; }
  .sw-film-num { font-size: 11px; letter-spacing: .24em; }
}



/* ---------- sections ---------- */

.sw-section { padding-top: var(--sw-section); scroll-margin-top: 80px; }
.sw-section .sw-eyebrow { margin-bottom: 12px; }

.sw-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); max-width: 920px; margin: 56px auto 0; }
.sw-compare-title { padding-bottom: 14px; font-size: 15px; font-weight: 600; color: var(--sw-muted); }
.sw-compare-row { display: flex; align-items: baseline; gap: 14px; padding-block: 16px; border-top: 1px solid var(--sw-line); }
.sw-compare-x { flex: none; width: 16px; color: var(--sw-faint); }
.sw-compare-check { flex: none; width: 16px; color: var(--sw-amber-ink); font-weight: 600; }


/* Sign-up line. */
.sw-form { display: flex; gap: 8px; width: min(460px, 100%); margin: 32px auto 0; }
.sw-form input.sw-form-input { flex: 1; width: auto; min-width: 0; min-height: 48px; margin: 0; padding: 0 16px; border: 1px solid var(--sw-line-strong); border-radius: 10px; background: transparent; color: var(--sw-text); font: inherit; font-size: 16px; box-shadow: none; }
.sw-form input.sw-form-input:focus { border-color: var(--sw-amber); background: transparent; box-shadow: none; }
.sw-form button.sw-form-button { flex: none; width: auto; min-height: 48px; margin: 0; padding-inline: 22px; border: 0; border-radius: 10px; background: var(--sw-amber); color: var(--sw-on-amber); font: inherit; font-size: 16px; font-weight: 600; box-shadow: none; overflow: visible; }
.sw-form button.sw-form-button::after { display: none; }
.sw-form button.sw-form-button:hover { transform: none; opacity: .88; box-shadow: none; }

/* ---------- footer ---------- */

.sw-footer { margin-top: var(--sw-section); padding-block: 48px 32px; border-top: 1px solid var(--sw-line); color: var(--sw-muted); font-size: 14px; }
.sw-footer-top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.sw-footer-head { margin-bottom: 12px; color: var(--sw-text); font-weight: 600; }
.sw-footer-link { display: block; margin-bottom: 9px; color: var(--sw-muted); text-decoration: none; }
.sw-footer-link:hover { color: var(--sw-text); }
.sw-footnote { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--sw-line); color: var(--sw-faint); font-size: 12px; }

/* ---------- header ---------- */

.sw-head { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.sw-head-scrolled { border-bottom-color: var(--sw-line); background: var(--sw-header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.sw-island { display: flex; align-items: center; gap: 10px; width: min(1120px, 100%); min-height: 64px; margin-inline: auto; padding-inline: var(--sw-gutter); }
.sw-brand { display: inline-flex; flex: none; align-items: center; gap: 9px; color: var(--sw-text); font-size: 17px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
.sw-brand svg { width: 24px; height: 24px; color: var(--sw-amber-ink); }
.sw-items { position: relative; display: flex; flex: 1; align-items: center; justify-content: center; gap: 2px; }
.sw-highlight { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 8px; background: var(--sw-tint); opacity: 0; pointer-events: none; transition: transform .35s var(--sw-ease), width .35s var(--sw-ease), opacity .2s; }
.sw-item { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding-inline: 13px; color: var(--sw-muted); font-size: 14px; text-decoration: none; transition: color .2s; }
.sw-item:hover, .sw-item-current { color: var(--sw-text); }
.sw-actions { display: flex; flex: none; align-items: center; gap: 6px; }
.sw-signin { padding: 8px 12px; color: var(--sw-text); font-size: 14px; text-decoration: none; }
.sw-signin:hover { text-decoration: underline; text-underline-offset: 4px; }
.sw-island-cta { display: inline-flex; align-items: center; min-height: 36px; padding-inline: 14px; border-radius: 8px; background: var(--sw-amber); color: var(--sw-on-amber); font-size: 14px; font-weight: 600; text-decoration: none; }
.sw-island-cta:hover { opacity: .88; }

.sw-island .theme-toggle { flex: none; width: 36px; height: 36px; margin: 0; border: 1px solid var(--sw-line-strong); border-radius: 8px; background: transparent; color: var(--sw-text); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.sw-island .theme-toggle svg { width: 16px; height: 16px; }

/* Pages without the hero (console, send/receive) get a solid header bar. */
:is(.sw-head-solid, body[data-view="app"] .sw-head) { border-bottom-color: var(--sw-line); background: var(--sw-header-solid); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* Phones and tablets: a full-screen menu behind a two-line button. */
.sw-burger { position: relative; display: none; flex: none; width: 40px; height: 40px; margin: 0; padding: 0; border: 1px solid var(--sw-line-strong); border-radius: 8px; background: transparent; box-shadow: none; overflow: visible; cursor: pointer; }
.sw-burger::after { display: none; }
.sw-burger:hover { transform: none; box-shadow: none; }
.sw-burger:focus-visible { outline: 2px solid var(--sw-amber); outline-offset: 2px; }
.sw-burger-line { position: absolute; left: 11px; right: 11px; top: 19px; height: 1.5px; border-radius: 2px; background: var(--sw-text); transition: transform .3s var(--sw-ease); }
.sw-burger-top { transform: translateY(-4px); }
.sw-burger-bottom { transform: translateY(4px); }
.sw-sheet-open .sw-burger-top { transform: rotate(45deg); }
.sw-sheet-open .sw-burger-bottom { transform: rotate(-45deg); }
.sw-sheet { position: fixed; inset: 0; z-index: -1; display: none; flex-direction: column; justify-content: center; gap: 2px; padding: 96px 28px 30px; background: var(--sw-bg); visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .25s, visibility .25s; }
.sw-sheet-open .sw-sheet { visibility: visible; opacity: 1; pointer-events: auto; }
.sw-sheet-link { display: block; padding-block: 10px; color: var(--sw-text); font-family: var(--sw-font); font-size: clamp(28px, 8vw, 38px); font-weight: 600; letter-spacing: -.03em; text-decoration: none; opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .45s var(--sw-ease); transition-delay: calc(var(--sw-order, 0) * 40ms); }
.sw-sheet-open .sw-sheet-link { opacity: 1; transform: none; }
.sw-sheet-cta { color: var(--sw-amber-ink); }

/* ---------- background pixels and motion ---------- */

.sw-field { position: fixed; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; pointer-events: none; }
/* Moving backgrounds need a way to stop them. */
.sw-motion { position: fixed; right: 14px; bottom: 14px; z-index: 55; min-height: 34px; margin: 0; padding: 0 12px; border: 1px solid var(--sw-line-strong); border-radius: 8px; background: var(--sw-header-bg); color: var(--sw-muted); font: inherit; font-size: 12px; font-weight: 500; box-shadow: none; overflow: visible; cursor: pointer; }
.sw-motion::after { display: none; }
.sw-motion:hover { transform: none; box-shadow: none; color: var(--sw-text); }
.sw-motion:focus-visible { outline: 2px solid var(--sw-amber); outline-offset: 2px; }

/* Gentle reveals (home.js adds .in). Reduced motion shows everything at once. */
[data-reveal] { opacity: 0; translate: 0 16px; transition: opacity .9s ease, translate 1s var(--sw-ease); }
[data-reveal].in { opacity: 1; translate: none; }
.sw-d1 { transition-delay: 80ms; }
.sw-d2 { transition-delay: 160ms; }
.sw-d3 { transition-delay: 240ms; }

/* ---------- responsive ---------- */

@media (max-width: 1023px) {
  .sw-items, .sw-island-cta { display: none; }
  .sw-actions { margin-left: auto; }
  .sw-burger { display: block; }
  .sw-sheet { display: flex; }
  .sw-footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sw-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .sw-hero { padding-top: 128px; }
  .sw-compare { grid-template-columns: minmax(0, 1fr); }
  .sw-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-footer { padding-bottom: 72px; }
}
@media (max-width: 479px) {
  .sw-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; translate: none; transition: none; }
  .sw-highlight, .sw-sheet, .sw-sheet-link, .sw-burger-line, .sw-head { transition: none; }
}

/* ---------- compare and pricing: style.css components, made quiet ---------- */

body.sw-page .page-hero { padding-top: 64px; }
body.sw-page .page-hero h1 { font-weight: 600; letter-spacing: -.04em; }
body.sw-page .page-hero h1 em { background: none; color: var(--sw-muted); }
body.sw-page .page-hero .eyebrow { padding: 0; border: 0; background: none; color: var(--sw-amber-ink); font-family: var(--sw-font); font-size: 14px; letter-spacing: 0; text-transform: none; }
body.sw-page .page-hero .eyebrow .tag { display: none; }
body.sw-page .band-head h2 { font-weight: 600; }
body.sw-page .band-head h2 em { background: none; color: var(--sw-muted); }
body.sw-page .band .kicker { font-size: 14px; font-weight: 500; }
body.sw-page .panel { border-color: var(--sw-line); background: var(--sw-surface); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; }
body.sw-page .panel::before { display: none; }
body.sw-page table.compare td.us { background: var(--sw-tint); }
body.sw-page .tier.featured { border-color: var(--sw-amber); box-shadow: none; }
body.sw-page .badge, body.sw-page a.button { background: var(--sw-amber); color: var(--sw-on-amber); box-shadow: none; }
body.sw-page a.button.ghost { background: transparent; color: var(--sw-text); border-color: var(--sw-line-strong); }

/* ======================================================================
 * Showpieces (home.js). Every effect has a still fallback under
 * reduced motion, and html.sw-paused (the "Pause motion" button) freezes it.
 * ====================================================================== */

/* Headline: each word sharpens out of a blur, then a sheen crosses the amber line. */
.sw-word { display: inline-block; }
.sw-h1.sw-words[data-reveal] { opacity: 1; translate: none; }
.sw-words .sw-word { opacity: 0; filter: blur(14px); transform: translateY(.28em); }
.sw-words.in .sw-word { animation: sw-word-in 1s var(--sw-ease) forwards; animation-delay: calc(100ms + var(--sw-i) * 90ms); }
@keyframes sw-word-in { to { opacity: 1; filter: none; transform: none; } }
.sw-words.in .sw-accent .sw-word {
  background: linear-gradient(100deg, var(--sw-amber-display) 42%, var(--sw-sheen) 50%, var(--sw-amber-display) 58%) 100% 0 / 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sw-word-in 1s var(--sw-ease) forwards, sw-sheen 1.6s ease-in-out forwards;
  animation-delay: calc(100ms + var(--sw-i) * 90ms), calc(1.3s + var(--sw-i) * 140ms);
}
@keyframes sw-sheen { to { background-position: 0 0; } }

/* A soft amber spotlight that follows the cursor across cards. */
.sw-spot { position: relative; }
.sw-spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(280px circle at var(--sw-spot-x, -999px) var(--sw-spot-y, -999px), var(--sw-spot), transparent 70%); opacity: 0; pointer-events: none; transition: opacity .35s; }
.sw-spot:hover::before { opacity: 1; }

/* "Pause motion" freezes every CSS animation on the page too. */
html.sw-paused *, html.sw-paused *::before, html.sw-paused *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
}
@media (max-width: 767px) {
}

/* ---------- screen mock-ups (request tabs) ---------- */

.sw-scr { grid-area: 1 / 1; overflow: hidden; border: 1px solid var(--sw-line-strong); border-radius: 14px; background: var(--sw-surface); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .5s ease, transform .7s var(--sw-ease); }

.sw-scr-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--sw-line); background: var(--sw-tint); font-size: 11.5px; }
.sw-scr-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--sw-line-strong); }
.sw-scr-bar span { flex: 1; margin-left: 8px; overflow: hidden; color: var(--sw-muted); font-family: var(--sw-mono); text-overflow: ellipsis; white-space: nowrap; }
.sw-scr-bar em { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--sw-spot); color: var(--sw-amber-ink); font-style: normal; font-weight: 600; }

.sw-scr-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-height: 252px; align-content: start; padding: 18px 20px 20px; font-size: 13px; }
.sw-scr-title { display: flex; align-items: center; gap: 8px; color: var(--sw-text); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.sw-scr-check { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sw-amber); color: var(--sw-on-amber); font-size: 11px; }
.sw-scr-text { color: var(--sw-muted); }
.sw-scr-ic { display: inline-grid; flex: none; width: 18px; color: var(--sw-amber-ink); }
.sw-scr-ic svg { width: 100%; height: auto; }
.sw-scr-drop { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px dashed var(--sw-line-strong); border-radius: 10px; }
.sw-scr-drop b { display: block; color: var(--sw-text); font-weight: 600; }
.sw-scr-drop small { color: var(--sw-muted); font-size: 11.5px; }
.sw-scr-label { color: var(--sw-muted); font-size: 11.5px; font-weight: 600; }
.sw-scr-field, .sw-scr-link { padding: 9px 11px; border: 1px solid var(--sw-line-strong); border-radius: 8px; color: var(--sw-text); }
.sw-scr-btn { padding: 10px; border-radius: 8px; background: var(--sw-amber); color: var(--sw-on-amber); font-weight: 600; text-align: center; }
.sw-scr-progress { height: 5px; overflow: hidden; border-radius: 999px; background: var(--sw-tint-strong); }
.sw-scr-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--sw-amber); transition: width 1.9s cubic-bezier(.4, 0, .2, 1) .4s; }
.sw-scr-status { color: var(--sw-muted); font-family: var(--sw-mono); font-size: 11.5px; }
.sw-scr-status b { color: var(--sw-text); }
.sw-scr-note { display: flex; align-items: center; gap: 8px; color: var(--sw-amber-ink); font-size: 12px; }
.sw-scr-linkrow { display: flex; gap: 8px; }
.sw-scr-link { flex: 1; min-width: 0; overflow: hidden; font-family: var(--sw-mono); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.sw-scr-link em { padding: 1px 3px; border-radius: 4px; background: var(--sw-spot); color: var(--sw-amber-ink); font-style: normal; }
.sw-scr-copy { flex: none; padding: 9px 12px; border-radius: 8px; background: var(--sw-amber); color: var(--sw-on-amber); font-weight: 600; }

/* The code types itself in, one digit at a time. */
.sw-scr-code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sw-scr-code span { display: grid; place-items: center; height: 40px; border: 1px solid var(--sw-line-strong); border-radius: 8px; color: transparent; font-family: var(--sw-mono); font-size: 18px; font-weight: 600; transition: color .2s ease, border-color .2s ease; }

.sw-scr-row { display: flex; justify-content: space-between; gap: 10px; padding-block: 10px; border-top: 1px solid var(--sw-line); color: var(--sw-text); }
.sw-scr-row span { color: var(--sw-muted); }
.sw-scr-row .sw-scr-gone { color: var(--sw-amber-ink); font-weight: 600; }


/* ======================================================================
 * Product-page storytelling (showcase.js): pricing bar, numbers that
 * light up, a sideways gallery, and tabs that swap a screen.
 * ====================================================================== */

/* style.css styles every <button> for the console; reset ours. */
:is(.sw-gal-btn, .sw-tab) { width: auto; margin: 0; box-shadow: none; overflow: visible; font: inherit; cursor: pointer; }
:is(.sw-gal-btn, .sw-tab)::after { display: none; }
:is(.sw-gal-btn, .sw-tab):hover { transform: none; box-shadow: none; }
:is(.sw-gal-btn, .sw-tab):focus-visible { outline: 2px solid var(--sw-amber); outline-offset: 3px; }

/* Section heads: a small label, a very large two-line headline, a quiet lede. */
.sw-h2-xl { font-size: clamp(40px, 6vw, 80px); font-weight: 600; letter-spacing: -.045em; line-height: 1.03; }
.sw-muted-line { color: var(--sw-muted); }
.sw-sechead { max-width: 900px; margin-bottom: clamp(40px, 5vw, 64px); }
.sw-sechead.sw-center { margin-inline: auto; }
.sw-sechead .sw-eyebrow { margin-bottom: 14px; font-size: 17px; font-weight: 600; }
.sw-sechead-lede { max-width: 46ch; margin-top: 20px; color: var(--sw-muted); font-size: clamp(17px, 1.6vw, 21px); }
.sw-head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }

/* Pricing bar under the hero. */
.sw-buybar { margin-top: 0; padding-block: 16px; border-block: 1px solid var(--sw-line); background: var(--sw-surface); }
.sw-buybar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--sw-muted); font-size: 15px; }
.sw-buybar-in b { color: var(--sw-text); }
.sw-btn-sm { min-height: 36px; padding-inline: 16px; border-radius: 999px; font-size: 14px; }





.sw-device { display: grid; text-align: left; }
.sw-device .sw-scr { grid-area: 1 / 1; opacity: 0; transform: translateY(8px) scale(.985); transition: opacity .45s ease, transform .6s var(--sw-ease); }
:is(.sw-device[data-step="r1"] .sw-scr-r1, .sw-device[data-step="r2"] .sw-scr-r2, .sw-device[data-step="r3"] .sw-scr-r3) { opacity: 1; transform: none; transition-delay: .1s; }
.sw-device[data-step="r2"] .sw-scr-r2 .sw-scr-progress span { width: 70%; }

/* ---------- numbers that light up ---------- */

.sw-num-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 5vw, 64px) 24px; max-width: 980px; margin: clamp(48px, 6vw, 80px) auto 0; }
.sw-num { --sw-lit: 0; display: grid; gap: 6px; opacity: calc(.16 + var(--sw-lit) * .84); transform: translateY(calc((1 - var(--sw-lit)) * 16px)); }
.sw-num small { min-height: 1.2em; color: var(--sw-muted); font-size: 15px; }
.sw-num b { font-size: clamp(40px, 5vw, 64px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.sw-num span { color: var(--sw-muted); font-size: 15px; }

/* ---------- sideways gallery ---------- */

.sw-gal-track { --sw-gal-pad: max(var(--sw-gutter), calc((100% - 1120px) / 2 + var(--sw-gutter))); display: flex; gap: 20px; padding: 8px var(--sw-gal-pad) 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--sw-gal-pad); scrollbar-width: none; }
.sw-gal-track::-webkit-scrollbar { display: none; }
.sw-gal-track:focus-visible { outline: 2px solid var(--sw-amber); outline-offset: -2px; }
.sw-gal-card { display: flex; flex: none; flex-direction: column; width: clamp(280px, 30vw, 380px); overflow: hidden; border: 1px solid var(--sw-line); border-radius: 24px; background: var(--sw-surface); scroll-snap-align: start; }
.sw-gal-text { padding: 22px 24px 26px; color: var(--sw-muted); font-size: 16px; line-height: 1.45; }
.sw-gal-text b { color: var(--sw-text); }
.sw-gv { display: grid; place-items: center; align-content: center; gap: 12px; height: 230px; border-bottom: 1px solid var(--sw-line); color: var(--sw-muted); font-size: 13px; }
.sw-gv-parts { grid-template-columns: repeat(8, 24px); gap: 8px; }
.sw-gv-parts i { width: 24px; height: 24px; border-radius: 5px; background: var(--sw-amber); }
.sw-gv-parts i.sw-gv-bad { background: transparent; box-shadow: inset 0 0 0 2px #e5484d; }
.sw-gv-resume div { width: 220px; height: 6px; overflow: hidden; border-radius: 999px; background: var(--sw-tint-strong); }
.sw-gv-resume span { display: block; width: 98%; height: 100%; background: var(--sw-amber); }
.sw-gv-resume small, .sw-gv-hold small { font-family: var(--sw-mono); }
.sw-gv-disk b { color: var(--sw-text); font-size: 56px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.sw-gal-nav { display: flex; justify-content: flex-end; gap: 12px; }
.sw-gal-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--sw-line); border-radius: 50%; background: var(--sw-surface); color: var(--sw-text); font-size: 22px; line-height: 1; }
.sw-gal-btn:disabled { opacity: .35; cursor: default; }

/* ---------- request tabs ---------- */

.sw-tabs-stage { max-width: 620px; margin: 0 auto; }
.sw-device-wide .sw-scr-body { min-height: 250px; }
.sw-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.sw-tab { padding: 8px 16px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--sw-muted); font-size: 15px; font-weight: 500; }
.sw-tab[aria-selected="true"] { border-color: var(--sw-line-strong); background: var(--sw-surface); color: var(--sw-text); }
.sw-tab-caption { max-width: 52ch; min-height: 3em; margin: 18px auto 0; color: var(--sw-muted); text-align: center; }

@media (max-width: 900px) {
  .sw-num-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-device .sw-scr-body { min-height: 0; }
}

/* ======================================================================
 * Brand layer: the SendWerk identity sheet (variation 01) across the site
 * and the console. The mark and italic wordmark, Exo 2 display type with
 * Inter for reading, the glowing amber horizon line, amber-edged graphite
 * panels and app-icon tiles. Palette: Amber #FFA200, Deep Black #0A0A0A,
 * Graphite #1A1A1A, Tech White #F5F5F5.
 * ====================================================================== */

@font-face { font-family: "Exo 2"; src: url("/fonts/exo-2-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("/fonts/exo-2-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* The horizon line from the brand sheet: bright at the centre, gone at the edges. */
  --sw-glow-line: linear-gradient(90deg, transparent 0%, rgba(255, 162, 0, .18) 16%, #ffbe4d 50%, rgba(255, 162, 0, .18) 84%, transparent 100%);
  --sw-glow-shadow: 0 0 16px 1px rgba(255, 130, 0, .55);
  --sw-cta: linear-gradient(180deg, #ffbb3d 0%, #ffa200 55%, #ff8a00 100%);
  --sw-cta-glow: 0 0 0 1px rgba(255, 190, 80, .55) inset, 0 10px 30px -10px rgba(255, 140, 0, .75);
  --sw-cta-glow-hover: 0 0 0 1px rgba(255, 205, 110, .75) inset, 0 14px 40px -8px rgba(255, 140, 0, .95);
  --sw-tile-edge: rgba(255, 162, 0, .45);
}
:root[data-theme="light"] {
  --sw-glow-line: linear-gradient(90deg, transparent 0%, rgba(217, 119, 6, .2) 16%, #e58a00 50%, rgba(217, 119, 6, .2) 84%, transparent 100%);
  --sw-glow-shadow: 0 0 10px rgba(229, 138, 0, .35);
  --sw-cta-glow: 0 0 0 1px rgba(200, 110, 0, .35) inset, 0 8px 22px -10px rgba(229, 120, 0, .55);
  --sw-cta-glow-hover: 0 0 0 1px rgba(200, 110, 0, .5) inset, 0 12px 30px -10px rgba(229, 120, 0, .75);
  --sw-tile-edge: rgba(217, 119, 6, .4);
}

body { font-family: var(--sw-font); }

/* ---------- mark and wordmark ---------- */

.sw-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sw-brand { gap: 10px; }

/* ---------- type ---------- */

:is(.sw-h1, .sw-h2, .sw-h2-xl, .sw-film-title, .sw-sheet-link, .sw-num b, .headline-sm),
:is(main, dialog) :is(h1, h2, h3) { font-family: var(--sw-display); letter-spacing: -.015em; }
:is(.sw-h1, .sw-h2-xl) { font-weight: 700; letter-spacing: -.025em; }
.sw-num b { font-weight: 700; letter-spacing: -.02em; }
/* Small labels read like the brand sheet's: spaced capitals in Exo 2. */
:is(.sw-eyebrow, .sw-footer-head, .sw-compare-title, .kicker, .sw-tag-label) { font-family: var(--sw-display); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.kicker { font-size: 10.5px; color: var(--sw-muted); }
.section-head .kicker { color: color-mix(in srgb, var(--sw-amber-ink) 70%, var(--sw-muted)); }

/* ---------- buttons ---------- */

:is(.sw-btn, .sw-island-cta, .sw-form button.sw-form-button) { background: var(--sw-cta); color: #1a0f00; font-family: var(--sw-display); font-weight: 700; letter-spacing: .02em; box-shadow: var(--sw-cta-glow); transition: box-shadow .25s, transform .25s var(--sw-ease), filter .25s; }
:is(.sw-btn, .sw-island-cta, .sw-form button.sw-form-button):hover { opacity: 1; filter: brightness(1.05); box-shadow: var(--sw-cta-glow-hover); transform: translateY(-1px); }
/* The console's primary buttons (style.css) get the same amber and glow. */
:is(main, dialog) button:not(.secondary, .link, .danger) { background: var(--sw-cta); color: #1a0f00; font-family: var(--sw-display); font-weight: 700; letter-spacing: .02em; box-shadow: var(--sw-cta-glow); }
:is(main, dialog) button:not(.secondary, .link, .danger):hover { box-shadow: var(--sw-cta-glow-hover); }

/* ---------- the glowing horizon line ---------- */

.sw-head::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; background: var(--sw-glow-line); box-shadow: var(--sw-glow-shadow); opacity: 0; transition: opacity .3s; pointer-events: none; }
:is(.sw-head-scrolled, .sw-head-solid, body[data-view="app"] .sw-head) { border-bottom-color: transparent; }
:is(.sw-head-scrolled, .sw-head-solid, body[data-view="app"] .sw-head)::after { opacity: .85; }
.sw-footer { position: relative; border-top-color: transparent; }
.sw-footer::before { content: ""; position: absolute; top: -1px; right: 0; left: 0; height: 1px; background: var(--sw-glow-line); box-shadow: var(--sw-glow-shadow); }

/* ---------- app-icon tiles and the core benefits ---------- */

.sw-tile { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--sw-tile-edge); border-radius: 18px; background: radial-gradient(120% 120% at 50% 0%, rgba(255, 162, 0, .12), transparent 60%), #0e0e0e; color: var(--sw-amber-ink); box-shadow: 0 0 22px -6px rgba(255, 140, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06); }
:root[data-theme="light"] .sw-tile { background: radial-gradient(120% 120% at 50% 0%, rgba(255, 162, 0, .14), transparent 60%), #ffffff; box-shadow: 0 6px 18px -8px rgba(229, 120, 0, .45); }
.sw-tile .sw-ic { width: 28px; height: 28px; }
.sw-pillars { padding-top: clamp(40px, 5vw, 64px); }
.sw-pillars-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: 880px; }
.sw-pillar { display: grid; justify-items: center; gap: 14px; color: var(--sw-text); font-family: var(--sw-display); font-size: 13px; font-weight: 600; letter-spacing: .16em; line-height: 1.35; text-align: center; text-transform: uppercase; }
@media (max-width: 600px) { .sw-pillars-in { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }

/* ---------- the console and the send/receive pages ---------- */

/* Graphite panels with the horizon line along the top edge. */
:is(main section, .panel)::before { left: 12%; right: 12%; background: var(--sw-glow-line); box-shadow: var(--sw-glow-shadow); }
:root:not([data-theme="light"]) :is(main section, .panel) { background: rgba(26, 26, 26, .82); border-color: rgba(255, 255, 255, .07); }
.section-head h2 { display: flex; align-items: center; gap: 10px; }
.section-head h2 .sw-ic { flex: none; width: 22px; height: 22px; color: var(--sw-amber-ink); filter: drop-shadow(0 0 6px rgba(255, 140, 0, .45)); }
:root[data-theme="light"] .section-head h2 .sw-ic { filter: none; }
/* The dropzone's icon becomes an app-icon tile too. */
.dropzone .drop-ic { border: 1px solid var(--sw-tile-edge); border-radius: 16px; background: radial-gradient(120% 120% at 50% 0%, rgba(255, 162, 0, .14), transparent 60%), #0e0e0e; box-shadow: 0 0 22px -6px rgba(255, 140, 0, .6); }
:root[data-theme="light"] .dropzone .drop-ic { background: #fff; box-shadow: 0 6px 18px -8px rgba(229, 120, 0, .45); }

/* The brand mark replaces the sign-in padlock and the old spinning emblem. */
.sw-auth-mark { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 18px; }
.sw-emblem { position: relative; display: grid; place-items: center; width: 132px; height: 132px; margin-bottom: 10px; }
.sw-emblem-ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 162, 0, .22), transparent 65%); animation: sw-breathe 4s ease-in-out infinite; }
@keyframes sw-breathe { 50% { transform: scale(1.12); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .sw-emblem-ring { animation: none; } }

/* The pricing bar under the hero sits between two horizon lines. */
.sw-buybar { position: relative; }
.sw-buybar::before, .sw-buybar::after { content: ""; position: absolute; right: 0; left: 0; height: 1px; background: var(--sw-glow-line); box-shadow: var(--sw-glow-shadow); opacity: .7; }
.sw-buybar::before { top: 0; }
.sw-buybar::after { bottom: 0; }

/* Compare and pricing use style.css's page hero; give its label the brand's spaced capitals too. */
body.sw-page .page-hero .eyebrow { font-family: var(--sw-display); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
/* The featured plan glows like an app-icon tile. */
body.sw-page .tier.featured { box-shadow: 0 0 0 1px var(--sw-tile-edge), 0 0 44px -12px rgba(255, 140, 0, .6); }
:root[data-theme="light"] body.sw-page .tier.featured { box-shadow: 0 0 0 1px var(--sw-tile-edge), 0 14px 36px -16px rgba(229, 120, 0, .45); }

/* ---------- self-destruct countdown and "Destruct now" (console) ---------- */

.sw-countdown { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 0; }
.sw-countdown-label { color: var(--sw-amber-ink); font-family: var(--sw-display); font-size: 13px; font-weight: 800; letter-spacing: .01em; }
/* HH:MM:SS.SS in red, blinking. Monospaced digits so the hundredths don't jitter. */
.sw-countdown-time { color: var(--danger); font-family: var(--sw-mono); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; text-shadow: 0 0 10px var(--danger-glow); animation: sw-blink 1s steps(2, jump-none) infinite; }
@keyframes sw-blink { 50% { opacity: .25; } }
.sw-countdown-ended .sw-countdown-label { color: var(--danger); }
/* The shred button sits right beside the time. */
.sw-countdown .sw-destruct { width: 32px; height: 32px; margin: 0; }
.sw-destruct { display: grid; flex: none; place-items: center; width: 38px; height: 38px; padding: 0 !important; }
.sw-destruct svg { width: 18px; height: 18px; color: var(--danger); transition: transform .2s; }
.sw-destruct:hover svg { transform: scale(1.12); }
.sw-destruct:hover { border-color: color-mix(in srgb, var(--danger) 55%, transparent) !important; box-shadow: 0 0 16px -4px var(--danger-glow) !important; }
/* "Destroy now": the row pixelates as it lights up amber (shatter.js grows
 * the blocks), then flies apart as pixelated tiles on a layer above the page. */
ul.transfers li.sw-shattering { filter: url(#sw-pixelate); border-color: var(--sw-amber); box-shadow: 0 0 30px -4px rgba(255, 140, 0, .8); transition: border-color .3s, box-shadow .3s; }
ul.transfers li.sw-shattered { visibility: hidden; overflow: hidden; }
.sw-shards { position: fixed; z-index: 70; pointer-events: none; filter: url(#sw-pixelate); }
.sw-shard { position: absolute; top: 0; left: 0; margin: 0; list-style: none; animation: none !important; border-color: var(--sw-amber) !important; background: color-mix(in srgb, var(--sw-amber) 22%, var(--panel-solid)) !important; }
/* The flying pixels glow like the brand's light. */
.sw-shards { filter: url(#sw-pixelate) drop-shadow(0 0 6px rgba(255, 140, 0, .7)); }
@media (prefers-reduced-motion: reduce) {
  .sw-countdown-time { animation: none; }
}

/* ---------- storage meter and add-ons ---------- */

.sw-usage-high progress::-webkit-progress-value { background: linear-gradient(90deg, #ffbb3d, #ff7a00); }
.sw-usage-high progress::-moz-progress-bar { background: linear-gradient(90deg, #ffbb3d, #ff7a00); }
.sw-usage-high #plan-held { color: var(--sw-amber-ink); font-weight: 600; }
.sw-add-storage { margin-top: 12px; }
.sw-storage-asked { margin-top: 8px; color: var(--sw-amber-ink); }

dialog.sw-dialog { width: min(440px, 92vw); padding: 28px; border: 1px solid var(--panel-edge); border-radius: 20px; background: var(--panel-solid); color: var(--text); text-align: center; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 162, 0, .08); }
dialog.sw-dialog::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog.sw-dialog h3 { margin: 14px 0 8px; font-size: 21px; }
dialog.sw-dialog .sw-tile { margin: 0 auto; }
dialog.sw-dialog .buttons { justify-content: center; margin-top: 18px; }
dialog.sw-dialog .buttons button { width: auto; min-width: 130px; margin-top: 0; }
.sw-tile-danger { border-color: color-mix(in srgb, var(--danger) 55%, transparent); color: var(--danger); box-shadow: 0 0 24px -6px var(--danger-glow); }
.sw-addons { display: grid; gap: 10px; margin-top: 16px; text-align: left; }
.sw-addon { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; border: 1px solid var(--panel-edge-hi); border-radius: 14px; background: var(--wash); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.sw-addon input { width: 18px; height: 18px; margin: 0; accent-color: var(--sw-amber); }
.sw-addon:has(input:checked) { border-color: var(--sw-tile-edge); box-shadow: 0 0 24px -10px rgba(255, 140, 0, .7); }
.sw-addon-size { color: var(--text); font-family: var(--sw-display); font-size: 17px; font-weight: 700; }
.sw-addon-price { color: var(--sw-amber-ink); font-family: var(--sw-display); font-weight: 700; }
.sw-addon-note { margin-top: 12px; font-size: 12.5px; }

/* Pricing: storage add-on tiles. */
.sw-addon-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 760px; margin: 28px auto 0; }
body.sw-page .sw-addon-tile { display: grid; justify-items: center; gap: 6px; padding: 26px 18px; text-align: center; }
.sw-addon-tile b { font-family: var(--sw-display); font-size: 26px; font-weight: 700; color: var(--sw-text); }
.sw-addon-tile span { color: var(--sw-amber-ink); font-family: var(--sw-display); font-size: 20px; font-weight: 700; }
.sw-addon-tile small { color: var(--sw-muted); font-size: 13px; font-weight: 500; }
body.sw-page .sw-addon-tile-pick { box-shadow: 0 0 0 1px var(--sw-tile-edge), 0 0 40px -14px rgba(255, 140, 0, .6); }
@media (max-width: 600px) { .sw-addon-tiles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- account icon and menu (header) ---------- */

.sw-account { position: relative; flex: none; }
.sw-avatar-btn { display: grid; width: 38px; height: 38px; margin: 0; padding: 2px; border: 0; border-radius: 50%; background: var(--sw-cta); box-shadow: 0 0 16px -4px rgba(255, 140, 0, .6); cursor: pointer; overflow: visible; }
.sw-avatar-btn::after { display: none; }
.sw-avatar-btn:hover { transform: none; box-shadow: 0 0 22px -2px rgba(255, 140, 0, .8); }
.sw-avatar-btn:focus-visible { outline: 2px solid var(--sw-amber); outline-offset: 3px; }
.sw-avatar { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #121212; color: var(--sw-amber); font-family: var(--sw-display); font-size: 15px; font-weight: 800; }
:root[data-theme="light"] .sw-avatar { background: #fff; color: var(--sw-amber-ink); }
.sw-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 80; width: 260px; padding: 8px; border: 1px solid var(--sw-line-strong); border-radius: 16px; background: var(--sw-header-solid); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.sw-menu::before { content: ""; position: absolute; top: -1px; right: 14%; left: 14%; height: 1px; background: var(--sw-glow-line); box-shadow: var(--sw-glow-shadow); }
.sw-menu-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; border-bottom: 1px solid var(--sw-line); margin-bottom: 6px; }
.sw-menu-head .sw-avatar { flex: none; width: 36px; height: 36px; border: 1.5px solid var(--sw-amber); }
.sw-menu-head div { min-width: 0; }
.sw-menu-head b { display: block; overflow: hidden; color: var(--sw-text); font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.sw-menu-head small { color: var(--sw-amber-ink); font-family: var(--sw-display); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sw-menu [role="menuitem"] { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; margin: 0; padding: 0 10px; border: 0; border-radius: 10px; background: none; box-shadow: none; color: var(--sw-text); font: inherit; font-size: 14px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; overflow: visible; }
.sw-menu [role="menuitem"]::after { display: none; }
.sw-menu [role="menuitem"]:hover, .sw-menu [role="menuitem"]:focus-visible { transform: none; background: var(--sw-tint); box-shadow: none; outline: none; }
.sw-menu [role="menuitem"] svg { flex: none; width: 18px; height: 18px; color: var(--sw-amber-ink); }
.sw-menu [data-account="signout"] svg { color: var(--sw-muted); }
.sw-menu hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--sw-line); }

/* A menu item jumps to part of the console, which glows for a moment. */
.sw-spotlit { animation: sw-spotlit 1.6s ease-out; }
@keyframes sw-spotlit { 15% { box-shadow: 0 0 0 1px var(--sw-amber), 0 0 40px -6px rgba(255, 140, 0, .8); } }

/* ---------- the console: a focused header and footer ---------- */
/* Signed in and working, the marketing links step aside: just the logo, the
 * theme toggle and the account icon up top, one slim line at the bottom. */

body[data-view="app"] :is(.sw-items, .sw-signin, .sw-island-cta, .sw-burger, .sw-sheet) { display: none; }
body[data-view="app"] .sw-actions { margin-left: auto; gap: 10px; }
.sw-footer-slim { display: none; }
body[data-view="app"] .sw-footer { margin-top: 56px; padding-block: 22px; }
body[data-view="app"] :is(.sw-footer-top, .sw-footnote) { display: none; }
body[data-view="app"] .sw-footer-slim { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0; color: var(--sw-faint); font-size: 13px; }
.sw-footer-slim a { color: var(--sw-muted); text-decoration: none; }
.sw-footer-slim a:hover { color: var(--sw-text); }
@media (max-width: 600px) {
  .sw-menu { width: min(280px, calc(100vw - 24px)); }
}
/* Room for the fixed "Pause motion" button at the bottom right. */
body[data-view="app"] .sw-footer-slim { padding-right: 130px; }
@media (max-width: 600px) { body[data-view="app"] .sw-footer-slim { padding-right: 0; padding-bottom: 44px; } }


/* ======================================================================
 * The approved BlackBag logo artwork (cut from the brand sheet, in
 * public/brand). It sits on black, so on dark pages it blends into the page;
 * on light pages it sits on its own black badge, as the sheet shows it.
 * ====================================================================== */

/* Transparent PNGs (scripts/logo-transparent.mjs): silver lettering for dark
 * pages, dark ink for light ones. No badge, no box. */
.sw-logo { display: block; width: auto; height: 44px; }
.sw-brand { gap: 0; }
.sw-logo-on-light { display: none; }
:root[data-theme="light"] .sw-logo-on-dark { display: none; }
:root[data-theme="light"] .sw-logo-on-light { display: block; }

/* The header carries the full logo (envelope, padlock, orbit and wordmark),
 * set lower than the bar and bigger than it, so it hangs over the header's
 * bottom edge. It tucks up smaller once the page scrolls. */
/* One size, scrolled or not (owner's choice: the smaller size). */
.sw-brand-hang { position: relative; align-self: stretch; width: 126px; }
.sw-logo-full { position: absolute; top: 4px; left: -8px; width: auto; height: 84px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
:root[data-theme="light"] .sw-logo-full { filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .18)); }

/* The header is black at the very top and fades through a gradient into
 * whatever is below (the film, on the homepage). */
.sw-head::before { content: ""; position: absolute; top: 0; right: 0; left: 0; z-index: -1; height: 150px; background: linear-gradient(to bottom, #000 0%, #000 40%, rgba(0, 0, 0, .65) 68%, transparent 100%); pointer-events: none; }
:root[data-theme="light"] .sw-head::before { background: linear-gradient(to bottom, var(--sw-bg) 0%, var(--sw-bg) 40%, color-mix(in srgb, var(--sw-bg) 65%, transparent) 68%, transparent 100%); }
.sw-footer-brand .sw-logo { height: 60px; }
.sw-footer-slim .sw-logo { height: 30px; margin-right: auto; }

/* App icon: sign-in, download and request pages. */
.sw-app-icon { display: block; width: 100%; height: auto; border-radius: 22%; }
.sw-auth-mark { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 18px; }
.sw-emblem { position: relative; display: grid; place-items: center; width: 132px; height: 132px; margin-bottom: 10px; }
.sw-emblem .sw-app-icon { position: relative; width: 112px; }

/* The hero: the film opens on the logo made of pixels (film.js); it sits again
 * above the headline the film ends on. Soft edges so it melts into the page on
 * dark; a black card on light. */
/* The blend sits on the outermost element that fades, or the fade would cut
 * the logo off from the film behind it and show its black background. */
/* The film's last frame: the full logo, transparent, still itself. logo-fx.js
 * draws parts of the artwork again on a canvas laid exactly over it, blended
 * with "screen", so those parts brighten in place (the pixel trail's squares,
 * the padlock, a passing sheen) without anything new on top. The logo fades
 * in gently as the film ends. */
.sw-hero-brand { position: relative; width: min(500px, 80vw); margin: 0 auto 14px; }
.sw-hero-logo { position: relative; display: block; width: 100%; height: auto; }
.sw-hero-brand .sw-logo-on-light { display: none; }
:root[data-theme="light"] .sw-hero-brand .sw-logo-on-dark { display: none; }
:root[data-theme="light"] .sw-hero-brand .sw-logo-on-light { display: block; }
.sw-fx { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; pointer-events: none; }
.sw-film-done .sw-hero-logo { animation: sw-logo-in 1.2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes sw-logo-in { from { opacity: 0; transform: scale(.985); filter: blur(6px); } }
@media (prefers-reduced-motion: reduce) {
  .sw-film-done .sw-hero-logo { animation: none; }
  .sw-fx { display: none; }
}
@media (max-width: 600px) {
  /* A smaller badge, so the menu button keeps its place on phones. */
  .sw-head .sw-logo { height: 34px; }
  .sw-brand-hang { width: 92px; }
  .sw-logo-full { top: 4px; left: -4px; height: 60px; }
}

/* ---------- sign-in and sign-up ----------
 * A screen of its own: no header or footer. The home link is the app icon.
 * Wide screens put the words on the left and the box on the right, both
 * centred in the window; narrow screens stack them. */
body[data-view="auth"] :is(.sw-head, .sw-footer) { display: none; }
body.sw-page[data-view="auth"] main { padding-top: 48px; }
@media (min-width: 900px) {
  body.sw-page[data-view="auth"] main { padding-block: 0; }
  .auth-page { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: clamp(48px, 7vw, 112px); align-items: center; max-width: 1040px; min-height: 100svh; padding-block: 48px; }
  .auth-head { margin: 0; text-align: left; }
  .auth-head .sw-auth-mark { margin: 0 0 24px; }
  .auth-head :is(.headline-sm, .tile-sub) { margin-left: 0; }
}

