/* ============================================================
   EDITMA.COM — Design tokens
   Concept: an insider vault of vetted products. Deep indigo base,
   a signal-amber accent standing in for "unlocked" moments, and a
   locked/blurred-card motif reused across landing + dashboards.
   ============================================================ */
:root {
    --ink: #090B14;
    --ink-soft: #121629;
    --paper: #F5F7FB;
    --line: #232A45;
    --muted: #8B93B8;
    --blue: #3D7BFF;
    --blue-deep: #2857D6;
    --blue-glow: rgba(61,123,255,0.45);
    --amber: #E8A33D;
    --amber-deep: #C77F1F;
    --green: #3FB68B;
    --red: #E3584F;
    --radius: 10px;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0 0 0.5em;
    font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: var(--amber-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-danger { background: var(--red); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---- Forms — 16px minimum on every input, no iOS zoom-in bug ---- */
label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin: 16px 0 6px;
}
input, select, textarea {
    width: 100%;
    padding: 13px 14px;
    font-size: 16px;
    font-family: var(--font-body);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--blue);
    outline-offset: 1px;
    border-color: var(--blue);
}
.field-hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.field-error { font-size: 13px; color: var(--red); margin-top: 4px; }

form { max-width: 440px; }
.form-wide { max-width: 100%; }

/* ---- Alerts ---- */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-success { background: rgba(63,182,139,0.12); color: #226b4f; border: 1px solid rgba(63,182,139,0.35); }
.alert-error { background: rgba(227,88,79,0.1); color: #a3352c; border: 1px solid rgba(227,88,79,0.35); }

/* ---- Top nav ---- */
.topnav {
    background: var(--ink);
    color: var(--paper);
    padding: 14px 0;
}
.topnav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topnav .brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--paper);
}
.topnav .brand:hover { text-decoration: none; }
.topnav nav a {
    color: var(--muted);
    margin-left: 20px;
    font-size: 14px;
    font-weight: 500;
}
.topnav nav a:hover { color: var(--paper); text-decoration: none; }

/* ---- Hero ---- */
.hero {
    background: var(--ink);
    color: var(--paper);
    padding: 64px 0 72px;
}
.hero p { color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* ---- Locked product card motif (the signature element) ---- */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 16px;
}
.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 18px;
}
.product-card__body { padding: 16px 18px; }
.product-card__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(63,182,139,0.15);
    color: #226b4f;
    margin-bottom: 8px;
}
.locked-block {
    position: relative;
    background: var(--ink-soft);
    color: var(--muted);
    border-radius: 8px;
    padding: 14px;
    margin-top: 12px;
    filter: blur(3.5px);
    user-select: none;
    pointer-events: none;
}
.locked-wrap { position: relative; }
.locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 8px;
}
.locked-overlay .btn { position: relative; z-index: 2; }
.unlocked-block {
    background: rgba(63,182,139,0.08);
    border: 1px solid rgba(63,182,139,0.3);
    border-radius: 8px;
    padding: 14px;
    margin-top: 12px;
    font-size: 14px;
}

/* ---- Dashboard layout ---- */
.dash {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 0 60px;
}
.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
}
.stat .num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; }
.stat .label { font-size: 13px; color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-display); font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.table-wrap { overflow-x: auto; }

.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge-pending { background: rgba(232,163,61,0.15); color: var(--amber-deep); }
.badge-approved { background: rgba(63,182,139,0.15); color: #226b4f; }
.badge-rejected { background: rgba(227,88,79,0.12); color: #a3352c; }
.badge-active { background: rgba(63,182,139,0.15); color: #226b4f; }
.badge-expired { background: rgba(138,143,179,0.15); color: var(--muted); }

footer {
    background: var(--ink);
    color: var(--muted);
    padding: 32px 0;
    font-size: 13px;
    margin-top: 60px;
}

@media (min-width: 720px) {
    .dash { grid-template-columns: 220px 1fr; }
}

/* ============================================================
   AUTH PAGES — split-screen "vault" layout with a 3D card stack
   ============================================================ */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
}
.auth-visual {
    background: var(--ink);
    color: var(--paper);
    position: relative;
    overflow: hidden;
    padding: 32px 24px 48px;
    display: flex;
    flex-direction: column;
}
.auth-visual .brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--paper);
    position: relative;
    z-index: 3;
}
.auth-visual .brand:hover { text-decoration: none; }
.auth-orb {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--blue-glow) 0%, rgba(61,123,255,0) 70%);
    filter: blur(10px);
    top: -100px;
    right: -120px;
    z-index: 0;
    pointer-events: none;
}
.auth-orb--2 {
    background: radial-gradient(circle, rgba(63,182,139,0.3) 0%, rgba(63,182,139,0) 70%);
    width: 260px;
    height: 260px;
    top: auto;
    bottom: -80px;
    left: -80px;
    right: auto;
}
.auth-copy {
    position: relative;
    z-index: 2;
    margin-top: 28px;
}
.auth-copy h1 {
    font-size: 1.6rem;
    max-width: 15ch;
}
.auth-copy p {
    color: var(--muted);
    font-size: 15px;
    max-width: 34ch;
}
.stack-wrap {
    position: relative;
    z-index: 2;
    height: 210px;
    margin-top: 32px;
    perspective: 1200px;
}
.stack-card {
    position: absolute;
    width: 240px;
    max-width: 78vw;
    border-radius: 14px;
    padding: 16px 18px;
    transform-style: preserve-3d;
}
.stack-card--back {
    background: var(--ink-soft);
    border: 1px solid var(--line);
    transform: rotate3d(0.4, -1, 0, 18deg) rotate(-7deg) translate(26px, 34px) scale(0.92);
    filter: blur(2.5px);
    opacity: 0.75;
    color: var(--muted);
    font-size: 13px;
}
.stack-card--front {
    background: #fff;
    color: var(--ink);
    transform: rotate3d(0.4, -1, 0, 10deg) rotate(-2deg);
    box-shadow: 0 40px 70px -25px rgba(0,0,0,0.55), 0 12px 24px -8px rgba(0,0,0,0.35), 0 0 40px -10px var(--blue-glow);
    z-index: 2;
}
.stack-card--front .tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(63,182,139,0.15);
    color: #226b4f;
    margin-bottom: 8px;
}
.stack-card--front .row {
    font-size: 12.5px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}
.stack-card--front .row strong { color: var(--ink); font-weight: 600; }
.stack-card--back .lock-line {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: rgba(250,250,247,0.15);
    margin: 8px 0;
}
.auth-trust {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 28px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--muted);
}
.auth-trust span { display: flex; align-items: center; gap: 6px; }
.auth-trust span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
    display: inline-block;
}

.auth-form-panel {
    background: var(--paper);
    padding: 28px 20px 56px;
    display: flex;
    flex-direction: column;
}
.auth-form-panel .back-link {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
}
.auth-form-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}
.auth-form-card h1 {
    font-size: 1.6rem;
}
.role-toggle {
    display: flex;
    gap: 8px;
    margin: 18px 0 6px;
}

@media (min-width: 900px) {
    .auth-shell { grid-template-columns: 46% 54%; }
    .auth-visual { padding: 48px 56px; }
    .auth-form-panel { padding: 48px 56px; justify-content: center; }
    .auth-form-card { margin: 0; }
    .stack-wrap { height: 260px; margin-top: 44px; }
}

/* ============================================================
   LANDING PAGE — black/blue, Minea-inspired hero + mockup + proof
   ============================================================ */
.lp-hero {
    background: var(--ink);
    color: var(--paper);
    position: relative;
    overflow: hidden;
    padding: 44px 0 0;
    text-align: center;
}
.lp-hero-glow {
    position: absolute;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, var(--blue-glow) 0%, rgba(61,123,255,0) 65%);
    filter: blur(20px);
    pointer-events: none;
}
.lp-hero-inner { position: relative; z-index: 2; padding: 0 20px; }
.lp-hero h1 {
    font-size: clamp(2.1rem, 6vw, 3.6rem);
    max-width: 16ch;
    margin: 0 auto 18px;
}
.lp-hero h1 .accent { color: var(--blue); }
.lp-hero p.lead {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 52ch;
    margin: 0 auto 28px;
}
.lp-hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Stats bar — dark pill row like Minea's proof strip */
.lp-statbar {
    background: var(--ink-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 2;
    padding: 18px 0;
}
.lp-statbar .container {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.lp-stat { text-align: center; }
.lp-stat .num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--paper);
}
.lp-stat .label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Product/dashboard preview mockup — browser-chrome styled panel */
.lp-mockup-wrap {
    position: relative;
    z-index: 2;
    padding: 44px 20px 0;
    max-width: 900px;
    margin: 0 auto;
}
.lp-mockup {
    background: #fff;
    color: var(--ink);
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    box-shadow: 0 -20px 80px -20px var(--blue-glow), 0 30px 70px -20px rgba(0,0,0,0.5);
    text-align: left;
}
.lp-mockup-chrome {
    background: var(--ink-soft);
    padding: 10px 16px;
    display: flex;
    gap: 6px;
}
.lp-mockup-chrome span {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--line);
    display: inline-block;
}
.lp-mockup-body { padding: 20px 22px 0; }
.lp-mockup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.lp-mockup-row:last-child { border-bottom: none; }
.lp-mockup-row .name { font-weight: 600; }
.lp-mockup-row .meta { color: var(--muted); font-size: 12.5px; }

/* Feature grid */
.lp-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
}
.lp-feature-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(61,123,255,0.12);
    color: var(--blue-deep);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 10px;
}

/* Blog teaser + blog list/detail */
.blog-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}
.blog-card .eyebrow { font-size: 12px; color: var(--muted); }
.blog-card h3 a { color: var(--ink); }
.blog-card h3 a:hover { color: var(--blue-deep); text-decoration: none; }
.blog-hero-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.blog-meta { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.blog-content { max-width: 68ch; font-size: 16px; }
.blog-content p { max-width: none; }
.blog-content h2 { margin-top: 1.6em; font-size: 1.4rem; }
.blog-content img { border-radius: var(--radius); margin: 1em 0; }

/* FAQ accordion — pure CSS via <details> */
.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-display);
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    float: right;
    font-size: 1.2rem;
    color: var(--blue-deep);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--muted); margin-top: 10px; }

@media (min-width: 720px) {
    .lp-features { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 640px) {
    .lp-mockup-wrap { padding-top: 56px; }
}
