/* KDerp's type scale and colour palette are shared across product and service pages. */
:root {
  --container: 1184px;
  --navy: #10294b;
  --ink: #223e5d;
  --blue: #0467cf;
  --blue-hover: #054fa0;
  --accent: #2183e9;
  --muted: #465e78;
  --line: #d5e4f2;
  --chapter-space: clamp(3.5rem, 6.3vw, 6.25rem);
}
.site-header { background: #fff; box-shadow: 0 2px 14px #153b6508; }
.header-inner { min-height: 70px; }
.header-inner .brand { letter-spacing: -.055em; font-size: 1.55rem; }
.button { border-radius: 5px; }
.button:hover { box-shadow: 0 4px 14px #124eb223; }
.header-inner nav a { font-size: .94rem; }
.layout-section, .finance-assistant { padding-block: var(--chapter-space); }
.overview-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(110deg, #fcfdff 4%, #f2f7fd 48%, #e0eefb 100%);
  border-bottom: 1px solid var(--line);
}
.overview-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 40%;
  background-image: linear-gradient(#8ca8ce20 1px, transparent 1px), linear-gradient(90deg,#8ca8ce20 1px,transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg,transparent,#000 55%);
}
.overview-grid { display: grid; grid-template-columns: .96fr 1.04fr; gap: 1.2rem; align-items: center; padding-block: clamp(3.75rem, 7.8vw, 7.7rem); }
.overview-copy { position: relative; z-index: 1; }
.sector { display: flex; align-items: center; gap: .7rem; font-size: .87rem; color: #23539a; font-weight: 650; letter-spacing: .012em; }
.sector::before { content: ""; width: 26px; height: 2px; background: #3b79c6; flex: none; }
.overview-copy h1 { font-size: clamp(3.15rem, 5.35vw, 5.1rem); font-weight: 600; line-height: 1.035; letter-spacing: -.057em; margin: 1.45rem 0; }
.overview-copy h1 em { font-style: normal; color: #215eae; }
.overview-lead { font-size: clamp(1rem,1.2vw,1.13rem); line-height: 1.72; max-width: 32rem; }
.overview-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.7rem; margin-top: 1.9rem; }
.quiet-link, .return-link { display: inline-flex; align-items: center; gap: .65rem; color: var(--blue); font-weight: 600; text-decoration: none; }
.quiet-link::after { content: "→"; transition: transform .2s; }
.quiet-link:hover::after { transform: translateX(3px); }
.quiet-link:hover, .return-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.bridge-plate { margin: 0; position: relative; min-width: 0; }
.bridge-plate img { display: block; width: 113%; max-width: none; height: auto; margin-left: -6%; filter: drop-shadow(0 24px 15px #31669719); }
.bridge-plate figcaption { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; color: #425f7f; font-size: .78rem; }
.bridge-plate figcaption span { width: 2.4rem; border-top: 1px solid #8ea8c5; }
.chapter-heading { margin-bottom: 2.4rem; }
.chapter-heading h2, .finance-assistant h2, .scope-box h2 { font-size: clamp(1.85rem,3.1vw,2.8rem); line-height: 1.15; letter-spacing: -.045em; }
.chapter-heading p { margin-top: .85rem; max-width: 42rem; }
.ledger-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ledger-card { padding: clamp(1.6rem,3.2vw,3rem); background: linear-gradient(125deg,#f2f7fd,#fff 80%); }
.ledger-card + .ledger-card { border-left: 1px solid var(--line); }
.ledger-icon { color: #2467ae; margin-bottom: 1.1rem; width: 3rem; height: 3rem; display: grid; place-items: center; border: 1px solid #c7d9ef; border-radius: 10px; background: white; }
.ledger-card h3 { font-size: clamp(1.3rem,2vw,1.7rem); }
.ledger-card p { max-width: 32rem; margin-top: .75rem; }
.report-invite { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 1rem; border-radius: 8px; padding: 1.35rem clamp(1.5rem,3.2vw,3rem); background: #edf4fb; }
.report-invite h3 { font-size: 1.15rem; }
.report-invite p { margin: .35rem 0 0; font-size: .95rem; }
.report-invite a { flex-shrink: 0; }
.finance-assistant { background: linear-gradient(113deg,#122d49,#193d62); color: white; }
.finance-assistant .section-intro { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; }
.finance-assistant h2, .finance-assistant h3 { color: #fff; }
.finance-assistant .section-intro p { max-width: 38rem; color: #d4e4f2; }
.assistant-tasks { margin-top: 2.3rem; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.5rem,3.5vw,3.5rem); }
.assistant-tasks article { border-top: 1px solid #67839b; padding-top: 1.5rem; }
.assistant-tasks svg { display: block; color: #a4d0ff; margin: 0 0 1rem; }
.assistant-tasks h3 { font-size: 1.28rem; letter-spacing: -.015em; }
.assistant-tasks p { color: #d4e4f2; margin-top: .65rem; font-size: .96rem; line-height: 1.7; }
.terms-layout { display: grid; grid-template-columns: .83fr 1fr; gap: clamp(2rem,6vw,6rem); align-items: start; }
.subscription-box { padding: clamp(1.7rem,3vw,3rem); background: #f4f8fd; border: 1px solid #cddded; border-radius: 10px; }
.subscription-box .price-amount { margin: 1rem 0 0; color: var(--navy); font-size: clamp(2.05rem,3.9vw,3.4rem); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.subscription-box .price-amount span { font-size: 1rem; color: var(--muted); font-weight: 400; letter-spacing: normal; }
.subscription-features { display: grid; gap: .42rem; margin: 1.35rem 0 1.65rem; padding: 1.25rem 0 0; border-top: 1px solid #c7d7e7; list-style: none; }
.subscription-features li::before { content: "✓"; color: #2666a7; margin-right: .7rem; }
.terms-fine { font-size: .82rem; margin-top: 1rem; }
.scope-box h3 { margin-top: 1.6rem; font-size: 1.18rem; }
.scope-box p { margin-top: .55rem; font-size: .97rem; }
.language-disclosure { margin-top: 1.5rem; padding-block: 1.1rem; border-block: 1px solid var(--line); }
.language-disclosure summary { color: #164d91; font-weight: 600; cursor: pointer; }
.language-disclosure summary:focus-visible, details summary:focus-visible { outline: 3px solid #b77814; outline-offset: 4px; }
.language-disclosure .language-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; list-style: none; padding: 0; }
.language-disclosure .language-list li { font-size: .83rem; padding: .24rem .55rem; background: #f0f5fa; }
.report-workspace { min-height: 77vh; background: linear-gradient(125deg,#f8fbff,#e3f1ff); }
.report-workspace .report-intro h1 { margin: 1.3rem 0 0; font-size: clamp(2.1rem,4.2vw,3.65rem); line-height: 1.1; }
.report-workspace .report-card { border-radius: 10px; box-shadow: 0 12px 45px #2648650d; }
.return-link { font-size: .9rem; }
.return-link::before { content: "←"; }
.footer-inner p { margin-right: auto; }
.footer-inner>a:last-child { color: var(--muted); font-size: .9rem; }
[lang="zh-Hans"] .overview-copy h1 { font-size: clamp(2.65rem,4.8vw,4.2rem); line-height: 1.23; letter-spacing: -.045em; }
@media (max-width: 800px) {
  .overview-grid { gap: .4rem; padding-block: 3.5rem; }
  .terms-layout { gap: 2rem; }
  .finance-assistant .section-intro { gap: 1rem; }
  .header-inner { min-height: 60px; }
}
@media (max-width: 640px) {
  .header-inner { min-height: 0; }
  .header-inner nav a { font-size: .87rem; }
  .overview-grid, .terms-layout, .ledger-pair, .assistant-tasks, .finance-assistant .section-intro { grid-template-columns: 1fr; }
  .overview-grid { padding-block: 2.5rem 1.25rem; gap: .6rem; }
  .overview-copy h1 { margin: .95rem 0; }
  .overview-actions { margin-top: 1.2rem; }
  .bridge-plate { width: min(100%,410px); justify-self: center; }
  .bridge-plate img { width: 100%; margin: 0; }
  .bridge-plate figcaption { margin-top: -.5rem; font-size: .72rem; }
  .ledger-card + .ledger-card { border-left: 0; border-top: 1px solid var(--line); }
  .chapter-heading { margin-bottom: 1.4rem; }
  .report-invite { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .assistant-tasks { gap: 1.2rem; margin-top: 1.55rem; }
  .assistant-tasks article { padding-top: 1.25rem; }
  .assistant-tasks svg { margin-bottom: .65rem; }
  .terms-layout { gap: 2.2rem; }
}
/* Use the same brand treatment on report and support pages. */
body{background:#fff}
.site-header{background:#fffffff2;backdrop-filter:blur(12px)}
.brand img{flex:none}.header-inner .button{border-radius:999px}
.button:hover{background:var(--blue-hover);border-color:var(--blue-hover)}
.language-switch{border-radius:999px}.language-switch a{border-radius:999px}
.language-switch a[aria-current="page"],.report-selectors label:has(input:checked){background:#e9f3ff;color:#084b94}
.report-selectors label:has(input:checked){border-color:#86b8eb}
.report-table tr.total td{color:var(--blue)}
.footer-inner{border-color:var(--line)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,details summary:focus-visible{outline-color:var(--blue)}
