/* ==========================================================================
   SwapHive — Landing Page
   Design language mirrors the real MVP: deep navy canvas, teal accent,
   brush-script wordmark, soft rounded cards, real app screenshots on glass.
   ========================================================================== */

:root {
    /* Brand — sampled from the live app */
    --teal:        #13A6A1;   /* primary CTA / accent */
    --teal-strong: #17C0BA;   /* hover / glow */
    --teal-deep:   #0E8A85;   /* pressed */
    --teal-soft:   rgba(19, 166, 161, 0.14);

    --bg:    #0E1A2B;         /* page canvas (deep navy) */
    --bg-2:  #0A1420;         /* darker bands / footer */
    --card:  #16263C;         /* surfaces */
    --card-2:#1B2E48;         /* raised surfaces / inputs */
    --line:  rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);

    --ink:   #FFFFFF;         /* headings */
    --body:  #9FB0C3;         /* body text (muted slate) */
    --muted: #6E7F93;         /* captions */

    /* Condition badge colours, straight from the app */
    --cond-vintage:  #B4702A;
    --cond-likenew:  #1E9E8F;
    --cond-good:     #3B6FD4;
    --cond-fair:     #C9A22B;

    --radius-sm: 12px;
    --radius:    18px;
    --radius-lg: 26px;
    --radius-xl: 34px;

    --shadow-sm:  0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-md:  0 14px 34px rgba(0, 0, 0, 0.34);
    --shadow-lg:  0 30px 70px rgba(0, 0, 0, 0.5);
    --glow:       0 20px 60px rgba(19, 166, 161, 0.34);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --maxw: 1180px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
        'Noto Sans JP', 'Noto Sans KR', 'Noto Sans SC', 'Noto Sans Arabic', sans-serif;
    color: var(--body);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Script-specific font stacks. The brush-script wordmark image is unaffected. */
html[lang="ja"] body, html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { font-family: 'Noto Sans JP', 'Sora', sans-serif; }
html[lang="ko"] body, html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3 { font-family: 'Noto Sans KR', 'Sora', sans-serif; }
html[lang="zh"] body, html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3 { font-family: 'Noto Sans SC', 'Sora', sans-serif; }
html[lang="ar"] body, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: 'Noto Sans Arabic', 'Sora', sans-serif; }
/* CJK headings read better a touch less tight. */
html[lang="ja"] .hero-title, html[lang="ko"] .hero-title, html[lang="zh"] .hero-title { letter-spacing: 0; line-height: 1.25; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

h1, h2, h3, .display {
    font-family: 'Sora', 'Inter', sans-serif;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.accent { color: var(--teal); }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
    white-space: nowrap;
}
.btn-primary {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 10px 30px rgba(19, 166, 161, 0.35);
}
.btn-primary:hover { background: var(--teal-strong); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(19, 166, 161, 0.45); }
.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ink);
    border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }

/* ---- Language switcher --------------------------------------------------- */
.lang-switcher {
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 1100;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px;
    padding: 4px;
    max-width: min(340px, calc(100vw - 32px));
    background: rgba(10, 20, 32, 0.72);
    border: 1px solid var(--line);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}
.lang-btn {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 5px 9px;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { color: #fff; background: var(--teal); }

/* ---- Navigation ---------------------------------------------------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.1rem 0;
    transition: background 0.3s var(--ease), padding 0.3s var(--ease), border-color 0.3s var(--ease);
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(10, 20, 32, 0.82);
    backdrop-filter: blur(14px);
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
/* Reserve room on the right so the nav CTA never sits under the fixed
   language switcher (top-right). */
@media (min-width: 681px) { .nav .container { padding-right: 250px; } }
.nav-logo { display: flex; align-items: center; gap: 0.55rem; }
.nav-logo .logo-img { height: 30px; width: auto; }
.nav-logo .logo-fallback {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--teal);
    letter-spacing: -0.02em;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--body); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta { color: #fff; }
.nav-toggle { display: none; }

/* ---- Hero ---------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 4.5rem 0 5.5rem;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(19, 166, 161, 0.22), transparent 60%);
    filter: blur(30px);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -15%;
    width: 55%;
    height: 90%;
    background: radial-gradient(circle, rgba(19, 166, 161, 0.12), transparent 62%);
    filter: blur(40px);
    pointer-events: none;
}
.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: center;
}
.hero-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.6rem 0.75rem;
    color: var(--body);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.4rem;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--teal-soft);
    color: var(--teal-strong);
    border: 1px solid rgba(19, 166, 161, 0.35);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-strong); box-shadow: 0 0 0 0 rgba(23, 192, 186, 0.6); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(23,192,186,.6); } 70% { box-shadow: 0 0 0 8px rgba(23,192,186,0); } 100% { box-shadow: 0 0 0 0 rgba(23,192,186,0); } }

.hero-title {
    font-size: clamp(2.05rem, 5.2vw, 3.9rem);
    margin-bottom: 1.3rem;
    overflow-wrap: break-word;
}
.hero-title .accent { display: inline; }
.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    max-width: 34ch;
    margin-bottom: 2.2rem;
}
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }

.pill-free { background: rgba(19,166,161,.18); border-color: rgba(19,166,161,.45); }

/* App-store install badges */
.store-cta-group { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1rem; }
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1.1rem;
    border-radius: 14px;
    background: #0b1420;
    border: 1px solid var(--line-strong);
    color: var(--ink);
    transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.store-badge:hover { transform: translateY(-2px); border-color: rgba(19,166,161,.55); background: #0d1826; }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge-text small { font-size: 0.66rem; color: var(--body); letter-spacing: 0.02em; }
.store-badge-text strong { font-size: 1.05rem; font-weight: 700; }

.hero-earlylink { display: inline-block; margin-bottom: 2rem; color: var(--teal-strong); font-weight: 600; font-size: 0.92rem; }
.hero-earlylink:hover { color: var(--teal); text-decoration: underline; }

/* Swap-pair signature — the app's "you offer ⇄ you want" made visual */
.swap-pair { display: inline-flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.swap-chip {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--card); border: 1px solid var(--line);
    padding: 0.5rem 0.85rem; border-radius: 999px;
    font-size: 0.88rem; font-weight: 600; color: var(--ink);
}
.swap-chip .sc-ico { font-size: 1.05rem; }
.swap-arrows {
    color: var(--teal-strong); font-size: 1.3rem; font-weight: 800;
    animation: swapPulse 2.4s var(--ease) infinite;
}
@keyframes swapPulse { 0%,100% { transform: translateX(0); opacity: .8; } 50% { transform: translateX(3px); opacity: 1; } }

.hero-copy { min-width: 0; }
/* Hero visual — floating phone with chips */
.hero-visual { position: relative; display: flex; justify-content: center; min-width: 0; }
.phone {
    position: relative;
    width: min(290px, 76%);
    border-radius: 42px;
    padding: 10px;
    background: linear-gradient(160deg, #1c2f49, #0d1929);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}
/* App screens are very tall (≈19.5:9). Render them at true scale but cap the
   frame height and trim the bottom, so the phone stays balanced next to copy. */
.phone { max-height: 620px; overflow: hidden; }
.phone img {
    border-radius: 32px;
    width: 100%;
    height: auto;
    display: block;
}
/* Soft fade where the tall screenshot is trimmed, so it reads as intentional. */
.phone::after {
    content: '';
    position: absolute;
    left: 10px; right: 10px; bottom: 10px;
    height: 70px;
    border-radius: 0 0 32px 32px;
    background: linear-gradient(to bottom, transparent, #0d1929 92%);
    pointer-events: none;
}
.gallery-item .phone::after { left: 8px; right: 8px; bottom: 8px; height: 54px; border-radius: 0 0 26px 26px; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(22, 38, 60, 0.92);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    padding: 0.65rem 0.85rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
    animation: float 6s ease-in-out infinite;
}
.chip .ico {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: var(--teal-soft); color: var(--teal-strong);
    font-size: 1.05rem;
    flex-shrink: 0;
}
.chip strong { display: block; color: var(--ink); font-size: 0.85rem; }
.chip span { font-size: 0.74rem; color: var(--muted); }
.chip-1 { top: 8%; left: -6%; animation-delay: 0.4s; }
.chip-2 { bottom: 20%; right: -8%; animation-delay: 1.2s; }
.chip-3 { bottom: 4%; left: 2%; animation-delay: 2s; }

/* ---- Free band ----------------------------------------------------------- */
.freeband {
    background:
        radial-gradient(60% 120% at 15% 50%, rgba(19,166,161,.16), transparent 70%),
        var(--bg-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 2.4rem 0;
}
.freeband-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2.5rem; flex-wrap: wrap;
}
.freeband-badge {
    display: inline-block;
    background: var(--teal); color: #fff;
    font-weight: 800; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 0.7rem;
}
.freeband-lead { max-width: 46ch; }
.freeband-lead h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.4rem; }
.freeband-lead p { font-size: 0.98rem; }
.freeband-points { display: grid; gap: 0.7rem; }
.freeband-points li { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); font-weight: 600; white-space: nowrap; }
.freeband-points .fp-ico {
    width: 32px; height: 32px; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--teal-soft); color: var(--teal-strong);
    border-radius: 10px; font-size: 1rem;
}

/* ---- Section shell ------------------------------------------------------- */
.section { padding: 5.5rem 0; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 640px; margin: 0 auto 3.2rem; text-align: center; }
.section-label {
    display: inline-block;
    color: var(--teal-strong);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 1rem; }
.section-sub { font-size: 1.08rem; }

/* ---- How it works (steps) ------------------------------------------------ */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    counter-reset: step;
}
.step {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem 1.6rem;
    transition: transform 0.3s var(--ease), border-color 0.3s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(19,166,161,.4); }
.step-num {
    display: grid; place-items: center;
    width: 46px; height: 46px;
    border-radius: 14px;
    background: var(--teal-soft);
    color: var(--teal-strong);
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.96rem; }

/* ---- Feature rows -------------------------------------------------------- */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    margin-bottom: 5.5rem;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-media { order: 2; }
.feature-copy .section-label { text-align: left; }
.feature-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.feature-list { margin-top: 1.6rem; display: grid; gap: 0.85rem; }
.feature-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--body); }
.feature-list .tick {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 7px;
    background: var(--teal-soft); color: var(--teal-strong);
    display: grid; place-items: center;
    font-size: 0.72rem; font-weight: 800;
    margin-top: 2px;
}
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { width: min(280px, 90%); animation: none; }

/* ---- Categories ---------------------------------------------------------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}
.cat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.2rem;
    text-align: center;
    transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.cat:hover { transform: translateY(-5px); border-color: rgba(19,166,161,.45); background: var(--card-2); }
.cat .cat-ico {
    display: inline-grid;
    place-items: center;
    width: 54px; height: 54px;
    margin: 0 auto 0.9rem;
    border-radius: 15px;
    background: var(--teal-soft);
    color: var(--teal-strong);
    transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.cat .cat-ico svg { width: 28px; height: 28px; }
.cat:hover .cat-ico { background: var(--teal); color: #fff; transform: scale(1.06); }
.cat strong { display: block; color: var(--ink); font-size: 0.98rem; }

/* ---- Gallery (horizontal scroll) ---------------------------------------- */
.gallery-scroll {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Centre the strip when it fits; fall back to left-aligned scrolling when
       the items overflow the container. */
    justify-content: safe center;
}
.gallery-scroll::-webkit-scrollbar { height: 8px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.gallery-item {
    flex: 0 0 auto;
    width: 230px;
    scroll-snap-align: center;
    text-align: center;
}
.gallery-item .phone { width: 100%; animation: none; padding: 8px; border-radius: 32px; max-height: 460px; }
.gallery-item .phone img { border-radius: 26px; }
.gallery-item .cap { margin-top: 0.9rem; font-size: 0.88rem; color: var(--body); font-weight: 600; }
.gallery-hint { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; }

/* ---- Trust --------------------------------------------------------------- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
}
.trust-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem 1.7rem;
}
.trust-card .ico {
    width: 50px; height: 50px;
    border-radius: 14px;
    background: var(--teal-soft); color: var(--teal-strong);
    display: grid; place-items: center;
    margin-bottom: 1.1rem;
}
.trust-card .ico svg { width: 26px; height: 26px; }
.trust-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.trust-card p { font-size: 0.95rem; }

/* ---- Waitlist ------------------------------------------------------------ */
.waitlist { position: relative; }
.waitlist-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xl);
    padding: 2.8rem;
    box-shadow: var(--shadow-lg);
}
.waitlist-card .section-head { margin-bottom: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--body); }
.field input, .field select {
    background: var(--card-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    color: var(--ink);
    font-size: 0.98rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: var(--muted); }
.field input:focus, .field select:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-soft);
}
.field select { appearance: none; cursor: pointer; }

.chips-select { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip-opt {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--card-2);
    border: 1px solid var(--line-strong);
    color: var(--body);
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.9rem; font-weight: 600;
    transition: all 0.2s var(--ease);
    user-select: none;
}
.chip-opt:hover { border-color: rgba(19,166,161,.5); color: var(--ink); }
.chip-opt.selected { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip-opt input { display: none; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-submit { margin-top: 1.6rem; }
.form-submit .btn { width: 100%; }
.form-note { margin-top: 1rem; font-size: 0.8rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--teal-strong); text-decoration: underline; }
.success-message {
    margin-top: 1.2rem;
    padding: 0.95rem 1.1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

/* ---- Footer -------------------------------------------------------------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .logo-img { height: 30px; margin-bottom: 1rem; }
.footer-brand .logo-fallback {
    font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.35rem;
    color: var(--teal); display: block; margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.9rem; max-width: 34ch; margin-bottom: 1.3rem; }
.social-row { display: flex; gap: 1.1rem; line-height: 0; }
.social-btn {
    display: inline-flex;
    color: var(--body);
    transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.social-btn svg { width: 26px; height: 26px; display: block; flex-shrink: 0; }
.social-btn:hover { color: var(--teal-strong); transform: translateY(-2px); }
.footer-col h4 { color: var(--ink); font-size: 0.95rem; margin-bottom: 1rem; font-family: 'Sora', sans-serif; }
.footer-col a { display: block; color: var(--body); font-size: 0.9rem; margin-bottom: 0.65rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal-strong); }
.footer-bottom {
    max-width: var(--maxw);
    margin: 2.5rem auto 0;
    padding: 1.5rem 1.5rem 0;
    border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
    font-size: 0.82rem; color: var(--muted);
}

/* ---- Legal pages (Terms / Privacy) -------------------------------------- */
.legal-wrap { padding: 3rem 0 4rem; }
.legal-container { max-width: 820px; }
.legal-container h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0.4rem 0 1.4rem; }
.legal-container h2 {
    font-size: 1.3rem;
    color: var(--ink);
    margin: 2.4rem 0 0.8rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}
.legal-container p { margin-bottom: 1rem; color: var(--body); }
.legal-container .legal-lead { color: #b9c6d6; font-size: 1.05rem; }
.legal-container ul { margin: 0 0 1rem 0; padding-left: 1.3rem; list-style: disc; }
.legal-container li { margin-bottom: 0.5rem; color: var(--body); }
.legal-container a { color: var(--teal-strong); text-decoration: underline; }
.legal-container a:hover { color: var(--teal); }
.legal-updated { margin-top: 2.4rem; color: var(--muted); font-size: 0.9rem; }

/* ---- Scroll reveal ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
html:not(.js-ready) .reveal { opacity: 1; transform: none; }

/* ---- RTL (Arabic) -------------------------------------------------------- */
/* Most of the layout is symmetric (grids, flex, centered sections) so it
   mirrors cleanly. These rules fix the few places that assume LTR. */
html.rtl { direction: rtl; }
html.rtl .lang-switcher { right: auto; left: 16px; justify-content: flex-start; }
@media (min-width: 681px) {
    html.rtl .nav .container { padding-right: 0; padding-left: 250px; }
}
html.rtl .hero-subtitle { margin-left: auto; margin-right: 0; }
html.rtl .feature-list li { flex-direction: row-reverse; text-align: right; }
html.rtl .feature-copy .section-label,
html.rtl .feature-copy h2,
html.rtl .feature-copy p { text-align: right; }
html.rtl .chip { flex-direction: row-reverse; }
html.rtl .field { text-align: right; }
html.rtl .form-note { direction: rtl; }
html.rtl .footer-bottom { direction: rtl; }
/* Section heads and the hero copy stay centered/auto, so they need no flip. */
@media (max-width: 900px) {
    html.rtl .feature-list li { text-align: right; }
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-eyebrow { flex-wrap: wrap; justify-content: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-cta-group { justify-content: center; }
    .store-cta-group { justify-content: center; }
    .swap-pair { justify-content: center; }
    .hero-visual { margin-top: 2.5rem; }
    .freeband-inner { justify-content: center; text-align: center; }
    .freeband-lead { max-width: none; }
    .freeband-points li { justify-content: center; }
    .steps { grid-template-columns: 1fr; }
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 2rem; }
    .feature-row.reverse .feature-media { order: 0; }
    .feature-copy .section-label { text-align: center; }
    .feature-copy { text-align: center; }
    .feature-list li { text-align: left; }
    .footer .container { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
    /* Keep the floating chips inside the viewport on narrow phones. */
    .chip-1 { left: 0; }
    .chip-2 { right: 0; }
    .chip-3 { left: 0; }
    .chip { transform: scale(0.9); }
    .swap-pair { flex-direction: column; }
    .swap-arrows { transform: rotate(90deg); }
    .store-badge { flex: 1 1 auto; justify-content: center; }
    .hero-title { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
    .freeband-points li { white-space: normal; }
}
@media (max-width: 680px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(10,20,32,.97); backdrop-filter: blur(14px);
        padding: 1.4rem 1.5rem; gap: 1.2rem;
        border-bottom: 1px solid var(--line);
    }
    .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.06); }
    .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
        content: ''; display: block; width: 20px; height: 2px; background: var(--ink); position: relative;
    }
    .nav-toggle span::before { position: absolute; top: -6px; }
    .nav-toggle span::after { position: absolute; top: 6px; }
    .form-grid { grid-template-columns: 1fr; }
    .waitlist-card { padding: 1.8rem 1.3rem; }
    .lang-switcher { top: auto; bottom: 14px; right: 50%; transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; }
    .reveal { transition: opacity 0.3s; transform: none; }
}
