/* LexQuora website */
.site { background: var(--ivory); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { scroll-margin-top: 80px; }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s, box-shadow .25s, padding .25s; padding: 18px 0; }
.hdr .wrap { display: flex; align-items: center; gap: 28px; }
.hdr .logo img { height: 40px; width: auto; transition: height .25s; }
.hdr .logo .on-light { display: none; }
.hdr nav { display: flex; gap: 4px; margin-left: 8px; }
.hdr nav a { color: rgba(248,244,234,.86); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.hdr nav a:hover, .hdr nav a.on { color: #fff; background: rgba(248,244,234,.08); }
.hdr .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.hdr .menu { display: none; }
.hdr.solid { background: rgba(248,244,234,.94); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding: 10px 0; }
.hdr.solid .logo img { height: 34px; }
.hdr.solid .logo .on-dark { display: none; } .hdr.solid .logo .on-light { display: block; }
.hdr.solid nav a { color: var(--stone); } .hdr.solid nav a:hover, .hdr.solid nav a.on { color: var(--ink); background: rgba(14,14,16,.05); }
.hdr.solid .btn-light { border-color: var(--ink); color: var(--ink); background: transparent; } .hdr.solid .btn-light:hover { background: var(--ink); color: var(--ivory); }
.hdr.solid .menu { color: var(--ink); }

/* ---------- Hero carousel: slides scroll left and right ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--ivory); }
.hero-track { display: flex; transition: transform .8s cubic-bezier(.7,0,.2,1); will-change: transform; touch-action: pan-y; }
.slide { flex: 0 0 100%; min-height: 680px; position: relative; display: flex; align-items: center; padding: 120px 0 110px; overflow: hidden; }
.slide .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.slide .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gold); }
.slide .eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.slide h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; margin: 18px 0 18px; color: inherit; }
.slide p.lead { font-size: 18px; line-height: 1.6; max-width: 540px; opacity: .86; }
.slide .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.slide .copy > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.slide.active .copy > * { opacity: 1; transform: none; }
.slide.active .copy > *:nth-child(2) { transition-delay: .08s; } .slide.active .copy > *:nth-child(3) { transition-delay: .16s; } .slide.active .copy > *:nth-child(4) { transition-delay: .24s; }
.slide .visual { position: relative; opacity: 0; transform: translateX(40px) scale(.98); transition: opacity .8s var(--ease) .15s, transform .8s var(--ease) .15s; }
.slide.active .visual { opacity: 1; transform: none; }
/* themes */
.slide.t-ink { background: radial-gradient(900px 520px at 85% 30%, #2C2516 0%, transparent 60%), radial-gradient(700px 500px at 0% 100%, #1A1813 0%, transparent 60%), var(--ink); }
.slide.t-teal { background: radial-gradient(900px 560px at 80% 20%, #0F5A55 0%, transparent 62%), linear-gradient(160deg, #0B2E2C, #0E0E10 75%); }
.slide.t-gold { background: radial-gradient(900px 560px at 80% 30%, #5B4519 0%, transparent 60%), linear-gradient(160deg, #2A2112, #0E0E10 70%); }
.slide.t-ivory { background: radial-gradient(800px 500px at 80% 20%, #FFF 0%, transparent 60%), var(--ivory); color: var(--ink); }
.slide.t-ivory .eyebrow { color: var(--gold-text); }
.slide.t-ivory .btn-light { border-color: var(--ink); color: var(--ink); } .slide.t-ivory .btn-light:hover { background: var(--ink); color: var(--ivory); }
/* arch motif from the logo */
.slide .arch-deco { position: absolute; right: -6%; bottom: -30%; width: 46vw; max-width: 640px; aspect-ratio: 3/4; border-radius: 50% 50% 0 0 / 38% 38% 0 0; border: 1.5px solid rgba(201,162,74,.28); z-index: 1; }
.slide .arch-deco::after { content: ''; position: absolute; inset: 22px; border-radius: inherit; border: 1px solid rgba(201,162,74,.14); }
.slide.t-ivory .arch-deco { border-color: rgba(154,118,40,.25); }
.slide .bgimg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; z-index: 0; }

/* hero controls */
.hero-ctrl { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 5; }
.hero-ctrl .wrap { display: flex; align-items: center; gap: 18px; }
.hero-arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(248,244,234,.35); background: rgba(14,14,16,.35); color: var(--ivory); display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(8px); transition: background .2s, transform .2s var(--ease), border-color .2s; }
.hero-arrow svg { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: scale(1.06); }
.hero-arrow.prev:hover svg { transform: translateX(-3px); } .hero-arrow.next:hover svg { transform: translateX(3px); }
.hero-dots { display: flex; gap: 10px; align-items: center; }
.hero-dots button { width: 34px; height: 4px; border-radius: 4px; border: 0; padding: 0; background: rgba(248,244,234,.25); cursor: pointer; position: relative; overflow: hidden; }
.hero-dots button::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero-dots button.on { width: 64px; }
.hero-dots button.on::after { animation: fill var(--dur, 6s) linear forwards; }
.hero.paused .hero-dots button.on::after { animation-play-state: paused; }
.hero-dots button.done::after { transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }
.hero-count { font: 600 13px var(--font); color: rgba(248,244,234,.7); letter-spacing: .08em; min-width: 54px; }
.hero-play { margin-left: auto; }
.hero.ivory-on .hero-arrow { border-color: rgba(14,14,16,.3); color: var(--ink); background: rgba(255,255,255,.6); }
.hero.ivory-on .hero-dots button { background: rgba(14,14,16,.18); } .hero.ivory-on .hero-count { color: var(--stone); }

/* hero mock visuals (pure HTML, editable via CMS theme) */
.mock { background: var(--white); color: var(--ink); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45); padding: 18px; width: 100%; max-width: 440px; margin-left: auto; border: 1px solid rgba(201,162,74,.25); }
.mock .mh { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--stone); margin-bottom: 12px; }
.mock .mrow { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; background: var(--paper); }
.mock .mrow b { font-size: 14px; display: block; } .mock .mrow span { font-size: 12px; color: var(--stone-2); }
.mock .num { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.mock.phone { max-width: 300px; border-radius: 36px; padding: 14px; border: 8px solid #1d1d20; }
.mock.phone .screen { background: var(--ivory); border-radius: 24px; padding: 16px; }
.float-chip { position: absolute; background: var(--ink); color: var(--ivory); border: 1px solid var(--ink-line); padding: 10px 14px; border-radius: 12px; font-size: 13px; box-shadow: var(--shadow-3); display: flex; gap: 8px; align-items: center; }
.float-chip .dot { color: var(--teal); }

/* ---------- Sections ---------- */
.sec { padding: 96px 0; }
.sec.tight { padding: 64px 0; }
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold-text); margin-bottom: 12px; display: inline-flex; gap: 10px; align-items: center; }
.kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.sec-head h2 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; }
.sec-head p { margin-top: 14px; font-size: 17px; color: var(--stone); }
.facts { background: var(--ink); color: var(--ivory); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.fact { padding: 26px 22px; display: flex; gap: 14px; align-items: center; border-left: 1px solid var(--ink-line); }
.fact:first-child { border-left: 0; }
.fact .ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(201,162,74,.14); color: var(--gold); display: grid; place-items: center; flex: none; }
.fact .ic svg { width: 20px; height: 20px; }
.fact b { display: block; font-size: 15px; } .fact span { font-size: 13px; color: var(--mist); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 26px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--gold); }
.feature .ic { width: 50px; height: 58px; border-radius: 25px 25px 8px 8px; background: var(--ink); color: var(--gold); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature p { color: var(--stone); font-size: 15px; }

.panels { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: stretch; }
.panel-tabs { display: flex; flex-direction: column; gap: 10px; }
.panel-tab { text-align: left; background: transparent; border: 1px solid var(--line); border-radius: 16px; padding: 18px; cursor: pointer; font: inherit; color: var(--ink); transition: all .2s var(--ease); display: flex; gap: 14px; align-items: flex-start; }
.panel-tab .n { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-text); display: grid; place-items: center; font-weight: 700; flex: none; font-size: 14px; }
.panel-tab b { display: block; font-size: 16px; } .panel-tab span { font-size: 13px; color: var(--stone); }
.panel-tab:hover { border-color: var(--gold); background: var(--white); }
.panel-tab.on { background: var(--ink); color: var(--ivory); border-color: var(--ink); box-shadow: var(--shadow-2); }
.panel-tab.on .n { background: var(--gold); color: var(--ink); border-color: var(--gold); } .panel-tab.on span { color: var(--mist); }
.panel-view { background: var(--ink); border-radius: 22px; padding: 36px; color: var(--ivory); position: relative; overflow: hidden; min-height: 400px; }
.panel-view::after { content: ''; position: absolute; right: -80px; top: -60px; width: 300px; height: 380px; border-radius: 150px 150px 0 0; border: 1.5px solid rgba(201,162,74,.25); }
.panel-view h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; margin-bottom: 10px; }
.panel-view ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; position: relative; z-index: 1; }
.panel-view li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #E9E2D2; }
.panel-view li svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 2px; }

/* pricing calculator */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-2); }
.calc .inputs { padding: 34px; display: flex; flex-direction: column; gap: 26px; }
.calc .out { background: var(--ink); color: var(--ivory); padding: 34px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.calc .out::after { content: ''; position: absolute; right: -60px; bottom: -120px; width: 260px; height: 340px; border-radius: 130px 130px 0 0; border: 1.5px solid rgba(201,162,74,.25); }
.range-row { display: flex; flex-direction: column; gap: 10px; }
.range-row .top { display: flex; justify-content: space-between; align-items: baseline; }
.range-row .top b { font-size: 15px; } .range-row .top .val { font: 700 22px var(--font); }
input[type=range].lq { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--gold) var(--p, 30%), var(--line) var(--p, 30%)); outline: none; }
input[type=range].lq::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); border: 4px solid var(--gold); cursor: grab; box-shadow: var(--shadow-2); transition: transform .15s; }
input[type=range].lq::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
input[type=range].lq::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 4px solid var(--gold); cursor: grab; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button { width: 40px; height: 40px; border: 0; background: var(--paper); font-size: 18px; cursor: pointer; } .stepper button:hover { background: var(--gold-wash); }
.stepper input { width: 64px; height: 40px; border: 0; text-align: center; font: 600 15px var(--font); }
.price-big { font-family: var(--serif); font-size: 54px; line-height: 1; color: var(--ivory); }
.price-big small { font: 500 15px var(--font); color: var(--mist); margin-left: 6px; }
.brk { display: flex; justify-content: space-between; font-size: 14px; color: #E9E2D2; padding: 6px 0; border-bottom: 1px dashed var(--ink-line); }

/* testimonials */
.tm-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.tm-track::-webkit-scrollbar { display: none; }
.tm { flex: 0 0 min(380px, 85vw); scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.tm q { font-family: var(--serif); font-size: 19px; line-height: 1.5; quotes: '“' '”'; }
.tm .stars { color: var(--gold); display: flex; gap: 2px; } .tm .stars svg { width: 16px; height: 16px; fill: currentColor; }
.tm .who { display: flex; gap: 12px; align-items: center; margin-top: auto; } .tm .who b { display: block; font-size: 14px; } .tm .who span { font-size: 13px; color: var(--stone-2); }

/* news + blog */
.news-list { display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); align-items: start; }
.news-item:first-child { border-top: 0; }
.news-item .date { font-size: 13px; color: var(--stone); font-weight: 600; } .news-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; } .news-item p { color: var(--stone); font-size: 15px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s; color: inherit; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); color: inherit; }
.post .cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--ink), #3A2F1A); position: relative; overflow: hidden; background-size: cover; background-position: center; }
.post .cover::after { content: ''; position: absolute; left: 50%; bottom: -30%; width: 46%; aspect-ratio: 3/4; transform: translateX(-50%); border-radius: 50% 50% 0 0 / 38% 38% 0 0; border: 1.5px solid rgba(201,162,74,.5); }
.post .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post h3 { font-size: 18px; font-weight: 600; line-height: 1.35; } .post p { font-size: 14px; color: var(--stone); }
.post .meta { margin-top: auto; font-size: 12px; color: var(--stone-2); display: flex; gap: 10px; }
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(30px, 4vw, 46px); margin: 14px 0; }
.article .prose { font-size: 18px; line-height: 1.75; color: #2A2925; margin-top: 28px; }
.article .prose h2 { font-family: var(--serif); font-size: 26px; margin: 34px 0 10px; } .article .prose h3 { font-size: 20px; margin: 24px 0 8px; }
.article .prose p { margin: 0 0 16px; } .article .prose ul { margin: 0 0 16px; padding-left: 22px; } .article .prose li { margin-bottom: 6px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; cursor: pointer; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .25s var(--ease), background .2s; flex: none; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--ink); color: var(--gold); border-color: var(--ink); }
.faq details p { padding: 0 4px 20px; color: var(--stone); font-size: 15px; max-width: 760px; }

/* CTA band + footer */
.cta-band { background: radial-gradient(800px 400px at 80% 0%, #3A2F1A, transparent 60%), var(--ink); color: var(--ivory); border-radius: 28px; padding: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; position: relative; overflow: hidden; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); font-weight: 600; max-width: 600px; }
.footer { background: var(--ink); color: var(--mist); padding: 64px 0 32px; margin-top: 96px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: var(--ivory); font-size: 14px; margin-bottom: 14px; } .footer a { color: var(--mist); display: block; padding: 4px 0; font-size: 14px; } .footer a:hover { color: var(--gold); }
.footer .base { border-top: 1px solid var(--ink-line); margin-top: 40px; padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.page-hero { background: var(--ink); color: var(--ivory); padding: 140px 0 64px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(32px, 4vw, 50px); color: var(--ivory); } .page-hero p { color: var(--mist); font-size: 17px; margin-top: 12px; max-width: 640px; }
.page-hero::after { content: ''; position: absolute; right: 6%; bottom: -140px; width: 300px; height: 380px; border-radius: 150px 150px 0 0; border: 1.5px solid rgba(201,162,74,.3); }
.back-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; transform: translateY(10px); }
.back-top.show { opacity: 1; pointer-events: auto; transform: none; }
.maint { background: var(--gold); color: var(--ink); text-align: center; font-size: 14px; padding: 8px; font-weight: 600; position: relative; z-index: 60; }

@media (max-width: 960px) {
  .hdr nav { display: none; } .hdr .menu { display: inline-flex; color: var(--ivory); } .hdr .actions .btn-light { display: none; }
  .hdr nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 12px; right: 12px; background: var(--ink); padding: 12px; border-radius: 16px; box-shadow: var(--shadow-3); }
  .hdr.solid nav.open a { color: var(--ivory); }
  .slide .wrap { grid-template-columns: 1fr; } .slide .visual { display: none; } .slide { min-height: 600px; }
  .feature-grid, .post-grid { grid-template-columns: 1fr 1fr; } .panels { grid-template-columns: 1fr; } .calc { grid-template-columns: 1fr; }
  .facts .wrap { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { border-left: 0; } .footer .cols { grid-template-columns: 1fr 1fr; }
  .panel-view ul { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .feature-grid, .post-grid { grid-template-columns: 1fr; } .facts .wrap { grid-template-columns: 1fr; } .fact { border-left: 0; border-top: 1px solid var(--ink-line); }
  .news-item { grid-template-columns: 1fr; gap: 6px; } .cta-band { padding: 32px; } .sec { padding: 64px 0; } .hero-count { display: none; }
}
.news-list.compact .news-item { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
.news-list.compact .news-item > .row { order: -1; }
.news-list.compact .news-item .date { display: none; }
.news-list:not(.compact) .news-item > .row .tiny { display: none; }
