/* Halo Employer Resources — tokens mirror halown.com/for-employers */
:root {
  --base: #fff9f2;
  --cream: #faf8f2;
  --white: #ffffff;
  --ink: #2a1f17;
  --grey: #8b8680;
  --terracotta: #c4836a;
  --terracotta-dark: #b0705a;
  --terracotta-soft: #f5ece7;
  --border: rgba(0, 0, 0, 0.06);
  --font-heading: "Hubot Sans Variable", Georgia, serif;
  --font-body: "Mona Sans Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 0.75rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-heading); margin: 0; }
p { margin: 0; }
a { color: inherit; }

.wrap { max-width: 1024px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 64px; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 249, 242, 0.85);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { height: 28px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { text-decoration: none; font-size: 15px; color: #4a3f37; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-pill {
  padding: 8px 16px; border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px; font-weight: 600; color: var(--ink);
}

/* Type */
.eyebrow {
  font-size: 0.875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--terracotta); margin-bottom: 12px;
}
h1 { font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
h2 { font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.lead { font-size: 1.125rem; line-height: 1.65; color: var(--grey); margin-top: 20px; }
.sub { font-size: 1.125rem; line-height: 1.65; color: var(--grey); margin: 20px auto 0; max-width: 42rem; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 28px; border-radius: 0.5rem; font-weight: 600;
  text-decoration: none; transition: background-color 0.15s, color 0.15s; white-space: nowrap;
  /* a <button> must match an <a> exactly: browsers otherwise impose their own
     font, size and border on form controls */
  font-family: inherit; font-size: 1rem; line-height: 1.5;
  border: 0; background: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-outline { border: 1.5px solid var(--terracotta); color: var(--terracotta); background: transparent; }
.btn-outline:hover { background: var(--terracotta-soft); }
.btn-light { background: #fff; color: var(--terracotta); border: 0; }
.btn-light:hover { background: var(--terracotta-soft); }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* Sections */
.hero { padding: 96px 0 88px; background: var(--base); }
.band { padding: 80px 0; border-top: 1px solid var(--border); }
.band-white { background: var(--white); }
.band-soft { background: var(--terracotta-soft); }
.band-terracotta { background: var(--terracotta); color: #fff; }
.band-terracotta .lead { color: rgba(255, 255, 255, 0.85); }
.section-head { text-align: center; margin-bottom: 48px; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.video-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 1rem; overflow: hidden;
  box-shadow: 0 1px 3px rgba(42, 31, 23, 0.05);
}
.band-white .video-card { background: var(--cream); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #2a1f17; }
.video-frame:has(.video-placeholder) { background: var(--terracotta-soft); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--terracotta); font-size: 0.875rem; font-weight: 600;
}
.play {
  width: 64px; height: 64px; border-radius: 50%; background: var(--terracotta);
  position: relative; opacity: 0.9;
}
.play::after {
  content: ""; position: absolute; left: 26px; top: 20px;
  border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.video-body { padding: 24px; }
.video-body p:not(.tag) { color: var(--grey); font-size: 0.95rem; line-height: 1.65; }
.tag {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--terracotta); margin-bottom: 6px;
}

/* Guides */
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.guide-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 1rem; overflow: hidden;
  box-shadow: 0 1px 3px rgba(42, 31, 23, 0.05);
}
.guide-cover {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  object-fit: cover; border-bottom: 1px solid var(--border); background: var(--cream);
}
.guide-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.guide-body p { color: var(--grey); font-size: 0.9rem; line-height: 1.6; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.btn-sm { padding: 9px 16px; font-size: 0.875rem; border-radius: 0.5rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 1rem; padding: 28px;
}
.step p { color: var(--grey); font-size: 0.95rem; line-height: 1.65; }
.num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--terracotta); color: #fff; font-size: 0.8rem; font-weight: 700;
  margin-bottom: 16px;
}

/* Footer */
.footer { background: var(--base); border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-logo { height: 24px; width: auto; }
.footer p { font-size: 0.8rem; color: var(--grey); }

@media (max-width: 1000px) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .nav { padding: 0 16px; height: 56px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-pill) { display: none; }
  .wrap { padding: 0 16px; }
  .hero { padding: 64px 0 56px; }
  .band { padding: 56px 0; }
  .video-grid, .steps { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-actions .btn { flex: 1; }
  .actions .btn { width: 100%; }
}

/* ---- Guide reading page ---- */
.guide-page { background: var(--cream); padding: 40px 0 88px; }
.reading { max-width: 760px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600; color: var(--terracotta);
  text-decoration: none; margin-bottom: 28px;
}
.back-link:hover { color: var(--terracotta-dark); text-decoration: underline; }
.guide-header { padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.guide-header h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.guide-header .lead { margin-top: 18px; }
.note { margin-top: 12px; font-size: 0.95rem; color: var(--grey); }
.guide-header-actions { margin-top: 28px; }

.reading h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.015em; }
.reading p { margin-top: 14px; line-height: 1.7; color: #4a3f37; }
.reading ul { margin: 14px 0 0; padding-left: 20px; color: #4a3f37; line-height: 1.7; }
.reading li + li { margin-top: 6px; }
.reading strong { font-weight: 600; color: var(--ink); }

.callout {
  margin-top: 40px; padding: 28px;
  background: var(--terracotta-soft); border-radius: 1rem;
}
.callout h2 { font-size: 1.15rem; }

.guide-steps { list-style: none; counter-reset: step; margin: 8px 0 0; padding: 0; }
.guide-step {
  counter-increment: step; position: relative;
  padding: 36px 0 0 60px; margin-top: 4px;
}
.guide-step + .guide-step { border-top: 1px solid var(--border); }
.guide-step::before {
  content: counter(step);
  position: absolute; left: 0; top: 34px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--terracotta); color: #fff;
  font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.guide-step h2 { margin-bottom: 2px; }
.guide-shot {
  display: block; width: 100%; height: auto; margin-top: 20px;
  border: 1px solid var(--border); border-radius: 0.75rem; background: var(--white);
}

.next-up {
  margin-top: 48px; padding: 28px;
  background: var(--white); border: 1px solid var(--border); border-radius: 1rem;
}
.guide-footer-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border);
}

@media (max-width: 760px) {
  .guide-page { padding: 24px 0 56px; }
  .guide-step { padding: 28px 0 0 0; }
  .guide-step::before { position: static; margin-bottom: 14px; }
  .guide-footer-actions .btn { width: 100%; }
}

.guide-cover-link { display: block; }
.guide-title-link { text-decoration: none; }
.guide-title-link:hover { color: var(--terracotta); }

/* ---- Guide screenshots ---- */
.shot { margin: 24px 0 0; }
.shot-frame {
  display: block; width: 100%; padding: 10px; cursor: zoom-in;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 0.9rem; position: relative; overflow: hidden;
  font: inherit; text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.shot-frame:hover { border-color: rgba(196, 131, 106, 0.45); box-shadow: 0 2px 10px rgba(42, 31, 23, 0.07); }
.shot-frame:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.shot-frame img {
  display: block; width: 100%; height: auto; max-height: 520px;
  object-fit: contain; object-position: top center;
  border-radius: 0.55rem; background: var(--cream);
}
.shot-zoom {
  position: absolute; right: 16px; bottom: 16px;
  background: rgba(45, 52, 54, 0.82); color: #fff;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 5px 10px; border-radius: 999px;
  opacity: 0; transition: opacity 0.15s;
}
.shot-frame:hover .shot-zoom, .shot-frame:focus-visible .shot-zoom { opacity: 1; }
.shot figcaption {
  margin-top: 10px; font-size: 0.85rem; line-height: 1.55;
  color: var(--grey); font-weight: 600;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(30, 24, 20, 0.88);
  display: flex; align-items: center; justify-content: center;
  padding: 32px 24px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1400px; max-height: 100%; display: flex; flex-direction: column; gap: 12px; }
.lightbox img {
  display: block; max-width: 100%; max-height: calc(100vh - 140px);
  object-fit: contain; border-radius: 0.6rem; background: #fff;
}
.lightbox figcaption { color: rgba(255, 255, 255, 0.85); font-size: 0.85rem; text-align: center; }
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: #fff;
  border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }

@media (max-width: 760px) {
  .shot-frame { padding: 6px; }
  .shot-frame img { max-height: 380px; }
  .shot-zoom { opacity: 1; font-size: 0.68rem; right: 12px; bottom: 12px; }
  .lightbox { padding: 16px 10px; }
}

/* ---- Portal guide: contents, sections, reference table ---- */
.toc {
  margin: 36px 0 8px; padding: 24px 28px;
  background: var(--white); border: 1px solid var(--border); border-radius: 1rem;
}
.toc h2 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey); }
.toc ol { margin: 14px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin: 0 0 8px; line-height: 1.5; break-inside: avoid; }
.toc a { color: var(--terracotta); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.portal-section { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--border); }
.portal-section > h2 { font-size: 1.6rem; letter-spacing: -0.02em; }
.portal-subsection { margin-top: 36px; }
.portal-subsection > h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }

.table-wrap { margin-top: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ref-table {
  width: 100%; border-collapse: collapse;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 1rem; overflow: hidden; font-size: 0.92rem;
}
.ref-table th, .ref-table td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.ref-table thead th {
  background: var(--terracotta-soft); color: var(--ink);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
}
.ref-table tbody tr:last-child td { border-bottom: 0; }
.ref-table td:first-child { color: #4a3f37; }
.ref-table a { color: var(--terracotta); text-decoration: none; }
.ref-table a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .toc { padding: 20px; }
  .toc ol { columns: 1; }
  .portal-section { margin-top: 32px; padding-top: 28px; }
  .ref-table { font-size: 0.86rem; }
  .ref-table th, .ref-table td { padding: 10px 12px; }
}

.print-only { display: none; }

.portal-subsection h4 {
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 700; color: var(--ink);
  margin: 28px 0 0;
}

/* ---- Arrangement guide: role callouts, checklist, next guides ---- */
.role-callout {
  margin-top: 18px !important; padding: 14px 18px;
  background: var(--terracotta-soft); border-radius: 0.75rem;
  border-left: 3px solid var(--terracotta);
  font-size: 0.93rem; line-height: 1.6; color: #4a3f37;
}
.role-label { font-weight: 700; color: var(--ink); }

.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.check-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 1rem; padding: 24px;
}
.check-card h3 { font-size: 1rem; margin-bottom: 14px; }
.check-list { list-style: none; margin: 0 !important; padding: 0 !important; }
.check-list li {
  position: relative; padding-left: 30px; margin-bottom: 10px;
  font-size: 0.92rem; line-height: 1.55; color: #4a3f37;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid var(--terracotta); background: transparent;
}

.next-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.next-guide {
  display: flex; flex-direction: column; gap: 5px;
  padding: 18px; background: var(--white);
  border: 1px solid var(--border); border-radius: 0.9rem;
  text-decoration: none; transition: border-color 0.15s;
}
.next-guide:not(.is-soon):hover { border-color: rgba(196, 131, 106, 0.5); }
.next-guide-title { font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.next-guide-note { font-size: 0.78rem; font-weight: 600; color: var(--terracotta); }
.next-guide.is-soon { opacity: 0.62; pointer-events: none; }

@media (max-width: 760px) {
  .check-grid, .next-guides { grid-template-columns: 1fr; }
}

/* ---- Tickable checklist items ---- */
.check-list li { padding-left: 0; margin-bottom: 4px; }
.check-list li::before { content: none; }
.check-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 7px 8px 7px 0; border-radius: 0.5rem;
  cursor: pointer; user-select: none;
  transition: background-color 0.12s;
}
.check-item:hover { background: rgba(196, 131, 106, 0.07); }
.check-box {
  appearance: none; -webkit-appearance: none;
  flex: none; width: 20px; height: 20px; margin: 1px 0 0;
  border: 1.5px solid var(--terracotta); border-radius: 5px;
  background: var(--white); cursor: pointer; position: relative;
  transition: background-color 0.12s, border-color 0.12s;
}
.check-box:hover { border-color: var(--terracotta-dark); }
.check-box:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.check-box::after {
  content: ""; position: absolute; left: 6px; top: 2px;
  width: 5px; height: 10px; border: solid #fff;
  border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
  transition: transform 0.12s ease-out;
}
.check-box:checked { background: var(--terracotta); border-color: var(--terracotta); }
.check-box:checked::after { transform: rotate(45deg) scale(1); }
.check-text { font-size: 0.92rem; line-height: 1.55; color: #4a3f37; }
.check-box:checked + .check-text { color: var(--grey); text-decoration: line-through; }

@media print {
  .check-item { padding: 2px 0; }
  .check-box { -webkit-appearance: none; appearance: none; }
}

/* ---- Demo page: player and chapters ---- */
.demo-player {
  margin-top: 32px; padding: 10px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 1rem; box-shadow: 0 1px 3px rgba(42, 31, 23, 0.05);
}
.demo-player video {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; border-radius: 0.6rem; background: #2a1f17;
}

.chapter-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.chapter {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 18px; font: inherit; text-align: left; cursor: pointer;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 0.9rem; transition: border-color 0.15s, background-color 0.15s;
}
.chapter:hover { border-color: rgba(196, 131, 106, 0.5); background: rgba(196, 131, 106, 0.05); }
.chapter:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.chapter.is-active { border-color: var(--terracotta); background: var(--terracotta-soft); }
.chapter-num {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--terracotta); color: #fff;
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700;
}
.chapter-title { flex: 1; font-weight: 600; color: var(--ink); font-size: 0.97rem; line-height: 1.4; }
.chapter-time {
  flex: none; font-variant-numeric: tabular-nums;
  font-size: 0.85rem; font-weight: 700; color: var(--terracotta);
}

/* Demo card on the resources page links through to its own page */
.video-link { display: block; position: relative; text-decoration: none; }
.video-link img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.video-link::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(42, 31, 23, 0.18); transition: background-color 0.15s;
}
.video-link:hover::after { background: rgba(42, 31, 23, 0.06); }
.video-link:focus-visible { outline: 2px solid var(--terracotta); outline-offset: -2px; }
.video-link .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 1; opacity: 0.95;
}
.watch-link { font-size: 0.9rem; font-weight: 600; color: var(--terracotta); text-decoration: none; }
.watch-link:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .demo-player { padding: 6px; }
  .chapter { padding: 13px 14px; gap: 11px; }
  .chapter-title { font-size: 0.92rem; }
}

/* ---- Caption toggle ---- */
.player-tools { display: flex; justify-content: flex-end; padding: 10px 4px 2px; }
.video-frame .player-tools { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(42,31,23,0.55); padding: 6px 10px; }
.cc-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; font: inherit; font-size: 0.85rem; font-weight: 600;
  color: var(--ink); background: var(--white);
  border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.cc-toggle:hover { border-color: rgba(196,131,106,0.55); }
.cc-toggle:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.cc-badge {
  font-family: var(--font-heading); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 2px 6px; border-radius: 4px; background: var(--terracotta-soft); color: var(--terracotta);
}
.cc-toggle[aria-pressed="true"] { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.cc-toggle[aria-pressed="true"] .cc-badge { background: rgba(255,255,255,0.22); color: #fff; }
.cc-state { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; }

/* ---- Grouped chapters ---- */
.chapter-group { margin-top: 26px; }
.chapter-group:first-of-type { margin-top: 18px; }
.chapter-group-title {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--grey); margin-bottom: 12px;
}

/* ---- Governance guide: subtitle, app panel, store badges ---- */
.guide-subtitle {
  margin-top: 10px; font-family: var(--font-heading);
  font-size: 1.05rem; font-weight: 700; color: var(--terracotta);
}
.app-panel {
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 28px; align-items: center; margin-top: 28px;
}
.app-shot { margin: 0; }
.app-shot .shot-frame img { max-height: none; }
.store-panel {
  padding: 26px; background: var(--white);
  border: 1px solid var(--border); border-radius: 1rem;
}
.store-intro { font-weight: 600; color: var(--ink); line-height: 1.6; margin: 0 0 20px !important; }
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store-badge { display: inline-flex; border-radius: 8px; }
.store-badge:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.store-badge img { display: block; width: auto; height: 42px; }
.plain-steps { margin: 14px 0 0; padding-left: 22px; color: #4a3f37; line-height: 1.7; }
.plain-steps li + li { margin-top: 6px; }

@media (max-width: 860px) {
  .app-panel { grid-template-columns: 1fr; gap: 20px; }
  .app-shot .shot-frame img { max-height: 520px; margin: 0 auto; width: auto; }
  .store-panel { padding: 20px; }
  .store-badge img { height: 38px; }
}

/* ---- Breadcrumbs, screenshot pairs and sequences ---- */
.crumbs { margin-bottom: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 0.82rem; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border); color: #cdc5ba; }
.crumbs a { color: var(--grey); text-decoration: none; }
.crumbs a:hover { color: var(--terracotta); text-decoration: underline; }
.crumbs li[aria-current] { color: var(--ink); font-weight: 600; }

.shot-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; align-items: start; }
.shot-pair .shot { margin: 0; }

.shot-sequence { margin: 24px 0 0; }
.seq-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  padding: 14px; background: var(--terracotta-soft); border-radius: 1rem;
}
.seq-grid .shot { margin: 0; }
.seq-grid .shot-frame { padding: 6px; }
.shot-sequence > figcaption {
  margin-top: 12px; font-size: 0.85rem; font-weight: 600; color: var(--grey); line-height: 1.55;
}

.shot-placeholder {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; border-radius: 0.55rem;
  background: var(--terracotta-soft); color: var(--terracotta);
  font-size: 0.82rem; font-weight: 600; text-align: center; padding: 12px;
}
.shot-frame.is-placeholder { cursor: default; }
.shot-frame.is-placeholder .shot-zoom { display: none; }

.support-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

@media (max-width: 760px) {
  .shot-pair, .seq-grid { grid-template-columns: 1fr; }
  .support-actions .btn { width: 100%; }
}

/* ---- Support section + query form ---- */
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }

.support-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.support-modal[hidden] { display: none; }
.support-backdrop { position: absolute; inset: 0; background: rgba(30,24,20,0.55); backdrop-filter: blur(2px); }
.support-dialog {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 48px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--base); border-radius: 1.1rem; padding: 32px;
  box-shadow: 0 16px 48px rgba(42,31,23,0.28);
}
.support-close {
  position: absolute; top: 14px; right: 16px; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: transparent; color: var(--grey);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.support-close:hover { background: rgba(0,0,0,0.05); color: var(--ink); }
.support-close:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }

.support-dialog h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
.support-intro { margin-top: 10px !important; color: var(--grey); line-height: 1.6; font-size: 0.95rem; }
.support-dialog form { margin-top: 22px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .req { color: var(--terracotta); }
.field .optional { font-weight: 500; color: var(--grey); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--white); border: 1px solid #e0d8cd; border-radius: 0.6rem;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(196,131,106,0.18);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #b3462f; }
.field-hint { margin-top: 6px; font-size: 0.76rem; color: var(--grey); }
.field-error { margin-top: 6px; font-size: 0.8rem; font-weight: 600; color: #b3462f; }

.privacy-note {
  margin-top: 4px; padding: 12px 14px; font-size: 0.82rem; line-height: 1.55;
  color: #6b5d52; background: var(--terracotta-soft); border-radius: 0.6rem;
}
.form-error {
  margin-top: 14px; padding: 12px 14px; font-size: 0.85rem; font-weight: 600; line-height: 1.5;
  color: #8f3a26; background: #fbeae5; border: 1px solid #f0cfc5; border-radius: 0.6rem;
}
.support-actions-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 22px; }

.success-mark {
  width: 52px; height: 52px; border-radius: 50%; margin-bottom: 18px;
  background: var(--terracotta); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
[data-step="success"] p { margin-top: 12px; color: var(--grey); line-height: 1.65; font-size: 0.95rem; }
.support-ref {
  display: flex; flex-direction: column; gap: 4px; margin-top: 18px !important;
  padding: 14px 16px; background: var(--white); border: 1px solid var(--border); border-radius: 0.7rem;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey);
}
.support-ref strong {
  font-family: var(--font-heading); font-size: 1.1rem; letter-spacing: 0.02em;
  text-transform: none; color: var(--ink);
}

@media (max-width: 620px) {
  .support-modal { padding: 0; }
  .support-dialog { max-width: none; max-height: 100vh; height: 100%; border-radius: 0; padding: 26px 20px 32px; }
  .support-actions-row { flex-direction: column-reverse; }
  .support-actions-row .btn { width: 100%; }
}
