/* Home page styles (shared by every language version). Tokens come from base.css. */
h2.big { margin: 16px 0 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; }
section.block { padding-top: 112px; }

/* hero */
.hero { border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 80px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 12px; color: var(--fg-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
h1 { margin: 0; font-size: clamp(40px, 6vw, 68px); line-height: 1.0; letter-spacing: -0.04em; font-weight: 600; }
h1 .serif { color: var(--accent-ink); }
.lede { margin: 0; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 520px; }
.dropbox { border: 1px dashed var(--border-strong); border-radius: 18px; padding: 20px; background: var(--surface); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; transition: border-color .15s, background .15s; }
body.dragging .dropbox { border-color: var(--accent-ink); background: var(--accent-soft); }
.checks { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.checks span { display: inline-flex; align-items: center; gap: 8px; }
.checks svg { stroke: var(--accent-ink); width: 16px; height: 16px; }

/* scanner */
.scanner { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.scanbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--chip); border: 1px solid var(--border); }
.tab { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; background: transparent; color: var(--muted); }
.tab[aria-pressed="true"] { background: var(--accent); color: #0A0B0D; font-weight: 600; }
.photo { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 5 / 4; background: var(--surface-2); }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanline { position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); box-shadow: 0 0 18px 4px var(--glow); animation: scan 3.2s ease-in-out infinite alternate; }
@keyframes scan { from { top: 0% } to { top: 100% } }
.callout { position: absolute; max-width: 60%; padding: 10px 12px; border-radius: 10px; background: rgba(10,11,13,0.86); border: 1px solid rgba(255,181,71,0.55); display: flex; flex-direction: column; gap: 3px; color: #F2F3F5; }
.callout b { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; color: #FFB547; letter-spacing: 0.06em; font-weight: 500; }
.callout span { font-size: 13px; word-break: break-word; }
.c1 { left: 4%; top: 6%; } .c2 { right: 4%; top: 32%; max-width: 54%; } .c3 { left: 4%; bottom: 7%; }
.badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 16px 22px; border-radius: 14px; background: rgba(10,11,13,0.88); border: 1px solid var(--accent); display: flex; align-items: center; gap: 12px; color: #F2F3F5; max-width: 90%; }
.badge svg { stroke: var(--accent); width: 22px; height: 22px; }
.badge small { display: block; white-space: nowrap; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: #9BA1AD; }
.photo[data-mode="before"] .badge, .photo[data-mode="after"] .callout, .photo[data-mode="after"] .scanline { display: none; }
.notify { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.notify p { margin: 0; font-size: 14px; color: var(--muted); }
.notify form { display: flex; gap: 8px; flex-wrap: wrap; }
.notify input[type=email] { flex: 1 1 220px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg); font: inherit; font-size: 15px; }
.notify button { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; color: var(--fg); font-weight: 600; cursor: pointer; }
.notify .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.upsell { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.upsell .linkbtn { text-align: left; font-weight: 500; color: var(--muted); padding: 6px 0; }
.upsell .linkbtn:hover { color: var(--accent-ink); }
.upsell form { display: flex; gap: 8px; flex-wrap: wrap; }
.upsell input[type=email] { flex: 1 1 220px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--fg); font: inherit; font-size: 15px; }
.upsell button[type=submit] { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; color: var(--fg); font-weight: 600; cursor: pointer; }
.upsell .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notify-msg { font-size: 14px; color: var(--accent-ink); }
.notify-msg.err { color: var(--mark); }
.verdict { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.verdict[data-level="ai"], .verdict[data-level="history"] { border-color: var(--mark-border); }
.verdict[data-level="clean"] { border-color: var(--accent-ink); }
.verdict .kicker { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.06em; color: var(--subtle); }
.verdict h3 { margin: 0; font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; }
.verdict[data-level="ai"] h3, .verdict[data-level="history"] h3 { color: var(--mark); }
.verdict[data-level="clean"] h3 { color: var(--accent-ink); }
.verdict ul { margin: 0; padding-left: 18px; color: var(--fg-2); font-size: 15px; line-height: 1.55; }
.verdict ul:empty { display: none; }
.verdict .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.verdict .actions button { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; color: var(--fg); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.verdict .actions[hidden] { display: none; }
.status { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--subtle); }
@media (prefers-reduced-motion: reduce) { .scanline, .dot { animation: none; } }

/* file list */
.files { display: flex; flex-direction: column; gap: 8px; }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.file[aria-current="true"] { border-color: var(--accent-ink); }
.file .pick { flex: 1; min-width: 0; text-align: left; background: none; border: 0; color: var(--fg); cursor: pointer; padding: 0; display: flex; flex-direction: column; gap: 2px; min-height: 40px; justify-content: center; }
.file .name { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .meta { font-size: 12px; color: var(--muted); }
.file .meta.err { color: var(--mark); }
.file a.dl { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 10px; background: var(--accent); color: #0A0B0D; text-decoration: none; font-weight: 600; font-size: 14px; }
.files-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.linkbtn { background: none; border: 0; color: var(--accent-ink); font-weight: 600; cursor: pointer; padding: 8px 0; min-height: 44px; }

/* receipt */
.split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.split > div { max-width: 640px; }
.split > p { margin: 0; max-width: 400px; line-height: 1.6; color: var(--muted); }
.receipt { margin-top: 40px; overflow: hidden; }
.receipt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.receipt-head .lights { display: flex; align-items: center; gap: 10px; min-width: 0; }
.receipt-head .lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); flex: none; }
.receipt-head .lights span { margin-left: 8px; font-size: 13px; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--chip); color: var(--fg-2); }
.tag.warn { background: var(--mark-bg); color: var(--mark); }
.tag.ok { background: var(--accent-soft); color: var(--accent-ink); }
.scroll { overflow-x: auto; }
table.rows { width: 100%; min-width: 860px; border-collapse: collapse; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; }
table.rows th { text-align: left; font-weight: 400; font-size: 11px; letter-spacing: 0.08em; color: var(--subtle); padding: 12px 20px; border-bottom: 1px solid var(--line); }
table.rows td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--fg-2); }
table.rows tr:last-child td { border-bottom: 0; }
table.rows td.dim { color: var(--subtle); }
table.rows tr.removed td.seg { color: var(--mark); font-weight: 500; }
table.rows tr.kept td.seg { color: var(--fg); font-weight: 500; }
table.rows tr.removed { background: var(--mark-bg); }
.receipt[data-mode="after"] tr.removed { background: transparent; }
.receipt[data-mode="after"] tr.removed td.seg, .receipt[data-mode="after"] tr.removed td.what { color: var(--dim); text-decoration: line-through; }
.verdict { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
tr.removed .verdict { background: var(--mark-bg); color: var(--mark); }
.receipt[data-mode="after"] tr.removed .verdict { background: var(--accent-soft); color: var(--accent-ink); }
tr.kept .verdict { background: var(--chip); color: var(--fg-2); }
.example-note { padding: 12px 20px; font-size: 13px; color: var(--subtle); border-top: 1px solid var(--line); }

/* bento */
.bento { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.bento .card { padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.bento .num { font-size: 64px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.bento .num.accent { color: var(--accent-ink); }
.bento .t { margin-top: auto; font-size: 18px; font-weight: 600; }
.bento .d { font-size: 15px; color: var(--muted); line-height: 1.5; }
.bento svg.big { width: 56px; height: 56px; stroke: currentColor; stroke-width: 1.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* examples */
.examples { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.example { padding: 14px; display: flex; flex-direction: column; gap: 16px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.post { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.post img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post .head { position: absolute; left: 0; right: 0; top: 0; padding: 10px; display: flex; align-items: center; gap: 8px; background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0)); color: #FFFFFF; }
.post .avatar { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.8); flex: none; background: linear-gradient(135deg, #E9E4DA, #8A8F98); }
.post .who { display: flex; flex-direction: column; line-height: 1.2; font-size: 12px; font-weight: 600; min-width: 0; }
.post .who small { font-size: 11px; font-weight: 400; display: inline-flex; align-items: center; gap: 4px; }
.post .corner { position: absolute; left: 10px; bottom: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(10,11,13,0.82); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.06em; }
.corner.before { color: #FFB547; } .corner.after { color: var(--accent); }
.post .head.chips { flex-wrap: wrap; gap: 4px; align-items: flex-start; }
.post .chip { padding: 2px 7px; border-radius: 6px; background: rgba(10,11,13,0.78); color: #FFB547; font-size: 11px; font-weight: 500; }
.post .chip.ok { color: var(--accent); }
.example .info { padding: 0 6px 6px; display: flex; flex-direction: column; gap: 8px; }
.example .row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.example h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.example .app { flex: none; font-size: 11px; color: var(--subtle); }
.example .found { font-size: 12px; color: var(--mark); }
.example .res { font-size: 14px; color: var(--fg-2); }

/* flow */
.flow { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.flow .card { flex: 1 1 260px; padding: 24px; display: flex; flex-direction: column; gap: 8px; border-radius: 16px; }
.flow .card.hl { border-color: var(--mark-border); background: var(--mark-bg); }
.flow .step { font-size: 12px; color: var(--subtle); }
.flow .hl .step { color: var(--mark); }
.flow .t { font-size: 20px; font-weight: 600; }
.flow .d { font-size: 15px; color: var(--muted); line-height: 1.5; }
.flow .arrow { flex: 0 0 40px; display: flex; align-items: center; justify-content: center; color: var(--border-strong); }
.flow .here { margin-top: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #0A0B0D; font-size: 13px; font-weight: 600; }

/* spec */
.spec { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); overflow: hidden; }
.spec > div { padding: 32px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--border); }
.spec > div:last-child { border-right: 0; background: var(--surface-2); }
.spec h3 { margin: 0; font-size: 14px; letter-spacing: 0.08em; font-weight: 500; }
.spec ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }

/* guides */
.guides { margin-top: 20px; border-top: 1px solid var(--border); }
.guide { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.guide .gname { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; flex: 0 0 340px; }
.guide .gdesc { flex: 1 1 320px; color: var(--muted); }
.guide .soon { font-size: 12px; color: var(--subtle); }
@media (max-width: 720px) { .guide .gname { flex-basis: 100%; font-size: 26px; } }

/* pricing */
.plans { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.plan { padding: 36px; display: flex; flex-direction: column; gap: 18px; border-radius: 20px; }
.plan.pro { border-color: var(--accent-ink); background: var(--pro-bg); }
.plan .price { font-size: 56px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--fg-2); }
.plan .btn { margin-top: auto; }
.pro-note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.pro-msg { margin: 0; font-size: 14px; color: var(--mark); }
.pro-msg:empty { display: none; }
.license { border-top: 1px solid var(--border); padding-top: 14px; }
.license summary { cursor: pointer; font-size: 14px; color: var(--muted); list-style: none; }
.license summary::-webkit-details-marker { display: none; }
.license form { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.license input { flex: 1 1 220px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--fg); font: 14px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.04em; text-transform: uppercase; }
.license button, .keybox button { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; color: var(--fg); font-weight: 600; cursor: pointer; }
.pro-active { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.keybox { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.keybox code { flex: 1 1 240px; padding: 12px 14px; border-radius: 10px; background: var(--chip); color: var(--fg); font: 15px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.06em; word-break: break-all; }
dialog#key-dialog { max-width: 520px; width: calc(100% - 32px); border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--fg); padding: 28px; }
dialog#key-dialog::backdrop { background: rgba(0,0,0,0.55); }
dialog#key-dialog h3 { margin: 0; font-size: 22px; }
dialog#key-dialog p { color: var(--muted); line-height: 1.55; }
.pro-tag { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: 0.06em; padding: 1px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-ink); }
.linkbtn.secondary { color: var(--muted); font-weight: 500; }
.plan .soon-btn { margin-top: auto; min-height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px dashed var(--border-strong); color: var(--muted); font-weight: 600; }

/* faq */
.faq { margin-top: 20px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq summary { cursor: pointer; list-style: none; font-size: 20px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }

.cta { margin: 112px 0; border-radius: 24px; padding: 64px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; background-size: 48px 48px; }
.cta h2 { margin: 0; font-size: clamp(36px, 6vw, 56px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; max-width: 760px; }
.cta h2 .serif { color: var(--accent-ink); }
a.guide { color: var(--fg); text-decoration: none; }
a.guide .soon { color: var(--accent-ink); }
.disclaimer-line { max-width: 640px; }

@media (max-width: 720px) {
  .hero .wrap { padding-top: 40px; padding-bottom: 56px; gap: 32px; }
  section.block { padding-top: 72px; }
  .bento .num { font-size: 48px; }
  .callout { padding: 7px 9px; } .callout span { font-size: 12px; }
  .cta { margin: 72px 0; padding: 48px 16px; }
}
