/* ==========================================================================
   OwnThePie — Unified Editorial Design System & Shared Site Shell
   Tokens, concentric icon/badge geometry, header, navigation, bento surfaces,
   dialogs, and footer shared across Home, Journal, Articles, and Request a Call.
   Aligned 1:1 with Business Compass (ownership-compass.css).
   ========================================================================== */

:root {
  --paper: #ffffff;
  --canvas: #f8f9fc;
  --panel: #eff2f7;
  --panel-deep: #e4e9f1;
  --ink: #181b20;
  --ink-soft: #262c36;
  --muted: #555f6d;
  --line: #e2e7ef;
  --line-strong: #c7d0dd;
  --orange: #f0522c;
  --orange-deep: #c83717;
  --orange-tint: #fff3ef;
  --green: #2e6b24;
  --green-tint: #edf6ec;
  --amber: #8a5300;
  --amber-tint: #fdf6e9;
  --red: #9e2f22;
  --red-tint: #fdf1ef;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-soft: 0 14px 34px rgba(20, 27, 42, 0.06);
  --shadow-card: 0 6px 20px rgba(20, 27, 42, 0.04);
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, p {
  margin: 0;
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

p, li, dd, figcaption {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  max-width: 100%;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.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;
}

/* Top Preview Status Strip */
.preview-bar {
  background: var(--ink);
  color: #e6e8ec;
  padding: 9px 24px;
  font-size: 12px;
  border-bottom: 1px solid #2d333d;
}

.preview-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.preview-bar-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.preview-dot {
  width: 8px;
  height: 8px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.preview-bar a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.preview-bar a:hover {
  color: #ffb199;
}

/* Shared Page Container */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

/* Unified Site Header & Navigation */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 22px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  line-height: 1;
}

.brand-mark img {
  width: 43px;
  height: 43px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* Concentric Alignment System: Badges, Pills & Circular Medallions */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--orange-deep);
  line-height: 1.2;
}

.eyebrow-ink {
  color: var(--muted);
}

.eyebrow-light {
  color: #ffb099;
}

.eyebrow-green {
  color: var(--green);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
  line-height: 1.15;
  gap: 6px;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
}

.badge-paper {
  background: var(--paper);
  border-color: var(--line);
}

.badge-orange {
  background: var(--orange-tint);
  color: var(--orange-deep);
  border-color: #f4c5b7;
}

.badge-green {
  background: var(--green-tint);
  color: var(--green);
  border-color: #bedbbf;
}

.badge-amber {
  background: var(--amber-tint);
  color: var(--amber);
  border-color: #edd5a1;
}

.badge-dark {
  background: rgba(24, 27, 32, 0.78);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

/* Strict Concentric Shape Wrapper (Circles & Rounded Squares) */
.icon-circle,
.icon-medallion {
  display: inline-grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.icon-circle {
  width: 38px;
  height: 38px;
}

.icon-medallion {
  width: 44px;
  height: 44px;
}

.icon-circle svg,
.icon-medallion svg,
.btn svg,
.badge svg {
  display: block;
  margin: auto;
  flex-shrink: 0;
}

/* Unified Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover:not(:disabled) {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
  color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
  background: #ab2d11;
  border-color: #ab2d11;
  color: #ffffff;
}

.btn-ink {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.btn-ink:hover:not(:disabled) {
  background: #2b303a;
  border-color: #2b303a;
  color: #ffffff;
}

.btn-accent {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  font-weight: 800;
}

.btn-accent:hover:not(:disabled) {
  background: #e04620;
  border-color: #e04620;
}

.btn-white {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.btn-white:hover:not(:disabled) {
  background: var(--canvas);
  border-color: var(--canvas);
}

.btn-ghost {
  background: var(--panel);
  border-color: var(--line-strong);
  color: var(--ink);
  font-weight: 700;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--panel-deep);
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
  font-weight: 700;
}

.btn-outline-light:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-sm {
  min-height: 40px;
  padding: 8px 15px;
  font-size: 13px;
}

/* Shared Bento & CTA Bands */
.bento-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.bento-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.cta-band {
  border-radius: var(--radius-xl);
  padding: 38px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px 36px;
  flex-wrap: wrap;
}

.cta-band-dark {
  background: var(--ink);
  color: #ffffff;
}

.cta-band-dark p {
  color: #cfd4dc;
}

.cta-band-green {
  background: var(--green);
  color: #ffffff;
}

.cta-band-green .eyebrow {
  color: #dcefd9;
}

.cta-band-green p {
  color: #e5f3e2;
}

.cta-band-copy {
  max-width: 580px;
  display: grid;
  gap: 12px;
}

.cta-band h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.cta-band p {
  font-size: 15px;
  line-height: 1.65;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Breadcrumb Pill */
.crumb-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 5px 14px 5px 6px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.crumb-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.crumb-link .crumb-circle {
  width: 26px;
  height: 26px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--panel);
  display: inline-grid;
  place-items: center;
}

.crumb-link .crumb-circle svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* Shared Dialog Modal Styling */
dialog.site-dialog {
  max-width: 680px;
  width: calc(100% - 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px 30px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(24, 27, 32, 0.24);
}

dialog.site-dialog::backdrop {
  background: rgba(24, 27, 32, 0.56);
  backdrop-filter: blur(4px);
}

.dialog-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dialog-close-btn {
  width: 38px;
  height: 38px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  padding: 0;
  margin-left: auto;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.dialog-close-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.dialog-close-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Unified Site Footer */
.site-footer {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
}

.footer-brand-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 620px;
}

.site-footer .brand-mark {
  font-size: 20px;
}

.site-footer .brand-mark img {
  width: 34px;
  height: 34px;
}

.footer-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px 20px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--orange-deep);
}

/* Responsive Breakpoints */
@media (max-width: 720px) {
  .preview-bar {
    padding: 8px 16px;
    font-size: 11px;
  }

  .shell {
    padding: 0 16px 44px;
  }

  .site-header {
    padding: 16px 0;
    gap: 14px;
  }

  .brand-mark {
    font-size: 21px;
    gap: 9px;
  }

  .brand-mark img {
    width: 36px;
    height: 36px;
  }

  .cta-band {
    padding: 26px 24px;
    gap: 20px;
  }

  .bento-card,
  .bento-panel {
    padding: 22px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .crumb-link,
  .dialog-close-btn {
    transition: none;
  }
}

/* ==========================================================================
   Buyer Account Portal, Multi-Method Auth & Inline Article CRM Bait Widgets
   ========================================================================== */

/* Inline Article & Hub CRM Lead Bait Card */
.inline-crm-cta {
  background: linear-gradient(145deg, #ffffff 0%, var(--panel) 100%);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 24px 26px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.inline-crm-cta-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.inline-crm-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: end;
}

.inline-crm-field {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.inline-crm-field input,
.inline-crm-field select,
.auth-field input,
.auth-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.inline-crm-field input:focus,
.auth-field input:focus {
  border-color: var(--ink);
  outline: 2px solid rgba(240, 82, 44, 0.25);
  outline-offset: 1px;
}

.inline-crm-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.inline-crm-consent input {
  margin-top: 3px;
  accent-color: var(--orange-deep);
}

.inline-crm-status {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

.inline-crm-status.is-error {
  color: var(--red);
}

.save-guide-btn[aria-pressed="true"] {
  background: var(--green-tint);
  border-color: #bddbb7;
  color: var(--green);
}

/* Buyer Account Layout & Auth Switcher */
.account-hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
  margin-bottom: 24px;
}

.account-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: start;
}

.account-stack {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
}

.auth-tab {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.auth-tab[aria-selected="true"] {
  background: var(--paper);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(20, 27, 42, 0.06);
}

.auth-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.auth-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.otp-code-input {
  letter-spacing: 0.32em;
  font-size: 20px !important;
  font-weight: 800 !important;
  text-align: center;
}

.btn-linkedin {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #ffffff;
  font-weight: 800;
}

.btn-linkedin:hover:not(:disabled) {
  background: #084e96;
  border-color: #084e96;
  color: #ffffff;
}

/* Compass Progress Meter inside Account */
.compass-account-track {
  height: 14px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  box-shadow: inset 0 1px 3px rgba(20, 27, 42, 0.08);
  overflow: hidden;
  position: relative;
}

.compass-account-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--orange-deep), var(--orange));
  transition: width 0.25s ease;
}

.compass-account-fill.is-complete {
  background: var(--green);
}

/* Gated Franchise Directory & Brand Dissection Teasers */
.gated-vault-list {
  display: grid;
  gap: 12px;
}

.gated-vault-item {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  background: var(--canvas);
  display: grid;
  gap: 8px;
}

.gated-blur-mask {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  font-weight: 800;
  color: var(--ink);
}

.saved-guide-list {
  display: grid;
  gap: 10px;
}

.saved-guide-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--canvas);
}

@media (max-width: 900px) {
  .account-hero-band,
  .account-workspace-grid {
    grid-template-columns: 1fr;
  }
  .auth-tabs {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Editorial Visual Hierarchy: Home Hub, Journal Index & Specialist Intake
   ========================================================================== */

.otp-page-stack {
  display: grid;
  gap: 52px;
  min-width: 0;
}

.otp-hero-grid {
  background: var(--ink);
  color: #ffffff;
  padding: clamp(32px, 4.5vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.otp-hero-copy {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.otp-hero-copy h1 {
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.06;
  color: #ffffff;
}

.otp-hero-lead {
  font-size: 16.5px;
  color: #cfd6e2;
  line-height: 1.65;
  max-width: 52ch;
}

.otp-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.otp-quiet-link {
  font-size: 14px;
  font-weight: 700;
  color: #d6dce6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.otp-quiet-link:hover {
  color: #ffffff;
  border-bottom-color: var(--orange);
}

.otp-vault-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.otp-vault-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.otp-vault-meta {
  font-size: 12px;
  font-weight: 700;
  color: #b8c2d1;
}

.otp-vault-steps {
  display: grid;
  gap: 14px;
}

.otp-vault-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.otp-vault-step:first-child {
  padding-top: 0;
  border-top: 0;
}

.otp-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(240, 82, 44, 0.2);
  border: 1px solid rgba(240, 82, 44, 0.5);
  color: #ffb099;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  justify-self: center;
  line-height: 1;
}

.otp-vault-step strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.otp-vault-step > div > span {
  display: block;
  font-size: 13px;
  color: #c2cad6;
  line-height: 1.45;
  margin-top: 2px;
}

/* Section Headers & 2x2 Ownership Paths */
.otp-section {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.otp-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
}

.otp-section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.12;
  margin-top: 6px;
}

.otp-paths-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.otp-path-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 26px 28px;
}

.otp-path-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.otp-path-idx {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.otp-path-card h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.25;
}

.otp-path-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* Visual Editorial Guide Cards (Home & Journal Index) */
.otp-home-journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.otp-journal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.otp-visual-guide-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.otp-visual-guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.otp-guide-thumb {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--panel);
}

.otp-guide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.otp-guide-thumb .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.otp-guide-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 0 4px 4px;
}

.otp-guide-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.otp-guide-body h2,
.otp-guide-body h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.024em;
  line-height: 1.25;
  color: var(--ink);
}

.otp-guide-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.otp-guide-cta {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--orange-deep);
}

/* Clean Journal Masthead */
.otp-journal-masthead {
  padding: clamp(28px, 4vw, 42px);
  display: grid;
  gap: 22px;
  background: var(--paper);
}

.otp-masthead-copy {
  display: grid;
  gap: 10px;
  max-width: 66ch;
}

.otp-masthead-copy h1 {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.036em;
  line-height: 1.08;
}

.otp-masthead-copy p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.otp-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

/* Request a Call Layout */
.otp-call-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: start;
}

.otp-form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.otp-col-full {
  grid-column: 1 / -1;
}

@media (max-width: 960px) {
  .otp-page-stack {
    gap: 38px;
  }
  .otp-hero-grid,
  .otp-home-journal-grid,
  .otp-journal-grid,
  .otp-call-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .otp-page-stack {
    gap: 32px;
  }
  .otp-hero-grid {
    padding: 26px 22px;
    gap: 22px;
  }
  .otp-paths-grid,
  .otp-form-grid-2 {
    grid-template-columns: 1fr;
  }
  .otp-path-card {
    padding: 22px 20px;
  }
}

/* ==========================================================================
   Basket and consultant components
   ========================================================================== */

[data-add-brand-cart].is-in-cart {
  background: var(--green-tint);
  border-color: #bddbb7;
  color: var(--green);
}

.otp-cart-item-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.otp-drawer-consultant-box {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: var(--canvas);
  display: grid;
  gap: 12px;
}

.otp-drawer-consultant-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.otp-consultant-avatar {
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.otp-consultant-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.otp-consultant-meta strong {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.otp-consultant-meta span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.otp-drawer-section-head {
  display: grid;
  gap: 4px;
}

.otp-drawer-section-head h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.otp-drawer-checkout-form {
  display: grid;
  gap: 12px;
}

.otp-drawer-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-field textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  resize: vertical;
}

.auth-field textarea:focus {
  border-color: var(--ink);
  outline: 2px solid rgba(240, 82, 44, 0.25);
  outline-offset: 1px;
}

.otp-checkout-feedback {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.otp-checkout-feedback.is-error {
  background: var(--red-tint);
  border: 1px solid #eabcb5;
  color: var(--red);
  font-weight: 700;
}

.otp-checkout-feedback.is-success {
  background: var(--green-tint);
  border: 1.5px solid #bddbb7;
  color: var(--ink);
}

.otp-checkout-feedback.is-success strong {
  color: var(--green);
  font-size: 14px;
}

/* ==========================================================================
   Buyer dashboard, deal room and notifications
   ========================================================================== */

.acct-cart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.acct-cart-card {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  background: var(--canvas);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.acct-consultant-profile-bar {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  background: var(--canvas);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.acct-deal-messages-feed {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  padding: 16px;
  max-height: 440px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
}

.otp-deal-msg-card {
  border-radius: var(--radius-md);
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.55;
}

.otp-deal-msg-card.is-consultant {
  border-left: 4px solid var(--green);
  background: #ffffff;
}

.otp-deal-msg-card.is-prospect {
  border-left: 4px solid var(--ink);
  background: var(--paper);
}

.otp-deal-msg-card.is-system {
  border-left: 4px solid var(--orange);
  background: var(--orange-tint);
}

.otp-deal-msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.otp-deal-msg-head strong {
  color: var(--ink);
  font-weight: 800;
}

.otp-notif-list {
  display: grid;
  gap: 10px;
}

.otp-notif-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: var(--canvas);
  display: grid;
  gap: 4px;
}

.otp-notif-row.is-unread {
  border-left: 3.5px solid var(--orange-deep);
  background: var(--paper);
}

/* ==========================================================================
   v3.0 — Homepage Featured Brand Profiles Preview Section
   ========================================================================== */

.otp-home-brands-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.otp-home-brand-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border: 1.5px solid var(--line);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.otp-home-brand-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.otp-home-brand-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--canvas);
  border: 1px solid var(--line);
  font-size: 12.5px;
}

.otp-home-brand-metrics span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.otp-home-brand-metrics strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.otp-home-brand-lock-strip {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px dashed var(--line-strong);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

@media (max-width: 960px) {
  .otp-home-brands-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .otp-drawer-form-grid {
    grid-template-columns: 1fr;
  }
}

.otp-journal-search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.otp-journal-search .auth-field:first-child {
  flex: 1 1 16rem;
}

.otp-journal-search .auth-field:not(:first-child) {
  flex: 0 1 12rem;
}

.otp-journal-search .btn {
  min-height: 44px;
}

.otp-journal-count {
  color: var(--muted);
  font-weight: 700;
}

.otp-journal-grid .otp-visual-guide-card {
  padding: 14px;
  border-radius: 26px;
  border-color: #c9d1db;
}

.otp-journal-grid .otp-guide-thumb {
  aspect-ratio: 2 / 1;
}

.otp-journal-grid .otp-guide-cta {
  align-self: flex-start;
  margin-top: auto;
  padding: 7px 13px;
  border: 1px solid #c9d1db;
  border-radius: 999px;
}

.otp-call-topics {
  margin: 0;
  padding-inline-start: 19px;
  display: grid;
  gap: 10px;
  color: #cfd6e2;
}

