/* RawLock 產品網站（rawlock.app） */
:root {
    --ink: #111827;
    --text: #1f2937;
    --muted: #5b6472;
    --line: #e5e7eb;
    --soft: #f6f7fb;
    --warm: #fff7ed;
    --navy: #1e3a8a;
    --navy-deep: #172554;
    --accent: #ff6b35;
    --radius: 20px;
    --wrap: 1120px;
    --header-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
/* 日文頁改用日文字形（漢字字形與繁中不同）；字型由 ja 頁面另外載入 */
html[lang="ja"] body { font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; text-wrap: balance; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif; letter-spacing: -0.01em;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.site-nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.site-nav > a { text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.site-nav > a:hover, .site-nav > a[aria-current] { color: var(--ink); }
.lang-switch { display: flex; gap: 0.2rem; padding-left: 1.2rem; border-left: 1px solid var(--line); }
.lang-switch a {
    padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.82rem;
    color: var(--muted); text-decoration: none; white-space: nowrap;
}
.lang-switch a:hover { color: var(--ink); background: var(--soft); }
.lang-switch a[aria-current] { background: var(--navy); color: #fff; }
.header-cta {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--ink); color: #fff; text-decoration: none;
    padding: 0.45rem 0.95rem; border-radius: 999px; font-size: 0.88rem; font-weight: 500; white-space: nowrap;
}
.header-cta:hover { background: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }

/* ---------- Buttons ---------- */
.appstore {
    display: inline-flex; align-items: center; gap: 0.7rem;
    background: #000; color: #fff; text-decoration: none;
    padding: 0.7rem 1.4rem 0.7rem 1.1rem; border-radius: 14px;
    transition: transform 0.15s, background 0.2s;
}
.appstore:hover { background: var(--navy-deep); transform: translateY(-1px); }
.appstore svg { width: 30px; height: 30px; flex-shrink: 0; }
.appstore small { display: block; font-size: 0.72rem; opacity: 0.85; line-height: 1.2; }
.appstore strong { display: block; font-size: 1.15rem; font-weight: 600; line-height: 1.2; font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif; }
.appstore-note { margin-top: 0.75rem; color: var(--muted); font-size: 0.88rem; }
.icon-apple { width: 1em; height: 1em; }

/* ---------- Hero ---------- */
.hero {
    background: radial-gradient(1200px 500px at 85% 10%, #e8efff 0%, rgba(232, 239, 255, 0) 60%),
                linear-gradient(180deg, var(--warm) 0%, #ffffff 100%);
    padding: 4.5rem 0 4rem;
    overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.3rem 0.85rem 0.3rem 0.35rem; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); font-size: 0.85rem; color: var(--muted);
    margin-bottom: 1.5rem;
}
.eyebrow img { width: 26px; height: 26px; border-radius: 7px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.01em; margin-bottom: 1.1rem; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 32em; margin-bottom: 2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; list-style: none; }
.hero-points li {
    padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
    background: #eef3ff; color: var(--navy);
}
.hero-shot { position: relative; text-align: center; }
.hero-shot::before {
    content: ""; position: absolute; inset: 8% 10% 4%; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.18), rgba(255, 107, 53, 0) 70%);
    filter: blur(10px);
}
.hero-shot img {
    position: relative; width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto;
    border-radius: 32px; box-shadow: 0 30px 70px rgba(30, 58, 138, 0.22);
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section.alt { background: var(--soft); }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 3.5rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 0.6rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.feature {
    display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: center;
    max-width: 960px; margin: 0 auto;
}
.feature + .feature { margin-top: 5rem; }
.feature:nth-of-type(even) { grid-template-columns: 1.2fr 0.8fr; }
.feature:nth-of-type(even) .feature-shot { order: 2; }
.feature-shot img {
    display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto;
    border-radius: 28px; box-shadow: 0 20px 50px rgba(30, 58, 138, 0.16);
}
.feature-num { display: inline-block; font-size: 0.85rem; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.feature h3 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: 1rem; }
.feature ul { list-style: none; }
.feature li { position: relative; padding-left: 1.7rem; color: var(--muted); margin-bottom: 0.6rem; }
.feature li::before {
    content: ""; position: absolute; left: 0; top: 0.55em; width: 1rem; height: 0.55rem;
    border-left: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy);
    transform: rotate(-45deg) translateY(-30%);
}
.tag {
    display: inline-block; margin-left: 0.5rem; padding: 0.1rem 0.55rem; border-radius: 6px;
    background: #fff1e8; color: #c2410c; font-size: 0.75rem; font-weight: 600; vertical-align: middle;
}
.tag.free { background: #e8f6ee; color: #15803d; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: 880px; margin: 0 auto; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.plan.featured { border: 2px solid var(--navy); box-shadow: 0 16px 40px rgba(30, 58, 138, 0.12); }
.plan h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.plan ul { list-style: none; }
.plan li { position: relative; padding-left: 1.6rem; color: var(--muted); margin-bottom: 0.55rem; }
.plan li::before {
    content: ""; position: absolute; left: 0.1rem; top: 0.55em; width: 0.9rem; height: 0.5rem;
    border-left: 2.5px solid #15803d; border-bottom: 2.5px solid #15803d;
    transform: rotate(-45deg) translateY(-30%);
}
.plan.featured li::before { border-color: var(--navy); }
.note { max-width: 880px; margin: 1.5rem auto 0; color: var(--muted); font-size: 0.9rem; text-align: center; }

/* ---------- CTA band ---------- */
.cta {
    background: radial-gradient(circle at 20% 0%, #3b82f6 0%, var(--navy) 45%, var(--navy-deep) 100%);
    color: #fff; text-align: center; padding: 4.5rem 0;
}
.cta img.cta-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); margin-bottom: 1.25rem; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 0.6rem; }
.cta p { color: rgba(255, 255, 255, 0.82); margin-bottom: 2rem; }
.cta .appstore { background: #fff; color: #000; }
.cta .appstore:hover { background: #f1f5ff; }

/* ---------- Document pages (support, privacy) ---------- */
.doc { padding: 3.5rem 0 5rem; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.4rem; }
.doc h1 + * { margin-top: 1.5rem; }
.doc .rl-meta { color: var(--muted); font-size: 0.92rem; }
.doc h3 { font-size: 1.12rem; margin: 2rem 0 0.6rem; }
.doc p, .doc li { color: #374151; }
.doc p { margin-bottom: 0.8rem; }
.doc ul { padding-left: 1.3rem; margin-bottom: 0.8rem; }
.doc li { margin-bottom: 0.4rem; }
.doc a { color: var(--navy); }
.rl-summary { background: #eef4ff; border: 1px solid #cfe0ff; border-radius: 16px; padding: 1.1rem 1.35rem; margin-bottom: 0.5rem; }
.rl-summary p:last-child { margin-bottom: 0; }

/* ---------- 404 ---------- */
.notfound { padding: 6rem 0; text-align: center; }
.notfound h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.notfound p { color: var(--muted); margin-bottom: 0.4rem; }
.notfound .links { margin-top: 2rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.notfound .links a { color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: #0b1020; color: rgba(255, 255, 255, 0.72); padding: 3.5rem 0 2rem; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: #fff; margin-bottom: 0.9rem; }
.site-footer h4 { color: #fff; font-size: 0.92rem; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
    margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .header-cta { display: none; }
    .nav-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
        flex-direction: column; align-items: stretch; gap: 0; margin: 0;
        background: #fff; border-bottom: 1px solid var(--line); padding: 0.5rem 24px 1.25rem;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    }
    .site-header.menu-open .site-nav { display: flex; }
    .site-nav > a { padding: 0.8rem 0; border-bottom: 1px solid var(--soft); font-size: 1rem; }
    .lang-switch { border-left: 0; padding: 1rem 0 0; justify-content: center; }
    .site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero { padding: 2.5rem 0 3rem; }
    .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .hero .lead { margin-left: auto; margin-right: auto; }
    .hero-points { justify-content: center; }
    .hero-shot img { max-width: 280px; }

    .section { padding: 3.5rem 0; }
    .section-head { margin-bottom: 2.5rem; }
    .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; gap: 1.75rem; }
    .feature:nth-of-type(even) .feature-shot { order: 0; }
    .feature + .feature { margin-top: 3.5rem; }
    .feature-shot img { max-width: 240px; }
    .plans { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}
