:root {
  color-scheme: dark;
  /* Palette shared with the main Snappier site */
  --bg: #0b0907;
  --panel: #14100c;
  --panel-strong: #1a1410;
  --ink: #f5efe9;
  --muted: #b3a89d;
  --soft: #8c8177;
  --line: #2a231d;
  --cyan: #ff6a3d;
  --coral: #ff6a3d;
  --lime: #ff9b6a;
  --gold: #f6c45f;
  --focus: #ffffff;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-family: "Hanken Grotesk", "Helvetica Neue", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 106, 61, 0.12), transparent 320px),
    var(--bg);
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 9, 7, 0.9);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #0b0907 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 6.5 18 12 8 17.5Z' fill='%23FF6A3D'/%3E%3C/svg%3E") center / 70% no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  line-height: 1.08;
}

h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.3rem);
  line-height: 1.12;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.action-link,
.icon-button,
.dialog-close {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-weight: 700;
}

.action-link {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
}

.icon-button,
.dialog-close {
  width: 42px;
  cursor: pointer;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 56px) 72px;
}

.side-nav {
  position: sticky;
  top: 112px;
  align-self: start;
  display: grid;
  gap: 4px;
  max-height: calc(100vh - 140px);
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 16, 12, 0.82);
}

.side-nav-title {
  margin: 0;
  padding: 8px 10px;
  color: var(--soft);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.side-nav a {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 650;
}

.side-nav a:hover,
.side-nav a.is-active {
  background: rgba(255, 106, 61, 0.14);
  color: var(--ink);
}

.content-flow {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.intro-panel,
.section-block,
.walkthrough {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 16, 12, 0.9);
  box-shadow: var(--shadow);
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: 22px;
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
}

.intro-copy,
.walkthrough-copy,
.section-heading {
  min-width: 0;
}

.intro-copy p {
  max-width: 66ch;
}

.privacy-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: rgba(246, 196, 95, 0.1);
  color: var(--ink);
  line-height: 1.5;
}

.section-block {
  padding: clamp(18px, 3vw, 28px);
  scroll-margin-top: 112px;
}

.section-intro {
  max-width: 76ch;
  margin: 14px 0 0;
}

.step-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.step-list li {
  counter-increment: steps;
  position: relative;
  min-height: 58px;
  padding: 15px 18px 15px 60px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  color: var(--muted);
  line-height: 1.55;
}

.step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: #071015;
  font-weight: 900;
}

.step-list strong,
.use-list strong {
  color: var(--ink);
}

.walkthrough {
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) minmax(420px, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
  padding: clamp(18px, 3vw, 28px);
  scroll-margin-top: 112px;
}

.walkthrough-copy p {
  margin: 16px 0 0;
}

.use-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.use-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.use-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.67em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.image-frame {
  position: relative;
  container-type: inline-size;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #070605;
}

.image-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.image-frame figcaption {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.image-frame::after {
  content: "Open image";
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(5, 8, 14, 0.86);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.image-frame:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Screenshots captured before the current app layout; shown until recaptured. */
.image-frame.is-outdated::before {
  content: "Older screenshot";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(246, 196, 95, 0.92);
  color: #1a1305;
  font-size: 0.74rem;
  font-weight: 800;
  pointer-events: none;
}

.image-frame.is-outdated img {
  opacity: 0.82;
}

.figure-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.shortcut-grid .image-frame {
  min-width: 0;
}

.shortcut-grid .image-frame figcaption {
  min-height: 74px;
}

.settings-option-groups {
  display: grid;
  gap: 28px;
  margin-top: 24px;
}

.settings-option-group {
  display: grid;
  grid-template-columns: minmax(250px, 0.48fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.settings-option-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.settings-option-copy {
  min-width: 0;
}

.settings-option-copy p {
  margin: 10px 0 0;
}

.option-notes {
  display: grid;
  gap: 13px;
  margin: 18px 0 0;
}

.option-notes div {
  padding-left: 14px;
  border-left: 3px solid rgba(255, 106, 61, 0.52);
}

.option-notes div:nth-child(2n) {
  border-left-color: rgba(255, 155, 106, 0.55);
}

.option-notes dt {
  margin: 0 0 4px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
}

.option-notes dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.settings-option-media {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.settings-option-media.media-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-option-media.media-grid .image-frame:first-child:last-child,
.settings-option-media.media-grid .image-frame:nth-child(3):last-child {
  grid-column: 1 / -1;
}

.hotspot {
  position: absolute;
  left: var(--x);
  /* --y is a unitless percentage of the 16:9 image height, so captions below don't shift it. */
  top: calc(var(--y) * 0.5625cqw);
  transform: translate(-50%, -50%);
  max-width: min(180px, 42%);
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(5, 8, 14, 0.84);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.2;
  pointer-events: none;
}

.hotspot:nth-of-type(2n) {
  border-color: rgba(255, 155, 106, 0.58);
}

.hotspot:nth-of-type(3n) {
  border-color: rgba(166, 227, 106, 0.58);
}

.troubleshooting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.troubleshooting-grid > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
}

.troubleshooting-grid p {
  margin: 0;
}

.image-dialog {
  width: min(1120px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.image-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.image-dialog img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #070605;
}

.image-dialog p {
  margin: 0;
  padding: 14px 16px 18px;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(5, 8, 14, 0.9);
}

@media (max-width: 1100px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-height: none;
    padding: 8px;
  }

  .side-nav-title {
    display: none;
  }

  .side-nav a {
    flex: 0 0 auto;
  }

  .intro-panel,
  .walkthrough {
    grid-template-columns: 1fr;
  }

  .settings-option-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .intro-panel,
  .section-block,
  .walkthrough {
    padding: 16px;
  }

  .hotspot {
    display: none;
  }

  .troubleshooting-grid {
    grid-template-columns: 1fr;
  }

  .shortcut-grid {
    grid-template-columns: 1fr;
  }

  .settings-option-media.media-grid {
    grid-template-columns: 1fr;
  }

  .settings-option-media.media-grid .image-frame:nth-child(3):last-child {
    grid-column: auto;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .topbar,
  .side-nav,
  .hotspot,
  .image-frame::after,
  .dialog-close {
    display: none;
  }

  .page-shell,
  .intro-panel,
  .walkthrough,
  .shortcut-grid,
  .troubleshooting-grid {
    display: block;
  }

  .intro-panel,
  .section-block,
  .walkthrough {
    box-shadow: none;
    break-inside: avoid;
  }
}

/* iPhone guide: portrait screenshots */
.image-frame.phone {
  width: 100%;
  max-width: 300px;
  justify-self: center;
}

.image-frame.phone img {
  aspect-ratio: 660 / 1434;
}

.phone-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  align-items: start;
}

.phone-row .image-frame.phone {
  max-width: none;
}

.walkthrough.is-phone {
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 300px);
}

@media (max-width: 760px) {
  .walkthrough.is-phone {
    grid-template-columns: 1fr;
  }
}

/* iPad guide: portrait tablet screenshots */
.image-frame.tablet {
  width: 100%;
  max-width: 420px;
  justify-self: center;
}

.image-frame.tablet img {
  aspect-ratio: 774 / 1032;
}

.tablet-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  align-items: start;
}

.tablet-row .image-frame.tablet {
  max-width: none;
}

.walkthrough.is-tablet {
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 420px);
}

@media (max-width: 760px) {
  .walkthrough.is-tablet {
    grid-template-columns: 1fr;
  }
}

/* Merged-site touches */
h1, h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1; }

.brand-lockup { text-decoration: none; }

.step-list li::before { color: #0b0907; }
