@font-face {
    font-family: 'Archivo Black';
    src: url('assets/fonts/ArchivoBlack-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #faf8f2;
    --bg-deep: #f3efe6;
    --card: #ffffff;
    --hairline: rgba(0, 0, 0, 0.08);
    --hairline-strong: rgba(0, 0, 0, 0.14);

    --ink: #1a1a1a;
    --ink-2: #737373;
    --ink-3: #999999;

    --crimson: #b80d29;
    --crimson-deep: #8f0a20;
    --gold: #cc991a;
    --gold-soft: #f5e9c8;

    --verbs: #eb6b0d;
    --nouns: #006bd9;
    --adjectives: #c21a8c;
    --constructions: #08854f;

    --correct: #199a4d;
    --wrong: #cc2626;

    --display: 'Archivo Black', 'Arial Black', system-ui, sans-serif;
    --body: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'SF Pro Text',
            'Segoe UI Variable Text', 'Segoe UI', sans-serif;

    --gutter: clamp(1.25rem, 5vw, 3rem);
    --measure: 1180px;
    --radius: 14px;
    --radius-lg: 22px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0.14, 0.3, 1);

    --lift: 0 1px 2px rgba(60, 40, 20, 0.04),
            0 8px 24px -12px rgba(60, 40, 20, 0.12);
    --lift-lg: 0 2px 4px rgba(60, 40, 20, 0.04),
               0 30px 60px -30px rgba(60, 40, 20, 0.22);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.04;
    margin: 0;
    text-wrap: balance;
    overflow-wrap: break-word;
    word-break: break-word;
}

p {
    margin: 0;
    text-wrap: pretty;
    overflow-wrap: break-word;
}

::selection { background: var(--crimson); color: #fff; }

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

.shell {
    width: min(100% - (var(--gutter) * 2), var(--measure));
    max-width: 100%;
    margin-inline: auto;
}

section { position: relative; }

.band {
    padding-block: clamp(4.5rem, 11vw, 9rem);
}

.band--tint { background: var(--bg-deep); }

.band--tint::before,
.band--tint::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: var(--hairline);
}
.band--tint::before { top: 0; }
.band--tint::after { bottom: 0; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--crimson);
    margin-bottom: 1.1rem;
}

.kicker::before {
    content: '';
    width: 3px;
    height: 1em;
    background: var(--crimson);
    border-radius: 2px;
}

.kicker--gold { color: var(--gold); }
.kicker--gold::before { background: var(--gold); }

.section-head { max-width: 46ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section-head h2 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }

.section-head p {
    margin-top: 1.15rem;
    color: var(--ink-2);
    font-size: 1.06rem;
    max-width: 54ch;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.7rem;
    border: 0;
    border-radius: 999px;
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
                background-color 0.3s var(--ease), color 0.3s var(--ease);
    will-change: transform;
    max-width: 100%;
}

.btn:active { transform: scale(0.975); }

.btn--primary {
    background: var(--crimson);
    color: #fff;
    box-shadow: 0 1px 2px rgba(140, 10, 30, 0.2),
                0 14px 30px -14px rgba(184, 13, 41, 0.6);
}

.btn--primary:hover {
    background: var(--crimson-deep);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(140, 10, 30, 0.2),
                0 22px 44px -16px rgba(184, 13, 41, 0.55);
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--hairline-strong);
}

.btn--ghost:hover {
    background: var(--card);
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px var(--hairline-strong), var(--lift);
}

.btn--lg { padding: 1.1rem 2.2rem; font-size: 1.06rem; }

.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }

.nav {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: min(100% - 2rem, var(--measure));
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0.7rem 0.6rem 1.3rem;
    border-radius: 999px;
    background: rgba(250, 248, 242, 0.72);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: inset 0 0 0 1px var(--hairline);
    transition: box-shadow 0.5s var(--ease), background-color 0.5s var(--ease),
                top 0.5s var(--ease);
}

.nav[data-stuck='true'] {
    background: rgba(250, 248, 242, 0.9);
    box-shadow: inset 0 0 0 1px var(--hairline), var(--lift);
}

.nav__brand {
    font-family: var(--display);
    font-size: 1rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.nav__brand span { color: var(--crimson); }

.nav__links {
    display: flex;
    gap: 0.35rem;
    margin-left: auto;
}

.nav__links a {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.nav__links a:hover { color: var(--ink); background: rgba(0, 0, 0, 0.04); }

.nav .btn { padding: 0.65rem 1.35rem; font-size: 0.93rem; }

.nav .btn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
}

.nav__brand {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav__lang {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0.2rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.045);
    flex: 0 0 auto;
}

.nav__lang a {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--ink-3);
    transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.nav__lang a:hover { color: var(--ink); }

.nav__lang a[aria-current='true'] {
    background: var(--card);
    color: var(--crimson);
    box-shadow: inset 0 0 0 1px var(--hairline);
    cursor: default;
}

@media (max-width: 860px) {
    .nav__links { display: none; }
    .nav__brand { margin-right: auto; }
}

@media (max-width: 460px) {
    .nav { padding-left: 1rem; gap: 0.6rem; }
    .nav__brand { font-size: 0.9rem; }
    .nav .btn { padding: 0.6rem 1rem; font-size: 0.86rem; }
    .nav__lang a { padding: 0.3rem 0.55rem; font-size: 0.72rem; }
}

/* Below this width the header CTA drops its filler word ("Im"/"the") so the
   button never has to fight the brand and language switch for space. */
@media (max-width: 560px) {
    .nav-cta__full { display: none; }
}

/* At the narrowest phone widths, the DE/EN switch yields the last bit of
   room to brand + CTA - it stays reachable via the footer link. */
@media (max-width: 400px) {
    .nav__lang { display: none; }
}

.hero {
    position: relative;
    padding-top: clamp(8rem, 16vw, 11rem);
    padding-bottom: clamp(3rem, 8vw, 6rem);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    background: radial-gradient(circle at 50% 50%,
                rgba(184, 13, 41, 0.09), rgba(204, 153, 26, 0.06) 42%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.hero__grid > * {
    min-width: 0;
}

.hero h1 {
    font-size: clamp(2.7rem, 7.4vw, 5rem);
    letter-spacing: -0.035em;
}

.hero h1 em {
    font-style: normal;
    color: var(--crimson);
}

.hero__sub {
    margin-top: 1.6rem;
    font-size: clamp(1.05rem, 1.9vw, 1.22rem);
    color: var(--ink-2);
    max-width: 42ch;
}

.hero__cta {
    margin-top: 2.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    max-width: 100%;
}

.hero__note {
    margin-top: 1.4rem;
    font-size: 0.9rem;
    color: var(--ink-3);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.chip {
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--hairline);
    font-size: 0.92rem;
    font-weight: 600;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.chip:hover {
    transform: translateY(-3px) rotate(-1.5deg);
    box-shadow: inset 0 0 0 1px var(--hairline-strong), var(--lift);
}

.hero__phone {
    width: min(330px, 82%);
    margin-inline: auto;
    transform: rotate(-1.6deg);
    transition: transform 0.9s var(--ease);
}

.hero__phone:hover { transform: rotate(0deg) translateY(-6px); }

@media (max-width: 900px) {
    .hero__phone { width: min(280px, 66%); transform: none; }
}

@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__media { order: -1; }
}

.demo {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.demo > * {
    min-width: 0;
}

.demo__panel {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px var(--hairline), var(--lift);
    padding: clamp(1.5rem, 3.5vw, 2.4rem);
}

.demo__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.demo__bar {
    margin-top: 0.85rem;
    height: 5px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.demo__bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--crimson);
    transition: width 0.7s var(--ease);
}

.demo__word {
    font-family: var(--display);
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    letter-spacing: -0.03em;
    margin: 1.8rem 0 0.4rem;
    line-height: 1.05;
}

.demo__gloss {
    color: var(--ink-2);
    font-size: 0.98rem;
    font-style: italic;
}

.demo__question {
    margin-top: 1.6rem;
    font-weight: 600;
    font-size: 1.05rem;
}

.demo__options {
    display: grid;
    gap: 0.6rem;
    margin-top: 1rem;
}

.opt {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    text-align: left;
    padding: 0.95rem 1.1rem;
    border: 0;
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--hairline);
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
                background-color 0.35s var(--ease);
}

.opt:hover:not(:disabled) {
    transform: translateX(4px);
    box-shadow: inset 0 0 0 1.5px var(--hairline-strong);
}

.opt:disabled { cursor: default; }

.opt__key {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink-2);
    transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.opt[data-state='correct'] {
    background: rgba(25, 154, 77, 0.09);
    box-shadow: inset 0 0 0 1.5px var(--correct);
}
.opt[data-state='correct'] .opt__key { background: var(--correct); color: #fff; }

.opt[data-state='wrong'] {
    background: rgba(204, 38, 38, 0.08);
    box-shadow: inset 0 0 0 1.5px var(--wrong);
}
.opt[data-state='wrong'] .opt__key { background: var(--wrong); color: #fff; }

.opt[data-state='muted'] { opacity: 0.45; }

.demo__feedback {
    margin-top: 1.2rem;
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius);
    border-top: 3px solid var(--correct);
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--hairline);
    display: none;
}

.demo__feedback[data-show='true'] {
    display: block;
    animation: rise 0.45s var(--ease) both;
}

.demo__feedback[data-tone='wrong'] { border-top-color: var(--wrong); }

.demo__feedback h4 {
    font-family: var(--body);
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.demo__feedback p { font-size: 0.94rem; color: var(--ink-2); }

.demo__feedback .btn { margin-top: 1rem; width: 100%; }

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.demo__result { text-align: center; padding: 1rem 0; }
.demo__result .score {
    font-family: var(--display);
    font-size: clamp(3rem, 9vw, 4.6rem);
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--crimson);
}
.demo__result p { margin-top: 0.8rem; color: var(--ink-2); }
.demo__result .btn { margin-top: 1.6rem; }

.demo__art {
    margin: 2.5rem 0 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--hairline);
    position: relative;
}

.demo__art img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center 38%;
}

.demo__art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 45%, rgba(243, 239, 230, 0.75));
}

@media (max-width: 900px) {
    .demo { grid-template-columns: 1fr; }
    .demo__art { display: none; }
}

.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.tile {
    position: relative;
    grid-column: span 2;
    padding: clamp(1.4rem, 2.6vw, 2rem);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--hairline);
    overflow: hidden;
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
    min-width: 0;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px var(--hairline-strong), var(--lift);
}

.tile--wide { grid-column: span 4; }
.tile--full { grid-column: span 6; }

.tile h3 { font-size: 1.32rem; margin-bottom: 0.55rem; }
.tile p { color: var(--ink-2); font-size: 0.97rem; }

.tile__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    margin-bottom: 1.15rem;
    background: rgba(184, 13, 41, 0.08);
    color: var(--crimson);
}

.tile__icon svg { width: 22px; height: 22px; }

.tile[data-accent='verbs'] .tile__icon { background: rgba(235, 107, 13, 0.1); color: var(--verbs); }
.tile[data-accent='nouns'] .tile__icon { background: rgba(0, 107, 217, 0.1); color: var(--nouns); }
.tile[data-accent='adjectives'] .tile__icon { background: rgba(194, 26, 140, 0.1); color: var(--adjectives); }
.tile[data-accent='constructions'] .tile__icon { background: rgba(8, 133, 79, 0.1); color: var(--constructions); }
.tile[data-accent='gold'] .tile__icon { background: rgba(204, 153, 26, 0.13); color: var(--gold); }

.tile--shot {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    padding-bottom: 0;
}

.tile--shot .tile__body {
    align-self: start;
    padding-bottom: clamp(1.4rem, 2.6vw, 2rem);
    min-width: 0;
}

.tile--shot img {
    align-self: end;
    width: 178px;
    height: 270px;
    object-fit: cover;
    object-position: top;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 0 0 1px var(--hairline), var(--lift);
    transform: translateY(16px);
    transition: transform 0.7s var(--ease);
}

.tile--shot:hover img { transform: translateY(6px); }

@media (max-width: 980px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .tile, .tile--wide, .tile--full { grid-column: span 1; }
    .tile--wide, .tile--full { grid-column: span 2; }
    .tile--shot { grid-template-columns: 1fr; }
    .tile--shot img { display: none; }
}

@media (max-width: 620px) {
    .bento { grid-template-columns: 1fr; }
    .tile, .tile--wide, .tile--full { grid-column: span 1; }
}

.ranks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
    padding-block: 0.5rem;
}

.rank {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--hairline);
    text-align: center;
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
    min-width: 0;
}

.rank:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 0 0 1px var(--hairline-strong), var(--lift);
}

.rank img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-bottom: 1px solid rgba(204, 153, 26, 0.35);
    transition: transform 0.8s var(--ease);
}

.rank:hover img { transform: scale(1.04); }

.rank__body { padding: 0.95rem 0.9rem 1.15rem; }

.rank__no {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.rank h3 { font-size: 1.05rem; }

.rank__body > span:last-child {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    color: var(--ink-2);
    letter-spacing: 0.02em;
}

@media (max-width: 900px) {
    .ranks {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1.2rem;
        margin-inline: calc(var(--gutter) * -1);
        padding-inline: var(--gutter);
    }
    .rank { flex: 0 0 auto; width: 158px; scroll-snap-align: start; }
}

.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.review {
    display: flex;
    flex-direction: column;
    padding: clamp(1.4rem, 2.6vw, 1.9rem);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--hairline);
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
    min-width: 0;
}

.review:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--hairline-strong), var(--lift); }

.stars { display: flex; gap: 2px; color: var(--gold); }
.stars svg { width: 15px; height: 15px; }

.review h3 {
    font-family: var(--body);
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0.7rem 0 0.5rem;
    letter-spacing: 0;
}

.review p { font-size: 0.96rem; color: var(--ink-2); }

.review footer {
    margin-top: auto;
    padding-top: 1.1rem;
    border-top: 1px solid var(--hairline);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-3);
}

.price {
    position: relative;
    max-width: 620px;
    margin-inline: auto;
    padding: clamp(2rem, 5vw, 3.2rem);
    border-radius: 28px;
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--hairline), var(--lift-lg);
    text-align: center;
    overflow: hidden;
}

.price::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--crimson), var(--gold));
}

.price__tag {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.85rem;
    margin: 1.2rem 0 0.4rem;
}

.price__tag strong {
    font-family: var(--display);
    font-size: clamp(3.2rem, 9vw, 4.6rem);
    letter-spacing: -0.04em;
    line-height: 1;
}

.price__tag span { color: var(--ink-2); font-size: 1rem; }

.price ul {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
    text-align: left;
    max-width: 380px;
    margin-inline: auto;
}

.price li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.98rem;
}

.price li svg { flex: 0 0 auto; width: 19px; height: 19px; color: var(--correct); margin-top: 2px; }

.price .btn { margin-top: 2.2rem; width: 100%; max-width: 380px; }

.price__fine { margin-top: 1.1rem; font-size: 0.84rem; color: var(--ink-3); }

.legacy {
    max-width: 620px;
    margin: 1.5rem auto 0;
    padding: 1.1rem 1.3rem;
    border-radius: var(--radius);
    background: var(--gold-soft);
    box-shadow: inset 0 0 0 1px rgba(204, 153, 26, 0.3);
    font-size: 0.92rem;
    text-align: center;
}

.legacy strong { font-weight: 700; }

.faq { max-width: 780px; margin-inline: auto; }

.faq details {
    border-bottom: 1px solid var(--hairline);
    padding: 1.35rem 0;
}

.faq details:first-of-type { border-top: 1px solid var(--hairline); }

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    cursor: pointer;
    list-style: none;
    font-family: var(--display);
    font-size: clamp(1.02rem, 2.2vw, 1.18rem);
    letter-spacing: -0.015em;
    transition: color 0.3s var(--ease);
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--crimson); }

.faq summary::after {
    content: '';
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.45s var(--ease);
}

.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

.faq details p {
    margin-top: 0.9rem;
    color: var(--ink-2);
    font-size: 0.99rem;
    max-width: 66ch;
}

.closer {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
    text-align: center;
    color: #fff;
    background: linear-gradient(150deg, #6d0718, #b80d29 55%, #8f0a20);
}

.closer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('assets/img/illus-market.jpg');
    background-size: cover;
    background-position: center 62%;
    opacity: 0.17;
    mix-blend-mode: luminosity;
}

.closer > * { position: relative; z-index: 1; }

.closer h2 { font-size: clamp(2.1rem, 6vw, 3.6rem); }

.closer p {
    margin: 1.3rem auto 0;
    max-width: 46ch;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.06rem;
}

.closer .btn {
    margin-top: 2.3rem;
    background: #fff;
    color: var(--crimson);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

.closer .btn:hover { background: var(--bg); transform: translateY(-2px); }

.footer {
    padding-block: 3.5rem 2.5rem;
    border-top: 1px solid var(--hairline);
    margin-top: clamp(4rem, 9vw, 7rem);
}

.footer__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    align-items: center;
    justify-content: space-between;
}

.footer__brand { font-family: var(--display); font-size: 1.05rem; }
.footer__brand span { color: var(--crimson); }

.footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }

.footer nav a {
    font-size: 0.92rem;
    color: var(--ink-2);
    transition: color 0.3s var(--ease);
}

.footer nav a:hover { color: var(--crimson); }

.footer__legal {
    margin-top: 2.2rem;
    font-size: 0.82rem;
    color: var(--ink-3);
    max-width: 70ch;
}

.appstore {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1.4rem 0.8rem;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    max-width: 100%;
}

.appstore:hover { transform: translateY(-2px); box-shadow: var(--lift); }

.appstore svg { width: 26px; height: 26px; flex: 0 0 auto; }

.appstore i {
    font-style: normal;
    display: block;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    opacity: 0.75;
    line-height: 1.2;
}

.appstore b { display: block; font-size: 1.06rem; font-weight: 600; line-height: 1.15; }

.js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
    .device { transform: none; }
}

/* ==========================================================================
   In-app browser download fallback (inapp-browser-fix.js)
   Only ever shown when an Instagram/Facebook webview blocked the direct
   App Store link and the automatic breakout did not go through.
   ========================================================================== */

.iabf-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
}

.iabf-overlay[data-open='true'] {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 640px) {
    .iabf-overlay { align-items: center; }
}

.iabf-panel {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 1.7rem 1.5rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--lift-lg);
    transform: translateY(16px);
    transition: transform 0.35s var(--ease);
}

.iabf-overlay[data-open='true'] .iabf-panel {
    transform: translateY(0);
}

.iabf-panel h3 {
    font-family: var(--display);
    font-size: 1.28rem;
    margin-bottom: 0.6rem;
    padding-right: 1.6rem;
}

.iabf-panel p {
    color: var(--ink-2);
    font-size: 0.95rem;
}

.iabf-steps {
    margin-top: 0.9rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--hairline);
    font-size: 0.88rem;
    color: var(--ink-2);
}

.iabf-actions {
    margin-top: 1.35rem;
    display: grid;
    gap: 0.6rem;
}

.iabf-actions .btn { width: 100%; }

.iabf-closebtn {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--ink-2);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.iabf-closebtn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--ink);
}

.iabf-copied { color: var(--correct); }
