/* ---------------------------------------------------------------
   Velarium marketing/support site — dreamcore aesthetic
   Mirrors the in-app palette + masthead treatment so the site
   feels like a continuation of the app, not a separate brand.
   --------------------------------------------------------------- */

:root {
    /* Dreamcore palette (matches DreamMood.night tokens in-app) */
    --bg-deep:        #110b22;
    --bg-mid:         #1a1235;
    --bg-rose:        #2a1838;
    --bg-amber-leak:  rgba(255, 217, 140, 0.10);

    --text-primary:   #f4f0fa;
    --text-secondary: #c9bfdb;
    --text-tertiary:  #8a7fa3;

    --accent:         #5eaab8;          /* dreamTeal */
    --accent-hover:   #7bc4d2;
    --lavender:       #b8a3d9;
    --soft-gold:      #f3d8a3;

    --card-bg:        rgba(255, 255, 255, 0.04);
    --card-border:    rgba(184, 163, 217, 0.20);
    --card-shadow:    0 24px 48px -16px rgba(20, 8, 40, 0.60);

    --radius-sm:      8px;
    --radius-md:      14px;
    --radius-lg:      24px;

    --serif: "Iowan Old Style", "Apple Garamond", Garamond, "Times New Roman", serif;
    --sans:  -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

/* Base ---------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    color: var(--text-primary);
    line-height: 1.6;
    background:
        radial-gradient(ellipse at 12% 78%, var(--bg-amber-leak), transparent 55%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-rose) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header / nav -------------------------------------------------- */

header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    background: rgba(17, 11, 34, 0.55);
    border-bottom: 1px solid rgba(184, 163, 217, 0.10);
}

nav {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.brand img {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(94, 170, 184, 0.30);
}

.wordmark {
    font-family: var(--serif);
    font-style: italic;
    letter-spacing: 0.18em;
    font-size: 14px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
}

.nav-links a {
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

@media (max-width: 560px) {
    .wordmark { display: none; }
    .nav-links { gap: 14px; font-size: 13px; }
}

/* Hero ---------------------------------------------------------- */

#hero {
    padding: 80px 24px 100px;
    text-align: center;
}

.hero-inner {
    max-width: 680px;
    margin: 0 auto;
}

.hero-icon {
    width: 128px;
    height: 128px;
    border-radius: 28px;
    margin-bottom: 32px;
    box-shadow:
        0 30px 60px -20px rgba(94, 170, 184, 0.35),
        0 0 0 1px rgba(184, 163, 217, 0.20);
}

#hero h1 {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    /* Tightened from 0.30em + 7vw clamp so the wordmark fits on one
       line within the 680px hero container at common laptop widths
       (1280–1440 px). `white-space: nowrap` prevents the trailing
       letter from wrapping if a viewport is narrower than expected;
       the smaller clamp upper bound keeps it from overflowing. */
    letter-spacing: 0.22em;
    font-size: clamp(30px, 5.5vw, 56px);
    white-space: nowrap;
    color: var(--text-primary);
    text-shadow:
        0 0 30px rgba(184, 163, 217, 0.40),
        0 0 8px rgba(243, 216, 163, 0.20);
    margin-bottom: 8px;
}

.tagline {
    font-family: var(--serif);
    font-style: italic;
    letter-spacing: 0.20em;
    color: var(--lavender);
    font-size: 14px;
    margin-bottom: 36px;
}

.lede {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 18px;
}

.lede.subdued {
    color: var(--text-tertiary);
    font-size: 15px;
}

/* App Store CTA ------------------------------------------------- */

.app-store-cta {
    display: inline-block;
    margin-top: 28px;
    transition: transform 0.2s ease, filter 0.2s ease;
    line-height: 0;            /* prevents inline-baseline ghost gap under the svg */
    filter: drop-shadow(0 12px 24px rgba(94, 170, 184, 0.18));
}

.app-store-cta:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 18px 28px rgba(94, 170, 184, 0.30));
}

.app-store-cta img {
    height: auto;              /* keep aspect ratio when the svg scales */
    max-width: 100%;
    border-radius: 9px;        /* matches the inner radius of Apple's badge artwork */
}

.app-store-cta.footer-cta {
    margin-top: 28px;
    margin-bottom: 24px;
    filter: drop-shadow(0 6px 14px rgba(94, 170, 184, 0.20));
}

/* Nav-bar pill that mirrors the App Store badge in tone but stays
   text-only so the sticky header doesn't shout. */
.nav-cta {
    color: var(--text-primary) !important;
    background: linear-gradient(135deg, var(--accent), var(--lavender));
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(94, 170, 184, 0.25);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(94, 170, 184, 0.40);
    color: var(--text-primary) !important;
}

/* Sections (features / support / privacy) ----------------------- */

section {
    padding: 72px 0;
}

section h2 {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.10em;
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 32px;
    text-align: center;
}

section p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

/* Features grid */

#features .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 22px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 163, 217, 0.40);
}

.card h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 19px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card p {
    font-size: 14.5px;
    color: var(--text-secondary);
    margin: 0;
}

/* FAQ ------------------------------------------------------------ */

.faq {
    margin: 32px 0;
}

details {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 16px 22px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease;
}

details[open] {
    border-color: rgba(184, 163, 217, 0.35);
}

details summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 16px;
    list-style: none;
    position: relative;
    padding-right: 24px;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 20px;
    line-height: 1;
    transition: transform 0.2s ease;
}

details[open] summary::after {
    content: "−";
}

details p {
    margin-top: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

details p strong {
    color: var(--text-primary);
}

/* Contact line */

.contact {
    margin-top: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
}

.contact strong {
    color: var(--text-primary);
}

/* Privacy section keeps inherited styles, just narrower body */
#privacy .container { max-width: 720px; }
#privacy p strong { color: var(--text-primary); }

/* Footer -------------------------------------------------------- */

footer {
    padding: 56px 24px 72px;
    text-align: center;
    border-top: 1px solid rgba(184, 163, 217, 0.10);
    margin-top: 40px;
}

.wordmark-small {
    font-family: var(--serif);
    font-style: italic;
    letter-spacing: 0.30em;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.footer-tagline {
    font-family: var(--serif);
    font-style: italic;
    letter-spacing: 0.12em;
    font-size: 12px;
    color: var(--lavender);
    margin-bottom: 24px;
}

.footer-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 0;
}
