:root {
    --teal: #109891;
    --orange: #f68c36;
    --yellow: #fddc4a;
    --gray: #656565;
    --gray-light: #f7f7f8;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--orange) 0%, var(--yellow) 100%);
    --font: 'Houschka', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    font-weight: 500;
    color: var(--gray);
    background: var(--white);
    line-height: 1.7;
    font-size: 1.05rem;
    overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; }

.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ── Hero ── */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 0 80px;
    background: var(--white);
}


/* ── Fixed logo with circles ── */
.logo-fixed {
    position: fixed;
    top: 90px;
    left: 90px;
    z-index: 50;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.logo-fixed.hidden {
    opacity: 0;
}

.logo-fixed a {
    pointer-events: auto;
}

.logo-fixed .circles-bg {
    position: fixed;
    width: 700px;
    height: 700px;
    top: -225px;
    left: -90px;
    z-index: 49;
    pointer-events: none;
}

.logo-fixed a {
    position: relative;
    z-index: 51;
}

.logo-main {
    width: 280px;
    position: relative;
    margin-top: 10px;
    margin-left: 30px;
}

/* ── Site Header ── */
.site-header {
    background: transparent;
    padding: 12px 0;
    position: relative;
    z-index: 1;
    height: 72px;
}

.login-btn {
    padding: 14px 40px;
    border-radius: 40px;
    background: var(--gradient);
    color: var(--white);
    font-family: var(--font);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: fixed;
    top: 16px;
    right: 24px;
    z-index: 10;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(246, 140, 54, 0.3);
}

/* ── Curtain ── */
.curtain {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.curtain.open {
    opacity: 1;
    pointer-events: auto;
}

.curtain-content {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.curtain.open .curtain-content {
    transform: translateY(0);
}

.curtain-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--gray);
    cursor: pointer;
    line-height: 1;
}

.curtain-content h3 {
    color: var(--teal);
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.curtain-content p {
    color: var(--gray);
    margin-bottom: 12px;
}

.curtain-go {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 40px;
    background: var(--gradient);
    color: var(--white);
    font-family: var(--font);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    margin: 8px 0 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.curtain-go:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(246, 140, 54, 0.3);
}

.curtain-signup {
    font-size: 0.9rem;
    color: var(--gray);
}

.curtain-signup a {
    color: var(--teal);
    text-decoration: underline;
}

/* ── Hero ── */
.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

.hero-circles {
    position: absolute;
    width: 700px;
    opacity: 0.08;
    top: -100px;
    right: -180px;
    pointer-events: none;
    z-index: 0;
}

.hero-section {}

.hero-magician {
    width: 360px;
    margin-bottom: -16px;
}

.headline {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


.subhead-heart {
    height: 1.2em;
    width: auto;
    display: inline-block;
}

.tagline {
    margin-top: 10px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
    opacity: 0.8;
}

.cta-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 40px;
    border-radius: 40px;
    background: var(--gradient);
    color: var(--white);
    font-family: var(--font);
    font-weight: 500;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(246, 140, 54, 0.3);
}

/* ── Values ── */
.values {
    padding: 64px 0;
    background: var(--white);
    border-top: 1px solid #e8e8e8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.value-card {
    padding: 32px 36px;
    text-align: center;
    position: relative;
}

.value-card + .value-card {
    border-left: 1px solid #e8e8e8;
}

.value-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
}

.value-card::before {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--teal);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.value-card h3 {
    color: var(--teal);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    font-weight: 500;
}

.value-card p {}

.trust-number {
    height: 1.8em;
    width: auto;
}

/* ── Licensing ── */
.licensing {
    padding: 64px 0;
    background: var(--teal);
    color: var(--white);
}

.licensing-content {
    text-align: center;
}

.licensing-content h2 {
    font-size: 1.5rem;
    margin-bottom: 32px;
}

.licensing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 780px;
    margin: 0 auto 32px;
}

.licensing-item h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.licensing-item p {
    opacity: 0.85;
}

.licensing-quote {
    font-style: italic;
    opacity: 0.75;
    max-width: 540px;
    margin: 0 auto;
    font-size: 0.95rem;
}

.bottom-gradient {
    background: var(--gradient);
    color: var(--white);
}

/* ── CTA ── */
.cta-section {
    padding: 80px 0 64px;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.cta-sub {
    opacity: 0.9;
    margin-bottom: 8px;
}

.cta-help {
    opacity: 0.8;
    margin-bottom: 28px;
    font-size: 1.05rem;
}

.cta-disclaimer {
    margin-top: 24px;
    font-size: 0.8rem;
    opacity: 0.6;
    line-height: 1.6;
    font-weight: 300;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cta-form {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.cta-form-row {
    display: inline-flex;
    border-radius: 40px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.7);
    transition: border-color 0.3s;
}

.cta-form-row:focus-within {
    border-color: var(--white);
}

.cta-form input[type="email"] {
    border: none;
    background: transparent;
    padding: 14px 24px;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--white);
    width: 280px;
    outline: none;
}

.cta-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.65);
}

.msg-toggle {
    border: none;
    background: transparent;
    color: var(--white);
    font-size: 1.4rem;
    padding: 0 12px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    font-family: var(--font);
    line-height: 1;
}

.msg-toggle:hover {
    opacity: 1;
}

.cta-form button[type="submit"] {
    border: none;
    background: var(--white);
    color: var(--orange);
    padding: 14px 28px;
    font-family: var(--font);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    opacity: 0.4;
    pointer-events: none;
}

.cta-form button[type="submit"].enabled {
    opacity: 1;
    pointer-events: auto;
}

.cta-form button[type="submit"].enabled:hover {
    background: var(--teal);
    color: var(--white);
}

.cta-msg-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease;
    width: 100%;
    max-width: 460px;
}

.cta-msg-wrap.open {
    max-height: 120px;
    margin-top: 12px;
}

.cta-msg-wrap textarea {
    width: 100%;
    border: 2px solid rgba(255,255,255,0.7);
    background: transparent;
    color: var(--white);
    font-family: var(--font);
    font-size: 0.95rem;
    padding: 12px 16px;
    border-radius: 12px;
    outline: none;
    resize: none;
}

.cta-msg-wrap textarea::placeholder {
    color: rgba(255,255,255,0.55);
}

.error-msg {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    min-height: 1.2em;
}

.cta-or {
    margin-top: 20px;
    opacity: 0.85;
}

.cta-dev-note {
    margin-top: 24px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.85rem;
    opacity: 0.75;
    line-height: 1.6;
}

.cta-illustration {
    width: 180px;
    margin: 40px auto 0;
    opacity: 0.9;
}

/* ── Footer ── */
.footer {
    background: transparent;
    color: var(--white);
    padding: 40px 0 28px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand img {
    width: 90px;
    margin-bottom: 12px;
}

.footer p {
    font-size: 0.82rem;
    margin-bottom: 3px;
    opacity: 0.9;
}

.footer h4 {
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 6px;
    text-align: center;
}

.atsign {
    display: inline;
    height: 10px;
    width: auto;
    vertical-align: middle;
}

.footer-contact {
    border-collapse: collapse;
}

.footer-contact tr + tr td {
    padding-top: 8px;
}

.footer-contact td {
    font-size: 0.82rem;
    padding: 0;
    vertical-align: top;
    opacity: 0.9;
    line-height: 1.3;
}

.footer-label {
    opacity: 0.6;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    padding-right: 10px !important;
    white-space: nowrap;
    vertical-align: top;
    padding-top: 4px;
    font-weight: 300;
    text-align: right;
}

.footer-legal {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-legal p {
    font-size: 0.8rem;
    opacity: 0.7;
    line-height: 1.6;
    font-weight: 300;
}

/* ── Mobile logo ── */
.mobile-logo {
    display: none;
    text-align: center;
}

.mobile-logo img {
    width: 300px;
    margin: 0 auto;
    padding: 30px 0 5px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .logo-fixed {
        display: none;
    }

    .mobile-logo {
        display: block;
    }

    .login-btn {
        font-size: 0.8rem;
        padding: 10px 20px;
        top: 12px;
        right: 12px;
    }

    .what-grid {
        flex-direction: column;
        text-align: center;
    }

    .values-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .value-card + .value-card {
        border-left: none;
        border-top: 1px solid #e8e8e8;
    }

    .footer-grid {
        gap: 24px;
    }

    .headline { font-size: 1.3rem; }

    .hero-magician {
        width: 240px;
    }

    .site-header {
        height: 48px;
    }

    .licensing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 500px) {
    .cta-form {
        flex-direction: column;
        border-radius: 12px;
    }

    .cta-form input[type="email"] {
        width: 100%;
        text-align: center;
    }

    .footer-grid {
        flex-direction: column;
    }

    .logo-main { width: 200px; }
}
