/* Shared sections for the lawyers, employers and investors pages. */
/* Lawyer page sections. Hero styles live in design-system.css. */
.lp-section { padding: var(--section-pad) 0; background: var(--surface); }
.lp-section.alt { background: var(--paper); }
.lp-section.dark { background: var(--ink); color: var(--paper); }
.lp-wrap { width: var(--container-wide); margin: 0 auto; }
.lp-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.lp-eyebrow { font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--text-subtle); margin: 0 0 12px; }
.dark .lp-eyebrow { color: var(--sand); }
.lp-title { font-family: var(--font-serif); font-size: clamp(28px, 3.8vw, 40px); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 14px; }
.dark .lp-title { color: var(--paper); }
.lp-lead { font-size: 16px; line-height: 1.65; color: var(--text-muted); margin: 0; }
.dark .lp-lead { color: rgba(246, 244, 239, 0.72); }

/* Price card in the hero */
.lp-price-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-card); padding: 26px 24px; }
.lp-price-card .label { font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--text-subtle); margin: 0 0 6px; }
.lp-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--divider); }
.lp-price-row:first-of-type { border-top: 0; padding-top: 6px; }
.lp-price-row strong { font-size: 15px; font-weight: 600; }
.lp-price-row span { font-size: 13px; color: var(--text-muted); display: block; margin-top: 2px; }
.lp-price-row .amount { font-family: var(--font-serif); font-size: 26px; font-weight: 600; white-space: nowrap; color: var(--ink); }
.lp-price-row .amount.free { color: var(--sage-on); }
.lp-price-note { font-size: 12px; color: var(--text-muted); margin: 14px 0 0; line-height: 1.5; }

/* "One plan replaces" grid */
.lp-replace { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.lp-section.alt .lp-tile { background: var(--surface); }
.lp-icon { width: 40px; height: 40px; border-radius: var(--radius-button); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.lp-icon.sky { background: var(--sky); color: var(--sky-on); }
.lp-icon.sage { background: var(--sage); color: var(--sage-on); }
.lp-icon.sand { background: var(--sand); color: var(--sand-on); }
.lp-icon.lilac { background: var(--lilac); color: var(--lilac-on); }
.lp-tile h3 { font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--ink); margin: 0; }
.lp-tile p { font-size: 14px; line-height: 1.55; color: var(--text-body); margin: 0; }
.lp-tile .instead { font-size: 12px; color: var(--text-subtle); margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--divider); }
.lp-replace-total { margin: 28px auto 0; max-width: 680px; text-align: center; font-size: 16px; color: var(--text-body); line-height: 1.6; }
.lp-replace-total strong { color: var(--ink); }

/* Two-column feature rows */
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.lp-split + .lp-split { margin-top: clamp(48px, 7vw, 88px); }
.lp-split.flip .lp-split-media { order: 2; }
.lp-split h3 { font-family: var(--font-serif); font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 12px; }
.lp-split p { font-size: 15px; line-height: 1.65; color: var(--text-body); margin: 0 0 18px; }
.lp-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--text-body); }
.lp-checks li i { color: var(--sage-on); margin-top: 4px; font-size: 12px; flex-shrink: 0; }
.dark .lp-checks li { color: rgba(246, 244, 239, 0.86); }
.dark .lp-checks li i { color: var(--sage); }
.lp-phones { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.lp-phone { width: min(210px, 44%); background: #111117; border-radius: 34px; padding: 8px; box-shadow: 0 0 0 2px #2a2a35, 0 24px 56px rgba(22, 35, 58, 0.28); }
.lp-phone img { width: 100%; display: block; border-radius: 27px; }
.lp-phone.down { margin-top: 44px; }
.lp-phone.bare { background: none; box-shadow: none; padding: 0; width: min(214px, 45%); filter: drop-shadow(0 24px 28px rgba(22, 35, 58, 0.22)); }
.lp-phone.bare img { border-radius: 0; }

/* AI tools grid (dark section) */
.lp-ai { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-ai-card { background: rgba(246, 244, 239, 0.06); border: 1px solid rgba(246, 244, 239, 0.12); border-radius: var(--radius-card); padding: 22px 20px; }
.lp-ai-card h3 { font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--paper); margin: 14px 0 6px; }
.lp-ai-card p { font-size: 14px; line-height: 1.55; color: rgba(246, 244, 239, 0.72); margin: 0; }

/* Agent earnings section (removed until the lawyer AI agent is released; kept for re-use) */
.lp-agent { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.lp-agent h3 { font-family: var(--font-serif); font-size: clamp(24px, 3vw, 32px); font-weight: 600; color: var(--ink); margin: 0 0 12px; line-height: 1.2; }
.lp-agent p { font-size: 15px; line-height: 1.65; color: var(--text-body); margin: 0 0 16px; }
.lp-earn-list { display: flex; flex-direction: column; gap: 12px; }
.lp-earn { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border-radius: 12px; padding: 14px 16px; }
.lp-earn strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.lp-earn span { font-size: 13px; line-height: 1.5; color: var(--text-muted); }

/* Pricing */
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.lp-plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px 24px; display: flex; flex-direction: column; }
.lp-plan.featured { border: 2px solid var(--ink); position: relative; }
.lp-plan .tag { position: absolute; top: -12px; left: 24px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.lp-plan h3 { font-family: var(--font-sans); font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.lp-plan .price { font-family: var(--font-serif); font-size: 34px; font-weight: 600; color: var(--ink); margin: 0 0 4px; line-height: 1.1; }
.lp-plan .price small { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--text-muted); }
.lp-plan .sub { font-size: 13px; color: var(--text-muted); margin: 0 0 18px; line-height: 1.5; }
.lp-plan .lp-checks { margin-bottom: 22px; }
.lp-plan .btn { margin-top: auto; width: 100%; justify-content: center; display: inline-flex; gap: 8px; align-items: center; }
.lp-fees { margin: 28px auto 0; max-width: 760px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; }
.lp-fees p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-body); }

/* Steps */
.lp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.lp-step { background: var(--paper); border-radius: var(--radius-card); padding: 22px 20px; }
.lp-step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.lp-step strong { display: block; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.lp-step span { font-size: 13px; line-height: 1.5; color: var(--text-muted); }

/* FAQ */
.lp-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.lp-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.lp-faq summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 18px; color: var(--text-subtle); line-height: 1; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { margin: 10px 0 0; font-size: 14px; line-height: 1.65; color: var(--text-body); }

.lp-cta-row { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.lp-cta-note { text-align: center; font-size: 13px; color: var(--text-subtle); margin: 10px 0 0; }

@media (max-width: 980px) {
    .lp-replace { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-ai { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .lp-split, .lp-agent { grid-template-columns: 1fr; }
    .lp-split.flip .lp-split-media { order: 0; }
    .lp-wrap { width: calc(100% - 32px); }
}
@media (max-width: 560px) {
    .lp-replace, .lp-ai, .lp-steps { grid-template-columns: 1fr; }
    .lp-phone.down { margin-top: 28px; }
    .lp-price-row .amount { font-size: 22px; }
}

/* Icon panel used where a screenshot would go */
.lp-visual { background: var(--ink); color: var(--paper); border-radius: 18px; padding: clamp(22px, 4vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.lp-visual-row { display: flex; gap: 14px; align-items: center; background: rgba(246, 244, 239, 0.06); border: 1px solid rgba(246, 244, 239, 0.12); border-radius: 12px; padding: 16px 18px; }
.lp-visual-row .lp-icon { width: 46px; height: 46px; font-size: 18px; }
.lp-visual-row strong { display: block; font-size: 16px; font-weight: 600; color: var(--paper); margin-bottom: 2px; }
.lp-visual-row span { font-size: 13px; line-height: 1.45; color: rgba(246, 244, 239, 0.7); }

/* Let the hero shrink on phones even with long words (Malayalam). */
.lawyer-hero-inner > * { min-width: 0; }
@media (max-width: 560px) {
    .hero-trust { grid-template-columns: 1fr; }
}
.lp-split > *, .lp-agent > *, .lp-visual-row > div, .lp-earn > div, .lp-price-row > div, .ep-contact > * { min-width: 0; }
.lp-section, .lawyer-hero { overflow-wrap: break-word; }
.lp-price-row { flex-wrap: wrap; row-gap: 4px; }
.lp-price-row > div:first-child { flex: 1 1 180px; }
.lp-price-row > .amount { min-width: max-content; flex: 0 0 auto; }

/* Hero buttons on the dark background */
.lawyer-hero a.btn-primary:not([data-cta-color]) { background: var(--paper); color: var(--ink); }
.lawyer-hero a.btn-primary:not([data-cta-color]):hover { background: #ffffff; color: var(--ink); }
html[data-cta-variant="ink"] .lawyer-hero a[data-cta-color] { box-shadow: inset 0 0 0 1px rgba(246, 244, 239, 0.45); }

/* "Rated helpful" callout in the dark heroes (base styles: .story-rating in design-system.css) */
.lawyer-hero .hero-rating { margin-top: 22px; }
.lawyer-hero .hero-rating .story-rating-copy { max-width: 300px; }

/* Non-Latin languages (html.i18n-script, set by js/i18n.js): these scripts need a
   lighter weight, smaller sizes and more line spacing than the Latin type. */
html.i18n-script .lawyer-hero .hero-title,
html.i18n-script .lp-title,
html.i18n-script .lp-split h3,
html.i18n-script .lp-price-row .amount,
html.i18n-script .lp-plan .price,
html.i18n-script .story-rating-pct { font-family: var(--font-script), var(--font-sans); }
html.i18n-script .lawyer-hero .hero-title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; line-height: 1.4; letter-spacing: 0; }
html.i18n-script .lawyer-hero .hero-description { font-size: 15px; line-height: 1.8; }
html.i18n-script .lawyer-hero .hero-trust { grid-template-columns: 1fr; gap: 8px; }
html.i18n-script .lawyer-hero .hero-trust li { display: block; position: relative; padding-left: 22px; line-height: 1.6; }
html.i18n-script .lawyer-hero .hero-trust li::before { position: absolute; left: 0; top: 0; }
html.i18n-script .lawyer-hero .hero-cta-sub { font-size: 13px; line-height: 1.8; }
html.i18n-script .lp-title { font-size: clamp(22px, 2.8vw, 30px); font-weight: 600; line-height: 1.45; }
html.i18n-script .lp-split h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; line-height: 1.45; }
html.i18n-script .lp-lead, html.i18n-script .lp-split p { line-height: 1.8; }
html.i18n-script .lp-tile h3 { font-size: 15px; line-height: 1.5; }
html.i18n-script .lp-tile p, html.i18n-script .lp-checks li { font-size: 14px; line-height: 1.75; }
html.i18n-script .lp-price-row strong { font-size: 14px; line-height: 1.5; }
html.i18n-script .lp-price-row span { line-height: 1.6; }
html.i18n-script .lp-price-row .amount { font-size: 19px; font-weight: 600; }
html.i18n-script .lp-plan .price { font-size: 26px; }
html.i18n-script .lp-visual-row strong { font-size: 15px; line-height: 1.5; }
html.i18n-script .lp-faq summary { line-height: 1.5; }
html.i18n-script .story-rating-copy { font-size: 14px; line-height: 1.5; }
html.i18n-script .story-rating-copy strong { font-size: 16px; line-height: 1.4; }
html.i18n-script .story-rating-pct { font-size: 38px; }
html.i18n-script .lawyer-hero .hero-title { font-family: var(--font-script), var(--font-sans) !important; font-size: clamp(26px, 3vw, 38px); }
