:root {
  --sb-accent: #FFC233;
  --sb-accent-2: #F5A623;
  --sb-ground: #16130E;
  --sb-ground-2: #1E1810;
  --sb-surface: #241D14;
  --sb-ink: #F4EEE0;
  --sb-muted: #9E9686;
  --sb-line: #332B20;
  /* Accent as TEXT. Equals the fill yellow on dark; dark gold on light (yellow is never text on light). */
  --sb-accent-ink: #FFC233;
  /* Warm the whole Bootstrap dark theme to the app's "warm signal in the dark". */
  --bs-body-bg: var(--sb-ground);
  --bs-body-color: var(--sb-ink);
  --bs-border-color: var(--sb-line);
  --bs-secondary-color: var(--sb-muted);
  --bs-tertiary-bg: var(--sb-surface);
  --bs-emphasis-color: var(--sb-ink);
}
/* Light mode: applied when the visitor's system is set to light (header.php inline
   script adds html.theme-light), or when a page locks $bodyTheme = 'light'.
   --sb-accent stays the S yellow as a FILL; text accents use --sb-accent-ink. Overriding the --sb-* custom properties
   here is sufficient: every --bs-* variable above is declared as var(--sb-*),
   so it re-resolves against these values for every element under html.theme-light. */
html.theme-light {
  --sb-accent: #FFC233;
  --sb-accent-2: #F5A623;
  --sb-accent-ink: #8A5A00;
  --sb-ground: #FFFDF6;
  --sb-ground-2: #F6F0DE;
  --sb-surface: #FFFFFF;
  --sb-ink: #16130E;
  --sb-muted: #6E6656;
  --sb-line: #E3DAC5;
}
body { background: var(--sb-ground); color: var(--sb-ink); }
a { color: var(--sb-accent-ink); }
a.nav-link { color: var(--sb-muted); }
a.nav-link:hover { color: var(--sb-ink); }
.text-body-secondary { color: var(--sb-muted) !important; }
.border-secondary-subtle { border-color: var(--sb-line) !important; }
.navbar { background: var(--sb-ground-2); }

.brand-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sb-accent); display: inline-block; box-shadow: 0 0 14px rgba(255,194,51,.5); }

.hero-app-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sb-surface); border: 1px solid var(--sb-line);
  border-radius: 999px; padding: 8px 16px;
  font-size: 0.85rem; font-weight: 600; color: var(--sb-muted);
}

.hero-tagline-under { font-weight: 700; font-size: 1.1rem; color: var(--sb-ink); letter-spacing: -0.01em; }

.hero { position: relative; padding: 7rem 0 4.5rem; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 50%; top: 40%; width: 660px; height: 660px; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(255,194,51,.16), rgba(255,176,32,0) 70%); pointer-events: none; }
.hero > .container { position: relative; }
.hero-kicker {
  color: var(--sb-accent-ink); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem;
}
.hero h1 { font-weight: 800; letter-spacing: -0.03em; font-size: clamp(2.25rem, 6vw, 3.75rem); }
.hero .accent { color: var(--sb-accent-ink); }
.footer-slogan { color: var(--sb-accent-ink); font-weight: 600; }

/* Promise page stand-first: a plain-language notice, deliberately set apart
   in tone and register from the rest of the page's Scrybert-voice copy. */
.promise-notice {
  border: 1px solid var(--sb-line);
  border-left: 4px solid var(--sb-accent-2);
  background: var(--sb-surface);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin: 0 0 2.5rem;
}
.promise-notice__label {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem;
  font-weight: 700; color: var(--sb-muted); margin-bottom: 0.5rem;
}
.promise-notice p { font-size: 0.95rem; color: var(--sb-ink); }
.promise-notice p:last-child { margin-bottom: 0; }
.promise-cta-mark { width: 22px; height: 22px; }
/* Square-cornered box, not a filled banner-ad button. Matches the app's box
   language rather than the site's usual rounded-pill buttons. */
.promise-cta {
  border: 2px solid var(--sb-accent-ink) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--sb-accent-ink) !important;
  font-weight: 700;
}
.promise-cta:hover {
  background: var(--sb-accent) !important;
  color: #231C10 !important;
}
.hero p.lead { color: var(--sb-muted); max-width: 560px; margin: 0 0 2rem; }
.hero-gallery-wrap { position: relative; display: inline-block; max-width: 320px; width: 100%; }
.phone-frame {
  display: inline-block; position: relative;
  max-width: 320px; width: 100%;
  background: #0A0806; border: 1px solid #332B20;
  border-radius: 48px; padding: 14px 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.phone-frame__notch {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; border-radius: 999px;
  background: #0A0806; border: 1px solid #332B20;
  z-index: 3;
}
.hero-gallery { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 32px; touch-action: pan-y; }
.hero-gallery::before { content: ""; display: block; padding-top: 216%; } /* screen aspect ratio inside the bezel */
.hero-screenshot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1s ease;
  -webkit-user-drag: none; user-select: none;
}
.hero-screenshot.active { opacity: 1; }
.hero-gallery__arrow {
  display: none; /* mobile navigates by swipe instead; see the touch handler in footer.php */
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(22,19,14,.6); border: 1px solid var(--sb-line);
  color: var(--sb-ink); align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s ease;
}
.hero-gallery__arrow:hover { background: rgba(22,19,14,.85); }
@media (min-width: 992px) {
  .phone-frame { max-width: 250px; }
  /* Arrows live outside the frame entirely so they never sit on top of the screenshot. */
  .hero-gallery__arrow { display: flex; }
  .hero-gallery__arrow--prev { left: -56px; }
  .hero-gallery__arrow--next { right: -56px; }
}
@media (max-width: 991.98px) {
  .hero { text-align: center; }
  .hero p.lead { margin: 0 auto 2rem; }
}

.btn-accent { background: var(--sb-accent); border-color: var(--sb-accent); color: #231C10; font-weight: 700; border-radius: 999px; }
.btn-accent:hover { background: var(--sb-accent-2); border-color: var(--sb-accent-2); color: #231C10; }
.btn-outline-light { border-radius: 999px; }

.feature-dot::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--sb-accent); border-radius: 2px; margin-right: 8px; }
.step-num { font-family: ui-monospace, monospace; color: var(--sb-accent-ink); font-weight: 700; font-size: 0.875rem; }
.privacy-strip { background: var(--sb-ground-2); }
.card-dark { background: var(--sb-surface); border-color: var(--sb-line); border-radius: 18px; }

/* Brand mark: bigger on mobile, back to normal at the lg breakpoint where nav links show flat. */
.brand-logo { width: 36px; height: 36px; }
@media (min-width: 992px) { .brand-logo { width: 24px; height: 24px; } }
.brand-tagline {
  font-size: 0.65rem;
  font-weight: 400;
  line-height: 1;
  color: var(--sb-muted);
  margin-top: 2px;
  white-space: nowrap;
}

/* Flow-dot connector: same visual language as the Connected Apps orb-hub, running from the
   wordmark into the hamburger instead of into spoke icons. Always looping, mobile-only. */
.brand-flow {
  position: relative;
  height: 2px;
  min-width: 48px;
  margin: 0 14px;
  background-image: repeating-linear-gradient(to right, var(--sb-accent) 0 4px, transparent 4px 10px);
  opacity: .6;
  overflow: visible;
}
.brand-flow .flow-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sb-accent);
  box-shadow: 0 0 10px 2px rgba(255,194,51,.9);
  transform: translateY(-50%);
  opacity: 0;
  animation: sbFlowRight 2.4s linear infinite;
}
.brand-flow .flow-dot:nth-child(1) { animation-delay: 0s; }
.brand-flow .flow-dot:nth-child(2) { animation-delay: .6s; }
.brand-flow .flow-dot:nth-child(3) { animation-delay: 1.2s; }
.brand-flow .flow-dot:nth-child(4) { animation-delay: 1.8s; }

@keyframes sbFlowRight {
  0%   { left: 0%;   opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Right-side mobile menu: a real drawer, not a full-screen takeover. */
.nav-drawer { --bs-offcanvas-width: 220px; }

/* Inset sidebar callout: floats right on desktop, stacks full-width on mobile. */
.brand-note {
  max-width: 280px;
  background: var(--sb-surface);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.9rem;
  color: var(--sb-muted);
}
.brand-note .fw-bold { color: var(--sb-ink); }

/* "More" nav dropdown, matched to the warm palette instead of Bootstrap's generic dark gray. */
.nav-more-menu {
  background: var(--sb-surface);
  border: 1px solid var(--sb-line);
  --bs-dropdown-link-color: var(--sb-ink);
  --bs-dropdown-link-hover-color: var(--sb-ink);
  --bs-dropdown-link-hover-bg: var(--sb-ground-2);
}

/* Compare page: comparison table against 7 competitors. Colors here are the
   design brief's own non-negotiable set for this component, not the site's
   general accent (--sb-accent lines up with the brief's yellow already). */
:root {
  --sb-compare-orange: #E28936;
  --sb-compare-blue: #07305E;
}
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--sb-line); -webkit-overflow-scrolling: touch; }
.compare-grid { display: grid; grid-template-columns: 300px repeat(7, minmax(130px, 1fr)); min-width: 1210px; }
.compare-head { padding: 16px 8px 14px; border-bottom: 2px solid var(--sb-line); text-align: center; font-weight: 600; font-size: 0.82rem; color: var(--sb-muted); }
.compare-head--scry { background: rgba(255,194,51,.08); border-top: 3px solid var(--sb-accent); color: var(--sb-accent-ink); font-weight: 700; font-size: 0.9rem; }
.compare-head--blank { border-bottom: 2px solid var(--sb-line); }
.compare-feature { padding: 18px 20px; }
.compare-feature--last { border-bottom: none; }
.compare-feature:not(.compare-feature--last) { border-bottom: 1px solid var(--sb-line); }
.compare-feature__name { font-weight: 600; font-size: .92rem; color: var(--sb-ink); margin-bottom: 4px; line-height: 1.3; }
.compare-feature__desc { font-size: .78rem; color: var(--sb-muted); line-height: 1.5; }
.compare-mark { display: flex; align-items: center; justify-content: center; padding: 14px 4px; border-bottom: 1px solid var(--sb-line); }
.compare-mark--last { border-bottom: none; }
.compare-mark--scry { background: rgba(255,194,51,.08); }
.compare-row-a { background: var(--sb-ground); }
.compare-row-b { background: var(--sb-surface); }
.compare-mark--scry.compare-row-a { background: #241D0F; }
.compare-mark--scry.compare-row-b { background: #2B230F; }
.compare-badge { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.compare-badge--yes { background: var(--sb-accent); }
.compare-badge--partial { border: 2px solid var(--sb-compare-orange); background: transparent; box-sizing: border-box; }
.compare-badge--partial span { width: 10px; height: 2px; background: var(--sb-compare-orange); display: block; }
.compare-dash-no { width: 12px; height: 2px; background: var(--sb-muted); opacity: .55; }
.compare-coming-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.compare-coming-tag { background: var(--sb-compare-blue); color: #E9F0FA; font-size: .62rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 6px; white-space: nowrap; }
.compare-omi-card { border: 1px solid var(--sb-line); background: var(--sb-surface); padding: 28px 32px; margin-bottom: 8px; }
.compare-omi-card .btn-accent { border-radius: 999px; }

/* Shared formatting for promoted update posts. Bodies are rendered by the service's
   HTML allow-list; image alignment and width classes stay responsive on small screens. */
.update-rich-content { display: flow-root; line-height: 1.6; overflow-wrap: anywhere; }
.update-rich-content p { margin: 0 0 1rem; }
.update-rich-content p:last-child { margin-bottom: 0; }
.update-rich-content h2 { font-size: 1.45rem; line-height: 1.25; margin: 1.35rem 0 .55rem; }
.update-rich-content h3 { font-size: 1.2rem; line-height: 1.3; margin: 1.15rem 0 .45rem; }
.update-rich-content a { color: var(--sb-accent-ink); text-decoration: underline; }
.update-rich-content ul, .update-rich-content ol { padding-left: 1.5rem; margin: .4rem 0 1rem; }
.update-rich-content li { margin: .2rem 0; }
.update-rich-content blockquote { border-left: 3px solid var(--sb-accent); margin: 1rem 0; padding: .15rem 0 .15rem 1rem; color: var(--sb-muted); }
.update-rich-content img { max-width: 100%; height: auto; vertical-align: middle; }
.update-rich-content img[align="right"] { float: right; max-width: 45%; margin: .2rem 0 1rem 1rem; }
.update-rich-content img[align="left"] { float: left; max-width: 45%; margin: .2rem 1rem 1rem 0; }
.update-rich-content img[align="center"] { display: block; margin: 1rem auto; }
.update-rich-content .update-img-width-25 { width: 25%; }
.update-rich-content .update-img-width-33 { width: 33%; }
.update-rich-content .update-img-width-40 { width: 40%; }
.update-rich-content .update-img-width-50 { width: 50%; }
.update-rich-content .update-img-width-60 { width: 60%; }
.update-rich-content .update-img-width-66 { width: 66%; }
.update-rich-content .update-img-width-75 { width: 75%; }
.update-rich-content .update-img-width-100 { width: 100%; }
.update-rich-content figure { margin: 1rem 0; }
.update-rich-content hr { border: 0; border-top: 1px solid var(--sb-line); margin: 1rem 0; }

/* Keeper Login: top-level nav item, set apart from the plain links. Hard corners per brand. */
.nav-link.nav-keeper {
  border: 1px solid var(--sb-ink);
  border-radius: 0;
  padding: 6px 14px !important;
  color: var(--sb-ink);
  font-weight: 600;
  white-space: nowrap;
}
.nav-link.nav-keeper:hover,
.nav-link.nav-keeper:focus-visible {
  background: var(--sb-ink);
  color: var(--sb-ground);
}

/* ---- Light theme fixes (2026-10-02) ---- */
/* Navbar no longer carries navbar-dark; brand color follows the theme. */
.navbar-brand, .navbar-brand:hover { color: var(--sb-ink); }
/* Dark-only outline button ("See how it works") readable on light. */
html.theme-light .btn-outline-light {
  --bs-btn-color: var(--sb-ink);
  --bs-btn-border-color: var(--sb-ink);
  --bs-btn-hover-color: var(--sb-ground);
  --bs-btn-hover-bg: var(--sb-ink);
  --bs-btn-hover-border-color: var(--sb-ink);
  --bs-btn-active-color: var(--sb-ground);
  --bs-btn-active-bg: var(--sb-ink);
  --bs-btn-active-border-color: var(--sb-ink);
  --bs-btn-focus-shadow-rgb: 22,19,14;
}
/* Compare: Scrybert column tint was hard-coded dark brown. */
html.theme-light .compare-mark--scry.compare-row-a { background: #FFF5D6; }
html.theme-light .compare-mark--scry.compare-row-b { background: #FDEFC4; }
html.theme-light .compare-head--scry { background: #FFF5D6; }

/* ---- Reduced motion (2026-10-02) ---- */
@media (prefers-reduced-motion: reduce) {
  .brand-flow .flow-dot { animation: none; opacity: 0; }
  .hero-gallery img { transition: none; }
}
