/* Shared strict-CSP, dual-theme stylesheet for XORA localized landing pages:
 * /ko and /ja.
 * Loaded with id="xora-haptic-press-style" so haptics.js skips runtime <style> injection.
 */

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

:root {
    color-scheme: dark light;
    --bg: #050507;
    --bg-card: #0a0d12;
    --nav-bg: rgba(5, 5, 7, 0.85);
    --border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.06);
    --input-line: rgba(255, 255, 255, 0.55);
    --text: #e8e8ea;
    --dim: #989ca6;
    --white: #ffffff;
    --positive: #4ade80;
    --step-fg: #000000;
    --accent: #c8cbd2;
    --btn-bg: #ffffff;
    --btn-fg: #050507;
    --focus-ring: #e4e4e7;
    --korea: #cd2e3a;
    --font: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    --mono: 'JetBrains Mono', 'D2 Coding', monospace;
}

:root:lang(ja) {
    --font: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #fafafa;
        --bg-card: #ffffff;
        --nav-bg: rgba(250, 250, 250, 0.9);
        --border: rgba(17, 17, 20, 0.14);
        --input-bg: rgba(17, 17, 20, 0.05);
        --input-line: rgba(17, 17, 20, 0.45);
        --text: #1c1d22;
        --dim: #52555e;
        --white: #111114;
        --positive: #166534;
        --step-fg: #ffffff;
        --accent: #3b3e46;
        --btn-bg: #111114;
        --btn-fg: #fafafa;
        --focus-ring: #111114;
    }

    .hero-cta:hover {
        box-shadow: 0 8px 24px rgba(17, 17, 20, 0.14);
    }
}

html {
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    max-width: 100%;
    overflow-x: clip;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
    max-width: 100%;
    overflow-x: clip;
}

html[lang="ja"] body {
    line-height: 1.65;
    word-break: normal;
    overflow-wrap: anywhere;
}

/* Haptic & accessible interaction defaults (replaces haptics.js runtime <style> injection) */
:where(a[href], button, [role="button"], input[type="button"], input[type="submit"], summary, select, [data-haptic]) {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

:where(a[href], button, [role="button"], input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
    border-radius: 4px;
}

.xora-haptic-press {
    filter: brightness(1.06);
    transform: translateY(1px) scale(0.992);
    transition: transform 90ms cubic-bezier(0.16, 1, 0.3, 1), filter 90ms linear;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .xora-haptic-press { transform: none; }
}

.skip-to-content {
    position: fixed;
    top: -100%;
    left: 16px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0 18px;
    background-color: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 8px;
}

.nav {
    padding: 0.9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    min-width: 44px;
    text-decoration: none;
}

.nav-logo img {
    width: 28px;
    height: 28px;
}

.nav-logo span {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
}

.nav-lang {
    font-size: 0.8rem;
    color: var(--dim);
    display: flex;
    align-items: center;
}

.nav-lang a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0 4px;
    color: var(--accent);
    margin-left: 0.4rem;
    text-decoration: none;
}

.nav-lang a:hover {
    color: var(--white);
}

.hero {
    max-width: 880px;
    margin: 0 auto;
    padding: 3.25rem 1.5rem 2.25rem;
    text-align: left;
}

.hero h1 {
    font-size: clamp(1.75rem, 4.6vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 1.3rem;
    text-wrap: balance;
}

html[lang="ja"] .hero h1 {
    line-height: 1.18;
}

.hero h1 .accent {
    color: var(--positive);
}

.hero-offer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.75rem;
    max-width: 680px;
    margin-bottom: 1.15rem;
}

.hero-deposit {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 0.75rem;
    font-size: 1.02rem;
    color: var(--accent);
}

#heroAmount {
    width: calc(8ch + 20px);
    min-height: 44px;
    padding: 4px 10px;
    border: 0;
    border-bottom: 1px solid var(--input-line);
    border-radius: 0;
    background-color: var(--input-bg);
    color: var(--white);
    font: inherit;
    font-size: 1.4rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
    appearance: textfield;
}

@supports (field-sizing: content) {
    #heroAmount {
        width: auto;
        min-width: 3ch;
        field-sizing: content;
    }
}

#heroAmount::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#heroAmount:hover {
    border-bottom-color: var(--white);
}

#heroAmount:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 4px;
}

.hero-daily {
    font-family: var(--mono);
    font-size: 0.95rem;
    line-height: 1.25;
    color: var(--accent);
    white-space: nowrap;
}

html[lang="ja"] .hero-daily {
    font-size: 0.92rem;
}

.hero-daily strong {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--positive);
    font-variant-numeric: tabular-nums;
}

html[lang="ja"] .hero-daily strong {
    font-size: 1.6rem;
}

.hero-daily-sub {
    margin-top: 6px;
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--accent);
    text-wrap: balance;
}

.hero-included {
    list-style: none;
    display: grid;
    gap: 5px;
    margin-bottom: 1rem;
    font-size: 0.93rem;
    line-height: 1.45;
    color: var(--accent);
    text-wrap: balance;
}

html[lang="ja"] .hero-included {
    font-size: 0.92rem;
}

.hero-included li:last-child {
    color: var(--white);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    min-width: 44px;
    padding: 0.7rem 1.4rem;
    background-color: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.08s ease, box-shadow 0.2s;
}

.section a.hero-cta {
    color: var(--btn-fg);
    text-decoration: none;
}

.hero-cta:hover {
    box-shadow: 0 8px 28px rgba(255, 255, 255, 0.12);
}

.hero-cta:active {
    transform: scale(0.98);
}

.hero-quiet-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-quiet-link:hover {
    color: var(--white);
}

.hero-disclosure {
    max-width: 680px;
    margin-bottom: 0.65rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--dim);
    text-wrap: pretty;
}

.hero-rail-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 10px;
    font-size: 0.85rem;
    color: var(--dim);
    margin-bottom: 0.25rem;
}

.hero-rail-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0 4px;
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-rail-links a:hover {
    color: var(--accent);
}

@media (max-width: 900px) {
    .hero {
        padding: 1.25rem 1.25rem 1.75rem;
    }

    .hero h1 {
        margin-bottom: 0.9rem;
    }

    .hero-offer {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.8rem;
        margin-bottom: 0.85rem;
    }

    .hero-deposit {
        margin-bottom: 0.45rem;
    }

    .hero-included {
        gap: 3px;
        margin-bottom: 0.65rem;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.65rem 1rem;
    }

    .hero {
        padding: 0.95rem 1rem 1.4rem;
    }

    .hero h1 {
        font-size: 1.52rem;
        margin-bottom: 0.7rem;
    }

    html[lang="ja"] .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.65rem;
    }

    .hero-actions {
        gap: 2px 12px;
    }
}

.section {
    max-width: 880px;
    margin: 0 auto;
    padding: 2.75rem 1.5rem;
}

.section h2 {
    font-size: clamp(1.55rem, 3.5vw, 2.05rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.35rem;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

html[lang="ja"] .section h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin: 1.4rem 0 0.45rem;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.section h2 + h3 {
    margin-top: 0;
}

.section p {
    color: var(--dim);
    margin-bottom: 1rem;
    font-size: 1.02rem;
    overflow-wrap: anywhere;
}

html[lang="ja"] .section p {
    font-size: 1rem;
}

.section code {
    font-family: var(--mono);
    font-size: 0.85em;
    color: var(--positive);
    word-break: break-all;
}

.section a:not(.hero-cta) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    vertical-align: middle;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.section a:not(.hero-cta):hover {
    color: var(--white);
}

.nowrap {
    white-space: nowrap;
}

.section-cta-wrap {
    margin-top: 2rem;
}

.step-list {
    list-style: none;
    counter-reset: step;
}

.step-list li {
    counter-increment: step;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background-color: var(--positive);
    color: var(--step-fg);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 44px;
    padding: 0.85rem 0;
    cursor: pointer;
    color: var(--white);
    font-weight: 600;
    font-size: 1.02rem;
    list-style: none;
}

html[lang="ja"] .faq-item summary {
    font-size: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    color: var(--dim);
    font-family: var(--mono);
    font-size: 1.1rem;
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-item p {
    margin: 0;
    padding: 0 0 1rem;
    color: var(--dim);
    font-size: 0.96rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

html[lang="ja"] .faq-item p {
    font-size: 0.95rem;
}

.footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--dim);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 0.35rem;
    max-width: 880px;
    margin: 0 auto;
}

.footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0 0.5rem;
    color: var(--accent);
    text-decoration: none;
}

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

.byline {
    margin: 0.75rem auto 0;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--dim);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 6px;
}

.byline a {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--white);
}

.disclaimer {
    max-width: 700px;
    margin: 1rem auto 0;
    font-size: 0.78rem;
    color: var(--dim);
    line-height: 1.5;
}

.disclaimer-compact {
    margin-top: 0.5rem;
}

.disclaimer a {
    min-height: 44px;
    min-width: 44px;
    padding: 0 0.25rem;
    vertical-align: middle;
    text-decoration: underline;
    text-underline-offset: 3px;
}
