/* burstai design system — ported 1:1 from the Claude Design canvas (landing / checker / report). */
:root {
  --ink: #0E1B3D;
  --blue: #2F4BEA;
  --blue-dark: #1C33B8;
  --lime: #C6F432;
  --soft: #EEF2FC;
  --soft-2: #F7F9FF;
  --muted: #55617E;
  --text-2: #3D4966;
  --text-3: #2B3756;
  --text-4: #24304F;
  --dash: #B8C2DE;
  --line: #DCE2F2;
  --pink: #FF5C7A;   --pink-t: #FFD3DC;
  --amber: #FFB020;  --amber-t: #FFE6B3;
  --green: #22C38E;  --green-t: #C6F1E0;
  --sky: #7FB3FF;    --sky-t: #DDE9FF;
  --violet: #B79CFF; --violet-t: #E6DCFF; --violet-deep: #8B5CF6; --violet-pale: #D9CEFF; --violet-bg: #F5F2FF;
  --gram-bg: #EAF2FF;
  --fixed-t: #E2F9B0;
  --font: Lexend, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", Lexend, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #FFFFFF; font-weight: 400; line-height: 1.5; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
button { font-family: inherit; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ---------- motion ---------- */
.pop { transition: transform .25s ease, box-shadow .25s ease; }
.pop:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink) !important; }
.bob { animation: bob 6s ease-in-out infinite; }
.bob2 { animation: bob 8s ease-in-out infinite reverse; }
.spin { animation: spin 18s linear infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes ring-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bob, .bob2, .spin { animation: none; } .pop { transition: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; border: 2px solid var(--ink); border-radius: 12px; padding: 9px 16px; min-height: 44px; font: 500 15px var(--font); color: var(--ink); background: #FFFFFF; }
.btn-lime { background: var(--lime); font-weight: 600; box-shadow: 4px 4px 0 var(--ink); }
.btn-blue { background: var(--blue); color: #FFFFFF; font-weight: 600; box-shadow: 4px 4px 0 var(--ink); }
.btn-ink { background: var(--ink); color: #FFFFFF; font-weight: 600; border-color: var(--ink); }
.btn-link { border: 0; background: transparent; color: var(--blue); padding: 10px 4px; font-weight: 400; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-lg { font-size: 17px; padding: 13px 24px; min-height: 50px; border-radius: 14px; box-shadow: 5px 5px 0 var(--ink); }

/* ---------- logo ---------- */
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo .word { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.04em; }
.logo-stack { position: relative; width: 38px; height: 38px; display: block; }
.logo-stack svg { position: absolute; left: 0; top: 0; }
.logo-stack svg:first-child { left: 3px; top: 3px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #FFFFFF; border-radius: 14px; padding: 12px 18px; font-size: 15px; box-shadow: 6px 6px 0 var(--blue); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 50; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   LANDING
   ===================================================================== */
.landing { background: #FFFFFF; min-height: 100vh; overflow-x: clip; }
.announce { background: var(--ink); color: #FFFFFF; font-size: 15px; }
.announce .wrap { padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.announce .tag { background: var(--lime); color: var(--ink); font-weight: 600; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.announce a { color: #FFFFFF; font-weight: 500; text-underline-offset: 4px; }

.nav { padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.nav .logo .word { font-size: 27px; }
.nav nav { display: flex; flex-wrap: wrap; gap: 30px; font-size: 17px; }
.nav nav a { color: var(--ink); text-decoration: none; }
.nav nav a:hover { color: var(--blue); }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav .login { color: var(--ink); text-decoration: none; font-size: 17px; padding: 12px 16px; background: none; border: 0; cursor: pointer; }
.nav .start { background: var(--blue); color: #FFFFFF; text-decoration: none; font-weight: 500; font-size: 17px; padding: 12px 22px; border-radius: 14px; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }

.hero { margin: 8px auto 0; }
.hero-card { background: var(--soft); border-radius: 40px; padding: clamp(32px, 5vw, 72px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; position: relative; overflow: clip; }
.hero-blob { position: absolute; right: -120px; bottom: -220px; width: 640px; height: 640px; border-radius: 50%; background: #DCE3FB; }
.hero-copy { flex: 1 1 520px; min-width: 0; position: relative; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #FFFFFF; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 14px; font-weight: 500; }
.pill .tag { background: var(--lime); border-radius: 999px; padding: 3px 10px; font-weight: 600; white-space: nowrap; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 5.6vw, 78px); line-height: 1; letter-spacing: -0.045em; margin: 22px 0 18px; }
.hero h1 .hl { background: var(--lime); padding: 0 10px; border-radius: 14px; box-shadow: inset 0 -6px 0 rgba(14, 27, 61, .12); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* On load the lime marker sweeps in from the left, like a highlighter stroke. */
.hero h1 .hl.sweep {
  background: linear-gradient(rgba(14, 27, 61, .12), rgba(14, 27, 61, .12)) left bottom / 0% 6px no-repeat,
              linear-gradient(var(--lime), var(--lime)) left top / 0% 100% no-repeat;
  box-shadow: none;
  animation: sweep .9s cubic-bezier(.2, .7, .2, 1) .35s forwards;
}
@keyframes sweep { to { background-size: 100% 6px, 100% 100%; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .hl.sweep { animation: none; background-size: 100% 6px, 100% 100%; } }
.hero .lede { font-size: 20px; line-height: 1.55; color: var(--text-2); margin: 0 0 28px; max-width: 600px; font-weight: 300; }

.scanbox { background: #FFFFFF; border: 2px solid var(--ink); border-radius: 26px; box-shadow: 8px 8px 0 var(--ink); overflow: clip; max-width: 640px; position: relative; scroll-margin-top: 24px; }
.scanbox.drag { outline: 3px dashed var(--blue); outline-offset: -8px; }
.scanbox .modes { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border-bottom: 2px solid var(--ink); background: var(--soft-2); }
.mode { font: 500 15px var(--font); cursor: pointer; border-radius: 12px; padding: 10px 16px; min-height: 44px; color: var(--ink); background: transparent; border: 2px solid transparent; }
.mode[aria-selected="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.scanbox textarea { display: block; width: 100%; border: 0; resize: none; padding: 20px 22px; font: 300 18px/1.6 var(--font); color: var(--ink); background: #FFFFFF; min-height: 136px; outline: none; }
.scanbox textarea:focus { background: #FFFFFF; }
.scanbox .scan-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 12px 12px 22px; border-top: 1px dashed var(--dash); }
.scanbox .count { font-size: 14px; color: var(--muted); }
.scanbox .cta { margin-left: auto; font: 600 17px var(--font); color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 14px; padding: 13px 24px; box-shadow: 5px 5px 0 var(--ink); cursor: pointer; min-height: 50px; }
.scanbox .cta:disabled { opacity: .6; cursor: progress; }

.scene { flex: 1 1 460px; min-width: 0; height: 560px; position: relative; perspective: 1500px; }
.scene-inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(-16deg) rotateX(8deg); }
.scene .burst { position: absolute; right: 2%; top: 4%; transform: translateZ(-80px); filter: drop-shadow(10px 10px 0 var(--ink)); }
.scene .report-card { position: absolute; left: 4%; top: 8%; width: 230px; background: #FFFFFF; border: 2px solid var(--ink); border-radius: 24px; box-shadow: 8px 8px 0 var(--ink); transform: translateZ(40px); overflow: hidden; }
.scene .report-card .head { background: var(--blue); color: #FFFFFF; padding: 16px 18px; border-bottom: 2px solid var(--ink); }
.scene .report-card .head small { font-size: 13px; opacity: .9; display: block; }
.scene .report-card .head b { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1; letter-spacing: -0.04em; }
.scene .report-card .rows { padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.scene .report-card .rows div { display: flex; align-items: center; gap: 10px; }
.scene .report-card .rows div span:first-child { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); }
.scene .report-card .rows div span:nth-child(2) { flex: 1; }
.scene .doc-card { position: absolute; right: 0; top: 34%; width: 320px; background: #FFFFFF; border: 2px solid var(--ink); border-radius: 24px; box-shadow: 8px 8px 0 var(--ink); padding: 22px; font-size: 14px; line-height: 1.75; color: var(--text-3); }
.scene .doc-card b { display: block; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.scene .doc-card .m1 { background: var(--pink-t); border-radius: 4px; padding: 1px 2px; }
.scene .doc-card .m2 { background: var(--violet-t); border-radius: 4px; padding: 1px 2px; }
.scene .doc-card .m3 { text-decoration: underline wavy var(--blue); text-underline-offset: 4px; }
.scene .ai-chip { position: absolute; left: 14%; bottom: 6%; background: var(--ink); color: #FFFFFF; border-radius: 20px; padding: 16px 20px; transform: translateZ(90px); box-shadow: 8px 8px 0 var(--violet-deep); display: flex; align-items: center; gap: 14px; }
.scene .ai-chip small { font-size: 13px; color: #C9D1EA; display: block; }
.scene .ai-chip b { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; }
.scene .sparkle { position: absolute; right: 8%; bottom: 10%; width: 64px; height: 64px; border-radius: 18px; background: var(--blue); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); transform: translateZ(120px); display: grid; place-items: center; }
@media (max-width: 1100px) { .scene { height: 420px; } .scene .doc-card { width: 260px; } }
@media (max-width: 640px) { .scene { display: none; } }

.formats .wrap { padding-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 34px; font-size: 16px; color: var(--muted); }
.formats b { color: var(--ink); }

.section { padding: 96px 24px 40px; }
.section h2 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4.4vw, 60px); letter-spacing: -0.04em; line-height: 1.02; margin: 0 0 14px; max-width: 820px; }
.section .sub { font-size: 19px; color: var(--text-2); font-weight: 300; margin: 0 0 44px; max-width: 640px; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; }
.tool { text-decoration: none; color: var(--ink); border: 2px solid var(--ink); border-radius: 28px; box-shadow: 6px 6px 0 var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 260px; }
.tool .ico { width: 56px; height: 56px; border-radius: 16px; border: 2px solid var(--ink); display: grid; place-items: center; }
.tool h3 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; margin: 0; }
.tool p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-3); flex: 1; }
.tool .more { font-weight: 500; }

.comeback { padding: 80px 24px; }
.comeback .head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; }
.comeback .head h2 { max-width: 700px; margin: 0; }
.comeback .head p { font-size: 18px; color: var(--text-2); font-weight: 300; margin: 0; max-width: 420px; }
.comeback .cards { display: flex; flex-wrap: wrap; gap: 26px; perspective: 1600px; }
.dash { flex: 999 1 560px; min-width: 0; background: var(--ink); color: #FFFFFF; border-radius: 32px; padding: 30px; box-shadow: 10px 10px 0 var(--blue); transform: rotateY(4deg); transform-origin: left center; }
.dash .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 24px; }
.dash .top b { font-family: var(--display); font-weight: 700; font-size: 22px; }
.dash .streak { display: flex; align-items: center; gap: 8px; background: var(--lime); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; }
.dash .cols { display: flex; flex-wrap: wrap; gap: 22px; }
.dash .col { flex: 1 1 260px; min-width: 0; }
.dash .label { font-size: 14px; color: #C9D1EA; margin-bottom: 10px; }
.dash .bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; border-bottom: 1px solid #2C3A63; }
.dash .bars div { flex: 1; background: #2C3A63; border-radius: 8px 8px 0 0; }
.dash .bars div:last-child { background: var(--lime); }
.dash .note { font-size: 13px; color: #C9D1EA; margin-top: 8px; }
.dash .recent { display: flex; flex-direction: column; gap: 10px; }
.dash .recent div { display: flex; justify-content: space-between; gap: 10px; background: #172650; border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.dash .recent span:last-child { color: var(--lime); font-weight: 600; }
.dash .recent .hi { color: #FF8FA3 !important; }
.cert { flex: 1 1 340px; min-width: 0; background: #FFFFFF; border: 2px solid var(--ink); border-radius: 32px; box-shadow: 10px 10px 0 var(--ink); padding: 30px; transform: rotateY(-6deg) rotateZ(1deg); transform-origin: right center; display: flex; flex-direction: column; gap: 16px; position: relative; }
.cert .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.cert .title { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.03em; line-height: 1.05; }
.cert .chips { display: flex; gap: 10px; flex-wrap: wrap; }
.cert .chips span { background: var(--soft); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.cert .chips span.v { background: #EEE7FF; }
.cert .qr-row { display: flex; align-items: center; gap: 16px; margin-top: auto; border-top: 1px dashed var(--dash); padding-top: 16px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.qr { width: 74px; height: 74px; flex: none; border: 2px solid var(--ink); border-radius: 10px; background-image: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px), repeating-linear-gradient(0deg, var(--ink) 0 6px, transparent 6px 12px); background-blend-mode: difference; opacity: .9; }
.cert .seal { position: absolute; right: -22px; top: -22px; width: 84px; height: 84px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); display: grid; place-items: center; font: 700 12px var(--font); text-align: center; line-height: 1.1; }

.how { background: var(--soft); border-radius: 48px; max-width: 1368px; margin: 0 auto; padding: 90px 24px; }
.how .inner { max-width: 1272px; margin: 0 auto; }
.how h2 { margin: 0 0 48px; max-width: 760px; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.how li { display: flex; flex-direction: column; gap: 12px; }
.how .num { font-family: var(--display); font-weight: 800; font-size: 96px; line-height: .9; color: #FFFFFF; -webkit-text-stroke: 2px var(--ink); }
.how h3 { font-family: var(--display); font-size: 24px; margin: 8px 0 0; font-weight: 600; }
.how p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-3); }

.faq { max-width: 960px; margin: 0 auto; padding: 100px 24px 80px; }
.faq h2 { text-align: center; max-width: none; margin: 0 0 36px; font-size: clamp(36px, 4.4vw, 56px); }
.faq .list { display: flex; flex-direction: column; gap: 14px; }
.faq details { border: 2px solid var(--ink); border-radius: 20px; padding: 20px 24px; background: #FFFFFF; box-shadow: 4px 4px 0 var(--ink); }
.faq summary { font-weight: 500; font-size: 19px; display: flex; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq summary span { transition: transform .2s; }
.faq p { margin: 14px 0 0; font-size: 16px; line-height: 1.65; color: var(--text-2); }

.foot { background: var(--ink); color: #FFFFFF; }
.foot .wrap { padding: 72px 24px 40px; }
.foot .cta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 48px; border-bottom: 1px solid #2C3A63; }
.foot .cta-row h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -0.045em; line-height: 1; margin: 0; }
.foot .cta-row a { background: var(--lime); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; padding: 16px 28px; border-radius: 16px; border: 2px solid #FFFFFF; box-shadow: 6px 6px 0 #FFFFFF; }
.foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; padding: 44px 0; font-size: 15px; }
.foot nav { display: flex; flex-direction: column; gap: 12px; }
.foot nav b { font-weight: 600; color: var(--lime); }
.foot nav a { color: #DDE3F5; text-decoration: none; }
.foot nav a:hover { color: #FFFFFF; }
.foot .copy { font-size: 13px; color: #A9B4D3; }

/* =====================================================================
   CHECKER
   ===================================================================== */
.checker { background: var(--soft); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { background: #FFFFFF; border-bottom: 2px solid var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 12px 22px; }
.crumb { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; min-width: 0; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb .cur { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.chip { font-size: 13px; background: var(--soft); border-radius: 999px; padding: 5px 12px; color: var(--text-2); }
.topbar .right { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; }

.work { flex: 1; display: flex; flex-wrap: wrap; gap: 22px; padding: 22px; max-width: 1480px; width: 100%; margin: 0 auto; }
.docpane { flex: 999 1 580px; min-width: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.tab { font: 500 16px var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 10px; border-radius: 14px; padding: 10px 18px; min-height: 48px; border: 2px solid var(--ink); background: #FFFFFF; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.tab .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); }
.tab b { font-family: var(--display); font-weight: 800; }
.tab[aria-selected="true"] { background: var(--ink); color: #FFFFFF; box-shadow: 4px 4px 0 var(--blue); transform: translate(-2px, -2px); }

.paper { background: #FFFFFF; border: 2px solid var(--ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); padding: clamp(26px, 4vw, 56px) clamp(22px, 5vw, 72px); }
.paper h1 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.03em; margin: 0 0 24px; }
.body { font-size: 18px; line-height: 1.95; color: var(--text-4); font-weight: 300; display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.body p { margin: 0; }
.s { border-radius: 4px; transition: background .2s, box-shadow .2s; }
.s.src-on { box-shadow: 0 0 0 3px var(--t); background: var(--t); }
.s.src-off { box-shadow: inset 0 -3px 0 var(--t); }
.s.excl { color: var(--muted); text-decoration: underline dotted var(--dash); text-underline-offset: 5px; }
.s.ai-on { background: var(--violet-t); box-shadow: 0 0 0 3px var(--violet-t); }
.s.ai-soft { box-shadow: inset 0 -3px 0 var(--violet-pale); }
.s.clickable { cursor: pointer; }
.badge { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 5px; vertical-align: 2px; border-radius: 8px; border: 2px solid var(--ink); font: 700 11px var(--font); color: var(--ink); transition: opacity .2s; }
.badge.dim { opacity: .3; }
.body .g { text-decoration: underline wavy #9DB8FF; text-underline-offset: 5px; }
.body .g.on { text-decoration: underline wavy var(--blue); text-decoration-thickness: 2px; background: var(--gram-bg); border-radius: 4px; cursor: pointer; }
.body .g.fixed { text-decoration: none; background: var(--fixed-t); box-shadow: 0 0 0 3px var(--fixed-t); border-radius: 4px; }
.body .g.spelling.on { text-decoration-color: var(--pink); }

.results { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.score { border: 2px solid var(--ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); padding: 24px; display: flex; align-items: center; gap: 20px; transform: perspective(900px) rotateX(6deg); transform-origin: bottom; color: var(--ink); transition: background .3s; }
.score h2 { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; margin: 0 0 6px; }
.score p { margin: 0; font-size: 15px; line-height: 1.5; }
.score .ring { flex: none; }
.score .ring text { font-family: var(--display); font-weight: 800; font-size: 26px; }
.score .ring .arc { transition: stroke-dasharray .6s ease; }
.score.loading .ring .arc { animation: ring-spin 1s linear infinite; transform-box: fill-box; transform-origin: center; stroke-dasharray: 66 198; }

.panel { background: #FFFFFF; border: 2px solid var(--ink); border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.panel h3 { font-family: var(--display); font-size: 19px; margin: 0; font-weight: 600; }
.panel .row { display: flex; justify-content: space-between; align-items: center; }
.panel .link { font: 500 14px var(--font); color: var(--blue); background: transparent; border: 0; cursor: pointer; min-height: 40px; }
.panel .note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.panel .empty { font-size: 15px; color: var(--muted); padding: 8px 0; line-height: 1.55; }
.panel .warn { background: var(--amber-t); border: 2px solid var(--ink); border-radius: 14px; padding: 10px 14px; font-size: 13px; line-height: 1.5; }

.src { font: inherit; color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; min-height: 60px; border-radius: 16px; border: 2px solid var(--line); background: #FFFFFF; transition: box-shadow .2s ease; text-align: left; width: 100%; }
.src[aria-pressed="true"] { border-color: var(--ink); background: var(--t); box-shadow: 4px 4px 0 var(--ink); }
.src .n { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; border: 2px solid var(--ink); font: 700 15px var(--font); }
.src .meta { flex: 1; min-width: 0; }
.src .meta .host { display: block; font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src .meta .kind { display: block; font-size: 13px; color: var(--muted); }
.src .pct { font-family: var(--display); font-weight: 800; font-size: 22px; }
.src-detail { background: var(--soft); border-radius: 16px; padding: 12px 14px; font-size: 14px; line-height: 1.55; }
.src-detail q { display: block; color: var(--text-2); margin-top: 6px; font-weight: 300; }
.src-detail a { word-break: break-all; }

.excl-box { display: flex; flex-direction: column; gap: 8px; border-top: 1px dashed var(--dash); padding-top: 12px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; min-height: 32px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }

.corpus summary { font-size: 14px; color: var(--blue); cursor: pointer; list-style: none; font-weight: 500; min-height: 32px; display: flex; align-items: center; }
.corpus summary::-webkit-details-marker { display: none; }
.corpus ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.corpus li { display: flex; gap: 10px; align-items: center; background: var(--soft); border-radius: 10px; padding: 6px 10px; }
.corpus li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.corpus li button { border: 0; background: none; color: var(--pink); cursor: pointer; font-size: 14px; min-width: 32px; min-height: 32px; }
.corpus .add { margin-top: 10px; display: inline-flex; }

.rhythm { display: flex; align-items: flex-end; gap: 6px; height: 96px; background: var(--violet-bg); border-radius: 16px; padding: 12px; }
.rhythm div { flex: 1; border-radius: 6px; background: var(--violet-pale); min-width: 2px; }
.rhythm div.hi { background: var(--violet-deep); border: 2px solid var(--ink); }
.ai-card { background: var(--violet-bg); border: 2px solid var(--ink); border-radius: 18px; padding: 14px; }
.ai-card .hd { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.ai-card .hd span:last-child { background: var(--violet); border-radius: 999px; padding: 2px 10px; }
.ai-card .tx { font-size: 15px; line-height: 1.55; font-weight: 300; }
.ai-card .why { font-size: 13px; color: var(--muted); margin-top: 8px; }
.signals { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13px; color: var(--text-2); border-top: 1px dashed var(--dash); padding-top: 12px; }
.signals span:nth-child(even) { font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); font-weight: 500; }

.fix { background: var(--gram-bg); border: 2px solid var(--ink); border-radius: 18px; padding: 14px; }
.fix .kind { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--blue-dark); margin-bottom: 6px; text-transform: uppercase; }
.fix .change { font-size: 18px; overflow-wrap: anywhere; }
.fix .change s { color: #6A7590; }
.fix .change b { font-weight: 600; }
.fix .why { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.fix .acts { display: flex; gap: 8px; margin-top: 10px; }
.fix .acts button { font: 500 14px var(--font); border: 2px solid var(--ink); border-radius: 10px; padding: 8px 14px; min-height: 40px; cursor: pointer; background: #FFFFFF; color: var(--ink); }
.fix .acts .accept { font-weight: 600; color: #FFFFFF; background: var(--blue); }
.clean { background: var(--lime); border: 2px solid var(--ink); border-radius: 18px; padding: 16px; font-weight: 500; }

.gate { flex: 1; display: grid; place-items: center; padding: 40px 22px; }
.gate .card { background: #FFFFFF; border: 2px solid var(--ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); padding: 32px; max-width: 520px; text-align: center; }
.gate h2 { font-family: var(--display); font-weight: 800; font-size: 28px; margin: 0 0 10px; }
.gate p { color: var(--text-2); margin: 0 0 20px; }

/* =====================================================================
   REPORT
   ===================================================================== */
.report { background: #FFFFFF; min-height: 100vh; }
.report .topbar { border-bottom: 2px solid var(--ink); background: #FFFFFF; padding: 0; display: block; }
.report .topbar .in { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.report .main { max-width: 1200px; margin: 0 auto; padding: 40px 24px 90px; }
.r-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; background: var(--lime); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; }
.r-title h1 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4.6vw, 60px); letter-spacing: -0.045em; line-height: 1; margin: 16px 0 10px; }
.r-title .meta { font-size: 15px; color: var(--muted); }
.scores { perspective: 1400px; margin-bottom: 44px; }
.scores .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; transform-style: preserve-3d; transform: rotateX(8deg); }
.sc { border: 2px solid var(--ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); padding: 26px; }
.sc.p { background: var(--pink-t); transform: rotate(-1.5deg); }
.sc.a { background: var(--violet-t); transform: translateZ(30px); }
.sc.gr { background: var(--sky-t); transform: rotate(1.5deg); }
.sc .hd { display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.sc .hd span:last-child { background: #FFFFFF; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 400; }
.sc .big { font-family: var(--display); font-weight: 800; font-size: 88px; line-height: 1; letter-spacing: -0.05em; margin: 18px 0 8px; }
.sc .bar { height: 14px; border: 2px solid var(--ink); border-radius: 999px; background: #FFFFFF; overflow: hidden; display: flex; }
.sc .bar div { height: 100%; }
.sc .sub { font-size: 14px; color: var(--text-2); }
.summary { background: var(--ink); color: #FFFFFF; border-radius: 28px; padding: 28px 32px; margin-bottom: 40px; display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.summary .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--lime); display: grid; place-items: center; flex: none; }
.summary .tx { flex: 1 1 420px; min-width: 0; }
.summary h2 { font-family: var(--display); font-size: 24px; margin: 0 0 8px; font-weight: 700; }
.summary p { margin: 0; font-size: 17px; line-height: 1.65; color: #DDE3F5; font-weight: 300; }
.r-sec { margin-bottom: 40px; }
.r-sec h2 { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -0.03em; margin: 0 0 18px; }
.tablewrap { border: 2px solid var(--ink); border-radius: 24px; overflow-x: auto; }
table.sent { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
table.sent thead tr { background: var(--soft); text-align: left; }
table.sent th { padding: 14px 18px; font-weight: 500; }
table.sent td { padding: 12px 18px; }
table.sent tbody tr { border-top: 1px solid var(--line); }
table.sent td.n { color: var(--muted); }
table.sent td.tx { line-height: 1.5; font-weight: 300; }
.srcpill { border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.srcpill.none { border: 0; color: #8A93AC; padding: 0; font-weight: 400; }
.aibar { display: flex; align-items: center; gap: 10px; }
.aibar .trk { flex: 1; height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.aibar .trk div { height: 100%; border-radius: 999px; background: #C9BBFF; }
.aibar .trk div.hi { background: var(--violet-deep); }
.aibar span { width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.two { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 40px; }
.two .left { flex: 999 1 520px; min-width: 0; }
.two .right { flex: 1 1 320px; min-width: 0; perspective: 1200px; }
.srcs { display: flex; flex-direction: column; gap: 14px; }
.srcrow { display: flex; gap: 14px; align-items: flex-start; border: 2px solid var(--ink); border-radius: 20px; padding: 16px; }
.srcrow .n { width: 40px; height: 40px; flex: none; border-radius: 12px; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; }
.srcrow .in { flex: 1; min-width: 0; }
.srcrow .hd { display: flex; justify-content: space-between; gap: 10px; }
.srcrow .hd b { font-weight: 600; overflow-wrap: anywhere; }
.srcrow .hd b a { color: var(--ink); text-decoration: none; }
.srcrow .hd b a:hover { color: var(--blue); }
.srcrow .hd .pct { font-family: var(--display); font-size: 20px; font-weight: 800; flex: none; }
.srcrow .sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.srcrow .cite-btn { margin-top: 8px; font: 500 13px var(--font); color: var(--blue); background: none; border: 0; padding: 6px 0; cursor: pointer; min-height: 32px; }
.cites { display: none; margin-top: 8px; background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.6; }
.cites.open { display: block; }
.cites .fmt { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.cites .fmt button { font: 500 12px var(--font); border: 2px solid var(--ink); border-radius: 8px; padding: 4px 10px; background: #FFFFFF; cursor: pointer; min-height: 28px; }
.cites .fmt button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
.cites .txt { font-weight: 300; color: var(--text-4); overflow-wrap: anywhere; }
.cites .cp { margin-top: 6px; }
.certcard { background: var(--lime); border: 2px solid var(--ink); border-radius: 28px; box-shadow: 10px 10px 0 var(--ink); padding: 26px; transform: rotateY(-8deg) rotateZ(1.5deg); position: relative; }
.certcard .eyebrow2 { font-size: 13px; font-weight: 600; letter-spacing: .1em; }
.certcard .t { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.03em; line-height: 1.05; margin: 10px 0 18px; }
.certcard .box { display: flex; gap: 16px; align-items: center; background: #FFFFFF; border: 2px solid var(--ink); border-radius: 18px; padding: 14px; font-size: 14px; line-height: 1.5; }
.certcard .box .qr { width: 78px; height: 78px; opacity: 1; }
.certcard .box b { overflow-wrap: anywhere; }
.certcard .mk { margin-top: 16px; width: 100%; font: 600 16px var(--font); color: #FFFFFF; background: var(--ink); border: 0; border-radius: 14px; padding: 14px; min-height: 50px; cursor: pointer; }
.method { background: var(--soft); border-radius: 24px; padding: 22px 26px; font-size: 14px; line-height: 1.65; color: var(--text-2); }
.method b { color: var(--ink); font-weight: 600; }

@media (max-width: 720px) {
  .sc .big { font-size: 64px; }
  .score { transform: none; }
  .scores .grid, .sc.p, .sc.a, .sc.gr, .certcard, .dash, .cert { transform: none; }
}
@media print {
  .topbar, .toast, .cite-btn, .certcard .mk { display: none !important; }
  .report .main { padding: 0; }
  .sc, .scores .grid, .certcard { transform: none !important; box-shadow: none !important; }
  .summary { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
