/* Travely — landing + legal pages.
   Palette lifted from the app itself (WanderTheme) so the site and the product feel like the
   same thing: coral/sunset warmth over a deep night-sky base. */

:root {
    --coral: #f55c57;
    --sunset: #ff9c4f;
    --violet: #6b4fc7;
    --ocean: #1a8fb8;
    --mint: #30b394;
    --star: #ffba2e;

    --ink: #0c0a1c;
    --ink-2: #14122b;
    --card: rgba(255, 255, 255, 0.055);
    --card-line: rgba(255, 255, 255, 0.11);
    --text: #f6f3ef;
    --text-dim: rgba(246, 243, 239, 0.68);
    --text-faint: rgba(246, 243, 239, 0.45);

    --shell: 1140px;
    --radius: 22px;
    --radius-sm: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--sunset); }

h1, h2, h3 { line-height: 1.14; margin: 0; letter-spacing: -0.022em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.3rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 4vw, 2.85rem); font-weight: 780; }
h3 { font-size: 1.16rem; font-weight: 700; }
p { margin: 0; }

/* The gradient is a headline device. Clipping a gradient to a two-letter word inside dimmed body
   copy reads as a rendering fault, so paragraphs get a plain accent colour instead. */
h1 em, h2 em {
    font-style: normal;
    background: linear-gradient(120deg, var(--coral), var(--sunset));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
p em { font-style: normal; color: var(--sunset); font-weight: 640; }

.section-shell { width: min(100% - 44px, var(--shell)); margin-inline: auto; }

/* Ambient wash behind everything, echoing the app's disclosure screen. */
.ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(58rem 40rem at 78% -8%, rgba(245, 92, 87, 0.36), transparent 62%),
        radial-gradient(46rem 34rem at 4% 12%, rgba(107, 79, 199, 0.4), transparent 60%),
        radial-gradient(50rem 40rem at 50% 108%, rgba(26, 143, 184, 0.22), transparent 64%),
        linear-gradient(180deg, var(--ink-2), var(--ink) 55%);
}

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 13px clamp(20px, 4vw, 40px);
    background: rgba(12, 10, 28, 0.74);
    backdrop-filter: saturate(150%) blur(16px);
    -webkit-backdrop-filter: saturate(150%) blur(16px);
    border-bottom: 1px solid var(--card-line);
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); font-weight: 750; font-size: 1.08rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.header-spacer { flex: 1; }

.header-nav { display: flex; gap: 22px; }
.header-nav a { color: var(--text-dim); text-decoration: none; font-size: 0.94rem; font-weight: 560; }
.header-nav a:hover { color: var(--text); }

.nav-cta {
    padding: 9px 17px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--coral), var(--sunset));
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* ---------- hero ---------- */

.hero {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    gap: clamp(30px, 5vw, 68px);
    align-items: center;
    padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 78px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 15px 6px 11px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--card-line);
    font-size: 0.83rem;
    font-weight: 620;
    color: var(--text-dim);
    margin-bottom: 22px;
}
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(48, 179, 148, 0.19); }

.hero-lede { margin-top: 20px; font-size: 1.12rem; color: var(--text-dim); max-width: 33rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }

.button {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 14px 25px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.button:hover { transform: translateY(-2px); }

.button-primary {
    background: linear-gradient(120deg, var(--coral), var(--sunset));
    color: #fff;
    box-shadow: 0 14px 34px rgba(245, 92, 87, 0.34);
}
.button-secondary {
    background: var(--card);
    border: 1px solid var(--card-line);
    color: var(--text);
}
.button-icon { display: inline-flex; }
.button small { display: block; font-size: 0.68rem; font-weight: 600; opacity: 0.82; letter-spacing: 0.04em; text-transform: uppercase; }
.button strong { display: block; font-size: 1.02rem; font-weight: 750; letter-spacing: -0.01em; }

.availability { margin-top: 18px; font-size: 0.87rem; color: var(--text-faint); }

/* Phone mock: the chat sitting on top of a real scene photo, which is the whole product. */
.hero-visual { position: relative; display: flex; justify-content: center; }

.phone {
    position: relative;
    width: min(318px, 82vw);
    aspect-ratio: 9 / 19.2;
    border-radius: 42px;
    padding: 9px;
    background: linear-gradient(160deg, #2c2a44, #16142c);
    box-shadow: 0 42px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.phone-screen {
    position: relative;
    height: 100%;
    border-radius: 34px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #000;
}
.phone-screen > img.scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.phone-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 5, 16, 0.62) 0%, rgba(6, 5, 16, 0.12) 34%, rgba(6, 5, 16, 0.78) 100%);
}
.phone-inner { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; padding: 15px 13px 13px; }

.phone-bar { display: flex; justify-content: space-between; font-size: 0.66rem; font-weight: 650; opacity: 0.9; padding: 0 5px 11px; }

.phone-top { display: flex; align-items: center; gap: 9px; padding-bottom: 5px; }
.phone-top img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255, 255, 255, 0.6); }
.phone-top div { flex: 1; min-width: 0; }
.phone-top b { display: block; font-size: 0.83rem; font-weight: 700; }
.phone-top span { display: block; font-size: 0.66rem; color: rgba(255, 255, 255, 0.72); }
.phone-star { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.17); font-size: 0.68rem; font-weight: 700; }

.phone-feed { flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; padding-bottom: 10px; }

.arrival {
    align-self: center;
    text-align: center;
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.42);
    padding: 6px 12px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.bubble { max-width: 82%; padding: 9px 13px; border-radius: 17px; font-size: 0.76rem; line-height: 1.5; }
.bubble.them { align-self: flex-start; background: rgba(255, 255, 255, 0.19); backdrop-filter: blur(9px); border-bottom-left-radius: 6px; }
.bubble.you { align-self: flex-end; background: linear-gradient(120deg, var(--coral), var(--sunset)); border-bottom-right-radius: 6px; }
.voice-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.46); font-size: 0.67rem; font-weight: 620; backdrop-filter: blur(8px); }
.voice-pill b { color: var(--star); }

.phone-composer { display: flex; align-items: center; gap: 8px; }
.phone-composer .field { flex: 1; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); font-size: 0.72rem; color: rgba(255, 255, 255, 0.75); backdrop-filter: blur(8px); }
.phone-composer .round { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(120deg, var(--coral), var(--sunset)); font-size: 0.8rem; }

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 15px;
    background: rgba(20, 18, 43, 0.9);
    border: 1px solid var(--card-line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    font-size: 0.76rem;
    font-weight: 620;
    backdrop-filter: blur(10px);
}
.float-card b { display: block; font-size: 0.83rem; }
.float-card small { color: var(--text-faint); font-size: 0.68rem; font-weight: 550; }
/* Kept clear of the header row and the last bubble — the mock is the argument, the cards are
   only garnish, so they must never cover the conversation. */
.float-stamp { left: 0; top: 31%; }
.float-call { right: 0; bottom: 7%; }
.float-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 0.95rem; }

/* ---------- stats ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--card-line);
    border: 1px solid var(--card-line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: clamp(56px, 9vw, 96px);
}
.stats div { background: rgba(12, 10, 28, 0.72); padding: 22px 16px; text-align: center; }
.stats b { display: block; font-size: 1.85rem; font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(120deg, var(--sunset), var(--star)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { font-size: 0.83rem; color: var(--text-faint); }

/* ---------- generic section ---------- */

section.block { padding-block: clamp(50px, 8vw, 92px); }
.section-head { max-width: 42rem; margin-bottom: clamp(30px, 5vw, 52px); }
.section-head p { margin-top: 15px; color: var(--text-dim); font-size: 1.04rem; }
.section-head.centred { margin-inline: auto; text-align: center; }

/* ---------- feature cards ---------- */

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.feature {
    padding: 26px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--card-line);
}
.feature .glyph { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 16px; }
.feature h3 { margin-bottom: 9px; }
.feature p { color: var(--text-dim); font-size: 0.95rem; }

.g-coral { background: rgba(245, 92, 87, 0.17); }
.g-violet { background: rgba(107, 79, 199, 0.24); }
.g-ocean { background: rgba(26, 143, 184, 0.22); }
.g-mint { background: rgba(48, 179, 148, 0.2); }
.g-star { background: rgba(255, 186, 46, 0.19); }
.g-sunset { background: rgba(255, 156, 79, 0.19); }

/* ---------- destination gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 16px; }
.place {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--card-line);
}
.place img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.place:hover img { transform: scale(1.05); }
.place figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 34px 15px 15px;
    background: linear-gradient(180deg, transparent, rgba(6, 5, 16, 0.9));
}
.place b { display: block; font-size: 1rem; font-weight: 720; }
.place span { font-size: 0.79rem; color: rgba(255, 255, 255, 0.68); }

/* ---------- companions ---------- */

/* Grid rather than flex-wrap: with a fixed item width the last row orphans a single face,
   which reads as a mistake. Equal columns wrap cleanly at every width. */
.buddies { display: grid; grid-template-columns: repeat(auto-fit, minmax(122px, 1fr)); gap: 16px; }
.buddy { text-align: center; }
.buddy img { width: 100%; aspect-ratio: 1; border-radius: 20px; object-fit: cover; border: 1px solid var(--card-line); }
.buddy b { display: block; margin-top: 10px; font-size: 0.93rem; }
.buddy span { font-size: 0.78rem; color: var(--text-faint); }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 18px; counter-reset: step; }
.step { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-line); }
.step::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 11px;
    background: linear-gradient(120deg, var(--coral), var(--sunset));
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 15px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.94rem; }

/* ---------- faq ---------- */

.faq { display: grid; gap: 11px; }
.faq details {
    border-radius: var(--radius-sm);
    background: var(--card);
    border: 1px solid var(--card-line);
    padding: 16px 20px;
}
.faq summary { cursor: pointer; font-weight: 660; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sunset); font-weight: 700; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin-top: 11px; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- final cta ---------- */

.final-cta {
    text-align: center;
    padding: clamp(44px, 7vw, 76px) clamp(22px, 5vw, 56px);
    border-radius: 30px;
    background: linear-gradient(140deg, rgba(245, 92, 87, 0.2), rgba(107, 79, 199, 0.24));
    border: 1px solid var(--card-line);
}
.final-cta p { margin: 16px auto 0; color: var(--text-dim); max-width: 34rem; }
.final-cta .hero-actions { justify-content: center; }

/* ---------- footer ---------- */

.site-footer {
    margin-top: clamp(56px, 9vw, 96px);
    border-top: 1px solid var(--card-line);
    padding: 34px 0 44px;
    font-size: 0.88rem;
    color: var(--text-faint);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-note { width: 100%; margin-top: 8px; font-size: 0.8rem; line-height: 1.6; }

/* ---------- legal pages ---------- */

.legal { padding: clamp(40px, 6vw, 74px) 0; }
.legal-body { max-width: 46rem; }
.legal-body h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); margin-bottom: 10px; }
.legal-body .updated { color: var(--text-faint); font-size: 0.88rem; margin-bottom: 34px; }
.legal-body h2 { font-size: 1.35rem; margin-top: 38px; margin-bottom: 12px; }
.legal-body h3 { margin-top: 24px; margin-bottom: 8px; font-size: 1.02rem; }
.legal-body p, .legal-body li { color: var(--text-dim); font-size: 0.98rem; }
.legal-body p + p { margin-top: 13px; }
.legal-body ul { margin: 12px 0 0; padding-left: 22px; }
.legal-body li + li { margin-top: 7px; }
.legal-body strong { color: var(--text); }
.callout {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    background: var(--card);
    border: 1px solid var(--card-line);
    border-left: 3px solid var(--sunset);
}

/* ---------- responsive ---------- */

@media (max-width: 940px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 44px; }
    .hero-lede { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .eyebrow { margin-inline: auto; }
    .float-stamp { left: 2%; top: 26%; }
    .float-call { right: 2%; bottom: 10%; }
    .buddies { justify-content: center; }
    .header-nav { display: none; }
}

@media (max-width: 620px) {
    body { font-size: 16px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .float-card { display: none; }
    .footer-links { margin-left: 0; }
}

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