/* Zume Editor product + legal pages. Follows the smolt-stage homepage design
   (index.html): same tokens, fonts, header/footer, button and section styles. */

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

:root {
    --c-bg: #ffffff;
    --c-bg-soft: #f6f8fb;
    --c-bg-dark: #0a1628;
    --c-bg-dark-2: #0f1d33;
    --c-text: #0e1726;
    --c-text-2: #5b6577;
    --c-text-3: #8b94a3;
    --c-text-on-dark: #ffffff;
    --c-text-on-dark-2: #aab6c8;
    --c-border: #e6eaf0;
    --c-border-strong: #d3d9e2;
    --c-brand: #1e4a8c;
    --c-brand-2: #3a73c4;
    --c-brand-soft: #eaf1fa;
    --c-neon: #00d4ff;
    --c-neon-2: #3b82f6;
    --c-neon-glow: rgba(0, 212, 255, 0.35);
    --c-ok: #16a34a;
    --radius: 10px;
    --radius-lg: 16px;
    --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-jp: 'Noto Sans JP', 'Inter', -apple-system, sans-serif;
    --maxw: 1120px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-en);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5.5rem 0; }
.section-soft { background: var(--c-bg-soft); }
.section-dark { background: var(--c-bg-dark); color: var(--c-text-on-dark); position: relative; overflow: hidden; }
.section-dark::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(900px 500px at 85% 0%, rgba(0, 212, 255, 0.08), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, rgba(59, 130, 246, 0.10), transparent 60%);
}
.section-dark > .container { position: relative; z-index: 1; }

.section-eyebrow {
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--c-brand-2); margin-bottom: 0.75rem; display: inline-block;
}
.section-head { margin-bottom: 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.01em; }
.section-head .section-lead { color: var(--c-text-2); max-width: 680px; margin: 0.9rem auto 0; }

/* ── Header ── */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--c-border);
}
.header-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.logo img { height: 32px; width: auto; }
.logo .logo-sub { font-size: 0.95rem; color: var(--c-text-2); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a {
    color: var(--c-text-2); font-size: 0.92rem; font-weight: 500;
    padding: 0.5rem 0.95rem; border-radius: 8px; transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--c-text); background: var(--c-bg-soft); }
.nav-cta { background: var(--c-brand); color: #fff !important; padding: 0.55rem 1.1rem !important; border-radius: 8px; }
.nav-cta:hover { background: var(--c-brand-2) !important; }
.lang-switch { display: inline-flex; align-items: center; gap: 0.15rem; margin-left: 0.4rem; padding-left: 0.75rem; border-left: 1px solid var(--c-border); font-size: 0.78rem; }
.lang-switch a { padding: 0.35rem 0.55rem !important; color: var(--c-text-3); border-radius: 6px; }
.lang-switch a.active { color: var(--c-brand); background: var(--c-brand-soft); }
.lang-switch span { color: var(--c-text-3); }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-size: 0.95rem; font-weight: 600; padding: 0.85rem 1.5rem; border-radius: 8px;
    border: 1px solid transparent; cursor: pointer; font-family: inherit;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--c-brand); color: #fff; }
.btn-primary:hover { background: var(--c-brand-2); }
.btn-neon { background: var(--c-neon); color: #07182b; box-shadow: 0 0 0 0 var(--c-neon-glow); }
.btn-neon:hover { background: #2ee0ff; box-shadow: 0 8px 24px -8px var(--c-neon-glow); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--c-text-on-dark); border-color: rgba(255, 255, 255, 0.18); }
.btn-ghost:hover { border-color: var(--c-neon); color: var(--c-neon); }
.btn-secondary { background: #fff; color: var(--c-text); border-color: var(--c-border-strong); }
.btn-secondary:hover { border-color: var(--c-brand); color: var(--c-brand); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }

/* ── Hero ── */
.hero {
    padding: 5.5rem 0 5rem; position: relative; overflow: hidden;
    background: linear-gradient(180deg, #0a1628 0%, #0f1d33 100%);
    color: var(--c-text-on-dark);
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(0, 212, 255, 0.18), transparent 55%),
        radial-gradient(700px 400px at -5% 100%, rgba(59, 130, 246, 0.15), transparent 60%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.2em; color: var(--c-neon); background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25); padding: 0.4rem 0.95rem; border-radius: 100px;
    margin-bottom: 1.6rem; text-transform: uppercase;
}
.hero-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-neon); box-shadow: 0 0 8px var(--c-neon-glow); }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 1.4rem; }
.hero h1 .accent { color: var(--c-neon); }
.hero-desc { font-size: 1.05rem; color: var(--c-text-on-dark-2); line-height: 1.9; max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 1rem; font-size: 0.82rem; color: var(--c-text-on-dark-2); }

/* OS badges */
.os-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.8rem; }
.os-badge {
    display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; font-weight: 600;
    color: var(--c-text-on-dark); background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.14); padding: 0.4rem 0.85rem; border-radius: 100px;
}
.os-badge svg { width: 15px; height: 15px; color: var(--c-neon); }

/* ── Editor mockup (CSS only, no external image) ── */
.mockup { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); background: #0b1b30; }
.hero-shot { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); }
.mockup-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.9rem; background: #0e2240; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mockup-dot { width: 11px; height: 11px; border-radius: 50%; }
.mockup-title { margin-left: 0.6rem; font-size: 0.74rem; color: var(--c-text-on-dark-2); font-family: var(--font-en); }
.mockup-body { display: grid; grid-template-columns: 2.6rem 1fr; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; font-size: 0.8rem; line-height: 1.7; }
.mockup-gutter { padding: 0.9rem 0.5rem; text-align: right; color: #44618a; background: #0b1b30; user-select: none; }
.mockup-code { padding: 0.9rem 1rem; overflow: hidden; white-space: pre; color: #cdd9ea; }
.mockup-code .k { color: #00d4ff; }
.mockup-code .s { color: #7ee787; }
.mockup-code .c { color: #5b6b86; }
.mockup-code .f { color: #e3b341; }

/* ── Feature grid ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 1.6rem; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.feature-card:hover { border-color: var(--c-brand-2); box-shadow: 0 16px 40px -24px rgba(30,74,140,0.4); transform: translateY(-2px); }
.feature-ico { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--c-brand-soft); color: var(--c-brand); margin-bottom: 1rem; }
.feature-ico svg { width: 20px; height: 20px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.9rem; color: var(--c-text-2); line-height: 1.7; }

/* ── Spec list ── */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2.5rem; max-width: 820px; margin: 0 auto; }
.spec-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--c-border); font-size: 0.92rem; }
.spec-row .k { color: var(--c-text-2); }
.spec-row .v { font-weight: 600; text-align: right; }

/* ── Pricing ── */
.pricing-wrap { display: flex; justify-content: center; }
.price-card {
    background: #fff; border: 1px solid var(--c-border-strong); border-radius: 18px;
    padding: 2.4rem; max-width: 420px; width: 100%; text-align: center;
    box-shadow: 0 30px 70px -40px rgba(30,74,140,0.45); position: relative;
}
.price-badge {
    position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%);
    background: var(--c-neon); color: #07182b; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.08em; padding: 0.35rem 0.9rem; border-radius: 100px; text-transform: uppercase;
}
.price-name { font-size: 1.1rem; font-weight: 700; }
.price-amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; margin: 0.6rem 0 0.1rem; }
.price-amount small { font-size: 1rem; font-weight: 600; color: var(--c-text-2); }
.price-sub { color: var(--c-text-2); font-size: 0.9rem; margin-bottom: 1.6rem; }
.price-features { list-style: none; text-align: left; margin: 1.6rem 0; display: grid; gap: 0.7rem; }
.price-features li { display: flex; gap: 0.6rem; font-size: 0.92rem; color: var(--c-text); }
.price-features li svg { width: 18px; height: 18px; color: var(--c-ok); flex: 0 0 auto; margin-top: 2px; }
.price-card .btn { width: 100%; }
.price-fineprint { margin-top: 1rem; font-size: 0.8rem; color: var(--c-text-3); }

/* ── FAQ ── */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq details { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 0 1.2rem; }
.faq summary { cursor: pointer; font-weight: 600; padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--c-brand-2); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 1.1rem; color: var(--c-text-2); font-size: 0.92rem; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--c-border); padding: 2.5rem 0; background: #fff; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.footer-logo img { height: 26px; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.85rem; }
.footer-links a { color: var(--c-text-2); }
.footer-links a:hover { color: var(--c-brand); }
.footer-meta { font-size: 0.82rem; color: var(--c-text-3); width: 100%; text-align: left; }

/* ── Simple page head (e.g. mobile apps shell) ── */
.page-head { padding: 4rem 0 2.5rem; text-align: center; }
.page-head .section-eyebrow { display: inline-block; }
.page-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; }
.page-head p { color: var(--c-text-2); max-width: 640px; margin: 0.8rem auto 0; }

/* ── App tile grid (smartphone apps) ── */
.apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; padding-bottom: 4rem; }
.app-tile { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 1.3rem; text-align: center; display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.app-tile:hover { border-color: var(--c-brand-2); transform: translateY(-3px); box-shadow: 0 16px 40px -24px rgba(30,74,140,0.25); }
.app-icon { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 0.8rem; background: linear-gradient(135deg, #eaf1fa, #d7e6f8); display: flex; align-items: center; justify-content: center; color: var(--c-brand-2); font-weight: 800; font-size: 1.05rem; }
.app-icon-img { width: 72px; height: 72px; border-radius: 17px; margin: 0 auto 0.8rem; display: block; background: var(--c-bg-soft); border: 1px solid var(--c-border); }
.app-tile h3 { font-size: 0.95rem; font-weight: 700; }
.app-text { margin: 0.45rem 0 0; font-size: 0.82rem; line-height: 1.6; color: var(--c-text-2); text-align: left; }
/* margin-top:auto pins the badges to the bottom of the tile, so they line up
   across a row however long each summary is. Side by side and at one height:
   the two artworks have different aspect ratios, so a matching height is what
   makes them read as the same size (neither may be stretched or cropped). */
.app-stores { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 0.35rem; margin-top: auto; padding-top: 1rem; }
.store-badge { display: inline-flex; align-items: flex-end; line-height: 0; border-radius: 6px; transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s; }
.store-badge img { height: 32px; width: auto; display: block; }
a.store-badge:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(14,23,38,0.5); }
a.store-badge:focus-visible { outline: 2px solid var(--c-brand-2); outline-offset: 3px; }
.store-badge.is-soon { position: relative; opacity: 0.4; filter: grayscale(1); cursor: default; }
.store-badge.is-soon .store-soon-tag { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.62rem; font-weight: 700; color: #fff; background: rgba(14,23,38,0.55); border-radius: 7px; }
@media (max-width: 1100px) { .apps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .apps-grid { grid-template-columns: 1fr; } }

/* ── Legal prose ── */
.legal { padding: 3.5rem 0 4.5rem; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.4rem; }
.legal .updated { color: var(--c-text-3); font-size: 0.85rem; margin-bottom: 2.2rem; }
.legal h2 { font-size: 1.2rem; font-weight: 700; margin: 2.2rem 0 0.7rem; }
.legal p, .legal li { color: var(--c-text-2); font-size: 0.95rem; line-height: 1.85; }
.legal ul, .legal ol { margin: 0.5rem 0 0.5rem 1.3rem; }
.legal li { margin-bottom: 0.35rem; }
.legal a { color: var(--c-brand); }
.legal .callout { background: var(--c-brand-soft); border: 1px solid #cfe0f5; border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1.2rem 0; }
.legal .callout p { color: var(--c-text); margin: 0; }

/* ── Responsive ── */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-visual { order: -1; }
    .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .nav-links .nav-hide { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .spec-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}
