/* TEJMAR — Modern Creative Studio visual system
   Additive visual layer. Existing React structure, handlers and API contracts remain untouched. */
:root {
  --tj-red: #c7192d;
  --tj-red-deep: #a80f22;
  --tj-ink: #111111;
  --tj-muted: #595959;
  --tj-line: rgba(17,17,17,.14);
  --tj-space-1: 4px;
  --tj-space-2: 8px;
  --tj-space-3: 12px;
  --tj-space-4: 16px;
  --tj-space-6: 24px;
  --tj-space-8: 32px;
  --tj-space-12: 48px;
  --tj-space-16: 64px;
  --tj-radius-sm: 4px;
  --tj-radius-md: 8px;
  --tj-ease: cubic-bezier(.2,.75,.25,1);
}

html { scroll-padding-top: 88px; }
body { letter-spacing: -.006em; }
::selection { background: rgba(199,25,45,.18); color: inherit; }
:focus-visible { outline: 2px solid var(--tj-red) !important; outline-offset: 3px !important; }

/* Global navigation: editorial masthead, not a floating app card. */
.tr-global-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, hsl(var(--background)) 91%, transparent) !important;
  border-bottom: 1px solid hsl(var(--border)) !important;
  backdrop-filter: blur(16px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(145%) !important;
}
.tr-global-inner { min-height: 72px !important; padding-inline: clamp(16px,3vw,42px) !important; }
.tr-brand { gap: 10px !important; letter-spacing: .13em !important; font-size: 13px !important; font-weight: 800 !important; }
.tr-brand-mark { box-shadow: none !important; border-radius: 2px !important; background: var(--tj-red) !important; }
.tr-header-actions { gap: 12px !important; }
.tr-menu-drawer, .tr-account-popover { box-shadow: 0 22px 70px rgba(0,0,0,.16) !important; border-radius: 8px !important; }

/* Type scale and page rhythm. */
.tr-page, .tr-page.tr-wide { width: min(1320px, calc(100% - 80px)) !important; padding-top: clamp(42px,6vw,82px) !important; padding-bottom: clamp(56px,7vw,96px) !important; }
.tr-page-heading { max-width: 920px !important; margin-bottom: clamp(34px,5vw,58px) !important; }
.tr-page-heading h1, .tr-dashboard-banner-copy h2, .tr-book-form-hero h2,
.tr-pricing-visual-copy h2, .tr-about-hero-copy h2, .tr-about-mission h2,
.tr-about-principles-head h2, .tr-about-footer h2, .tr-about-story h2 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 600 !important;
  letter-spacing: -.045em !important;
  text-wrap: balance;
}
.tr-page-heading h1 { font-size: clamp(44px,6vw,76px) !important; line-height: .96 !important; }
.tr-eyebrow, .tr-about-kicker { color: var(--tj-red) !important; font-size: 10px !important; font-weight: 800 !important; letter-spacing: .19em !important; }
.tr-subtitle { max-width: 720px !important; font-size: 15px !important; line-height: 1.9 !important; color: hsl(var(--muted-foreground)) !important; }
.tr-label { font-size: 11px !important; font-weight: 750 !important; letter-spacing: .025em !important; }
.tr-hint { font-size: 11px !important; line-height: 1.65 !important; }

/* Buttons and form controls: one component language across all workspaces. */
.tr-button, a.tr-button, button.tr-button {
  min-height: 44px !important;
  padding: 11px 18px !important;
  border-radius: var(--tj-radius-sm) !important;
  border-width: 1px !important;
  font-size: 12px !important;
  font-weight: 720 !important;
  letter-spacing: .005em !important;
  box-shadow: none !important;
  transition: background-color .2s var(--tj-ease), color .2s var(--tj-ease), border-color .2s var(--tj-ease), transform .2s var(--tj-ease) !important;
}
.tr-button.tr-primary, .tr-button.tr-button-primary, .tr-button.tr-primary:hover:not(:disabled) {
  background: var(--tj-red) !important; border-color: var(--tj-red) !important; color: #fff !important;
}
.tr-button.tr-primary:hover:not(:disabled), .tr-button.tr-button-primary:hover:not(:disabled) { background: var(--tj-red-deep) !important; border-color: var(--tj-red-deep) !important; transform: translateY(-1px); }
.tr-button.tr-secondary, .tr-button.tr-button-secondary, .tr-button.tr-icon {
  background: transparent !important; border-color: hsl(var(--border)) !important; color: hsl(var(--foreground)) !important;
}
.tr-button.tr-secondary:hover:not(:disabled), .tr-button.tr-button-secondary:hover:not(:disabled) { background: hsl(var(--secondary)) !important; border-color: hsl(var(--foreground)/.38) !important; }
.tr-button:disabled { opacity: .48 !important; cursor: not-allowed !important; transform: none !important; }
.tr-input {
  min-height: 50px !important;
  padding: 12px 14px !important;
  border: 1px solid hsl(var(--input)) !important;
  border-radius: var(--tj-radius-sm) !important;
  background: hsl(var(--background)) !important;
  color: hsl(var(--foreground)) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.025) !important;
  transition: border-color .18s ease, box-shadow .18s ease !important;
}
.tr-input::placeholder { color: hsl(var(--muted-foreground)/.78) !important; opacity: 1; }
.tr-input:hover:not(:disabled) { border-color: hsl(var(--foreground)/.34) !important; }
.tr-input:focus, .tr-input:focus-visible { border-color: var(--tj-red) !important; box-shadow: 0 0 0 3px rgba(199,25,45,.12) !important; outline: 0 !important; }
.tr-area { min-height: 132px !important; resize: vertical; }
.tr-field { gap: 8px !important; }
.tr-check { gap: 11px !important; font-size: 12px !important; }
.tr-check input { width: 16px; height: 16px; accent-color: var(--tj-red); }

/* Panels are editorial sections. Only retain a surface where it aids comprehension. */
.tr-panel {
  padding: clamp(18px,2.6vw,30px) !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: var(--tj-radius-md) !important;
  background: hsl(var(--card)) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.025) !important;
}
.tr-panel-head { margin-bottom: 22px !important; }
.tr-panel-head h2 { font-size: 16px !important; font-weight: 760 !important; letter-spacing: -.025em !important; }
.tr-stats { gap: 0 !important; border-block: 1px solid hsl(var(--border)); }
.tr-stat { padding: 20px 22px !important; border: 0 !important; border-right: 1px solid hsl(var(--border)) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.tr-stat:last-child { border-right: 0 !important; }
.tr-stat span { font-size: 10px !important; text-transform: uppercase; letter-spacing: .1em; }
.tr-stat strong { font-size: clamp(22px,2.5vw,30px) !important; letter-spacing: -.04em; }
.tr-list { gap: 0 !important; }
.tr-list-item { padding: 16px 2px !important; border: 0 !important; border-bottom: 1px solid hsl(var(--border)) !important; border-radius: 0 !important; background: transparent !important; transition: padding .2s var(--tj-ease), color .2s ease !important; }
.tr-list-item:hover { padding-left: 8px !important; color: var(--tj-red) !important; }
.tr-suggestion { border-radius: 6px !important; }
.tr-table { font-size: 12px !important; }
.tr-table th { color: hsl(var(--muted-foreground)) !important; font-size: 9px !important; letter-spacing: .13em !important; }
.tr-table td { padding-block: 14px !important; }
.tr-notice { border-radius: 4px !important; padding: 13px 15px !important; }

/* Homepage: confident, immersive split hero with the existing brand palette. */
.tr-home-hero-section {
  min-height: min(88svh, 900px) !important;
  background: hsl(var(--background)) !important;
  align-items: stretch;
}
.tr-home-hero-visual { flex-basis: 52% !important; min-height: 620px; overflow: hidden !important; background: #171717 !important; isolation: isolate; }
.tr-home-hero-photo { transform: scale(1.025); animation: tj-hero-drift 24s ease-in-out infinite alternate; filter: saturate(.82) contrast(1.06); }
.tr-home-hero-visual::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg,rgba(0,0,0,.06) 35%,rgba(0,0,0,.2) 100%), linear-gradient(0deg,rgba(0,0,0,.28),transparent 40%);
}
.tr-home-hero-copy { padding-inline: clamp(28px,6vw,100px) !important; }
.tr-home-hero-copy > div.max-w-xl { max-width: 640px !important; }
.tr-home-hero-copy h1 {
  max-width: 620px; margin: 0 !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(58px,6.3vw,92px) !important; line-height: .9 !important;
  font-weight: 600 !important; letter-spacing: -.055em !important;
}
.tr-home-hero-copy h1 span { color: var(--tj-red) !important; }
.tr-home-hero-copy p { max-width: 540px !important; margin-top: 24px !important; font-size: 15px !important; line-height: 1.9 !important; color: hsl(var(--muted-foreground)) !important; }
.tr-home-hero-copy button { min-height: 52px !important; padding: 14px 23px !important; border-radius: 4px !important; font-size: 12px !important; letter-spacing: .015em; box-shadow: none !important; }
.tr-home-hero-copy button:first-child { background: var(--tj-red) !important; }
.tr-home-hero-copy button:first-child:hover { background: var(--tj-red-deep) !important; transform: translateY(-2px); }
.tr-home-hero-copy button:nth-child(2) { border-radius: 4px !important; }
.tr-home-hero-copy .text-muted-foreground.text-sm { font-size: 10px !important; letter-spacing: .025em; }
.tr-home-hero-copy .text-muted-foreground.text-sm svg { color: var(--tj-red) !important; }
.tr-home-hero-visual > div { z-index: 4 !important; }
.tr-home-hero-visual > div img, .tr-home-hero-visual > div svg { filter: drop-shadow(0 4px 18px rgba(0,0,0,.22)); }

/* Homepage sections: editorial pacing, stronger contrast, no decorative card grid. */
#root main section, #root > div > section { scroll-margin-top: 82px; }
.tr-home-hero-section + section { border-color: hsl(var(--border)) !important; background: hsl(var(--secondary)/.38) !important; }
.tr-home-hero-section + section .grid > div { min-height: 116px; }
.tr-home-hero-section + section .grid > div > div:first-child { color: var(--tj-red) !important; font-family: "Cormorant Garamond",Georgia,serif !important; font-weight: 600 !important; }

/* Image-led workspaces. Keep imagery integrated into the copy, not boxed as filler. */
.tr-dashboard-banner { grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr) !important; min-height: 340px !important; margin-block: 12px 46px !important; }
.tr-dashboard-banner > img { height: 340px !important; object-position: center 42% !important; filter: saturate(.86) contrast(1.04); }
.tr-dashboard-banner-copy { padding-right: clamp(14px,3vw,42px) !important; }
.tr-dashboard-banner-copy h2 { font-size: clamp(42px,5.1vw,68px) !important; }
.tr-book-form-hero { grid-template-columns: minmax(0,1fr) minmax(280px,.9fr) !important; gap: clamp(20px,4vw,56px) !important; margin-bottom: 38px !important; }
.tr-book-form-hero img { height: 300px !important; filter: saturate(.88) contrast(1.04); }
.tr-pricing-visual { grid-template-columns: minmax(0,1fr) minmax(240px,.85fr) minmax(160px,.55fr) !important; gap: 0 !important; }
.tr-pricing-visual figure { min-height: 300px !important; }
.tr-pricing-visual img { min-height: 300px !important; max-height: 390px !important; filter: saturate(.86) contrast(1.04); }
.tr-about-hero { align-items: center !important; }
.tr-about-photo { position: relative; overflow: hidden; min-height: 420px; }
.tr-about-photo img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; filter: saturate(.82) contrast(1.05); }
.tr-about-photo::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(90deg,transparent 65%,hsl(var(--background)/.24)); }

/* Pricing is a comparison table in spirit: clear hierarchy, restrained surfaces. */
.tr-pricing-plans { gap: 0 !important; border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }
.tr-price-plan, .tr-price-agency { border: 0 !important; border-right: 1px solid hsl(var(--border)) !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; padding: clamp(20px,3vw,34px) !important; }
.tr-price-plan:last-child { border-right: 0 !important; }
.tr-price-plan h3 { font-size: 16px !important; letter-spacing: -.02em; }
.tr-price-value { font-family: "Cormorant Garamond",Georgia,serif !important; font-size: clamp(34px,4vw,48px) !important; font-weight: 600 !important; letter-spacing: -.045em; }
.tr-price-plan ul { gap: 11px !important; }
.tr-price-plan li { font-size: 12px !important; line-height: 1.65 !important; }

/* Cover Studio: present real generated art as the hero, with correct print proportions. */
.tr-cover-image { width: min(100%,410px) !important; aspect-ratio: 2 / 3; max-height: none !important; object-fit: contain !important; border: 0 !important; border-radius: 2px !important; box-shadow: 0 24px 60px rgba(0,0,0,.17) !important; background: #f3f0eb; }
.tr-cover-placeholder { width: min(100%,410px); aspect-ratio: 2 / 3; min-height: 0 !important; margin-inline: auto; border: 1px dashed hsl(var(--border)) !important; border-radius: 2px !important; background: linear-gradient(145deg,hsl(var(--secondary)),hsl(var(--background))) !important; }
.tr-cover-grid { grid-template-columns: repeat(auto-fill,minmax(138px,1fr)) !important; gap: 20px !important; }
.tr-cover-grid a { gap: 9px !important; font-size: 11px !important; line-height: 1.5; }
.tr-cover-grid img { border: 0 !important; border-radius: 2px !important; box-shadow: 0 8px 24px rgba(0,0,0,.12); transition: transform .35s var(--tj-ease), box-shadow .35s var(--tj-ease); }
.tr-cover-grid a:hover img { transform: translateY(-5px) rotate(-.5deg); box-shadow: 0 18px 36px rgba(0,0,0,.18); }

/* Reading is a separate editorial canvas, not a dashboard card. */
.tr-reader-overlay { background: #f0efed !important; color: #181818 !important; }
.tr-reader-overlay-header, .tr-reader-overlay-footer { background: #fff !important; border-color: #dedbd7 !important; }
.tr-reader-stage { background: #e9e7e4 !important; }
.tr-reader-contents { background: #faf9f7 !important; border-color: #dedbd7 !important; }
.tr-book-page { width: min(100%,760px) !important; min-height: 780px !important; padding: clamp(44px,7vw,88px) !important; border: 0 !important; box-shadow: 0 18px 60px rgba(31,26,20,.12) !important; }
.tr-book-page-text { font-size: 16px !important; line-height: 2.05 !important; }
.tr-reader-chapter { border-radius: 3px !important; font-size: 11px !important; }
.tr-reader-chapter.active { border-left: 2px solid var(--tj-red) !important; border-color: transparent !important; background: rgba(199,25,45,.07) !important; }

/* Motion is restrained and disabled for reduced-motion users. */
@keyframes tj-hero-drift { from { transform: scale(1.025) translate3d(0,0,0); } to { transform: scale(1.10) translate3d(-1.2%,0,0); } }
.tj-reveal { opacity: 0; transform: translate3d(0,22px,0); transition: opacity .72s var(--tj-ease), transform .72s var(--tj-ease); }
.tj-reveal.tj-inview { opacity: 1; transform: translate3d(0,0,0); }
.tj-reveal:nth-child(2) { transition-delay: 70ms; }
.tj-reveal:nth-child(3) { transition-delay: 130ms; }
.tj-reveal:nth-child(4) { transition-delay: 190ms; }
.tj-hero-video { position:absolute; inset:0; z-index:1; width:100%; height:100%; object-fit:cover; object-position:center; opacity:0; transition:opacity .8s ease; pointer-events:none; }
.tj-hero-video.tj-video-ready { opacity:1; }
.tr-home-hero-photo { z-index:0; }
.tr-home-hero-visual::after { z-index:2 !important; }

@media (max-width: 1023px) {
  .tr-home-hero-section { min-height: 0 !important; }
  .tr-home-hero-visual { min-height: 0 !important; height: clamp(260px,58vw,430px) !important; flex: 0 0 auto !important; }
  .tr-home-hero-copy { padding: 48px clamp(22px,6vw,54px) 58px !important; }
  .tr-home-hero-copy h1 { font-size: clamp(54px,10vw,76px) !important; }
  .tr-dashboard-banner { grid-template-columns: 1fr !important; gap: 0 !important; }
  .tr-dashboard-banner-copy { padding: 20px 0 28px !important; }
  .tr-dashboard-banner > img { height: clamp(220px,54vw,340px) !important; -webkit-mask-image: linear-gradient(180deg,transparent 0%,#000 12%,#000 100%) !important; mask-image: linear-gradient(180deg,transparent 0%,#000 12%,#000 100%) !important; }
  .tr-pricing-visual { grid-template-columns: 1fr 1fr !important; }
  .tr-pricing-visual-copy { grid-column: 1 / -1; padding: 0 0 22px !important; }
  .tr-pricing-image-secondary { display: block !important; }
  .tr-about-hero { grid-template-columns: 1fr !important; }
  .tr-about-photo, .tr-about-photo img { min-height: 300px !important; max-height: 420px; }
}
@media (max-width: 700px) {
  .tr-page, .tr-page.tr-wide { width: calc(100% - 36px) !important; padding-top: 34px !important; padding-bottom: 52px !important; }
  .tr-page-heading { margin-bottom: 30px !important; }
  .tr-page-heading h1 { font-size: clamp(42px,11vw,58px) !important; }
  .tr-subtitle { font-size: 13px !important; line-height: 1.8 !important; }
  .tr-global-inner { min-height: 62px !important; padding-inline: 16px !important; }
  .tr-home-hero-visual { height: clamp(220px,64vw,330px) !important; }
  .tr-home-hero-photo { animation: none !important; }
  .tr-home-hero-copy { padding: 48px 22px 42px !important; }
  .tr-home-hero-copy h1 { font-size: clamp(48px,12vw,64px) !important; }
  .tr-home-hero-copy p { margin-top: 18px !important; font-size: 13px !important; }
  .tr-home-hero-copy button { width: 100%; min-height: 48px !important; }
  .tr-home-hero-copy .text-muted-foreground.text-sm { gap: 10px 16px !important; line-height: 1.6; }
  .tr-stats { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .tr-stat { padding: 15px 12px !important; border-bottom: 1px solid hsl(var(--border)) !important; }
  .tr-stat:nth-child(2n) { border-right: 0 !important; }
  .tr-panel { padding: 17px !important; }
  .tr-book-fields-grid, .tr-dynamic-card .tr-book-fields-grid { grid-template-columns: 1fr !important; }
  .tr-book-form-hero { grid-template-columns: 1fr !important; gap: 10px !important; padding: 0 0 20px !important; }
  .tr-book-form-hero img { height: clamp(190px,58vw,280px) !important; }
  .tr-pricing-visual { grid-template-columns: 1fr 1fr !important; }
  .tr-pricing-visual figure { min-height: 210px !important; }
  .tr-pricing-visual img { min-height: 210px !important; max-height: 250px !important; }
  .tr-pricing-image-secondary { display: block !important; }
  .tr-pricing-plans { grid-template-columns: 1fr !important; }
  .tr-price-plan, .tr-price-agency { border-right: 0 !important; border-bottom: 1px solid hsl(var(--border)) !important; padding: 22px 4px !important; }
  .tr-price-plan:last-child { border-bottom: 0 !important; }
  .tr-cover-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 14px !important; }
  .tr-cover-image, .tr-cover-placeholder { width: min(100%,330px) !important; }
  .tr-reader-overlay { overflow: hidden; }
  .tr-reader-overlay-body { min-height: 0; }
  .tr-reader-workspace { display: flex !important; flex-direction: column !important; min-height: 0 !important; height: 100% !important; overflow: hidden !important; }
  .tr-reader-contents { width: 100% !important; flex: 0 0 auto !important; max-height: 126px !important; padding: 10px 12px !important; border-right: 0 !important; border-bottom: 1px solid #dedbd7 !important; }
  .tr-reader-contents-heading { margin-bottom: 7px !important; }
  .tr-reader-contents-list { display: flex !important; overflow-x: auto !important; gap: 6px !important; padding-bottom: 5px; }
  .tr-reader-chapter { flex: 0 0 190px !important; padding: 8px !important; }
  .tr-reader-stage { flex: 1 !important; min-height: 0 !important; overflow: auto !important; padding: 12px !important; }
  .tr-book-page { width: 100% !important; min-height: 0 !important; padding: 32px 24px !important; }
  .tr-book-page-chapter { margin: 30px 0 18px !important; }
  .tr-book-page-text { padding-top: 18px !important; font-size: 14px !important; line-height: 1.9 !important; text-align: left !important; }
  .tr-reader-overlay-header { align-items: center !important; }
  .tr-reader-overlay-actions { gap: 5px !important; }
  .tr-reader-overlay-actions .tr-button { min-height: 36px !important; padding: 8px 10px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .tj-reveal { opacity: 1 !important; transform: none !important; }
  .tj-hero-video { display: none !important; }
}

/* Original compiled React app controls share the same visual grammar as the route extensions. */
#root input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
#root textarea,
#root select {
  border-radius: 4px !important;
  border-color: hsl(var(--input)) !important;
  background-color: hsl(var(--background)) !important;
  color: hsl(var(--foreground)) !important;
  min-height: 46px;
  transition: border-color .18s ease, box-shadow .18s ease !important;
}
#root input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):focus,
#root textarea:focus,
#root select:focus {
  border-color: var(--tj-red) !important;
  box-shadow: 0 0 0 3px rgba(199,25,45,.12) !important;
  outline: 0 !important;
}
#root input[type="file"] { max-width: 100%; border-radius: 4px !important; }
#root button.bg-primary.rounded-full, #root a.bg-primary.rounded-full { border-radius: 4px !important; }
#root button.bg-primary, #root a.bg-primary { background-color: var(--tj-red) !important; }
#root button.bg-primary:hover, #root a.bg-primary:hover { background-color: var(--tj-red-deep) !important; }

/* Cover surfaces rendered by the original compiled book-detail and export screens. */
#root [class~="aspect-[2/3]"] {
  border-radius: 2px !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.15) !important;
}
#root [class~="aspect-[2/3]"] img { border-radius: 0 !important; }
#root [class~="aspect-[2/3]"] p { font-family: "Cormorant Garamond", Georgia, serif !important; letter-spacing: -.02em; }

@media (max-width: 700px) {
  #root input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
  #root textarea, #root select { min-height: 48px; font-size: 16px !important; }
}


/* Authenticated product-wide navigation and responsive image parity. */
#root .tejmar-auth-sidebar { width: 248px; min-width: 248px; }
@media (max-width: 767px) {
  #root .tejmar-auth-sidebar { width: min(300px, 86vw); min-width: min(300px, 86vw); }
  #root .tr-pricing-visual { grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; gap: 10px !important; }
  #root .tr-pricing-visual-copy { grid-column: 1 / -1 !important; }
  #root .tr-pricing-image-main, #root .tr-pricing-image-secondary { display: block !important; min-width: 0; margin: 0; }
  #root .tr-pricing-image-main img, #root .tr-pricing-image-secondary img {
    display: block !important; width: 100% !important; height: 100% !important;
    min-height: 150px !important; max-height: 230px !important;
    aspect-ratio: 4 / 5 !important; object-fit: cover !important; border-radius: 4px;
  }
}
@media (max-width: 420px) {
  #root .tr-pricing-visual { gap: 8px !important; padding: 10px !important; }
  #root .tr-pricing-image-main img, #root .tr-pricing-image-secondary img { min-height: 128px !important; max-height: 180px !important; }
}

#root .tejmar-auth-visual-panel {
  min-height: 210px;
  padding: 20px !important;
  background: radial-gradient(circle at 100% 100%, rgba(229,9,20,.13), transparent 62%), hsl(var(--card));
}
#root .tejmar-auth-visual-panel blockquote { padding-bottom: 8px !important; }
@media (min-width: 768px) {
  #root .tejmar-auth-visual-panel { min-height: 0; padding: 48px !important; }
  #root .tejmar-auth-visual-panel blockquote { padding-bottom: 48px !important; }
}


/* Preserve the original homepage hero photograph across desktop and Android. */
#root .tejmar-responsive-home-hero {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}
#root .tejmar-responsive-home-hero-image {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: clamp(230px, 42vw, 380px) !important;
  min-height: 230px !important;
  flex: 0 0 auto !important;
  overflow: hidden !important;
}
#root .tejmar-responsive-home-hero-image > img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: 70% center !important;
}
#root .tejmar-responsive-home-hero-copy {
  min-width: 0 !important;
  width: 100% !important;
  padding: clamp(30px, 6vh, 58px) clamp(20px, 5vw, 42px) !important;
}
@media (min-width: 1024px) {
  #root .tejmar-responsive-home-hero {
    flex-direction: row !important;
    min-height: 92vh !important;
  }
  #root .tejmar-responsive-home-hero-image {
    width: 50% !important;
    height: auto !important;
    min-height: 92vh !important;
    flex: 0 0 50% !important;
  }
  #root .tejmar-responsive-home-hero-copy {
    width: auto !important;
    padding: 6rem clamp(32px, 5vw, 80px) !important;
  }
}
