/* =========================================================
   Ordello Marketing Site — Shared Theme
   Brand: #136968 (teal) + #c6a968 (gold)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --ord-teal-50:  #e8f3f3;
    --ord-teal-100: #c5e0df;
    --ord-teal-200: #8cc2c1;
    --ord-teal-400: #1f8c8a;
    --ord-teal-500: #1a8a89;
    --ord-teal-600: #136968;
    --ord-teal-700: #0e504f;
    --ord-teal-800: #093837;

    --ord-gold-50:  #fbf6e9;
    --ord-gold-100: #f1e3b5;
    --ord-gold-200: #e3cb84;
    --ord-gold-400: #d4b878;
    --ord-gold-500: #c6a968;
    --ord-gold-600: #a78a4f;
    --ord-gold-700: #816a3c;

    --ord-navy-900: #0a1628;
    --ord-navy-800: #0f1e36;
    --ord-navy-700: #162a47;

    --ord-bg-light: #f8fafb;
    --ord-text-primary: #0f172a;
    --ord-text-secondary: #64748b;

    --ord-gradient-primary: linear-gradient(135deg, #136968 0%, #1a8a89 100%);
    --ord-gradient-accent:  linear-gradient(135deg, #136968 0%, #c6a968 100%);
    --ord-gradient-gold:    linear-gradient(135deg, #c6a968 0%, #d4b878 100%);
    --ord-gradient-hero:    radial-gradient(ellipse at top left, rgba(19,105,104,0.55), transparent 55%),
                            radial-gradient(ellipse at bottom right, rgba(198,169,104,0.30), transparent 55%),
                            linear-gradient(135deg, #0a1628 0%, #0f1e36 60%, #093837 100%);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--ord-text-primary);
    background: var(--ord-bg-light);
    -webkit-tap-highlight-color: transparent;
}

/* ====== Utility tokens ====== */
.text-brand-teal   { color: var(--ord-teal-600); }
.text-brand-gold   { color: var(--ord-gold-500); }
.bg-brand-teal     { background-color: var(--ord-teal-600); }
.bg-brand-gold     { background-color: var(--ord-gold-500); }
.bg-brand-navy     { background-color: var(--ord-navy-900); }
.bg-brand-light    { background-color: var(--ord-bg-light); }
.border-brand-teal { border-color: var(--ord-teal-600); }

.gradient-text {
    background: var(--ord-gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.gradient-text-gold {
    background: var(--ord-gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-primary { background: var(--ord-gradient-primary); }
.bg-gradient-accent  { background: var(--ord-gradient-accent); }
.bg-gradient-hero    { background: var(--ord-gradient-hero); }

/* ====== Buttons ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.875rem 1.75rem;
    transition: all 0.25s ease;
    line-height: 1;
    white-space: nowrap;
}
.btn-primary {
    background: var(--ord-teal-600);
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(19,105,104,0.55);
}
.btn-primary:hover { background: var(--ord-teal-700); transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(19,105,104,0.65); }

.btn-gold {
    background: var(--ord-gold-500);
    color: var(--ord-navy-900);
    box-shadow: 0 10px 24px -10px rgba(198,169,104,0.55);
}
.btn-gold:hover { background: var(--ord-gold-400); transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(198,169,104,0.65); }

.btn-outline {
    background: transparent;
    color: var(--ord-text-primary);
    border: 1.5px solid #e2e8f0;
}
.btn-outline:hover { border-color: var(--ord-teal-600); color: var(--ord-teal-600); }

.btn-outline-light {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }

/* ====== Card primitives ====== */
.card {
    background: #fff;
    border: 1px solid #e6ecef;
    border-radius: 20px;
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 50px -25px rgba(15,30,54,0.18);
    border-color: rgba(19,105,104,0.25);
}

.glass-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
}

/* ====== Section helpers ====== */
.section { padding: 96px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ord-teal-600);
    margin-bottom: 1rem;
}
.eyebrow-gold { color: var(--ord-gold-500); }
.eyebrow-light { color: var(--ord-gold-500); }

/* ====== Hero blobs / mesh ====== */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}
.blob-teal { background: radial-gradient(circle, #1a8a89 0%, #136968 100%); }
.blob-gold { background: radial-gradient(circle, #d4b878 0%, #c6a968 100%); }

@keyframes blobFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(30px,-20px) scale(1.05); }
    66%      { transform: translate(-20px,30px) scale(0.95); }
}
.blob-animate { animation: blobFloat 14s ease-in-out infinite; }

/* ====== Scroll fade-in ====== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.2,0.8,0.2,1), transform 0.7s cubic-bezier(0.2,0.8,0.2,1);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ====== Navbar ====== */
.nav-shell {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.78);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(15,23,42,0.06);
}
.nav-shell.scrolled {
    background: rgba(255,255,255,0.92);
    box-shadow: 0 8px 30px -18px rgba(15,30,54,0.18);
}
.nav-link {
    position: relative;
    color: #475569;
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav-link:hover { color: var(--ord-teal-600); }
.nav-link.active { color: var(--ord-teal-600); font-weight: 700; }
.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: -8px;
    height: 2px;
    background: var(--ord-gradient-accent);
    border-radius: 2px;
}

/* ====== Pricing toggle ====== */
.pricing-toggle {
    background: #e6ecef;
    border-radius: 999px;
    padding: 4px;
    display: inline-flex;
    gap: 4px;
}
.pricing-toggle button {
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #475569;
    transition: all 0.2s ease;
}
.pricing-toggle button.active {
    background: #fff;
    color: var(--ord-teal-600);
    box-shadow: 0 4px 12px -4px rgba(15,30,54,0.18);
}

/* ====== FAQ accordion ====== */
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--ord-text-primary);
    transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--ord-teal-600);
    transition: transform 0.3s ease;
    line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--ord-teal-600); }
.faq-item .faq-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--ord-text-secondary);
    line-height: 1.65;
    animation: fadeSlide 0.3s ease;
}
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ====== Magic Link mockup ====== */
.phone-frame {
    width: 320px;
    border-radius: 44px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    padding: 14px;
    box-shadow: 0 50px 80px -30px rgba(0,0,0,0.55), 0 20px 40px -20px rgba(19,105,104,0.45);
    position: relative;
}
.phone-frame::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #000;
    border-radius: 999px;
    z-index: 2;
}
.phone-screen {
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    height: 620px;
    position: relative;
}

.pipeline-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.pipeline-step.done { background: var(--ord-teal-600); }
.pipeline-step.current { background: var(--ord-gold-500); color: var(--ord-navy-900); box-shadow: 0 0 0 5px rgba(198,169,104,0.25); }
.pipeline-step.pending { background: #e2e8f0; color: #94a3b8; }
.pipeline-rail { flex: 1; height: 3px; background: #e2e8f0; position: relative; z-index: 1; }
.pipeline-rail.filled { background: var(--ord-teal-600); }

/* ====== Floating dashboard mockup ====== */
.dash-mock {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 1.25rem;
    backdrop-filter: blur(14px);
    color: #fff;
}
.dash-kpi {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 1rem;
}
.dash-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 0.5rem;
}
.dash-pill {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.float-anim { animation: floatY 6s ease-in-out infinite; }
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* ====== Footer ====== */
.footer-link { color: #94a3b8; transition: color 0.2s; }
.footer-link:hover { color: var(--ord-gold-500); }

/* ====== Misc ====== */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.dotted-grid {
    background-image: radial-gradient(rgba(15,30,54,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

.glow-ring {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: var(--ord-gradient-accent);
    z-index: -1;
    filter: blur(18px);
    opacity: 0.35;
}

/* ====== Legal pages prose ====== */
.legal-prose { color: #334155; line-height: 1.75; }
.legal-prose h2 {
    color: var(--ord-navy-900);
    font-size: 1.625rem;
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose h3 {
    color: var(--ord-navy-900);
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}
.legal-prose p { margin-bottom: 1rem; }
.legal-prose ul, .legal-prose ol { margin: 0.75rem 0 1.25rem 1.25rem; }
.legal-prose ul li { list-style: disc; margin-bottom: 0.5rem; padding-left: 0.25rem; }
.legal-prose ol li { list-style: decimal; margin-bottom: 0.5rem; padding-left: 0.25rem; }
.legal-prose a { color: var(--ord-teal-600); font-weight: 600; }
.legal-prose a:hover { text-decoration: underline; }
.legal-prose strong { color: var(--ord-navy-900); font-weight: 700; }
.legal-prose hr { margin: 2.5rem 0; border-color: #e2e8f0; }
.legal-prose .callout {
    background: linear-gradient(135deg, #e8f3f3 0%, #fbf6e9 100%);
    border-left: 4px solid var(--ord-teal-600);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}
.legal-prose .callout p:last-child { margin-bottom: 0; }
.legal-toc a {
    display: block;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #475569;
    transition: all 0.2s;
}
.legal-toc a:hover { background: var(--ord-teal-50); color: var(--ord-teal-700); }

/* Scrollbar styling */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; border: 3px solid #f1f5f9; }
::-webkit-scrollbar-thumb:hover { background: var(--ord-teal-600); }

/* Selection */
::selection { background: var(--ord-teal-600); color: #fff; }
