:root {
  color-scheme: light;
  --paper: #fafaf7;
  --ink: #172b3a;
  --muted: #4f606c;
  --accent: #21566b;
  --tint: #e8f1f4;
  --line: #d6dfe2;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #cfdee4; color: var(--ink); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { line-height: 1.25; font-weight: 600; }
img { max-inline-size: 100%; block-size: auto; }
.shell { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; inset: 8px auto auto 16px; padding: 8px 16px; background: var(--accent); color: white; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.product-header { position: sticky; z-index: 5; top: 0; }
.header-inner, .brand, .site-header nav, .site-footer nav { display: flex; align-items: center; }
.header-inner { min-height: 64px; padding-block: 8px; justify-content: space-between; gap: 16px; }
.brand { gap: 10px; min-height: 44px; font-size: clamp(1.125rem, 1rem + 1vw, 2.2rem); font-weight: 650; text-decoration: none; }
.brand img { display: block; border-radius: 8px; }
.site-header nav, .site-footer nav { gap: clamp(16px, 2.5vw, 32px); }
.site-header nav a, .site-footer nav a, .recent-heading a {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: none;
}
.site-header nav a, .site-footer nav a { font-size: clamp(max(.875rem, 14px), .8rem + .6vw, 1.5rem); }
.site-header .cases-entry { font-weight: 650; }
.site-header a:hover, .site-footer a:hover, .site-header nav a[aria-current="page"], .recent-heading a:hover {
  text-decoration: underline; text-underline-offset: 4px;
}

.hero {
  display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
  align-items: center; gap: clamp(20px, 3vw, 54px); padding: clamp(28px, 3vw, 48px) clamp(12px, 2vw, 32px);
}
.hero h1 { font-size: clamp(2.75rem, 1.9rem + 4.2vw, 6.25rem); line-height: 1.2; font-weight: 750; letter-spacing: -.04em; }
.hero h1 span { display: block; }
.hero-description { max-width: 17em; margin-top: 14px; color: var(--muted); font-size: clamp(1rem, .85rem + .85vw, 1.8rem); }
.analysis-example { border: 1px solid #c4d4db; border-radius: 16px; padding: clamp(16px, 1.6vw, 24px); font-size: clamp(max(1rem, 15px), .8rem + .65vw, 1.5rem); }
.example-heading, .recent-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.example-heading { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.example-heading h2 { font-size: 1.3em; }
.example-heading span { color: var(--muted); font-size: .85em; }
.chat-exchange { display: flex; flex-direction: column; gap: 12px; margin-block: 18px; }
.chat-exchange p { align-self: flex-start; max-width: 90%; padding: 6px 14px; border-radius: 14px 14px 14px 3px; background: #eeefee; }
.chat-exchange p + p { align-self: flex-end; background: #e3edf0; border-radius: 14px 14px 3px 14px; }
.reply-sample { padding: 12px 18px; border-radius: 10px; background: var(--tint); }
.reply-sample h3 { font-size: .95em; color: var(--accent); }
.suggested-reply { font-size: 1.2em; font-weight: 650; margin-block: 2px; }
.reply-sample p:last-child { color: var(--muted); }

.recent-cases { border-top: 1px solid var(--line); padding-block: 16px 24px; }
.recent-heading h2 { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.6rem); }
.recent-heading a { gap: 6px; font-weight: 600; font-size: clamp(max(1rem, 14px), .8rem + .65vw, 1.5rem); }
.recent-cases ul, .profile-links ul { margin: 0; padding: 0; list-style: none; }
.recent-cases li + li { border-top: 1px solid var(--line); }
.recent-cases li a {
  display: grid; grid-template-columns: 5rem minmax(0, 1fr) 1rem; align-items: center;
  gap: 16px; min-height: 52px; padding: 8px 4px; text-decoration: none;
}
.recent-cases li a:hover .recent-title { text-decoration: underline; text-underline-offset: 4px; color: var(--accent); }
.recent-cases time { color: var(--muted); font-size: max(1rem, 14px); font-variant-numeric: tabular-nums; }
.recent-title, .case-title { font-size: clamp(max(1rem, 16px), .85rem + .8vw, 1.75rem); font-weight: 600; overflow-wrap: anywhere; }
.recent-title { grid-column: 2; }
.recent-arrow { justify-self: end; font-size: 1.25rem; color: var(--accent); }

.site-footer { border-top: 1px solid var(--line); padding-block: 16px; }
.footer-top, .profile-links, .profile-links ul, .filing { display: flex; flex-wrap: wrap; align-items: center; }
.footer-top { justify-content: space-between; gap: 4px 24px; }
.site-footer nav { margin-inline-start: auto; }
.profile-links { gap: 4px 16px; }
.profile-links h2 { font-size: clamp(max(1rem, 15px), .8rem + .65vw, 1.5rem); }
.profile-links ul { gap: 6px; }
.profile-links .platform-link { display: grid; place-items: center; width: 44px; min-height: 44px; border-radius: 8px; }
.profile-links .platform-link:hover { background: var(--tint); }
.profile-links img { display: block; border-radius: 7px; }
.footer-bottom { display: grid; justify-items: center; gap: 4px; text-align: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: max(.8125rem, 12px); }
.filing { justify-content: center; gap: 0 20px; }
.filing img { display: block; width: 20px; }
.filing a { display: inline-flex; align-items: center; min-height: 32px; gap: 8px; text-decoration: none; }

@media (min-width: 768px) {
  .hero > div { container-type: inline-size; }
  .hero h1 { font-size: clamp(2.2rem, .15rem + 16cqi, 6.25rem); }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 72px; }
  .shell { width: calc(100% - 40px); }
  .header-inner { min-height: 56px; padding-block: 6px; }
  .brand { font-size: max(1rem, 16px); gap: 8px; }
  .site-header .brand img { width: 32px; height: 32px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 0; }
  .hero-description { max-width: none; margin-top: 8px; font-size: max(1rem, 15px); }
  .example-heading { padding-bottom: 8px; }
  .chat-exchange { gap: 8px; margin-block: 12px; }
  .reply-sample { padding: 10px 12px; }
  .recent-cases { padding-block: 8px 16px; }
  .recent-cases li a { grid-template-columns: 1fr; gap: 0; }
  .recent-cases time { font-size: max(.8125rem, 12px); }
  .recent-title { grid-column: 1; }
  .recent-arrow { display: none; }
  .footer-top, .profile-links, .filing { flex-direction: column; align-items: center; }
  .profile-links ul { justify-content: center; }
  .site-footer nav { margin-inline: auto; }
}
