/* cuspide-landing-styles */
:root {
    --primary: #7424e0;
    --primary-dark: #5c1cb8;
    --primary-soft: #efe6fd;
    --bg: #fbfafe;
    --surface: #fff;
    --ink: #1b1642;
    --muted: #5e5a7a;
    --line: #e3ddf3;
    --violet: var(--primary);
    --violet-ink: #fff;
    --lilac: var(--primary-soft);
    --mint: #1e9c82;
    --deep: #1b1642;
    --deep-ink: #f1eefb;
    --sun: #ffb020;
    --sun-ink: #2a1a00;
    --head: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
    --body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
    --touch-min: 2.75rem;
    --header-h: 4.25rem;
    box-sizing: border-box;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
        --bg: #12102a;
        --surface: #1c1940;
        --ink: #f1eefb;
        --muted: #a9a4c8;
        --line: #2e2a58;
        --violet-ink: #12102a;
        --lilac: #241f4d;
        --mint: #4fd6b8;
        --deep: #0c0a1f;
        --deep-ink: #f1eefb;
        --violet: #a56bff;
    }
}

:root[data-theme='dark'] {
    --bg: #12102a;
    --surface: #1c1940;
    --ink: #f1eefb;
    --muted: #a9a4c8;
    --line: #2e2a58;
    --violet-ink: #12102a;
    --lilac: #241f4d;
    --mint: #4fd6b8;
    --deep: #0c0a1f;
    --deep-ink: #f1eefb;
    --violet: #a56bff;
}

html {
    scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h));
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--bg);
    color: var(--ink);
    font: 400 17px/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

body::before {
    content: '';
    position: fixed;
    inset: 0 0 auto;
    height: env(safe-area-inset-top, 0px);
    background: var(--bg);
    z-index: 10;
    pointer-events: none;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--violet);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: 24px;
    top: 0.75rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--deep);
    color: var(--deep-ink);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transform: translateY(-200%);
    text-decoration: none;
}
.skip-link:focus {
    transform: translateY(0);
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 max(24px, env(safe-area-inset-left, 0px)) max(0px, env(safe-area-inset-right, 0px));
}

h1,
h2,
h3 {
    font-family: var(--head);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0;
}

h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
}
h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

p {
    margin: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: var(--violet);
    color: #fff;
    font: 600 1rem var(--body);
    padding: 14px 26px;
    border-radius: 999px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    min-height: var(--touch-min);
    line-height: 1.25;
}
.btn:hover {
    filter: brightness(1.08);
}

.btn-sun {
    background: var(--sun);
    color: var(--sun-ink);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover {
    filter: none;
    background: var(--lilac);
}

/* header */
.site-header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 20;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 16px;
}

.logo {
    font: 700 1.25rem var(--head);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    flex-shrink: 0;
}
.logo span {
    color: var(--violet);
}
.logo-mark {
    width: 28px;
    height: auto;
    flex-shrink: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 0.95rem;
}
.header-nav a {
    text-decoration: none;
    color: var(--muted);
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
}
.header-nav a:hover {
    color: var(--ink);
}
.header-nav a.nav-login {
    font-weight: 600;
    color: var(--ink);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.header-login-compact {
    display: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
}
.header-cta {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.nav-drawer {
    display: none;
    position: relative;
    margin-left: auto;
}
.nav-drawer-trigger {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-min);
    min-width: var(--touch-min);
    padding: 0 0.65rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: var(--surface);
    user-select: none;
}
.nav-drawer-trigger::-webkit-details-marker {
    display: none;
}
.nav-drawer-icon {
    width: 1.125rem;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}
.nav-drawer-label {
    display: none;
}
.nav-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 10, 31, 0.55);
    z-index: 60;
}
.nav-drawer-shell {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(100vw, 22rem);
    max-width: 100%;
    z-index: 70;
    flex-direction: column;
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
    max-height: 100dvh;
    box-sizing: border-box;
    overflow: hidden;
    padding-right: env(safe-area-inset-right, 0px);
}
.nav-drawer-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: max(0.65rem, env(safe-area-inset-top, 0px)) 0.85rem 0.75rem 1.15rem;
    border-bottom: 1px solid var(--line);
}
.nav-drawer-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--head);
}
.nav-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--lilac);
    color: var(--ink);
    cursor: pointer;
}
.nav-drawer-scroll {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.75rem 1rem max(1.25rem, env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    box-sizing: border-box;
}
.nav-drawer-scroll a:not(.btn) {
    display: flex;
    align-items: center;
    min-height: var(--touch-min);
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    font: 500 1rem var(--body);
    text-decoration: none;
    color: var(--ink);
}
.nav-drawer-scroll a:not(.btn):hover {
    background: var(--lilac);
}
.nav-drawer-scroll a.nav-login {
    margin-top: 0.35rem;
    font-weight: 600;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding-top: 0.85rem;
}
.nav-drawer-scroll a.nav-drawer-cta.btn {
    margin-top: 0.75rem;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    font: 600 0.95rem var(--body);
    text-align: center;
    line-height: 1.25;
    white-space: normal;
}
.nav-drawer-scroll a.nav-drawer-cta.btn:hover {
    filter: brightness(1.08);
    background: var(--sun);
}
body.nav-drawer-open {
    overflow: hidden;
}
.nav-drawer[open] .nav-drawer-backdrop,
.nav-drawer[open] .nav-drawer-shell {
    display: flex;
}

/* hero */
.hero {
    padding: 72px 0 40px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    align-items: center;
}
.hero .lead {
    font-size: 1.2rem;
    color: var(--muted);
    margin: 22px 0 32px;
    max-width: 30em;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-highlights {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.95rem;
}
.hero-highlights li::before {
    content: '✓';
    color: var(--mint);
    font-weight: 700;
    margin-right: 8px;
}

.hero-visual {
    position: relative;
}

.sticker {
    position: absolute;
    top: -18px;
    right: -8px;
    z-index: 2;
    background: var(--sun);
    color: var(--sun-ink);
    font: 700 0.85rem var(--body);
    padding: 8px 16px;
    border-radius: 999px;
    transform: rotate(4deg);
    pointer-events: none;
}

/* app mock */
.app {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--violet) 35%, transparent);
    overflow: hidden;
    font-size: 0.92rem;
}
.app-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    gap: 12px;
    flex-wrap: wrap;
}
.app-top b {
    font: 700 1rem var(--head);
}
.app-top small {
    color: var(--muted);
}
.app-body {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}
.agenda {
    padding: 8px 0;
    border-right: 1px solid var(--line);
}
.slot {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    border-left: 4px solid transparent;
    color: inherit;
    font: inherit;
    padding: 14px 18px;
    cursor: pointer;
}
.slot:hover {
    background: var(--lilac);
}
.slot[aria-pressed='true'] {
    background: var(--lilac);
    border-left-color: var(--sun);
}
.slot time {
    font-weight: 600;
    color: var(--violet);
}
.slot em {
    font-style: normal;
    color: var(--muted);
    font-size: 0.85rem;
}
.detail {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.detail h3 {
    font-size: 1.3rem;
}
.tag {
    align-self: flex-start;
    background: var(--sun);
    color: var(--sun-ink);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 0.8rem;
    font-weight: 600;
}
.detail dl {
    margin: 0;
    display: grid;
    gap: 10px;
}
.detail dt {
    font-size: 0.8rem;
    color: var(--muted);
}
.detail dd {
    margin: 0;
}
.app-stats {
    display: flex;
    gap: 18px;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    flex-wrap: wrap;
}
.app-stats b {
    display: block;
    font: 700 1.4rem var(--head);
    color: var(--ink);
}
.hero-note {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 12px;
    text-align: center;
}

/* sections */
.section-block {
    padding: 96px 0;
}
.tint {
    background: var(--lilac);
}
.section-intro {
    max-width: 36em;
    margin-bottom: 56px;
}
.section-intro p {
    color: var(--muted);
    margin-top: 16px;
}
.feat {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 72px;
}
.feat article {
    padding: 28px 0;
    border-top: 1.5px solid var(--ink);
    position: relative;
}
.feat article::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 56px;
    height: 6px;
    background: var(--sun);
    border-radius: 3px;
}
.feat h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.feat p {
    color: var(--muted);
    max-width: 28em;
}

.col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.col .pts {
    display: grid;
    gap: 28px;
}
.col .pts > div {
    border-left: 5px solid var(--sun);
    padding-left: 22px;
}
.col .pts h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}
.col .pts p {
    color: var(--muted);
}
.col-lead {
    color: var(--muted);
    margin-top: 16px;
    max-width: 30em;
}
.fine {
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 40px;
    max-width: 46em;
    grid-column: 1 / -1;
}

#faq .section-intro {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.faq {
    max-width: 780px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.faq details {
    border-bottom: 1px solid var(--line);
}
.faq details[open] {
    border-bottom-color: var(--sun);
}
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 0;
    font: 600 1.1rem var(--body);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.faq summary::-webkit-details-marker {
    display: none;
}
.faq summary::after {
    content: '+';
    font-size: 1.5rem;
    line-height: 1;
    color: var(--violet);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq details[open] summary::after {
    transform: rotate(45deg);
}
.faq details p {
    color: var(--muted);
    padding: 0 0 22px;
    max-width: 40em;
}

.cta-band {
    background: var(--deep);
    color: var(--deep-ink);
    text-align: center;
    padding: 96px 0;
}
.cta-band h2 {
    max-width: 14em;
    margin: 0 auto 18px;
}
.cta-band .cta-sub {
    opacity: 0.75;
    margin-bottom: 32px;
}
.cta-band .btn {
    background: var(--sun);
    color: var(--sun-ink);
}
.cta-band .btn:hover {
    filter: brightness(1.08);
}

.site-footer {
    background: var(--deep);
    color: var(--deep-ink);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 40px 0 max(40px, env(safe-area-inset-bottom, 0px));
    font-size: 0.9rem;
}
.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    opacity: 0.85;
}
.footer-row a {
    text-decoration: none;
    margin-right: 20px;
}
.footer-row a:hover {
    text-decoration: underline;
}
.footer-meta {
    margin-top: 16px;
    font-size: 0.78rem;
    opacity: 0.65;
}

@media (max-width: 900px) {
    .nav-drawer-shell {
        width: min(100vw, 22rem);
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }
    .header-nav,
    .header-actions {
        display: none;
    }
    .header-login-compact {
        display: inline-flex;
        align-items: center;
        min-height: var(--touch-min);
        margin-left: auto;
        margin-right: 0.25rem;
    }
    .nav-drawer {
        display: block;
    }
}

@media (max-width: 800px) {
    .col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .feat {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .app-body {
        grid-template-columns: 1fr;
    }
    .agenda {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .hero-actions .btn {
        flex: 1 1 100%;
    }
}

@media (min-width: 901px) {
    .nav-drawer {
        display: none !important;
    }
    .header-login-compact {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
