/* Marketing site layer on top of saas.css (tokens, buttons, forms, cards). */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 18px; }
.logo-tile { width: 46px; height: 46px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); overflow: hidden; flex: none; }
.logo-tile img { width: 42px; height: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a.nl { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.site-nav a.nl:hover, .site-nav a.nl[aria-current="page"] { color: var(--accent-text); background: var(--surface-2); }
.site-actions { display: flex; align-items: center; gap: 8px; }
.site-actions .btn { white-space: nowrap; }
@media (max-width: 420px) { .site-actions .theme-btn { display: none; } .logo-link span:last-child { display: none; } }
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; inset-inline: 0; top: 68px; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; display: none; }
  .site-nav.open { display: flex; }
  .site-actions .hide-sm { display: none; }
}

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(900px 480px at 85% -10%, rgba(122,34,50,.35), transparent 60%),
  radial-gradient(700px 420px at 0% 110%, rgba(122,34,50,.55), transparent 60%),
  linear-gradient(160deg, #000000 0%, #141414 55%, #000000 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(192,196,201,.05) 46px 47px); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 72px 0 80px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.25; margin: 0 0 16px; font-weight: 800; }
.hero h1 .accent { background: linear-gradient(90deg, #fff, #D9D9D9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 1.6vw, 19px); color: #D5D8DD; max-width: 620px; margin: 0 0 26px; }
.hero .btn-row .btn { min-height: 48px; padding: 12px 22px; font-size: 15px; }
.hero .btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.hero .btn-outline:hover { background: rgba(255,255,255,.08); }
.hero-visual { display: grid; place-items: center; }
.hero-visual .logo-hero { width: min(380px, 100%); background: #fff; border-radius: 28px; padding: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08), 0 0 60px rgba(122,34,50,.25); }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero .chip { border: 1px solid rgba(192,196,201,.3); color: #E5E7EA; border-radius: 999px; padding: 4px 12px; font-size: 13px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding: 48px 0 56px; } .hero-visual { order: -1; } .hero-visual .logo-hero { width: 220px; } }

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.section-head p { color: var(--muted); margin: 0; font-size: 16px; }
.hero .eyebrow { color: #E2A0A8; }
.eyebrow { display: inline-block; color: var(--accent-text); font-weight: 800; font-size: 13px; letter-spacing: .02em; margin-bottom: 8px; }
.feature { padding: 22px; }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(122,34,50,.12), rgba(122,34,50,.12)); color: var(--accent-text); }
.feature h3 { font-size: 17px; margin-bottom: 6px; } .feature p { margin: 0; color: var(--muted); font-size: 14px; }
.app-card { display: flex; flex-direction: column; gap: 10px; }
.app-card .app-logo { width: 56px; height: 56px; border-radius: 14px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.app-card ul { margin: 0; padding-inline-start: 18px; color: var(--ink-2); font-size: 14px; }
.app-card .foot { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 260px)); justify-content: center; gap: 16px; }
.stats .s { text-align: center; padding: 22px 12px; }
.stats .s .v { font-size: 34px; font-weight: 800; background: linear-gradient(90deg, var(--brand-900), var(--brand-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats .s .l { color: var(--muted); font-weight: 700; font-size: 14px; }

.quote { font-size: 15px; } .quote footer { margin-top: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--accent-text); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.cta-band { background: linear-gradient(120deg, var(--brand-900), var(--brand-700) 60%, var(--brand-500)); color: #fff; border-radius: 20px; padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; } .cta-band p { margin: 0; opacity: .9; }
.cta-band .btn { background: #fff; color: var(--brand-900); }

/* pricing */
.cycle-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.cycle-toggle button { border: 0; background: transparent; color: var(--ink-2); font: 700 14px var(--font); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.cycle-toggle button[aria-pressed="true"] { background: var(--brand-900); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 12px; position: relative; }
.plan.featured { border: 2px solid var(--brand-700); box-shadow: 0 20px 50px rgba(122,34,50,.15); }
.plan .ribbon { position: absolute; top: -12px; inset-inline-start: 18px; background: var(--brand-700); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.plan .price { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.plan ul li::before { content: "✓"; color: var(--accent-text); font-weight: 800; margin-inline-end: 8px; }
.plan ul li.off { color: var(--muted); } .plan ul li.off::before { content: "—"; color: var(--muted); }
.plan .btn { margin-top: auto; }
[data-cycle="monthly"] .yearly-only, [data-cycle="yearly"] .monthly-only { display: none; }

/* forms pages */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: min(460px, 100%); }
.auth-card.wide { width: min(820px, 100%); }
.field .err { color: var(--danger); font-size: 12px; font-weight: 700; }
.slug-field { display: flex; align-items: stretch; direction: ltr; }
.slug-field .input { border-start-end-radius: 0; border-end-end-radius: 0; text-align: left; }
.slug-field .suffix { display: grid; place-items: center; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--line); border-inline-start: 0; border-radius: 0 10px 10px 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
.slug-state { font-size: 12px; font-weight: 700; min-height: 18px; }
.slug-state.ok { color: var(--ok); } .slug-state.bad { color: var(--danger); }
.prose { max-width: 820px; } .prose h2 { margin-top: 1.6em; } .prose p, .prose li { color: var(--ink-2); }

/* footer */
.site-footer { background: var(--charcoal); color: #CFCFCF; padding: 48px 0 24px; margin-top: 0; }
.site-footer a { color: #E5E7EA; text-decoration: none; } .site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h3 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.site-footer .bottom { border-top: 1px solid #262626; margin-top: 32px; padding-top: 16px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* application cards center themselves when there are only one or two apps */
.grid-apps { grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); justify-content: center; }

/* invoice payment */
.pay-methods { display: grid; gap: 10px; }
.pay-method { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); }
.pay-method:has(input:checked) { border-color: var(--brand-900); box-shadow: 0 0 0 1px var(--brand-900); }
.pay-method input { margin-top: 4px; accent-color: var(--brand-900); }
.pay-method > span { display: grid; gap: 2px; }
.table tfoot td, .table tfoot th { border-top: 1px solid var(--line); }
@media print { .site-header, .site-footer, .btn, form, .alert { display: none !important; } }
.receipt-box { margin-top: 18px; padding: 16px; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface-2); }
.receipt-box input[type="file"].input { padding: 8px; }
