/* Felvar, felvar.app */

:root {
    /* Surfaces */
    --bg:            #FFFFFF;
    --surface:       #F2F2F7;
    --surface-2:     #E5E5EA;

    /* Accent, named by role, never by hue. */
    --accent:        #EB8337;
    --accent-soft:   #F6B989;
    /* On an accent fill: white; labels there are large and bold. */
    --on-accent:     #FFFFFF;
    /* Accent as TEXT on white needs a deeper step to read. */
    --accent-text:   #B85A16;

    /* Text */
    --text:          #1C1C1E;
    --text-2:        #8E8E93;
    --hairline:      rgba(0, 0, 0, 0.10);

    /* Radii by role */
    --r-chip:  14px;
    --r-tile:  20px;
    --r-card:  28px;
    --r-hero:  32px;

    /* Spacing */
    --gutter:  20px;

    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --max:  1120px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    background: var(--bg);
}

body {
    /* SF Rounded */
    font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
                 "SF Pro Display", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--on-accent); }

a { color: inherit; }

/* ─── Nav ─── */

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: var(--max);
    margin: 0 auto;
    padding: 16px var(--gutter);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-right: auto;
}

.nav-icon { border-radius: 8px; }
.nav-title { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }

.nav-links { display: flex; gap: 22px; }
.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-2);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

.nav-cta {
    font-size: 15px;
    font-weight: 700;
    color: var(--on-accent);
    background: var(--accent);
    padding: 9px 18px;
    border-radius: 999px;
    text-decoration: none;
}

/* ─── Buttons ─── */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
    color: var(--on-accent);
    background: var(--accent);
    padding: 16px 28px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn-primary:hover { transform: translateY(-1px); opacity: 0.94; }

.btn-glyph { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ─── Hero ─── */

.hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: 96px var(--gutter) 72px;
    text-align: center;
}

.hero-icon {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 112px;
    height: 112px;
    border-radius: 26px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    margin-bottom: 28px;
}

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-text);
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 780px;
    margin: 0 auto 18px;
}

.hero .lede {
    font-size: clamp(18px, 2.2vw, 21px);
    color: var(--text-2);
    max-width: 620px;
    margin: 0 auto 34px;
}

.hero-note {
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-2);
}

/* The coming soon homepage: logo, name, "Coming soon" in the accent. */
.coming-soon h1 { font-size: clamp(44px, 7vw, 72px); margin-bottom: 10px; }
.coming-soon .soon {
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 700;
    color: var(--accent);
}
.coming-soon {
    min-height: calc(100vh - 260px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.coming-soon .hero-note a { color: var(--text-2); }

/* ─── Sections ─── */

.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 72px var(--gutter);
}

.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 12px;
}
.section-head p { font-size: 18px; color: var(--text-2); }

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    background: var(--surface);
    border-radius: var(--r-card);
    padding: 28px;
}

.card .step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 800;
    margin-bottom: 18px;
}

.card h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 16px; }

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.cta-band {
    text-align: center;
    background: var(--surface);
    border-radius: var(--r-hero);
    padding: 56px var(--gutter);
}
.cta-band h2 {
    font-size: clamp(26px, 3.6vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

/* ─── Legal / support documents ─── */

.doc {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px var(--gutter) 80px;
}
.doc h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; letter-spacing: -0.02em; margin: 18px 0 6px; }
.doc .subtitle { color: var(--text-2); margin-bottom: 36px; }
.doc h2 { font-size: 22px; font-weight: 700; margin: 36px 0 10px; }
.doc h3 { font-size: 17px; font-weight: 700; margin: 22px 0 6px; }
.doc p, .doc li { font-size: 16px; color: var(--text); margin-bottom: 10px; }
.doc ul { padding-left: 22px; margin-bottom: 12px; }
.doc a { color: var(--accent-text); }
.doc .doc-back, .doc .back-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-2);
    text-decoration: none;
}
.doc .back-link { display: inline-block; margin-top: 40px; }
.doc .box {
    background: var(--surface);
    border-radius: var(--r-tile);
    padding: 18px 20px;
    margin: 14px 0;
}

.faq-item {
    background: var(--surface);
    border-radius: var(--r-tile);
    padding: 18px 20px;
    margin-bottom: 12px;
}
.faq-item h3 { margin: 0 0 6px; }
.faq-item p { margin: 0; color: var(--text-2); }

/* ─── Footer ─── */

footer { border-top: 1px solid var(--hairline); margin-top: 40px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 32px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 380px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-icon { border-radius: 9px; }
.footer-name { font-size: 19px; font-weight: 800; }
.footer-desc { color: var(--text-2); font-size: 15px; margin-bottom: 16px; }
.footer-store {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
    padding: 10px 16px;
    border-radius: 999px;
}
.footer-store .btn-glyph { width: 16px; height: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.footer-col a { font-size: 15px; text-decoration: none; }
.footer-col a:hover { color: var(--accent-text); }
.footer-bottom { margin-top: 40px; font-size: 13px; color: var(--text-2); }

/* ─── Reveal on scroll (applied from JS; the page reads fully without it) ─── */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── Phone width: 16px gutter, no horizontal scroll ─── */

@media (max-width: 760px) {
    :root { --gutter: 16px; }
    .nav-links { display: none; }
    .hero { padding-top: 56px; }
    .steps, .features { grid-template-columns: 1fr; }
    .section { padding: 48px var(--gutter); }
}
