/* ================================================================
   EGOTALLY — Global Stylesheet
   Fonts: Plus Jakarta Sans (display) + DM Sans (body)
   ================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap");

/* ── CSS Custom Properties ──────────────────────────────────── */
:root {
    /* Brand */
    --primary: #ff746c;
    --primary-dark: #ff5a50;
    --primary-light: #ff8a83;
    --primary-xs: rgba(255, 116, 108, 0.07);
    --primary-sm: rgba(255, 116, 108, 0.14);

    --secondary: #1e1e3f;
    --secondary-dark: #16162d;
    --secondary-mid: #282850;

    /* Text */
    --ink: #0b0b1a;
    --ink-2: #3d3d60;
    --ink-3: #7070a0;
    --ink-4: #a8a8c8;

    /* Surfaces */
    --bg: #ffffff;
    --bg-2: #f8f8fc;
    --bg-3: #f2f2f9;
    --border: #e6e6f0;
    --border-xs: #f0f0f8;

    /* Radii */
    --r-xs: 4px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 22px;
    --r-2xl: 30px;
    --r-pill: 999px;

    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(11, 11, 26, 0.05);
    --shadow-sm: 0 2px 10px rgba(11, 11, 26, 0.07);
    --shadow-md: 0 6px 24px rgba(11, 11, 26, 0.09);
    --shadow-lg: 0 16px 48px rgba(11, 11, 26, 0.12);
    --shadow-xl: 0 28px 80px rgba(11, 11, 26, 0.18);
    --shadow-primary: 0 8px 24px rgba(255, 90, 80, 0.3);
    --shadow-primary-lg: 0 16px 40px rgba(255, 90, 80, 0.36);

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);

    /* Layout */
    --nav-h: 68px;
    --section-y: 96px;
    --container: 1160px;
}

/* ── Reset & Base ────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.18s;
}
a:hover {
    color: var(--primary-dark);
}
button {
    font-family: inherit;
    cursor: pointer;
}
p {
    margin-bottom: 0;
}

/* ── Typography ──────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}
h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}
h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 700;
}
h4 {
    font-size: 1.05rem;
    font-weight: 600;
}

/* ── Bootstrap Container Override ───────────────────────────── */
.container {
    max-width: var(--container);
    padding-inline: 24px;
}
@media (max-width: 575px) {
    .container {
        padding-inline: 16px;
    }
}

/* ── Bootstrap Button Overrides ──────────────────────────────── */
.btn {
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--r-pill);
    padding: 0.6875rem 1.5rem;
    border: 1.5px solid transparent;
    transition: all 0.2s var(--ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
}
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    box-shadow: none;
}
.btn:active {
    transform: scale(0.98) !important;
}

.btn-primary {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: #fff !important !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary-lg);
}

.btn-secondary {
    background: var(--secondary);
    color: #fff !important;
    border-color: var(--secondary);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary) !important;
    border-color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--primary) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--ink-2) !important;
    border-color: var(--border);
}
.btn-ghost:hover {
    background: var(--bg-2);
    color: var(--ink) !important;
}

.btn-dark-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2);
}
.btn-dark-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}
.btn-xl {
    padding: 1rem 2.25rem;
    font-size: 1.0625rem;
}
.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.84rem;
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-control,
.form-select {
    font-family: "DM Sans", sans-serif;
    font-size: 0.9375rem;
    color: var(--ink);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 0.75rem 1rem;
    transition:
        border-color 0.18s,
        box-shadow 0.18s;
    line-height: 1.5;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 116, 108, 0.12);
    outline: none;
    color: var(--ink);
    background: var(--bg);
}
.form-control::placeholder {
    color: var(--ink-4);
}
.form-control.is-invalid {
    border-color: #dc2626;
}
.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.invalid-feedback {
    font-size: 0.8125rem;
    color: #dc2626;
    margin-top: 5px;
    display: block;
}
.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-2);
    margin-bottom: 6px;
    display: block;
}
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%237070a0' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* ── Layout Utilities ────────────────────────────────────────── */
.section {
    padding: var(--section-y) 0;
}
.section-sm {
    padding: 64px 0;
}
.section-xs {
    padding: 44px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: "DM Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-xs);
    border: 1px solid rgba(255, 116, 108, 0.18);
    padding: 5px 13px;
    border-radius: var(--r-pill);
    margin-bottom: 16px;
}
.eyebrow-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    animation: blink 2.5s ease-in-out infinite;
}
@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

.section-head {
    margin-bottom: 56px;
}
.section-head.center {
    text-align: center;
}
.section-head.center .section-desc {
    margin-inline: auto;
}
.section-head h2 {
    margin-bottom: 14px;
}
.section-desc {
    font-size: 1.0625rem;
    color: var(--ink-2);
    line-height: 1.75;
    max-width: 560px;
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xs);
    transition:
        box-shadow 0.25s var(--ease),
        transform 0.25s var(--ease),
        border-color 0.25s;
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: transparent;
}
.card-body {
    padding: 28px;
}

/* ── Store Buttons ───────────────────────────────────────────── */
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary);
    color: #fff;
    border-radius: var(--r-md);
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s var(--ease);
    text-decoration: none;
}
.store-btn:hover {
    background: var(--secondary-mid);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.store-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.store-btn-text small {
    display: block;
    font-size: 0.6875rem;
    font-weight: 400;
    opacity: 0.72;
}
.store-btn-text span {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Hidden by default — to go live:
   change .store-buttons display to flex
   and hide .waitlist-block */
.store-buttons {
    display: none;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Waitlist Inline ─────────────────────────────────────────── */
.waitlist-inline {
    display: flex;
    gap: 8px;
    max-width: 440px;
}
.waitlist-inline .form-control {
    flex: 1;
    border-radius: var(--r-pill);
    padding-left: 1.25rem;
}
.waitlist-inline .btn {
    flex-shrink: 0;
}
.waitlist-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--ink-3);
    margin-top: 10px;
}
.waitlist-note::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
    background: var(--secondary-dark);
    padding: 80px 0 0;
}

.footer-brand {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    text-decoration: none;
    letter-spacing: -0.02em;
}
.footer-brand:hover {
    color: var(--primary-light);
}

.footer-logo-mark {
    width: 30px;
    height: 30px;

    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.footer-logo-mark::after {
    content: "";
    width: 11px;
    height: 11px;
    background: rgba(255, 255, 255, 0.48);
    border-radius: 3px;
}

.footer-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.7;
    max-width: 256px;
}

.footer-heading {
    font-family: "DM Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 18px;
}

.footer-link {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    transition: color 0.16s;
}
.footer-link:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}
.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    transition: all 0.18s;
}
.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}
.footer-social svg {
    width: 15px;
    height: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 60px;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom p,
.footer-bottom span {
    font-size: 0.8375rem;
    color: rgba(255, 255, 255, 0.32);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --section-y: 64px;
    }
    .waitlist-inline {
        flex-direction: column;
    }
    .waitlist-inline .btn {
        width: 100%;
    }
    .store-buttons {
        flex-direction: column;
    }
}
