@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --yellow: #f5c842;
    --yellow-light: #fdf3c0;
    --black: #111;
    --gray: #555;
    --gray-light: #999;
    --border: #e0e0e0;
    --bg: #fff;
    --dot-color: #ccc;
    --dot-opacity: 0.45;
    --screenshot-shadow: rgba(0, 0, 0, 0.08);
    --format-tag-bg: #f4f4f4;
    --pricing-featured-bg: #fffdf0;
}

@media (prefers-color-scheme: dark) {
    :root {
        --yellow: #f5c842;
        --yellow-light: #3a2f00;
        --black: #f0f0f0;
        --gray: #aaa;
        --gray-light: #666;
        --border: #2e2e2e;
        --bg: #111;
        --dot-color: #444;
        --dot-opacity: 0.6;
        --screenshot-shadow: rgba(0, 0, 0, 0.4);
        --format-tag-bg: #1e1e1e;
        --pricing-featured-bg: #1e1800;
    }
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--black);
    line-height: 1.6;
}

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

/* ── Layout ── */
.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header + hero dotted background ── */
.site-header,
.hero {
    position: relative;
}

.site-header::before,
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        circle,
        var(--dot-color) 1px,
        transparent 1px
    );
    background-size: 18px 18px;
    opacity: var(--dot-opacity);
    pointer-events: none;
    z-index: 0;
}

.site-header > *,
.hero > * {
    position: relative;
    z-index: 1;
}

/* ── Header ── */
.site-header {
    padding: 56px 0 0;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.lang-switcher {
    display: flex;
    gap: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.lang-switcher a {
    padding: 4px 7px;
    border-radius: 6px;
    color: var(--gray);
}

.lang-switcher a:hover {
    color: var(--black);
}

.lang-switcher a[aria-current="page"] {
    color: var(--black);
    background: var(--yellow-light);
}

/* Logo and switcher on one line on small phones too. */
@media (max-width: 480px) {
    .lang-switcher {
        gap: 0;
        font-size: 0.72rem;
    }

    .lang-switcher a {
        padding: 4px 5px;
    }
}

/* Japanese: Inter has no Japanese glyphs, so name the system's Japanese
   fonts (otherwise Windows may pick a Chinese one). No synthetic italics or
   tight tracking for kanji, and headings break between phrases (Chrome). */
:lang(ja) body {
    font-family: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI",
        "Yu Gothic", Meiryo, "Noto Sans JP", system-ui, sans-serif;
    line-break: strict;
}

:lang(ja) em {
    font-style: normal;
}

:lang(ja) h1,
:lang(ja) h2,
:lang(ja) h3 {
    letter-spacing: 0;
    line-height: 1.35;
    word-break: auto-phrase;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-icon {
    display: inline-block;
    width: 52px;
    height: 52px;
    border-radius: 13px;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon img {
    display: block;
    width: 100%;
    height: 100%;
}

/* ── Hero ── */
.hero {
    padding: 56px 0 48px;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: normal;
    background: var(--yellow);
    padding: 0 4px;
    border-radius: 3px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 560px;
    margin-bottom: 32px;
    line-height: 1.7;
}

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

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--yellow);
    color: var(--black);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 22px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition:
        background 0.15s,
        transform 0.1s;
    cursor: pointer;
    text-decoration: none;
}

.btn-download:hover {
    background: #e8b800;
}

.btn-download:active {
    transform: scale(0.97);
}

.btn-download-secondary {
    background: var(--format-tag-bg);
    color: var(--black);
    border: 1.5px solid var(--border);
}

.btn-download-secondary:hover {
    background: var(--border);
}

.hero-platforms {
    font-size: 0.85rem;
    color: var(--gray-light);
}

/* ── Screenshot ── */
.screenshot-section {
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.screenshot-wrap {
    border-radius: 12px;
    overflow: hidden;
}

.screenshot-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Sections ── */
.section {
    padding: 56px 0;
    border-bottom: 1px solid var(--border);
}

.section:last-child {
    border-bottom: none;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 16px;
}

.section h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section > .container > p,
.section-intro {
    font-size: 1rem;
    color: var(--gray);
    max-width: 560px;
    margin-bottom: 40px;
}

/* ── Feature list ── */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-list li {
    padding-left: 14px;
    border-left: 3px solid var(--yellow);
}

.feature-list strong {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.feature-list span {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

/* ── Formats table ── */
.formats-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}

.format-group-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 10px;
}

.format-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.format-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: var(--format-tag-bg);
    color: var(--black);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 4px 10px;
    letter-spacing: 0.02em;
}

.format-arrow {
    font-size: 1.4rem;
    color: var(--yellow);
    text-align: center;
    font-weight: 700;
}

/* ── Pricing ── */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pricing-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--yellow);
    background: var(--pricing-featured-bg);
}

.pricing-name {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 4px;
}

.pricing-note {
    font-size: 0.8rem;
    color: var(--gray-light);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
}

.pricing-features li {
    font-size: 0.88rem;
    color: var(--gray);
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.pricing-features li .check {
    color: var(--black);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-features li .x {
    color: #ccc;
    flex-shrink: 0;
}

.pricing-features li.dim {
    color: #bbb;
}

.btn-pricing {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 10px 16px;
    text-align: center;
    border-radius: 7px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-pricing-free {
    border: 1.5px solid var(--border);
    color: var(--black);
    background: transparent;
}

.btn-pricing-free:hover {
    border-color: var(--gray);
}

.btn-pricing-paid {
    background: var(--yellow);
    color: var(--black);
    border: 1.5px solid transparent;
}

.btn-pricing-paid:hover {
    background: #e8b800;
}

/* ── CTA ── */
.cta-section {
    padding: 56px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 32px;
}

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    background: var(--bg);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .formats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .format-arrow {
        transform: rotate(90deg);
        text-align: left;
    }

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

    .device-table th:nth-child(3),
    .device-table td:nth-child(3) {
        display: none;
    }
}

/* ── Links ── */
.inline-link,
.prose a,
.feature-list a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Compact hero (inner pages) ── */
.hero-compact {
    padding: 40px 0 40px;
}

/* ── Breadcrumbs ── */
.breadcrumbs {
    padding-top: 24px;
    font-size: 0.82rem;
    color: var(--gray-light);
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumbs li + li::before {
    content: "/";
    margin-right: 6px;
}

.breadcrumbs a:hover {
    color: var(--black);
}

/* ── Prose ── */
.section > .container > p.prose {
    max-width: 620px;
    margin-bottom: 16px;
}

.section > .container > p.note {
    font-size: 0.9rem;
    padding-left: 14px;
    border-left: 3px solid var(--border);
}

.contact-email {
    overflow-wrap: anywhere;
}

/* ── Steps ── */
.steps {
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--gray);
}

.steps li::marker {
    font-weight: 700;
    color: var(--black);
}

.steps strong {
    color: var(--black);
}

/* ── Spec table ── */
.spec-table {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 12px 32px;
    font-size: 0.95rem;
}

.spec-table dt {
    color: var(--gray-light);
}

.spec-table dd {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

/* ── Brand cards (home) ── */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.brand-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.brand-card ul,
.device-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.brand-card a,
.device-links a {
    font-size: 0.9rem;
    color: var(--gray);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand-card a::before,
.device-links a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--yellow);
    flex-shrink: 0;
}

.brand-card a:hover,
.device-links a:hover {
    color: var(--black);
}

.section > .container > p.devices-more {
    margin: 24px 0 0;
    font-size: 0.9rem;
    max-width: none;
}

/* ── Device table ── */
.device-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.device-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-light);
    padding: 8px 12px 8px 0;
    border-bottom: 1px solid var(--border);
}

.device-table td {
    padding: 10px 12px 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--gray);
}

.device-table td a {
    color: var(--black);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-underline-offset: 3px;
}

/* ── FAQ ── */
.faq {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.faq p {
    font-size: 0.92rem;
    color: var(--gray);
    max-width: 620px;
}

/* ── Download CTA ── */
.cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-section p.cta-platforms {
    margin: 16px 0 0;
    font-size: 0.82rem;
    color: var(--gray-light);
}

.cta-section p.cta-warning {
    margin: 12px auto 0;
    font-size: 0.8rem;
    color: var(--gray-light);
    max-width: 480px;
    line-height: 1.6;
}

/* ── Footer ── */
.footer-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 10px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-nav a {
    font-size: 0.82rem;
    color: var(--gray-light);
    transition: color 0.15s;
}

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

@media (max-width: 600px) {
    .brand-grid,
    .footer-nav {
        grid-template-columns: 1fr 1fr;
    }

    .spec-table {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .spec-table dd {
        margin-bottom: 10px;
    }
}
