/* Public marketing pages (resources/views/marketing/*).
   Nav, buttons, CTA slab and footer are copied from landing.blade.php's inline
   <style> so the pages look like the homepage without loading its whole sheet.
   Keep the two in step when the homepage's chrome changes. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
    --teal:     #00A086;
    --teal-d:   #00876f;
    --teal-2:   #0bbf9e;
    --teal-ink: #066f5c;
    --teal-ink-d:#055a4a;
    --teal-tint:#f2faf9;
    --indigo:   #5914c9;
    --indigo-lt:#a78bfa;
    --ink:      #162D3A;
    --body:     #4b5563;
    --muted:    #6b7280;
    --line:     #e5e7eb;
    --bg:       #ffffff;
    --soft:     #fafafa;
    --soft2:    #f5f7f8;

    --sh-sm: 0 1px 2px rgba(22,45,58,.06), 0 1px 3px rgba(22,45,58,.05);
    --sh-md: 0 2px 4px rgba(22,45,58,.04), 0 8px 20px rgba(22,45,58,.07);
    --sh-lg: 0 4px 8px rgba(22,45,58,.05), 0 18px 40px rgba(22,45,58,.10), 0 36px 70px -28px rgba(22,45,58,.16);

    --grad-brand: linear-gradient(118deg,var(--teal-ink) 0%,var(--teal-d) 48%,var(--indigo) 132%);
    --grad-ink:   linear-gradient(135deg,#1d3a4a 0%,#162D3A 60%,#0e2330 100%);
    --grad-mesh:
        radial-gradient(40% 38% at 12% 8%,  rgba(11,191,158,.14),transparent 60%),
        radial-gradient(46% 50% at 88% 4%,  rgba(89,20,201,.085),transparent 62%);

    --ease-out: cubic-bezier(.22,1,.36,1);

    --fs-h1:   clamp(30px, 2.8vw + 14px, 46px);
    --fs-h2:   clamp(22px, 1.1vw + 16px, 28px);
    --fs-cta:  clamp(26px, 2.2vw + 12px, 40px);
    --fs-lead: clamp(16px, .4vw + 14px, 19px);
    --fs-body: 16px;
    --fs-ui:   14px;
    --fs-sm:   13px;
    --fs-eyebrow: 12px;
    --track-eyebrow: .14em;
    --rad-xs: 8px; --rad-sm: 10px; --rad-md: 14px; --rad-lg: 20px; --rad-2xl: 28px;
}

body {
    font-family: 'Montserrat', system-ui, sans-serif;
    background: #fff;
    color: var(--body);
    font-size: var(--fs-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
[id] { scroll-margin-top: 84px; }

/* ─── SKIP LINK ─── */
.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--ink); color: #fff; padding: 10px 18px;
    border-radius: 0 0 10px 0; font-size: 14px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ─── FOCUS ─── */
:focus-visible { outline: 2px solid var(--teal-d); outline-offset: 2px; border-radius: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 2px solid var(--teal-d); outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(0,160,134,.18);
}
:focus:not(:focus-visible) { outline: none; }

/* ─── NAV (same as the homepage) ─── */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-sm);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 52px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
    position: relative; color: var(--muted); text-decoration: none;
    font-size: 14px; font-weight: 600; padding: 8px 0;
    transition: color .2s;
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: 2px; height: 2px; width: 100%;
    background: var(--teal); transform: scaleX(0); transform-origin: left;
    transition: transform .25s ease;
}
.nav-links a:hover { color: var(--teal-ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

#nav-toggle {
    position: absolute; inset: 0; width: 100%; height: 100%;
    margin: 0; opacity: 0; cursor: pointer;
}
.nav-hamburger:has(#nav-toggle:focus-visible) {
    outline: 2px solid var(--teal-d); outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(0,160,134,.18);
}
.nav-mobile-only { display: none; }
.nav-hamburger {
    display: none; position: relative;
    flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; cursor: pointer;
    border: 1px solid var(--line); border-radius: var(--rad-xs); background: var(--bg);
    margin-left: 4px;
}
.nav-hamburger span {
    display: block; height: 2px; width: 100%; border-radius: 2px;
    background: var(--ink); transition: transform .25s ease, opacity .2s ease;
}
.nav:has(#nav-toggle:checked) .nav-hamburger span:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
.nav:has(#nav-toggle:checked) .nav-hamburger span:nth-of-type(2) { opacity: 0; }
.nav:has(#nav-toggle:checked) .nav-hamburger span:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-signin {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
    color: var(--ink); text-decoration: none; font-size: var(--fs-ui); font-weight: 600;
    transition: color .2s var(--ease-out);
}
.nav-signin:hover { color: var(--teal-ink); }
.btn-nav {
    background: var(--teal-ink); color: white; font-size: 14px; font-weight: 600;
    padding: 9px 20px; border-radius: var(--rad-sm); text-decoration: none;
    transition: background .2s, transform .2s var(--ease-out), box-shadow .2s;
    box-shadow: 0 4px 12px rgba(0,160,134,0.25);
}
.btn-nav:hover { background: var(--teal-ink-d); transform: translateY(-1px); }

/* ─── BUTTONS ─── */
.btn-primary, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 26px; border-radius: var(--rad-sm);
    font-size: 15px; text-decoration: none; text-align: center;
    transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.btn-primary {
    background: var(--teal-ink); color: #fff; font-weight: 700;
    box-shadow: 0 6px 20px rgba(0,160,134,0.28);
}
.btn-primary:hover { background: var(--teal-ink-d); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,160,134,0.36); }
.btn-ghost {
    color: var(--ink); font-weight: 600;
    border: 1px solid var(--line); background: var(--bg);
}
.btn-ghost:hover { background: var(--teal-tint); border-color: rgba(0,160,134,0.4); color: var(--teal-ink); transform: translateY(-2px); }
.btn-primary:active, .btn-ghost:active { transform: translateY(0) scale(.98); }

/* ─── PAGE HEAD (breadcrumb, H1, answer-first lead) ─── */
.mk-head {
    padding: clamp(28px, 4vw, 48px) 24px clamp(8px, 2vw, 16px);
    background: var(--grad-mesh), linear-gradient(180deg,#fff 0%,#fafafa 100%);
    border-bottom: 1px solid var(--line);
}
.mk-col { max-width: 720px; margin: 0 auto; }

/* inline flow, so a long crumb wraps its own words instead of dropping to a new line behind a lone '/' */
.crumbs ol { list-style: none; font-size: var(--fs-sm); line-height: 32px; color: var(--muted); }
.crumbs li { display: inline; }
.crumbs li + li::before { content: '/'; margin: 0 10px; color: #9ca3af; }
.crumbs a { color: var(--teal-ink); text-decoration: none; font-weight: 600; display: inline-block; min-height: 32px; }
.crumbs [aria-current] { line-height: 1.5; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--body); }

.mk-eyebrow {
    display: inline-block; margin: 18px 0 12px;
    font-size: var(--fs-eyebrow); font-weight: 700; color: var(--teal-ink);
    text-transform: uppercase; letter-spacing: var(--track-eyebrow);
}
.mk-head h1 {
    font-size: var(--fs-h1); font-weight: 800; line-height: 1.15;
    color: var(--ink); letter-spacing: -0.02em; text-wrap: balance;
    margin-bottom: 22px;
}
.mk-lead {
    font-size: var(--fs-lead); color: var(--ink); line-height: 1.7;
    background: var(--teal-tint); border-left: 4px solid var(--teal);
    border-radius: 0 var(--rad-md) var(--rad-md) 0;
    padding: 18px 22px; margin-bottom: 24px;
}
.mk-head-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.mk-updated { font-size: var(--fs-sm); color: var(--muted); margin: -8px 0 24px; }

/* ─── ARTICLE BODY ─── */
.mk-body { padding: clamp(32px, 4vw, 56px) 24px clamp(24px, 3vw, 40px); }
.mk-body h2 {
    font-size: var(--fs-h2); font-weight: 800; color: var(--ink);
    letter-spacing: -0.015em; line-height: 1.25; text-wrap: balance;
    margin: 48px 0 14px;
}
.mk-body h2:first-child { margin-top: 0; }
.mk-body h3 { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.35; margin: 28px 0 8px; }
.mk-body p { margin-bottom: 16px; }
.mk-body ul, .mk-body ol { margin: 0 0 18px 1.3em; }
.mk-body li { margin-bottom: 8px; padding-left: 4px; }
.mk-body li::marker { color: var(--teal-d); font-weight: 700; }
.mk-body strong { color: var(--ink); font-weight: 700; }
.mk-body a:not(.btn-primary):not(.btn-ghost) { color: var(--teal-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mk-body a:not(.btn-primary):not(.btn-ghost):hover { color: var(--teal-ink-d); text-decoration-thickness: 2px; }
.mk-body .mk-inline-cta { margin: 28px 0 8px; }
.mk-note { font-size: 15px; color: var(--muted); font-style: italic; }

.formula {
    background: var(--soft2); border: 1px solid var(--line); border-radius: var(--rad-sm);
    padding: 12px 16px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere;
}
.example {
    border: 1px dashed rgba(0,160,134,.5); border-radius: var(--rad-md);
    padding: 16px 20px; background: #fff; margin-bottom: 18px;
}
.example-label {
    display: block; font-size: var(--fs-eyebrow); font-weight: 700; color: var(--teal-ink);
    text-transform: uppercase; letter-spacing: var(--track-eyebrow); margin-bottom: 6px;
}

/* glossary */
.az { margin: 0 0 8px; }
.az ul { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.az li { margin: 0; padding: 0; }
.az a {
    display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px;
    border: 1px solid var(--line); border-radius: 999px; background: #fff;
    font-size: var(--fs-ui); text-decoration: none !important;
}
.az a:hover { border-color: rgba(0,160,134,.45); background: var(--teal-tint); }
.term-more { font-size: 15px; }

/* ─── FAQ ─── */
.faq-list { margin-top: 8px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
    list-style: none; cursor: pointer; position: relative;
    padding: 18px 40px 18px 0; min-height: 48px;
    font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.45;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
    border-right: 2px solid var(--teal-d); border-bottom: 2px solid var(--teal-d);
    transform: rotate(45deg); transition: transform .2s var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list summary:hover { color: var(--teal-ink); }
.faq-list .faq-a { padding: 0 0 18px; }
.faq-list .faq-a p { margin: 0; }

/* ─── CTA (dark slab, as on the homepage) ─── */
.cta-section { padding: clamp(40px,6vw,80px) 24px; }
.cta-section .cta-inner {
    position: relative; overflow: hidden; max-width: 1080px; margin: 0 auto;
    padding: clamp(40px,6vw,72px) clamp(22px,5vw,64px); text-align: center;
    border-radius: var(--rad-2xl); background: var(--grad-ink);
    box-shadow: var(--sh-lg);
}
.cta-section .cta-inner::before {
    content: ''; position: absolute; inset: -40%; z-index: 0; pointer-events: none;
    background:
        radial-gradient(28% 40% at 20% 30%, rgba(0,160,134,.4), transparent 60%),
        radial-gradient(30% 42% at 82% 70%, rgba(89,20,201,.34), transparent 62%);
    filter: blur(30px);
}
.cta-section .cta-inner > * { position: relative; z-index: 1; }
.cta-title { font-size: var(--fs-cta); font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-bottom: 14px; line-height: 1.15; text-wrap: balance; }
.cta-sub { font-size: var(--fs-lead); color: rgba(255,255,255,.78); margin: 0 auto 30px; max-width: 56ch; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-section .btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #fff; }
.cta-section .btn-ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); color: #fff; }
.cta-note { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.7); }

/* ─── FOOTER (homepage footer + a Resources column) ─── */
.footer { background: var(--ink); padding: 60px 24px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
    display: grid; grid-template-columns: 1.5fr repeat(4, minmax(140px, 1fr));
    gap: clamp(28px, 3vw, 48px); margin-bottom: 40px;
}
.footer-logo img { height: 56px; width: auto; display: block; filter: brightness(0) invert(1); }
.footer-brand-text { font-size: 15px; color: rgba(255,255,255,0.68); line-height: 1.7; margin-top: 14px; max-width: 42ch; }
.footer-col h2 { font-size: var(--fs-eyebrow); font-weight: 700; color: white; margin-bottom: 16px; letter-spacing: var(--track-eyebrow); text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 4px; }
.footer-col ul a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 0; font-size: var(--fs-ui); line-height: 1.4; color: rgba(255,255,255,0.68); text-decoration: none; transition: color .2s; }
.footer-col ul a:hover { color: var(--teal-2); }
.chrome-ico { width: 16px; height: 16px; flex-shrink: 0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12); padding-top: 28px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-legal { display: flex; gap: 20px; align-items: center; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 0; font-size: var(--fs-sm); color: rgba(255,255,255,0.68); text-decoration: none; }
.footer-legal a:hover { color: var(--teal-2); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid > :first-child { grid-column: 1 / -1; }
    .footer-brand-text { max-width: 60ch; }
}
@media (max-width: 767px) {
    .nav-hamburger { display: flex; }
    .nav-links {
        position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg); border-bottom: 1px solid var(--line);
        box-shadow: var(--sh-md); padding: 8px 0;
        max-height: 0; overflow: hidden; opacity: 0;
        visibility: hidden; pointer-events: none;
        transition: max-height .3s var(--ease-out), opacity .2s ease, visibility 0s linear .3s;
    }
    .nav:has(#nav-toggle:checked) .nav-links {
        max-height: 420px; opacity: 1; visibility: visible; pointer-events: auto;
        transition: max-height .3s var(--ease-out), opacity .2s ease, visibility 0s;
    }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 13px 24px; font-size: 15px; }
    .nav-links a::after { display: none; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
}
@media (max-width: 640px) {
    .mk-head, .mk-body, .cta-section { padding-left: 20px; padding-right: 20px; }
    .mk-lead { padding: 16px 18px; }
    .cta-section .cta-inner { border-radius: 20px; }
    .cta-btns .btn-primary, .cta-btns .btn-ghost, .mk-head-actions .btn-primary, .mk-head-actions .btn-ghost { flex: 1 1 100%; }
    .footer { padding: 44px 20px 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
    .footer-legal { flex-wrap: wrap; gap: 8px 18px; }
}
@media (max-width: 480px) {
    .nav-inner { padding: 0 16px; }
    /* as on the homepage: Sign In + Start Free move into the drawer */
    .nav-signin, .btn-nav { display: none; }
    .nav-mobile-only { display: block; }
    .nav-mobile-only a { color: var(--teal-ink); font-weight: 700; }
    .nav-logo img { height: 44px; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.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;
}
