/*
 * marketing.css: platform-host marketing pages (landing, /pricing, legal).
 * Builds on the shadcn neutral tokens in /css/edesy-ui.css. Never load this
 * into blog themes.
 */
.marketing { font-size: 1rem; line-height: 1.6; }
.marketing h1, .marketing h2, .marketing h3, .marketing p { margin: 0; }
.marketing h1, .marketing h2 { letter-spacing: -.025em; text-wrap: balance; }
.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 48rem; }
.center { text-align: center; }
.muted { color: var(--muted-foreground); }
.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; }
.icon { flex-shrink: 0; }
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 200; padding: .5rem .75rem; border-radius: var(--radius-md); background: var(--primary); color: var(--primary-foreground); text-decoration: none; }
.skip-link:focus { top: .75rem; }
.btn-lg { height: 2.75rem; padding: 0 1.25rem; font-size: .9375rem; }
.btn-inverse { background: var(--primary-foreground); color: var(--primary); }
.btn-inverse:hover { background: color-mix(in oklab, var(--primary-foreground) 90%, transparent); }
.fine-print { font-size: .8125rem; color: var(--muted-foreground); }
.eyebrow { margin-bottom: 1rem !important; }
.lead { font-size: 1.125rem; color: var(--muted-foreground); }
.lead strong { color: var(--foreground); font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in oklab, var(--background) 88%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 1rem; height: 3.75rem; }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--foreground); text-decoration: none; }
.logo img { border-radius: var(--radius-md); }
.nav-links { display: flex; gap: .125rem; margin-left: 1rem; }
.nav-links a { padding: .375rem .75rem; border-radius: var(--radius-md); color: var(--muted-foreground); font-size: .875rem; font-weight: 500; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--foreground); background: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: .375rem; margin-left: auto; }
.nav-toggle { display: none; }

/* Hero */
.hero { padding: 5rem 0 4rem; border-bottom: 1px solid var(--border); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.08; font-weight: 700; margin-bottom: 1.25rem; }
.hero .lead { max-width: 36rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .875rem; }
.hero-visual { position: relative; aspect-ratio: 16 / 12; }
.hero-shot { position: absolute; display: block; width: 78%; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; background: var(--muted); box-shadow: var(--shadow-lg); transition: transform .2s ease; }
.hero-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.hero-shot:hover { transform: translateY(-4px); }
.hero-shot-1 { left: 0; top: 0; z-index: 3; }
.hero-shot-2 { right: 0; top: 22%; z-index: 2; }
.hero-shot-3 { left: 10%; bottom: 0; z-index: 1; width: 64%; }

/* Sections */
.section { padding: 5rem 0; }
.section-muted { background: color-mix(in oklab, var(--muted) 55%, var(--background)); border-block: 1px solid var(--border); }
.section-head { max-width: 40rem; margin: 0 auto 2.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: .75rem; }
.section-head p { color: var(--muted-foreground); }
.marketing ul[role="list"] { list-style: none; margin: 0; padding: 0; }
.card { background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.feature { padding: 1.5rem; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--background); }
.feature h3 { font-size: 1rem; font-weight: 600; margin-bottom: .375rem; }
.feature p { color: var(--muted-foreground); font-size: .9375rem; }

.themes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.theme-card { overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.theme-card:hover { box-shadow: var(--shadow-md); border-color: color-mix(in oklab, var(--foreground) 20%, transparent); }
.theme-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--muted); border-bottom: 1px solid var(--border); }
.theme-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.theme-body { padding: 1rem; }
.theme-body h3 { font-size: 1rem; font-weight: 600; }
.theme-body p { font-size: .875rem; color: var(--muted-foreground); }
.theme-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .875rem; }

.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.demo-card { display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem; }
.demo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.demo-head h3 { font-size: 1.0625rem; font-weight: 600; }
.demo-head a { color: inherit; text-decoration: none; }
.demo-head a:hover { text-decoration: underline; text-underline-offset: 4px; }
.demo-head .badge { text-transform: capitalize; }
.demo-desc { color: var(--muted-foreground); font-size: .9375rem; }
.demo-posts { display: grid; gap: .375rem; padding: .75rem 1rem !important; border-radius: var(--radius-md); background: var(--muted); font-size: .875rem; }
.demo-posts a { color: var(--foreground); text-underline-offset: 3px; }
.demo-url { margin-top: auto !important; font-family: var(--font-mono); font-size: .8125rem; color: var(--muted-foreground); word-break: break-all; }
.empty-note { text-align: center; color: var(--muted-foreground); }

.roadmap-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; }
.roadmap-item { padding: 1.25rem; border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.roadmap-item h3 { font-size: 1rem; font-weight: 600; margin: .75rem 0 .25rem; }
.roadmap-item p { color: var(--muted-foreground); font-size: .9375rem; }

.pricing-teaser { display: grid; gap: 2rem; padding: 2.5rem; }
.pricing-teaser h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: .5rem; }
.pricing-teaser p { color: var(--muted-foreground); max-width: 40rem; }
.pricing-teaser .btn { justify-self: start; }
.teaser-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }
.teaser-prices li { display: grid; gap: .125rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); }
.teaser-prices strong { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.teaser-prices span { color: var(--muted-foreground); font-size: .875rem; }

.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-weight: 500; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--muted-foreground); font-size: 1.25rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 1rem; color: var(--muted-foreground); }
.faq-item a { color: var(--foreground); }

.cta { padding-top: 0; }
.section-muted + .cta { padding-top: 5rem; }
.cta-box { display: grid; justify-items: center; gap: 1rem; padding: 3.5rem 1.5rem; border-radius: var(--radius-xl); background: var(--primary); color: var(--primary-foreground); text-align: center; }
.cta-box h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
.cta-box p { opacity: .8; max-width: 32rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; font-size: .875rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2rem; }
.footer-brand p { margin-top: .75rem !important; color: var(--muted-foreground); max-width: 16rem; }
.site-footer h2 { font-size: .8125rem; font-weight: 600; margin: 0 0 .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer nav a { color: var(--muted-foreground); text-decoration: none; }
.site-footer nav a:hover { color: var(--foreground); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted-foreground); }

/* Pricing */
.page-hero { padding: 4.5rem 0 2rem; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; line-height: 1.1; margin-bottom: 1rem; }
.page-hero .lead { margin: 0 auto 1.5rem; max-width: 40rem; }
.currency-switch { display: inline-flex; gap: .375rem; margin-bottom: .5rem; }
.marketing .alert { grid-template-columns: auto 1fr; gap: .75rem; align-items: start; background: var(--card); }
.marketing .alert p { color: var(--muted-foreground); font-size: .9375rem; }
.included-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: .5rem 1.5rem; max-width: 60rem; margin: 0 auto !important; }
.included-item { display: flex; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.included-item small { color: var(--muted-foreground); }
.included-item .badge { margin-left: auto; }
.table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.price-table th, .price-table td { padding: .875rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.price-table thead th { font-size: .8125rem; font-weight: 500; color: var(--muted-foreground); }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table tbody th { font-weight: 400; }
.meter-name { display: block; font-weight: 600; }
.meter-desc { display: block; color: var(--muted-foreground); font-size: .8125rem; }
.price-table .price { font-variant-numeric: tabular-nums; font-weight: 500; }
.calc { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.calc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 1.5rem; }
.field { display: grid; gap: .375rem; margin: 0; min-width: 0; border: 0; padding: 0; }
.field label, .field legend { font-size: .875rem; font-weight: 500; padding: 0; }
.field .radio { display: inline-flex; gap: .375rem; align-items: center; font-weight: 400; margin-right: .75rem; }
.calc-result { position: sticky; top: 5rem; display: grid; gap: .75rem; padding: 1.5rem; }
.calc-total { font-size: 2.75rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-lines { display: grid; gap: .375rem; font-size: .875rem; }
.calc-lines li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .375rem; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.example-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; }
.example { display: grid; gap: .5rem; padding: 1.5rem; }
.example h3 { font-size: 1rem; font-weight: 600; }
.example .muted { font-size: .875rem; }
.example-total { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.example-total span { font-size: .875rem; font-weight: 400; color: var(--muted-foreground); }
.wallet-list { display: grid; gap: 1rem; }
.wallet-list li { display: flex; gap: .75rem; align-items: flex-start; }
.wallet-list .icon { margin-top: .2rem; }

/* Legal */
.legal-layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 3rem; padding-block: 3.5rem 5rem; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; position: sticky; top: 5rem; display: grid; gap: .125rem; }
.legal-nav a { display: block; padding: .375rem .75rem; border-radius: var(--radius-md); color: var(--muted-foreground); font-size: .875rem; text-decoration: none; }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { background: var(--accent); color: var(--foreground); }
.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(1.875rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: .25rem; }
.prose h2 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 .5rem; }
.prose h3 { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 .25rem; }
.prose p, .prose ul, .prose dl { margin: 0 0 1rem; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .375rem; }
.prose a { text-underline-offset: 3px; }
.prose .alert { margin: 1rem 0 1.5rem; }
.contact-list { display: grid; grid-template-columns: 8rem 1fr; gap: .5rem 1rem; }
.contact-list dt { font-weight: 500; }
.contact-list dd { margin: 0; }
.todo-placeholder { padding: 0 .25rem; border-radius: var(--radius-sm); background: color-mix(in oklab, var(--warn, #d97706) 18%, transparent); font-style: italic; }

/* Legacy instant-create dialog (SIGNUP_SSO_ENABLED=false). */
.lead-modal { position: fixed; inset: 0; z-index: 1000; overflow-y: auto; padding: 1rem; background: rgb(0 0 0 / .5); }
.lead-modal-content { position: relative; max-width: 30rem; margin: 2rem auto; padding: 1.5rem; display: grid; gap: .75rem; }
.lead-modal-close { position: absolute; top: .75rem; right: .75rem; font-size: 1.25rem; }
.lead-modal h2 { font-size: 1.125rem; font-weight: 600; }
.lead-modal .form-group { display: grid; gap: .375rem; margin-bottom: .875rem; }
.lead-modal label { font-size: .875rem; font-weight: 500; }
.lead-modal small { color: var(--muted-foreground); font-size: .8125rem; }
.domain-input { display: flex; }
.domain-input .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.domain-suffix { display: inline-flex; align-items: center; padding: 0 .75rem; border: 1px solid var(--input); border-left: 0; border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--muted); color: var(--muted-foreground); font-size: .8125rem; white-space: nowrap; }

@media (max-width: 960px) {
  .hero-grid, .calc { grid-template-columns: 1fr; }
  .hero-visual { max-width: 36rem; width: 100%; margin: 0 auto; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .calc-result { position: static; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 3.75rem; left: 0; right: 0; margin: 0; padding: .5rem 1rem 1rem; flex-direction: column; background: var(--background); border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .625rem .75rem; }
  .hero { padding: 3rem 0; }
  .section { padding: 3.5rem 0; }
  .hero-actions .btn { flex: 1 1 auto; }
  .calc-form { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .legal-nav ul { position: static; display: flex; flex-wrap: wrap; }
  .pricing-teaser { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-shot { transition: none; }
  .hero-shot:hover { transform: none; }
}
