/* Cruise with Crypto - shared styles */

:root {
    --navy: #0b1f3a;
    --navy-soft: #16345c;
    --blue: #0077b6;       /* 4.8:1 on white: passes WCAG AA for text and buttons */
    --blue-dark: #005a8c;
    --cyan: #00b0d3;       /* decorative only, never for text on white */
    --ink: #1c2733;
    --muted: #4b5a6b;
    --line: #e2e8f0;
    --bg: #f6f9fc;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(11, 31, 58, 0.12);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Keep the footer at the bottom of the window on short pages (for example the 404 page). */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main { flex: 1 0 auto; }

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

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

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

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--navy);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 8px;
    z-index: 100;
}
.skip-link:focus { left: 8px; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}
.brand:hover { color: var(--navy); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }

.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
}
.nav a:hover { background: var(--bg); color: var(--blue-dark); }
.nav a[aria-current="page"] { color: var(--blue-dark); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 10px;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--blue-dark); color: var(--white); transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(0, 176, 211, 0.35), transparent 60%),
        radial-gradient(700px 400px at 0% 110%, rgba(0, 119, 182, 0.35), transparent 60%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
    color: var(--white);
    padding: 72px 0 130px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9be7f7;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.1;
    margin: 0 0 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 640px;
    margin: 0 auto;
    color: #d5e3f2;
}

/* ---------- Search card ---------- */
.search-card {
    position: relative;
    margin: -80px auto 0;
    max-width: 820px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}
.search-card h2 { margin: 0 0 4px; font-size: 1.3rem; color: var(--navy); }
.search-card .hint { margin: 0 0 16px; color: var(--muted); font-size: 0.95rem; }

.search-frame {
    width: 100%;
    min-height: 240px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section h2.title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--navy);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.section .lead {
    text-align: center;
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
}
.card .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e6f4fb;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
}
.card h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--navy); }
.card p { margin: 0; color: var(--muted); }

/* ---------- Forms (contact) ---------- */
.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px;
    max-width: 640px;
    margin: 0 auto;
}

.page-head { background: linear-gradient(160deg, var(--navy), var(--navy-soft)); color: var(--white); padding: 56px 0 90px; text-align: center; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.02em; }
.page-head p { margin: 0; color: #d5e3f2; }
.page-body { margin-top: -50px; padding-bottom: 72px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea {
    width: 100%;
    font: inherit;
    padding: 13px 14px;
    border: 1px solid #b6c2d0;
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 3px solid rgba(0, 176, 211, 0.4); border-color: var(--blue); }

.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

#form-status { margin: 14px 0 0; min-height: 1.5em; font-weight: 500; }
#form-status.ok { color: #1a7f37; }
#form-status.error { color: #b42318; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.3rem; color: var(--navy); margin: 32px 0 8px; }
.prose p, .prose li { color: #35424f; }
.prose ul { padding-left: 22px; }
.prose .updated { color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c3d3e6; padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #e6f1fb; text-decoration: none; margin-right: 18px; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.site-footer small { color: #9fb3c9; }

@media (max-width: 640px) {
    .hero { padding: 48px 0 110px; }
    .search-card { padding: 18px; margin-top: -70px; }
    .panel { padding: 22px; }
    /* Phone header: brand on the first row, the links on a second row. Not sticky, to save screen space. */
    .site-header { position: relative; }
    .header-inner { flex-wrap: wrap; justify-content: center; gap: 2px 12px; padding: 8px 0 4px; min-height: 0; }
    .brand img { flex-shrink: 0; }
    .nav { width: 100%; justify-content: center; flex-wrap: wrap; gap: 0; }
    .nav a { padding: 8px 4px; font-size: 0.82rem; white-space: nowrap; }
}

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

/* ---------- "Coming soon" component ----------
   Put this on any page whose content is still being written (see README, "Coming soon notice").
   Light version for white panels; add .coming-soon--dark for use on the navy hero. */
.coming-soon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin: 0 0 28px;
    padding: 16px 20px;
    border: 1px solid #b9d8ec;
    border-radius: var(--radius);
    background: #eaf4fb;
    color: var(--ink);
}
.coming-soon p { margin: 0; flex: 1 1 260px; font-size: 1rem; color: inherit; }
.coming-soon .badge {
    flex: 0 0 auto;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--blue);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.coming-soon--dark {
    justify-content: center;
    margin: 28px auto 0;
    max-width: 680px;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}
.coming-soon--dark .badge { background: var(--white); color: var(--navy); }

/* ---------- Steps (How it works) ---------- */
.steps { counter-reset: step; list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 16px; }
.steps li {
    counter-increment: step;
    position: relative;
    padding: 18px 20px 18px 68px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 18px;
    top: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e6f4fb;
    color: var(--blue-dark);
    display: grid;
    place-items: center;
    font-weight: 700;
}
.steps h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--navy); }
.steps p { margin: 0; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
    cursor: pointer;
    padding: 14px 4px;
    font-weight: 600;
    color: var(--navy);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 14px; padding: 0 4px; color: #35424f; }
