:root {
    --primary: #752098;
    --primary-dark: #4a1461;
    --primary-soft: #f1e2f8;
    --accent: #ffb545;
    --accent-dark: #d68f22;
    --ink: #1e1522;
    --muted: #6f6377;
    --bg: #ffffff;
    --card: #ffffff;
    --line: #ead9f2;
    --dl-ease: cubic-bezier(.22, 1, .36, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Fraunces', serif;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* NAV */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    max-width: 1120px;
    margin: 0 auto;
}

/* Nav shadow and blur after scrolling */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all .3s ease;
}

nav.scrolled {
    box-shadow: 0 1px 0 var(--line, #eee), 0 10px 30px rgba(0, 0, 0, .05);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 40px;
    top: 10px;
}

/* Hover lifts */
.store-btn,
.nav-cta {
    transition: transform .2s ease, box-shadow .2s ease;
}

.store-btn:hover,
.nav-cta:hover {
    transform: translateY(-2px);
}

.info-card.in:hover,
.how-card.in:hover,
.who-card.in:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .07);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Geist', serif;
    font-weight: 700;
    font-size: 26px;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    font-family: 'Space Grotesk', sans-serif;
    transform: rotate(-6deg);
}

.nav-cta {
    background: var(--ink);
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

/* HERO */
.hero {
    position: relative;
    padding: 40px 24px 0;
    text-align: center;
    overflow: hidden;
}

.eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
}

.eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.hero h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(40px, 7vw, 74px);
    font-weight: 900;
    line-height: 1.02;
    max-width: 780px;
    margin: 0 auto 20px;
}

.hero h1 .flip {
    color: var(--primary);
    font-style: italic;
    font-weight: 700;
}

.hero p.sub {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto 34px;
    color: var(--muted);
    font-size: 17px;
}

header.hero p {
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
    font-size: 16px;
}

.store-row {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ink);
    color: #fff;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: transform .15s ease;
}

.store-btn:hover {
    transform: translateY(-2px);
}

.store-btn.apple {
    background: var(--ink);
}

.store-btn.google {
    background: var(--primary);
}

.store-btn svg {
    width: 20px;
    height: 20px;
}

.store-btn .txt small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    opacity: 0.75;
}

.free-note {
    position: relative;
    z-index: 1;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 50px;
}

/* PHONE SHOWCASE */
.phone-stage {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    padding-bottom: 0;
}

.phone {
    width: 250px;
    height: 520px;
    /* background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%); */
    border-radius: 38px;
    border: 8px solid var(--ink);
    box-shadow: 0 20px 20px -20px rgba(74, 20, 97, 0.45);
    position: relative;
    overflow: hidden;
    z-index: 2;
    transition: all ease-in-out 200ms;
}

.phone.side {
    width: 210px;
    height: 460px;
    opacity: 0.55;
    align-self: center;
    filter: saturate(0.7);
}

.phone.left {
    transform: rotate(-9deg) translateX(18px);
    z-index: 1;
}

.phone.right {
    transform: rotate(9deg) translateX(-18px);
    z-index: 1;
}

.phone.right:hover,
.phone.left:hover {
    opacity: 1;
    filter: saturate(1);
}

.phone-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 24px;
    border: 1.5px dashed rgba(255, 255, 255, 0.35);
    margin: 6px;
    border-radius: 30px;
}

.phone-screen .ph-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.phone-screen .ph-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.9;
}

.phone-screen .ph-sub {
    font-size: 10.5px;
    opacity: 0.65;
    margin-top: 4px;
}

.phone-screen img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.card-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.info-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px 24px;
}

.info-card .num {
    font-family: 'Fraunces', serif;
    font-size: 38px;
    font-weight: 900;
    color: var(--primary-soft);
    -webkit-text-stroke: 1.5px var(--primary);
    margin-bottom: 12px;
    line-height: 1;
}

.info-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-card p {
    color: var(--muted);
    font-size: 14.5px;
}


/* SECTION SHARED */
section {
    padding: 100px 24px;
}

.section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 56px;
}

.section-head .kicker {
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    display: block;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
}

.section-head p {
    color: var(--muted);
    margin-top: 12px;
    font-size: 15.5px;
}

/* HOW IT WORKS */
.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

.how-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px 26px;
    position: relative;
}

.how-num {
    font-family: 'Fraunces', serif;
    font-size: 46px;
    font-weight: 900;
    color: var(--primary-soft);
    -webkit-text-stroke: 1.5px var(--primary);
    margin-bottom: 14px;
    line-height: 1;
}

.how-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
    font-weight: 600;
}

.how-card p {
    color: var(--muted);
    font-size: 14.5px;
}

.how-arrow {
    display: none;
}

/* SCREENSHOTS */
.shot-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.shot-card {
    background: var(--card);
    border-radius: 20px;
    padding: 16px;
    border: 1px solid var(--line);
}

.shot-frame {
    aspect-ratio: 9/16;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(165deg, var(--primary-soft), #fff);
    /* border: 1.5px dashed var(--primary); */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary-dark);
}

.shot-frame .icon {
    font-size: 26px;
}

.shot-frame span {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 0 16px;
}

.shot-caption {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

/* LANGUAGES */
.lang-panel {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 28px;
    padding: 56px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.lang-panel::after {
    content: "ح 字 A あ Ω";
    position: absolute;
    right: -20px;
    bottom: -30px;
    font-size: 140px;
    font-weight: 900;
    opacity: 0.06;
    font-family: 'Fraunces', serif;
}

.lang-panel h2 {
    color: #fff;
    font-size: 30px;
    margin-bottom: 10px;
}

.lang-panel p {
    color: rgba(255, 255, 255, 0.75);
    max-width: 420px;
    margin: 0 auto 30px;
    font-size: 14.5px;
}

.lang-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.lang-chips span {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
}

/* PLAYERS FEATURE */
.feature-split {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.avatars {
    display: flex;
    justify-content: center;
}

.avatar-ring {
    position: relative;
    width: 280px;
    height: 280px;
}

.avatar-ring .center-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 15px;
    text-align: center;
    line-height: 1.15;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.avatar-dot {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    border: 3px solid #fff;
}

.feature-split h2 {
    font-size: 30px;
    margin-bottom: 14px;
}

.feature-split p {
    color: var(--muted);
    font-size: 15.5px;
    margin-bottom: 18px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 14.5px;
    color: var(--ink);
}

.feature-list li .check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* FINAL CTA */
.final-cta {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.final-cta h2 {
    font-size: clamp(30px, 5vw, 46px);
    margin-bottom: 16px;
}

.final-cta p {
    color: var(--muted);
    margin-bottom: 32px;
    font-size: 16px;
}

/* NOTIFY, iOS WAITLIST */
.notify-panel {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: 28px;
    padding: 52px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.notify-panel .apple-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.notify-panel .apple-badge svg {
    width: 24px;
    height: 24px;
}

.notify-panel h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.notify-panel p.notify-copy {
    color: var(--muted);
    max-width: 420px;
    margin: 0 auto 28px;
    font-size: 14.5px;
}

.notify-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 440px;
    margin: 0 auto;
}

.notify-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 13px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14.5px;
    outline: none;
    color: var(--ink);
    background: var(--bg);
}

.notify-form input[type="email"]:focus {
    border-color: var(--primary);
}

.notify-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 13px 26px;
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}

.notify-form button:hover {
    background: var(--primary-dark);
}

.notify-form button:disabled {
    opacity: 0.6;
    cursor: default;
}

.notify-msg {
    margin-top: 14px;
    font-size: 13.5px;
    min-height: 18px;
}

.notify-msg.success {
    color: #2fa86b;
    font-weight: 600;
}

.notify-msg.error {
    color: #c94040;
    font-weight: 600;
}


/* WHO IS DUELLO FOR */
.who-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.who-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14.5px;
    font-weight: 600;
}

.who-card .who-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* FAQ */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
}

.faq-question .faq-plus {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: transform .2s ease;
}

.faq-item.open .faq-plus {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--muted);
    font-size: 14.5px;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

footer {
    border-top: 1px solid var(--line);
    padding: 40px 24px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

footer .flogo {
    font-family: 'Geist', serif;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

/* COMPARISON CARDS */
.vs-card {
    max-width: 900px;
    margin: 0 auto 28px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 34px 36px;
}

.vs-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.vs-title h3 {
    font-size: 22px;
}

.vs-badge {
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}

.vs-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 18px;
}

.vs-col h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 10px;
}

.vs-col.duello h4 {
    color: var(--primary);
}

.vs-col ul {
    list-style: none;
}

.vs-col li {
    font-size: 14px;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: var(--ink);
}

.vs-col.duello li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--good);
    font-weight: 700;
}

.vs-col.them li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: var(--muted);
}

.vs-summary {
    color: var(--muted);
    font-size: 14.5px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
    .vs-cols {
        grid-template-columns: 1fr;
    }
}

/* SUMMARY TABLE */
.table-wrap {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
}

th,
td {
    text-align: left;
    padding: 14px 18px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--line);
}

th {
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 700;
}

td.yes {
    color: var(--good);
    font-weight: 700;
}

td.no {
    color: var(--muted);
}

tr:last-child td {
    border-bottom: none;
}

.numbered-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.numbered-item {
    display: flex;
    gap: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 24px;
}

.numbered-item .n {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Fraunces', serif;
    font-size: 16px;
}

.numbered-item h3 {
    font-size: 16.5px;
    margin-bottom: 4px;
}

.numbered-item p {
    color: var(--muted);
    font-size: 14px;
}

.numbered-item.featured {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.numbered-item.featured .n {
    background: var(--accent);
    color: var(--ink);
}

.lottie-slot { width: 100%; max-width: 360px; aspect-ratio: 1; margin: 0 auto; }

@media (max-width: 860px) {

    .how-grid,
    .shot-row,
    .who-grid {
        grid-template-columns: 1fr;
    }

    .feature-split {
        grid-template-columns: 1fr;
    }

    .phone.side {
        display: none;
    }
}

.js .reveal {
    opacity: 0;
    translate: 0 22px;
    transition:
        opacity .7s ease var(--d, 0ms),
        translate .8s var(--dl-ease) var(--d, 0ms),
        transform .25s ease,
        box-shadow .25s ease;
}

.js .reveal.in {
    opacity: 1;
    translate: 0 0;
}

/* Phones rise from below */
.js .reveal-phone {
    translate: 0 90px;
    transition-duration: .9s, 1.1s, .25s, .25s;
}

.js .reveal-phone.in {
    translate: 0 0;
}

/* Avatar ring: dots pop in one after another */
.js .avatar-ring .avatar-dot {
    opacity: 0;
    scale: .6;
    transition: opacity .5s ease, scale .6s var(--dl-ease);
}

.js .avatar-ring.in .avatar-dot {
    opacity: 1;
    scale: 1;
}

.js .avatar-ring.in .avatar-dot:nth-child(2) {
    transition-delay: .10s;
}

.js .avatar-ring.in .avatar-dot:nth-child(3) {
    transition-delay: .20s;
}

.js .avatar-ring.in .avatar-dot:nth-child(4) {
    transition-delay: .30s;
}

.js .avatar-ring.in .avatar-dot:nth-child(5) {
    transition-delay: .40s;
}

.js .avatar-ring.in .avatar-dot:nth-child(6) {
    transition-delay: .50s;
}

.js .avatar-ring.in .avatar-dot:nth-child(7) {
    transition-delay: .60s;
}

/* Reduced motion: show the final state, no movement */
@media (prefers-reduced-motion: reduce) {

    .js .reveal,
    .js .reveal-phone,
    .js .avatar-ring .avatar-dot {
        opacity: 1 !important;
        translate: none !important;
        scale: 1 !important;
        transition: none !important;
    }
}