/* elTAP public — app brand (CardSans + Midnight Plum) */

@font-face {
    font-family: 'CardSans';
    src: url('fonts/CardSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CardSans';
    src: url('fonts/CardSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CardSans';
    src: url('fonts/CardSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CardSans';
    src: url('fonts/CardSans-Bold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-deep: #16101F;
    --bg-mid: #1C142B;
    --bg-card: #221A32;
    --surface-top: #2C2340;
    --border: rgba(247, 242, 252, 0.12);
    --border-strong: rgba(168, 85, 247, 0.4);
    --text: #F7F2FC;
    --text-sec: #E4D8F0;
    --text-muted: #B7A8C9;
    --accent: #2DD4BF;
    --accent-soft: rgba(45, 212, 191, 0.14);
    --purple: #A855F7;
    --purple-soft: rgba(168, 85, 247, 0.18);
    --pink: #FF3D9A;
    --gold: #FDE047;
    --radius: 18px;
    --radius-sm: 14px;
    --shadow: 0 24px 64px rgba(14, 10, 22, 0.55);
    --max: 1000px;
    --font: 'CardSans', 'Segoe UI', system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-weight: 400;
    color: var(--text);
    background: var(--bg-deep);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    line-height: 1.5;
}

.site-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 65% 42% at 12% 0%, rgba(168, 85, 247, 0.28), transparent 55%),
        radial-gradient(ellipse 50% 38% at 92% 8%, rgba(255, 61, 154, 0.12), transparent 50%),
        radial-gradient(ellipse 55% 40% at 78% 100%, rgba(45, 212, 191, 0.14), transparent 55%),
        linear-gradient(180deg, #16101F 0%, #1C142B 48%, #120E1A 100%);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: #5eead4;
}

.site-shell {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
    padding: 1rem 1.2rem 3.25rem;
}

/* Header */
.site-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0 1.5rem;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: inherit;
}

.site-brand:hover {
    text-decoration: none;
    color: inherit;
}

.site-brand img,
.site-brand svg,
.site-logo {
    display: block;
    flex-shrink: 0;
}

.logo-canvas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0E0A16;
    overflow: hidden;
    flex-shrink: 0;
    line-height: 0;
    box-shadow: 0 0 0 1px rgba(247, 242, 252, 0.1);
}

.logo-canvas-52 {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.logo-canvas-72 {
    width: 72px;
    height: 72px;
    border-radius: 18px;
}

.logo-canvas-96 {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    margin: 0 auto;
}

.logo-canvas-128 {
    width: 112px;
    height: 112px;
    border-radius: 26px;
    margin: 0 auto 1rem;
}

.logo-canvas img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-logo-header {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: contain;
}

.site-logo-hero {
    width: 100%;
    height: 100%;
}

.site-brand strong {
    display: block;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.site-brand span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.1rem;
    max-width: 15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lang-switch {
    display: inline-flex;
    gap: 0.15rem;
    background: rgba(247, 242, 252, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.2rem;
}

.lang-switch a {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.36rem 0.58rem;
    border-radius: 999px;
    color: var(--text-muted);
    text-decoration: none;
}

.lang-switch a.active,
.lang-switch a:hover {
    color: var(--text);
    background: rgba(168, 85, 247, 0.28);
    text-decoration: none;
}

/* Hero */
.hero {
    display: grid;
    gap: 2rem;
    align-items: center;
    padding: 0.35rem 0 2.5rem;
}

@media (min-width: 860px) {
    .hero {
        grid-template-columns: 1.08fr 0.92fr;
        gap: 2.75rem;
        padding: 0.75rem 0 3rem;
    }
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
    padding: 0.3rem 0.75rem 0.3rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(45, 212, 191, 0.3);
    background: var(--accent-soft);
    color: #99f6e4;
    font-size: 0.78rem;
    font-weight: 600;
}

.hero-kicker-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

.hero-copy h1 {
    margin: 0 0 0.7rem;
    font-size: clamp(2.2rem, 5.5vw, 3.15rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--text);
}

.hero-copy .lead {
    margin: 0 0 1.2rem;
    color: var(--text-sec);
    line-height: 1.6;
    font-size: 1.02rem;
    font-weight: 400;
    max-width: 32rem;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.35rem;
}

.pill {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.4rem 0.72rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(247, 242, 252, 0.04);
    color: var(--text-muted);
}

.pill-accent {
    border-color: rgba(45, 212, 191, 0.35);
    background: var(--accent-soft);
    color: #a7f3d0;
}

.store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1.05rem;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(168, 85, 247, 0.45);
    background: var(--purple-soft);
    color: #e9d5ff;
    font-size: 0.86rem;
    font-weight: 600;
}

.store-note,
.virtual-note {
    margin: 0.8rem 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 34rem;
}

.virtual-note {
    padding-left: 0.7rem;
    border-left: 2px solid rgba(45, 212, 191, 0.4);
}

/* Phone — app home look */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-phone-wrap {
    position: relative;
    width: min(100%, 280px);
}

.hero-phone-glow {
    position: absolute;
    inset: 8% -12% -6%;
    background: radial-gradient(circle at 50% 35%, rgba(168, 85, 247, 0.4), rgba(45, 212, 191, 0.12) 50%, transparent 70%);
    filter: blur(26px);
    z-index: 0;
}

.hero-phone {
    position: relative;
    z-index: 1;
    padding: 0.62rem;
    border-radius: 36px;
    background: linear-gradient(160deg, #3a3152, #1a1428 50%, #0E0A16);
    border: 1px solid rgba(247, 242, 252, 0.12);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-phone-notch {
    width: 34%;
    height: 0.32rem;
    margin: 0.1rem auto 0.55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
}

.hero-phone-screen {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 90% 50% at 50% -5%, rgba(168, 85, 247, 0.32), transparent 55%),
        linear-gradient(180deg, #1C142B 0%, #16101F 55%, #120E1A 100%);
    border: 1px solid rgba(247, 242, 252, 0.08);
}

.phone-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.9rem 0.25rem;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-muted);
}

.phone-home-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.85rem 0.7rem;
    gap: 0.5rem;
}

.phone-hi-block {
    min-width: 0;
}

.phone-hi-block .hi {
    margin: 0;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
}

.phone-hi-block .name {
    margin: 0.05rem 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone-bal {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    padding: 0.32rem 0.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(253, 224, 71, 0.18), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(253, 224, 71, 0.3);
    color: #fde68a;
    font-size: 0.7rem;
    font-weight: 700;
}

.phone-hero-card {
    margin: 0 0.75rem 0.75rem;
    padding: 0.95rem 0.85rem;
    border-radius: 18px;
    text-align: center;
    background: linear-gradient(145deg, #2C2340, #221A32);
    border: 1px solid rgba(247, 242, 252, 0.1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.phone-hero-card .logo-canvas {
    margin: 0 auto 0.55rem;
}

.phone-hero-card .hint {
    margin: 0;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.phone-chips {
    display: flex;
    gap: 0.4rem;
    padding: 0 0.75rem;
    overflow: hidden;
    margin-bottom: 0.7rem;
}

.phone-chip {
    flex: 1;
    min-width: 0;
    padding: 0.45rem 0.35rem;
    border-radius: 12px;
    text-align: center;
    font-size: 0.58rem;
    font-weight: 600;
    border: 1px solid rgba(247, 242, 252, 0.08);
    background: rgba(44, 35, 64, 0.85);
    color: var(--text-sec);
}

.phone-chip:nth-child(1) { border-color: rgba(45, 212, 191, 0.3); color: #99f6e4; }
.phone-chip:nth-child(2) { border-color: rgba(168, 85, 247, 0.35); color: #e9d5ff; }
.phone-chip:nth-child(3) { border-color: rgba(255, 61, 154, 0.3); color: #fbcfe8; }

.phone-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    padding: 0 0.75rem;
    margin-bottom: 0.75rem;
}

.phone-tile {
    padding: 0.65rem 0.55rem;
    border-radius: 14px;
    border: 1px solid rgba(247, 242, 252, 0.08);
    background: #221A32;
    text-align: left;
}

.phone-tile .dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    margin-bottom: 0.4rem;
}

.phone-tile:nth-child(1) .dot { background: #2DD4BF; }
.phone-tile:nth-child(2) .dot { background: #A855F7; }
.phone-tile:nth-child(3) .dot { background: #FDE047; }
.phone-tile:nth-child(4) .dot { background: #38BDF8; }

.phone-tile strong {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.12rem;
    color: var(--text);
}

.phone-tile span {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 500;
}

.phone-nav {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.15rem;
    padding: 0.55rem 0.4rem 0.65rem;
    border-top: 1px solid rgba(247, 242, 252, 0.08);
    background: rgba(14, 10, 22, 0.55);
}

.phone-nav span {
    text-align: center;
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.2rem 0;
}

.phone-nav span.on {
    color: var(--accent);
}

.hero-card {
    position: relative;
    width: min(100%, 300px);
    padding: 1.75rem;
    border-radius: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.hero-card p {
    margin: 0.75rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Sections */
.section {
    margin-top: 0.5rem;
    margin-bottom: 1.75rem;
}

.section-head {
    margin-bottom: 1rem;
}

.section-head h2 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.3rem, 2.8vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
    line-height: 1.2;
}

.section-head .muted {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 38rem;
    font-weight: 400;
}

.steps {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    padding: 1.15rem 1.1rem 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(34, 26, 50, 0.9);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    margin-bottom: 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(45, 212, 191, 0.3);
}

.step h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.step p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
    font-weight: 400;
}

.feature-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-card {
    padding: 1.15rem 1.15rem 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(34, 26, 50, 0.9);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
    border-color: rgba(168, 85, 247, 0.35);
    transform: translateY(-1px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    margin-bottom: 0.7rem;
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(45, 212, 191, 0.16), rgba(168, 85, 247, 0.16));
    border: 1px solid rgba(247, 242, 252, 0.08);
    color: var(--accent);
}

.feature-icon svg {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
}

.feature-card h3 {
    margin: 0 0 0.3rem;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
    font-weight: 400;
}

.cta-band {
    margin-top: 1.35rem;
    padding: 1.35rem 1.25rem;
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, 0.28);
    background:
        radial-gradient(ellipse 80% 120% at 0% 50%, rgba(45, 212, 191, 0.1), transparent 55%),
        radial-gradient(ellipse 70% 120% at 100% 50%, rgba(168, 85, 247, 0.16), transparent 55%),
        #221A32;
    display: grid;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 720px) {
    .cta-band {
        grid-template-columns: 1fr auto;
        padding: 1.5rem 1.6rem;
    }
}

.cta-band h2 {
    margin: 0 0 0.3rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cta-band p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.invite-copy-wrap {
    margin: 0.9rem 0 0;
}

.section-card {
    background: rgba(34, 26, 50, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem 1.4rem;
}

.section-card h2 {
    margin: 0 0 0.3rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-card .muted {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.link-row a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(247, 242, 252, 0.03);
    color: var(--text-sec);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
}

.link-row a:hover {
    border-color: rgba(45, 212, 191, 0.4);
    background: var(--accent-soft);
    color: #a7f3d0;
}

.site-footer {
    margin-top: 2.5rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.35rem;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.1rem;
    align-items: center;
}

.site-footer a {
    color: var(--text-muted);
    font-weight: 600;
}

.site-footer a:hover {
    color: var(--accent);
}

.footer-muted {
    opacity: 0.75;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.bc-sep { opacity: 0.45; }
.bc-current { color: var(--text); font-weight: 600; }

.store-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.78rem 1.2rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #2DD4BF, #14b8a6);
    color: #042f2e;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(45, 212, 191, 0.28);
    border: 0;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.store-cta:hover {
    text-decoration: none;
    filter: brightness(1.05);
    transform: translateY(-1px);
    color: #042f2e;
}

.store-cta-ios {
    background: linear-gradient(135deg, #F7F2FC, #E4D8F0);
    color: #16101F;
    box-shadow: 0 10px 26px rgba(168, 85, 247, 0.15);
}

.store-cta-ios:hover { color: #16101F; }

.store-cta-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.store-cta-secondary:hover {
    border-color: rgba(45, 212, 191, 0.4);
    background: var(--accent-soft);
    filter: none;
    color: var(--text);
}

.store-row[data-store-prefer="play"] .store-cta-play,
.store-row[data-store-prefer="ios"] .store-cta-ios {
    transform: translateY(-1px) scale(1.02);
}

.page-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.legal-list {
    list-style: none;
    margin: 1.15rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.legal-list a {
    display: block;
    padding: 0.95rem 1.05rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(247, 242, 252, 0.03);
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.legal-list a:hover {
    border-color: rgba(45, 212, 191, 0.35);
    background: var(--accent-soft);
}

.legal-doc-head { margin-bottom: 1rem; }

.legal-section {
    margin: 0 0 0.9rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(247, 242, 252, 0.02);
}

.legal-section h2 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    font-weight: 700;
}

.legal-body {
    margin: 0;
    color: var(--text-sec);
    line-height: 1.65;
    font-size: 0.92rem;
    white-space: pre-wrap;
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

@media (max-width: 520px) {
    .site-brand span { display: none; }
    .hero-phone-screen { min-height: 420px; }
}
