/* Slicewise website (2026 redesign). No outside fonts, scripts or requests.
   Direction: "the page is a story map" — a calm blue-grey canvas with faint story-map columns, navy ink, the logo
   blue for actions, and the logo's yellow release line ("the slice") as the signature line across each section.
   Fonts: the system UI font (Segoe UI on Windows, the same as the video end card; SF on Apple; Roboto on Android). */

:root {
  --canvas: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --ink: #172b4d;
  --muted: #44546f;
  --soft: #5e6c84;
  --line: #d9e1ec;
  --brand: #1d4ed8;
  --brand-hover: #1e40af;
  --brand-ink: #ffffff;
  --brand-tint: #e3ebfd;
  --link: #1d4ed8;
  --slice: #fbbf24;
  --epic-green: #34d399;
  --epic-pink: #f472b6;
  --epic-blue: #60a5fa;
  --shadow: 0 1px 2px rgba(23, 43, 77, .06), 0 12px 32px -8px rgba(23, 43, 77, .18);
  --shadow-big: 0 2px 4px rgba(23, 43, 77, .06), 0 32px 64px -16px rgba(23, 43, 77, .28);
  --pattern: url("img/map-pattern-light.svg");
  --band: #172b4d;
  --band-ink: #e9eef6;
  --band-muted: #b6c3d6;
  --radius: 14px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "SF Pro Display", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0b1220;
    --surface: #111a2c;
    --surface-2: #16213a;
    --ink: #e6edf7;
    --muted: #a9b8cd;
    --soft: #8fa0b8;
    --line: #25324b;
    --brand: #2f5fe0;
    --brand-hover: #2552cc;
    --brand-tint: #1a2a52;
    --link: #8fb0ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -8px rgba(0, 0, 0, .55);
    --shadow-big: 0 2px 4px rgba(0, 0, 0, .3), 0 32px 64px -16px rgba(0, 0, 0, .7);
    --pattern: url("img/map-pattern-dark.svg");
    --band: #111a2c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 17px/1.65 var(--font); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 10; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 12px 28px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 21px/1 var(--font-display); letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--slice); text-decoration-thickness: 3px; text-underline-offset: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 12px;
  font: 700 16px/1.2 var(--font); text-decoration: none; border: 1px solid transparent; transition: background .15s, transform .15s; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; border-radius: 10px; }
.btn .play { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--pattern) 0 0 / 880px 520px repeat;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 18%, transparent 30%, #000 80%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 18%, transparent 30%, #000 80%); opacity: .9; }
.hero-text { text-align: center; max-width: 820px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--slice); }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-weight: 800; margin: 22px 0 18px; }
.hero h1 .accent { color: var(--brand); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 680px; margin: 0 auto 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero .fine { margin: 16px 0 0; font-size: 14px; color: var(--soft); }
/* the product picture, with the yellow "slice" (release line) running behind it across the whole page */
.shot-stage { position: relative; margin-top: 56px; padding-bottom: 72px; }
.shot-stage::before { content: ""; position: absolute; left: 0; right: 0; top: 46%; height: 6px; border-radius: 3px; background: var(--slice); z-index: -1; }
.shot { max-width: 1120px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-big); }
.shot img { width: 100%; }

/* ---------- sections ---------- */
section.block { padding: 88px 0; }
section.block.tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.kicker::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: var(--slice); }
.block h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; margin-bottom: 14px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .kicker { justify-content: center; }

/* how it works: three "story cards" with an epic bar on top */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 26px; box-shadow: var(--shadow); }
.steps li::before { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 6px; border-radius: 0 0 6px 6px; background: var(--slice); }
.steps li:nth-child(2)::before { background: var(--epic-green); }
.steps li:nth-child(3)::before { background: var(--epic-pink); }
.steps .num { counter-increment: step; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-tint);
  color: var(--brand); font: 800 18px/1 var(--font-display); margin-bottom: 16px; }
.steps .num::before { content: counter(step); }
.steps h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

/* video */
.player { max-width: 960px; margin: 0 auto; }
.player video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #0b1220; border: 1px solid var(--line); box-shadow: var(--shadow-big); }
.player-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 14px; color: var(--soft); font-size: 15px; }
.player-meta a { font-weight: 600; }
.player details { margin-top: 10px; }

/* features: three picture rows, then a grid of small points */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 28px 0; }
.feature + .feature { border-top: 1px dashed var(--line); }
.feature.flip .feature-pic { order: 2; }
.feature-pic { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.feature-pic img { width: 100%; }
.feature h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: 1.08rem; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; margin: 48px 0 0; padding: 0; }
.points li { background: var(--canvas); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.points > li > strong { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.points span { color: var(--muted); font-size: .97rem; }

/* privacy band */
.privacy-band { background: var(--band); color: var(--band-ink); border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
  position: relative; overflow: hidden; isolation: isolate; }
.privacy-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--slice); }
.privacy-band h2 { color: #ffffff; }
@media (prefers-color-scheme: dark) { .privacy-band { border: 1px solid var(--line); } }
.privacy-band .kicker { color: #9cc0ff; }
.privacy-band p { color: var(--band-muted); font-size: 1.08rem; }
.privacy-band a { color: #ffffff; font-weight: 700; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: center; }
.checks li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 14px 18px; color: var(--band-ink); }
.checks li::before { content: ""; flex: none; width: 20px; height: 11px; margin-top: 6px; border-left: 3px solid var(--slice); border-bottom: 3px solid var(--slice); transform: rotate(-45deg); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* closing call to action */
.cta { text-align: center; padding: 72px 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pattern) center / 880px 520px repeat; opacity: .55;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%); mask-image: linear-gradient(to bottom, #000, transparent 75%); }
.cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }

/* ---------- inner pages ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--pattern) 0 0 / 880px 520px repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 25%, #000 85%); mask-image: linear-gradient(to right, transparent 25%, #000 85%); opacity: .8; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 6px; background: var(--slice); z-index: -1; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; margin-bottom: 14px; max-width: 760px; }
.page-hero .lead { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--muted); max-width: 700px; margin: 0; }
.page-hero .updated { margin: 14px 0 0; color: var(--soft); font-size: 15px; }

.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding-top: 56px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 15px; }
.toc h2 { font: 800 13px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin: 0 0 12px; }
.toc ul { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 8px; }
.toc a { color: var(--muted); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--brand); }

.prose { max-width: 760px; padding-top: 56px; }
.doc-layout .prose { padding-top: 0; }
.prose > h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800; margin: 56px 0 14px; scroll-margin-top: 96px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; font-weight: 800; margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); }
.prose code, .prose kbd { font: 600 .9em/1 ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; background: var(--surface-2);
  border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; }
.prose kbd { border-bottom-width: 2px; }
.prose figure { margin: 26px 0 30px; }
.prose figure img { width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.prose figcaption { margin-top: 10px; color: var(--soft); font-size: 15px; }
.prose .faq { max-width: none; }
.callout { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px 22px 28px;
  box-shadow: var(--shadow); margin: 0 0 1.2em; overflow: hidden; }
.callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--slice); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0 0 1.2em; padding: 0; list-style: none; }
.cards-2 li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.cards-2 > li > strong { display: block; margin-bottom: 4px; }
.cards-2 span { color: var(--muted); }
.mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }

.fine-print { color: var(--soft); font-size: 14px; margin: 14px 0 0; }

/* docs videos */
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 40px 0 8px; list-style: none; }
.video-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.video-grid video { width: 100%; aspect-ratio: 16 / 9; background: #0b1220; }
.video-grid .info { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.video-grid h3 { font-size: 1.12rem; font-weight: 800; margin: 0; }
.video-grid .meta { display: flex; justify-content: space-between; gap: 12px; color: var(--soft); font-size: 14px; }
.video-grid .meta a { font-weight: 600; }
.video-grid details { margin-top: 6px; font-size: 15px; }
.video-grid summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.video-grid details p { color: var(--muted); margin: 8px 0 0; }

/* ---------- footer ---------- */
.site-footer { margin-top: 88px; border-top: 1px solid var(--line); background: var(--surface); padding: 48px 0 40px; font-size: 15px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font: 800 14px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.footer-about { margin: 14px 0 0; }
.site-footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); }
.site-footer .legal p { margin: 0 0 4px; }

/* ---------- phone and tablet ---------- */
@media (max-width: 900px) {
  .steps, .points { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 22px; }
  .feature.flip .feature-pic { order: 0; }
  .privacy-band { grid-template-columns: 1fr; padding: 36px 24px; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .doc-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .toc { position: static; }
  .toc ul { display: flex; flex-wrap: wrap; gap: 6px 16px; border-left: 0; padding: 0; }
  .video-grid { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-nav { margin-left: 0; width: 100%; }
  .site-nav ul { gap: 2px 13px; }
  .site-nav a { font-size: 14px; }
  .header-cta { display: none; }
  .hero { padding-top: 44px; }
  .shot-stage { margin-top: 36px; padding-bottom: 48px; }
  section.block { padding: 60px 0; }
  .actions .btn { width: 100%; }
  .cta { padding: 48px 18px; }
  .page-hero { padding: 40px 0 32px; }
  .prose { padding-top: 36px; }
  .callout { padding: 18px 18px 18px 24px; }
}
