/* ==========================================================
   Lawtopia Platform — editorial law-journal layout
   ========================================================== */

/* ---------- Shared bits ---------- */
.lt-kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--lt-orange);
}
.lt-kicker::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--lt-orange);
  opacity: .6;
}

.lt-title {
  margin: 0;
  font-family: var(--lt-font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--lt-ink);
}
.lt-title em { font-style: normal; color: var(--lt-orange); }

.lt-lede {
  margin: 1rem 0 0;
  max-width: 46ch;
  color: var(--lt-muted);
  font-size: 1.02rem;
  line-height: 1.95;
}

.lt-head { margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.lt-head--center { text-align: center; }
.lt-head--center .lt-kicker { justify-content: center; }
.lt-head--center .lt-kicker::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--lt-orange);
  opacity: .6;
}
.lt-head--center .lt-lede { margin-inline: auto; }

.lt-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: 1.5rem clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.lt-head--split .lt-lede { margin-top: 0; }

/* ---------- Buttons ---------- */
.lt-btn {
  --btn-bg: var(--lt-orange);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3.25rem;
  padding: 0 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--lt-radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--lt-font-body);
  font-size: .98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.lt-btn:hover { transform: translateY(-2px); }
.lt-btn--fill:hover { --btn-bg: var(--lt-orange-deep); }
html[data-theme="dark"] .lt-btn--fill { --btn-fg: #1A0E06; }

.lt-btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--lt-ink);
  border-color: var(--lt-rule-warm);
}
.lt-btn--outline:hover { --btn-fg: var(--lt-orange); border-color: var(--lt-orange); }

.lt-btn--light {
  --btn-bg: #FFFFFF;
  --btn-fg: #B8410F;
  background: #FFFFFF;
  color: #B8410F;
}
.lt-btn--light:hover { --btn-bg: #FFF1E9; background: #FFF1E9; color: #94330A; }

/* ==========================================================
   Navigation
   ========================================================== */
.lt-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--hdr-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--lt-rule);
}
.lt-nav__inner {
  width: min(1200px, calc(100% - 3rem));
  margin-inline: auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.lt-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
}
.lt-nav__brand img,
.lt-nav__brand .lt-logo {
  width: auto !important;
  height: 44px !important;
  max-height: 44px !important;
  max-width: 56px !important;
  object-fit: contain !important;
  flex: none;
}
.lt-nav__brandText {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.lt-nav__brandText strong {
  font-family: var(--lt-font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--lt-ink);
}
.lt-nav__brandText em {
  font-style: normal;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--lt-orange);
}
.lt-nav__actions {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.lt-nav__link {
  padding: .5rem .9rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--lt-muted);
  text-decoration: none;
  transition: color .2s ease;
}
.lt-nav__link:hover { color: var(--lt-orange); }
.lt-nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.3rem;
  margin-inline-start: .5rem;
  border-radius: var(--lt-radius);
  background: var(--lt-orange);
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease;
}
html[data-theme="dark"] .lt-nav__cta { color: #1A0E06; }
.lt-nav__cta:hover { background: var(--lt-orange-deep); }
.lt-nav__theme {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin-inline-end: .35rem;
}
.lt-nav__desktop {
  display: inline-flex;
  align-items: center;
  gap: .35rem .65rem;
}
.lt-nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--lt-rule);
  border-radius: 10px;
  background: var(--lt-paper);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.lt-nav__burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--lt-ink);
}
.lt-drawer {
  display: none;
  border-top: 1px solid var(--lt-rule);
  background: var(--lt-paper);
}
.lt-drawer.is-open { display: block; }
.lt-drawer__box {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 1rem 0 1.15rem;
  display: grid;
  gap: .65rem;
}
.lt-drawer__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1rem;
  border-radius: 12px;
  font-size: .98rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.lt-drawer__btn--solid {
  background: var(--lt-orange);
  color: #fff;
  border: 1px solid var(--lt-orange);
}
html[data-theme="dark"] .lt-drawer__btn--solid { color: #1A0E06; }
.lt-drawer__btn--solid:hover { background: var(--lt-orange-deep); border-color: var(--lt-orange-deep); }
.lt-drawer__btn--ghost {
  background: transparent;
  color: var(--lt-ink);
  border: 1px solid var(--lt-rule);
}
.lt-drawer__btn--ghost:hover {
  border-color: var(--lt-orange);
  color: var(--lt-orange);
}

@media (max-width: 720px) {
  .lt-nav__desktop { display: none !important; }
  .lt-nav__burger { display: inline-flex !important; }
}

/* Light / dark switch — Lawtopia skin */
body.lawtopia-platform .theme-switch--pro {
  --ts-w: 76px;
  --ts-h: 38px;
  --ts-pad: 4px;
  flex: none;
  background: var(--lt-orange-tint);
  border: 1px solid var(--lt-rule-warm);
  box-shadow: none;
}
body.lawtopia-platform .theme-switch--pro .theme-switch__knob {
  background: #fff;
  border-color: var(--lt-rule-warm);
  box-shadow: 0 1px 4px rgba(122, 43, 8, .16);
}
html[data-theme="dark"] body.lawtopia-platform .theme-switch--pro {
  background: var(--lt-orange-tint);
  border-color: var(--lt-rule-warm);
  box-shadow: none;
}
html[data-theme="dark"] body.lawtopia-platform .theme-switch--pro .theme-switch__knob {
  background: #2C1C13;
  border-color: var(--lt-rule-warm);
  box-shadow: none;
}
body.lawtopia-platform .theme-switch--pro .theme-switch__knob-ico--light svg { color: #E2571A; }
body.lawtopia-platform .theme-switch--pro .theme-switch__knob-ico--dark svg { color: #FF9057; }
body.lawtopia-platform .theme-switch--pro:focus-within { outline-color: var(--lt-orange); }

/* ==========================================================
   Hero — full photo (no crop)
   ========================================================== */
.lt-hero {
  position: relative;
  overflow: hidden;
}
.lt-hero--photo {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #120E0C;
}
.lt-hero__media {
  position: relative;
  inset: auto;
  z-index: 0;
  width: 100%;
  line-height: 0;
}
.lt-hero__media img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  display: block;
  aspect-ratio: 16 / 9;
}
.lt-hero__veil {
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(0deg, rgba(12, 9, 7, .45) 0%, transparent 100%);
  pointer-events: none;
}

.lt-hero__overlay {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 3rem));
  margin-inline: auto;
  padding: 1.35rem 0 clamp(1.75rem, 4vh, 2.75rem);
  display: flex;
  justify-content: flex-start;
  background: #120E0C;
}
.lt-hero__copy {
  max-width: min(38rem, 100%);
  color: #fff;
  animation: ltRise .85s ease both;
}
.lt-hero__lead {
  margin: 0 0 1.25rem;
  max-width: 42ch;
  font-size: 1.08rem;
  line-height: 1.9;
  color: rgba(255, 247, 240, .92);
  text-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.lt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.lt-btn--ghost {
  --btn-bg: rgba(255, 255, 255, .08);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .42);
  backdrop-filter: blur(8px);
}
.lt-btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, .16);
  --btn-fg: #fff;
  border-color: #fff;
}

@keyframes ltRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Trust strip */
.lt-marks-wrap {
  background: var(--lt-paper);
  border-bottom: 1px solid var(--lt-rule);
}
.lt-marks {
  position: relative;
  z-index: 1;
  padding: 1.65rem 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.lt-mark { text-align: center; }
.lt-mark + .lt-mark { border-inline-start: 1px solid var(--lt-rule); }
.lt-mark strong {
  display: block;
  font-family: var(--lt-font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  color: var(--lt-orange);
}
.lt-mark span {
  display: block;
  margin-top: .25rem;
  font-size: .86rem;
  color: var(--lt-muted);
}

/* ==========================================================
   Statement / quote
   ========================================================== */
.lt-quote {
  padding: var(--lt-section) 0;
  border-top: 1px solid var(--lt-rule);
  background: var(--lt-orange-tint);
}
.lt-quote__box {
  max-width: 54rem;
  margin-inline: auto;
  text-align: center;
}
.lt-quote__ico {
  width: 74px;
  height: 74px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  display: block;
  background: transparent;
  opacity: .72;
  filter: drop-shadow(0 8px 18px rgba(226, 87, 26, .18));
}
.lt-quote__box h2 {
  margin: 0;
  font-family: var(--lt-font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.4;
  color: var(--lt-ink);
}
.lt-quote__box h2 span {
  display: block;
  color: var(--lt-orange);
}
.lt-quote__rule {
  width: 60px;
  height: 2px;
  margin: 1.75rem auto;
  background: var(--lt-orange);
}
.lt-quote__box p {
  margin: 0 auto;
  max-width: 44ch;
  color: var(--lt-muted);
  font-size: 1.05rem;
  line-height: 1.95;
}

/* ==========================================================
   Steps — numbered editorial rows
   ========================================================== */
.lt-steps { padding: var(--lt-section) 0; }
.lt-steps__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--lt-rule);
}
.lt-step {
  position: relative;
  padding: 2.25rem 1.5rem 2rem;
  border-bottom: 1px solid var(--lt-rule);
  transition: background .25s ease;
}
.lt-step + .lt-step { border-inline-start: 1px solid var(--lt-rule); }
.lt-step::after {
  content: "";
  position: absolute;
  inset-block-start: -1px;
  inset-inline: 0;
  height: 2px;
  background: var(--lt-orange);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform .35s ease;
}
.lt-step:hover { background: var(--lt-orange-tint); }
.lt-step:hover::after { transform: scaleX(1); }

.lt-step__media {
  width: 96px;
  height: 96px;
  margin-bottom: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
}
html[data-theme="dark"] .lt-step__media { background: transparent; }
.lt-step__media img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: transparent;
  opacity: .82;
  filter: drop-shadow(0 10px 20px rgba(226, 87, 26, .16));
}

.lt-step__n {
  display: block;
  margin-bottom: .5rem;
  font-family: var(--lt-font-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--lt-orange);
}
.lt-step h3 {
  margin: 0 0 .6rem;
  font-family: var(--lt-font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--lt-ink);
}
.lt-step p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.85;
  color: var(--lt-muted);
}

/* ==========================================================
   Features
   ========================================================== */
.lt-features {
  padding: var(--lt-section) 0;
  border-top: 1px solid var(--lt-rule);
  background: var(--lt-orange-tint);
}
.lt-features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--lt-rule);
  border: 1px solid var(--lt-rule);
}
.lt-feature {
  padding: 2.25rem 1.75rem;
  background: var(--lt-paper);
  transition: background .25s ease;
}
.lt-feature:hover { background: var(--lt-orange-tint-2); }
.lt-feature__ico {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 1.25rem;
}
.lt-feature h3 {
  margin: 0 0 .55rem;
  font-family: var(--lt-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--lt-ink);
}
.lt-feature p {
  margin: 0;
  font-size: .96rem;
  line-height: 1.9;
  color: var(--lt-muted);
}

/* ==========================================================
   Grades — infinite marquee ticker (JS-driven, never stops)
   ========================================================== */
.lt-grades { padding: var(--lt-section) 0; overflow: hidden; }
.lt-grades .lt-shell { margin-bottom: 1.75rem; }
.lt-grades-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  direction: ltr; /* ثبات حركة transform */
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.lt-grades-marquee__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
  padding-block: .35rem 1rem;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.lt-grades-marquee__group {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.15rem;
  padding-inline-end: 1.15rem;
  direction: rtl; /* النص العربي داخل البطاقات */
}
.lt-grades__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}
.lt-grade {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: min(260px, 72vw);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--lt-rule);
  border-radius: var(--lt-radius);
  overflow: hidden;
  background: var(--lt-paper);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.lt-grade:hover {
  border-color: var(--lt-orange);
  box-shadow: var(--lt-shadow);
}
.lt-grade__thumb {
  aspect-ratio: 4 / 3;
  display: block;
  background: #120E0C;
  padding: 0;
  overflow: hidden;
}
.lt-grade__thumb img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .35s ease;
}
.lt-grade:hover .lt-grade__thumb img { transform: scale(1.04); }
.lt-grade__body {
  padding: 1.1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--lt-rule);
  direction: rtl;
  text-align: right;
}
.lt-grade__body strong {
  display: block;
  font-family: var(--lt-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--lt-ink);
}
.lt-grade__body span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .35rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--lt-orange);
}

/* ==========================================================
   Public grade courses preview
   ========================================================== */
.lt-grade-page {
  padding: clamp(2rem, 5vw, 3.5rem) 0 var(--lt-section);
  flex: 1;
}
.lt-grade-page__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1.75rem;
  font-size: .9rem;
  color: var(--lt-muted);
}
.lt-grade-page__crumb a {
  color: var(--lt-orange);
  text-decoration: none;
  font-weight: 700;
}
.lt-grade-page__crumb a:hover { text-decoration: underline; }
.lt-grade-page__head {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 2.25rem;
}
.lt-grade-page__banner {
  border-radius: var(--lt-radius);
  overflow: hidden;
  border: 1px solid var(--lt-rule);
  background: #120E0C;
  aspect-ratio: 4 / 3;
}
.lt-grade-page__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lt-grade-page__intro .lt-lede { margin-bottom: 1.25rem; }
.lt-grade-page__empty {
  padding: 2rem;
  text-align: center;
  border: 1px dashed var(--lt-rule);
  border-radius: var(--lt-radius);
  color: var(--lt-muted);
  font-weight: 700;
}
.lt-preview-courses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.15rem;
}
.lt-preview-course {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--lt-rule);
  border-radius: var(--lt-radius);
  overflow: hidden;
  background: var(--lt-paper);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.lt-preview-course:hover {
  border-color: var(--lt-orange);
  transform: translateY(-3px);
  box-shadow: var(--lt-shadow);
}
.lt-preview-course__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--lt-orange-tint-2);
  overflow: hidden;
}
.lt-preview-course__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.92);
}
.lt-preview-course__fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 2rem;
  opacity: .55;
}
.lt-preview-course__lock {
  position: absolute;
  inset-inline-end: .7rem;
  top: .7rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(23, 19, 16, .72);
  color: #fff;
  font-size: .9rem;
  backdrop-filter: blur(6px);
}
.lt-preview-course__body {
  padding: 1rem 1.1rem 1.15rem;
  display: grid;
  gap: .55rem;
}
.lt-preview-course__body strong {
  font-family: var(--lt-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lt-ink);
  line-height: 1.35;
}
.lt-preview-course__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
}
.lt-preview-course__tag {
  font-style: normal;
  font-size: .78rem;
  font-weight: 700;
  color: var(--lt-muted);
}
.lt-preview-course__cta {
  font-style: normal;
  font-size: .82rem;
  font-weight: 800;
  color: var(--lt-orange);
}
@media (max-width: 720px) {
  .lt-grade-page__head {
    grid-template-columns: 1fr;
  }
  .lt-grade-page__banner {
    max-width: 320px;
  }
}

/* ==========================================================
   CTA band
   ========================================================== */
.lt-cta {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--lt-orange);
  color: #fff;
}
html[data-theme="dark"] .lt-cta { background: #B8410F; }
.lt-cta__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.75rem clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.lt-cta h2 {
  margin: 0;
  font-family: var(--lt-font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.35;
  max-width: 20ch;
  color: #fff;
}
.lt-cta p {
  margin: .75rem 0 0;
  max-width: 48ch;
  line-height: 1.9;
  color: rgba(255, 255, 255, .88);
}

/* ==========================================================
   Footer styles moved to lawtopia-footer.css
   ========================================================== */

/* ==========================================================
   Toasts (auth + account notices)
   ========================================================== */
body.lawtopia-platform .phy-toast {
  --toast-accent: #E2571A;
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 24px;
  z-index: 10050;
  width: min(440px, calc(100vw - 28px));
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 40px 18px 16px;
  border-radius: 16px;
  background: #FFFDFB;
  color: #171310;
  border: 1px solid rgba(226, 87, 26, 0.22);
  border-inline-start: 4px solid var(--toast-accent);
  box-shadow: 0 22px 50px -28px rgba(122, 43, 8, 0.45);
  transform: translateX(-50%);
  overflow: hidden;
}
html[data-theme="dark"] body.lawtopia-platform .phy-toast {
  background: #1A1410;
  color: #F6EFEA;
  border-color: rgba(255, 122, 60, 0.28);
  box-shadow: 0 22px 50px -20px rgba(0, 0, 0, 0.75);
}
body.lawtopia-platform .phy-toast--top {
  top: max(16px, calc(env(safe-area-inset-top, 0px) + 14px));
  bottom: auto;
}
body.lawtopia-platform .phy-toast--success { --toast-accent: #E2571A; }
body.lawtopia-platform .phy-toast--error { --toast-accent: #C62828; }
body.lawtopia-platform .phy-toast--info { --toast-accent: #E2571A; }
body.lawtopia-platform .phy-toast__icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--toast-accent);
  color: #fff;
  font-weight: 700;
}
body.lawtopia-platform .phy-toast__body { flex: 1; min-width: 0; }
body.lawtopia-platform .phy-toast__title {
  display: block;
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
}
body.lawtopia-platform .phy-toast__msg,
body.lawtopia-platform .phy-toast__list {
  margin: 0;
  font-size: .9rem;
  line-height: 1.7;
  color: #6B5A50;
}
html[data-theme="dark"] body.lawtopia-platform .phy-toast__msg,
html[data-theme="dark"] body.lawtopia-platform .phy-toast__list { color: #B8A498; }
body.lawtopia-platform .phy-toast__list { padding-inline-start: 1.1rem; }
body.lawtopia-platform .phy-toast__close {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9B8A7F;
  font-size: 1.15rem;
  cursor: pointer;
}
body.lawtopia-platform .phy-toast__close:hover {
  background: rgba(226, 87, 26, 0.10);
  color: #E2571A;
}
body.lawtopia-platform .phy-toast__progress {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 3px;
  background: rgba(226, 87, 26, 0.12);
}
body.lawtopia-platform .phy-toast__progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--toast-accent);
  transform-origin: inline-start;
  animation: ltToastBar 6.5s linear forwards;
}
body.lawtopia-platform .phy-toast.is-leaving {
  opacity: 0;
  transition: opacity .28s ease, transform .28s ease;
  transform: translateX(-50%) translateY(-8px);
}
@keyframes ltToastBar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* ==========================================================
   Auth pages — styles live in lawtopia-auth.css
   ========================================================== */
body.lawtopia-platform .hx-dock { display: none !important; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .lt-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .lt-hero--photo {
    min-height: 0;
  }
  .lt-hero__media img { object-position: center center; }
  .lt-hero__veil {
    height: 22%;
    background: linear-gradient(0deg, rgba(12, 9, 7, .35) 0%, transparent 100%);
  }
  .lt-hero__overlay { padding-bottom: 1.75rem; }
  .lt-hero__copy { max-width: 100%; }
  .lt-head--split { grid-template-columns: 1fr; }
  .lt-steps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lt-step:nth-child(odd) { border-inline-start: 0; }
  .lt-step:nth-child(even) { border-inline-start: 1px solid var(--lt-rule); }
  .lt-cta__row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .lt-shell { width: calc(100% - 2rem); }
  .lt-nav__inner { width: calc(100% - 2rem); min-height: 64px; }
  .lt-nav__brandText em { display: none; }
  .lt-nav__link { padding: .5rem .55rem; }
  .lt-marks { grid-template-columns: 1fr; gap: 1.25rem; }
  .lt-mark + .lt-mark { border-inline-start: 0; border-top: 1px solid var(--lt-rule); padding-top: 1.25rem; }
  .lt-steps__grid { grid-template-columns: 1fr; }
  .lt-step { border-inline-start: 0 !important; }
  .lt-features__grid { grid-template-columns: 1fr; }
  .lt-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .lt-hero__copy { animation: none; }
  .lt-btn:hover, .lt-grade:hover { transform: none; }
}
