/* ==========================================================================
   Epyst — Landing page design system
   Clean, minimal, editorial. Warm paper, near-black ink, one ember accent.
   Used only by the root landing page (Index.cshtml anonymous branch).
   ========================================================================== */

:root {
    --paper: #FAF9F5;
    --paper-warm: #F3F0E9;
    --ink: #1C1917;
    --ink-soft: #57534E;
    --ink-faint: #8A857C;
    --line: rgba(28, 25, 23, 0.09);
    --accent: #B8431F;
    --accent-deep: #9C3515;
    --accent-sand: #E5B39C;
    --radius: 20px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

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

::selection {
    background: var(--accent);
    color: var(--paper);
}

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

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Shared type ---------- */

.section-eyebrow {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
    will-change: transform;
}

.btn--primary {
    background: var(--accent);
    color: #FFF9F4;
}

.btn--primary:hover {
    background: var(--accent-deep);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(184, 67, 31, 0.28);
}

.btn--ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
}

.btn--ghost:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
}

.btn--small {
    padding: 9px 18px;
    font-size: 14px;
}

.btn--large {
    padding: 15px 30px;
    font-size: 16px;
}

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 249, 245, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    height: 68px;
    gap: 32px;
}

.site-header__logo img {
    height: 28px;
    width: auto;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: 12px;
}

.site-header__link {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.2s ease;
}

.site-header__link:hover {
    color: var(--ink);
}

.site-header__actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 18px;
}

.site-header__signin {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.2s ease;
}

.site-header__signin:hover {
    color: var(--ink);
}

/* ---------- Store badges ---------- */

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--ink);
    color: var(--paper);
    border-radius: 14px;
    padding: 11px 20px 11px 16px;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.store-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(28, 25, 23, 0.22);
}

.store-badge__icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.store-badge__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-badge__small {
    font-size: 11px;
    opacity: 0.72;
}

.store-badge__large {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.store-badge--light {
    background: var(--paper);
    color: var(--ink);
}

.store-badge--light:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: 168px 0 120px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -320px;
    right: -240px;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 67, 31, 0.07) 0%, rgba(184, 67, 31, 0) 65%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
}

.hero__eyebrow {
    margin: 0 0 22px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero__title {
    margin: 0;
    font-size: clamp(2.9rem, 5.6vw, 4.4rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.04;
}

.hero__title em {
    color: var(--accent);
    letter-spacing: -0.02em;
}

.hero__sub {
    margin: 26px 0 0;
    max-width: 520px;
    font-size: 19px;
    line-height: 1.6;
    color: var(--ink-soft);
}

.hero .store-badges {
    margin-top: 38px;
}

.hero__proof {
    margin: 20px 0 0;
    font-size: 14px;
    color: var(--ink-faint);
}

.hero__web-link {
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--ink-faint);
}

.hero__web-link a {
    color: var(--ink-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--line);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.hero__web-link a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.hero__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__visual-caption {
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--ink-faint);
}

/* ---------- Pain statement ---------- */

.statement {
    background: var(--paper-warm);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 140px 0;
}

.statement__inner {
    text-align: center;
}

.statement__title {
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 3.7rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.14;
}

.statement__title em {
    color: var(--accent);
}

.statement__sub {
    margin: 30px auto 0;
    max-width: 620px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink-soft);
}

/* ---------- How it works ---------- */

.how {
    padding: 140px 0 120px;
}

.how__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 72px;
}

.how__step {
    border-top: 1px solid var(--line);
    padding-top: 28px;
}

.how__number {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: 42px;
    line-height: 1;
    color: var(--accent);
}

.how__step h3 {
    margin: 20px 0 10px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.how__step p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-soft);
}

/* ---------- Benefits ---------- */

.benefits {
    padding: 20px 0 120px;
}

.benefit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 56px 0;
}

.benefit--flip .benefit__copy {
    order: 2;
}

.benefit--flip .benefit__media {
    order: 1;
}

.benefit__copy h3 {
    margin: 0 0 16px;
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.benefit__copy p {
    margin: 0;
    max-width: 460px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-soft);
}

.benefit__media {
    display: flex;
    justify-content: center;
    background: var(--paper-warm);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 44px;
}

.benefit__media img {
    max-height: 480px;
    width: auto;
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 20px 44px rgba(28, 25, 23, 0.14);
}

/* ---------- FAQ ---------- */

.faq {
    padding: 40px 0 140px;
}

.faq--flush {
    padding-bottom: 48px;
}

.faq__inner {
    max-width: 760px;
}

.faq__list {
    margin-top: 56px;
}

.faq__item {
    border-top: 1px solid var(--line);
}

.faq__item:last-child {
    border-bottom: 1px solid var(--line);
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 4px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question:hover {
    color: var(--accent);
}

.faq__icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.faq__icon::before,
.faq__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 1.5px;
    background: var(--ink-soft);
    transform: translate(-50%, -50%);
    transition: transform 0.3s var(--ease-out), background 0.2s ease;
}

.faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item[open] .faq__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq__item[open] .faq__question {
    color: var(--accent);
}

.faq__item[open] .faq__icon::before,
.faq__item[open] .faq__icon::after {
    background: var(--accent);
}

.faq__answer {
    padding: 0 4px 28px;
    animation: faq-in 0.35s var(--ease-out);
}

.faq__answer p {
    margin: 0;
    max-width: 640px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-soft);
}

@keyframes faq-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Final CTA ---------- */

.cta {
    background: var(--ink);
    color: var(--paper);
    padding: 132px 0;
    text-align: center;
}

.cta__title {
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.cta__title em {
    color: var(--accent-sand);
}

.cta__sub {
    margin: 24px auto 0;
    max-width: 520px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(250, 249, 245, 0.72);
}

.cta .store-badges {
    justify-content: center;
    margin-top: 44px;
}

.cta__qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 48px;
}

.cta__qr img {
    width: 112px;
    height: 112px;
    padding: 10px;
    background: #FFFFFF;
    border-radius: 18px;
}

.cta__qr p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(250, 249, 245, 0.6);
}

.cta__web-link {
    margin: 36px 0 0;
    font-size: 14px;
}

.cta__web-link a {
    color: rgba(250, 249, 245, 0.75);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(250, 249, 245, 0.3);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.cta__web-link a:hover {
    color: var(--paper);
    text-decoration-color: var(--paper);
}

/* ---------- Footer ---------- */

.footer {
    border-top: 1px solid var(--line);
    padding: 72px 0 40px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr 1fr 1.2fr;
    gap: 48px;
}

.footer__logo {
    height: 26px;
    width: auto;
}

.footer__brand p {
    margin: 18px 0 0;
    font-size: 15px;
    color: var(--ink-soft);
}

.footer__col h4 {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.footer__col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__col li {
    margin: 11px 0;
}

.footer__col a {
    font-size: 15px;
    color: var(--ink-soft);
    transition: color 0.2s ease;
}

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

.footer__bottom {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.footer__bottom p {
    margin: 0;
    font-size: 13px;
    color: var(--ink-faint);
}

/* ---------- Get-the-app page (/get fallback for desktop) ---------- */

.get-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.get-page__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 480px;
}

.get-page__logo {
    height: 30px;
    width: auto;
    margin-bottom: 36px;
}

.get-page__card h1 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.get-page__sub {
    margin: 14px 0 0;
    font-size: 16px;
    color: var(--ink-soft);
}

.get-page__qr {
    width: 180px;
    height: 180px;
    padding: 14px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 22px;
    margin-top: 32px;
}

.get-page__divider {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 32px 0 24px;
    color: var(--ink-faint);
    font-size: 13px;
}

.get-page__divider::before,
.get-page__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.get-page__card .store-badges {
    justify-content: center;
}

.get-page__web {
    margin: 32px 0 0;
    font-size: 14px;
    color: var(--ink-faint);
}

.get-page__web a {
    color: var(--ink-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--line);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.get-page__web a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

/* ==========================================================================
   Public pages (Blog / Profile / SEO landings) — shared components
   ========================================================================== */

/* ---------- Inner page hero ---------- */

.page-hero {
    padding: 152px 0 56px;
    text-align: center;
}

.page-hero__title {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.page-hero__title em {
    color: var(--accent);
}

.page-hero__sub {
    margin: 18px auto 0;
    max-width: 560px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* ---------- Search box ---------- */

.search-box {
    position: relative;
    max-width: 520px;
    margin: 36px auto 0;
}

.search-box input {
    width: 100%;
    padding: 15px 22px 15px 50px;
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 67, 31, 0.12);
}

.search-box input::placeholder {
    color: var(--ink-faint);
}

.search-box svg {
    position: absolute;
    left: 19px;
    top: 50%;
    transform: translateY(-50%);
    width: 19px;
    height: 19px;
    color: var(--ink-faint);
    pointer-events: none;
}

/* ---------- Featured creators row ---------- */

.creators {
    padding: 8px 0 40px;
}

.creators__title {
    margin: 0 0 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.creators__row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 4px 2px 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.creators__row::-webkit-scrollbar {
    display: none;
}

.creator {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 76px;
    flex-shrink: 0;
}

.creator__ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent), var(--accent-sand));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s var(--ease-out);
}

.creator:hover .creator__ring {
    transform: scale(1.05);
}

.creator__avatar {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--paper-warm);
    border: 2px solid #FFFFFF;
}

.creator__name {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    max-width: 76px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.creator:hover .creator__name {
    color: var(--accent);
}

/* ---------- Deck grid & cards ---------- */

.deck-section {
    padding: 16px 0 96px;
    min-height: 40vh;
}

.deck-results {
    margin: 0 0 28px;
    font-size: 14px;
    color: var(--ink-soft);
}

.deck-results strong {
    color: var(--ink);
}

.deck-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.deck-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.deck-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(28, 25, 23, 0.10);
}

.deck-card__image {
    position: relative;
    height: 190px;
    background: var(--paper-warm);
    overflow: hidden;
}

.deck-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deck-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deck-card__placeholder svg {
    width: 44px;
    height: 44px;
    color: var(--ink-faint);
    opacity: 0.55;
}

.deck-card__cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--paper-warm);
}

.deck-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.deck-card__date {
    font-size: 13px;
    color: var(--ink-faint);
    font-weight: 500;
    margin-bottom: 8px;
}

.deck-card__title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.4;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.deck-card:hover .deck-card__title {
    color: var(--accent);
}

.deck-card__excerpt {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deck-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.deck-card__author {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    cursor: pointer;
}

.deck-card__author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--paper-warm);
    flex-shrink: 0;
}

.deck-card__author-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.deck-card__author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.deck-card__author-username {
    font-size: 11px;
    color: var(--ink-faint);
    line-height: 1.3;
}

.deck-card__author:hover .deck-card__author-name {
    color: var(--accent);
}

.deck-card__stats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.deck-card__stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--ink-faint);
}

.deck-card__stat svg {
    width: 15px;
    height: 15px;
}

.deck-card__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: var(--ink-faint);
}

.deck-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.deck-card__meta svg {
    width: 14px;
    height: 14px;
}

/* ---------- Pagination ---------- */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.page-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.page-btn.is-active {
    background: var(--ink);
    border-color: transparent;
    color: var(--paper);
    font-weight: 600;
}

.page-btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ---------- Empty state ---------- */

.empty-state {
    text-align: center;
    padding: 72px 20px;
}

.empty-state > svg {
    width: 56px;
    height: 56px;
    color: var(--ink-faint);
    opacity: 0.6;
    margin: 0 auto 18px;
}

.empty-state h3,
.empty-state h1 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.empty-state p {
    margin: 0 0 24px;
    color: var(--ink-soft);
}

/* ---------- Profile page ---------- */

.profile-wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 128px 24px 80px;
}

.profile-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 36px;
}

.profile-head {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--paper-warm);
    border: 3px solid rgba(184, 67, 31, 0.18);
}

.profile-id {
    flex: 1;
    min-width: 0;
}

.profile-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.profile-name {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.profile-username {
    margin-top: 3px;
    font-size: 15px;
    font-weight: 500;
    color: var(--accent);
}

.profile-title-line {
    margin-top: 8px;
    font-size: 14.5px;
    color: var(--ink-soft);
}

.profile-location {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    color: var(--ink-faint);
}

.profile-location svg {
    width: 15px;
    height: 15px;
}

.profile-share {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--ink-soft);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.profile-share:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.profile-share svg {
    width: 15px;
    height: 15px;
}

.profile-bio {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--ink-soft);
}

.profile-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.profile-socials a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--paper-warm);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.profile-socials a:hover {
    background: rgba(28, 25, 23, 0.08);
    color: var(--ink);
}

.profile-socials svg {
    width: 14px;
    height: 14px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 22px 0;
}

.stat-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
}

.stat-card__number {
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent);
}

.stat-card__label {
    margin-top: 3px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.profile-decks {
    margin-top: 8px;
}

.profile-decks__title {
    margin: 0 0 20px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.profile-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--ink);
    color: var(--paper);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    pointer-events: none;
    z-index: 1000;
}

.profile-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------- SEO landing pages ---------- */

.seo-hero {
    padding: 152px 0 88px;
}

.seo-hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
}

.seo-hero__title {
    margin: 0;
    font-size: clamp(2.2rem, 4.6vw, 3.3rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.seo-hero__sub {
    margin: 22px 0 0;
    max-width: 520px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--ink-soft);
}

.seo-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.seo-panel {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 32px;
}

.seo-panel__step {
    padding: 18px 0;
}

.seo-panel__step:first-child {
    padding-top: 0;
}

.seo-panel__step:last-child {
    padding-bottom: 0;
}

.seo-panel__step + .seo-panel__step {
    border-top: 1px solid var(--line);
}

.seo-panel__number {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: 30px;
    line-height: 1;
    color: var(--accent);
}

.seo-panel__step strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 16px;
    font-weight: 600;
}

.seo-panel__step p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-soft);
}

.seo-section {
    padding: 24px 0 88px;
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.seo-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px;
}

.seo-card h2 {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.seo-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-soft);
}

.seo-band {
    background: var(--paper-warm);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 88px 0;
}

.seo-band__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.seo-band h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.18;
}

.seo-band__sub {
    margin: 18px 0 0;
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--ink-soft);
}

.seo-check {
    display: flex;
    flex-direction: column;
}

.seo-check__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    font-size: 15.5px;
    color: var(--ink);
}

.seo-check__item + .seo-check__item {
    border-top: 1px solid var(--line);
}

.seo-check__item svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.seo-related {
    padding: 88px 0;
}

.seo-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 40px;
}

.seo-related__card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.seo-related__card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.seo-related__card span {
    display: block;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.seo-related__card p {
    margin: 8px 0 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink-soft);
}

/* ---------- Public pages responsive ---------- */

@media (max-width: 1024px) {
    .deck-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .page-hero {
        padding: 124px 0 44px;
    }

    .seo-hero {
        padding: 124px 0 64px;
    }

    .seo-hero__inner,
    .seo-band__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .seo-band {
        padding: 64px 0;
    }

    .seo-related {
        padding: 64px 0;
    }

    .profile-head {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-name-row {
        flex-direction: column;
        align-items: center;
    }

    .profile-location {
        justify-content: center;
    }

    .profile-socials {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .deck-grid {
        grid-template-columns: 1fr;
    }

    .seo-grid,
    .seo-related__grid {
        grid-template-columns: 1fr;
    }

    .profile-wrap {
        padding: 104px 16px 60px;
    }

    .profile-card {
        padding: 24px;
        border-radius: 20px;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Reveal animations ---------- */
/* Only hide pre-reveal when JS is active (.js set by Home.js) — without JS everything shows. */

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.js .reveal[data-reveal-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-reveal-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-reveal-delay="3"] { transition-delay: 0.24s; }
.js .reveal[data-reveal-delay="4"] { transition-delay: 0.32s; }
.js .reveal[data-reveal-delay="5"] { transition-delay: 0.40s; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .hero__inner {
        gap: 48px;
    }

    .benefit {
        gap: 48px;
    }
}

@media (max-width: 900px) {
    .hero {
        padding: 132px 0 88px;
        text-align: center;
    }

    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero .store-badges {
        justify-content: center;
    }

    .statement {
        padding: 96px 0;
    }

    .how {
        padding: 96px 0 80px;
    }

    .how__grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 56px;
    }

    .benefits {
        padding-bottom: 80px;
    }

    .benefit,
    .benefit--flip {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 40px 0;
    }

    .benefit--flip .benefit__copy {
        order: 1;
    }

    .benefit--flip .benefit__media {
        order: 2;
    }

    .benefit__copy p {
        max-width: none;
    }

    .faq {
        padding-bottom: 96px;
    }

    .cta {
        padding: 96px 0;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .site-header__nav {
        display: none;
    }

    .site-header__inner {
        height: 60px;
    }

    .hero {
        padding-top: 112px;
    }

    .store-badge {
        flex: 1 1 auto;
        justify-content: center;
        min-width: 172px;
    }

    .benefit__media {
        padding: 28px;
        border-radius: 22px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .faq__answer {
        animation: none;
    }

    .btn,
    .store-badge {
        transition: none;
    }

    .btn:hover,
    .store-badge:hover {
        transform: none;
    }
}
