/* MyLegalDocs AI — U.S.-specific operating system v13. */

:root {
  --us13-ink: #0c1830;
  --us13-muted: #596b86;
  --us13-line: #d8e2f0;
  --us13-panel: rgba(255, 255, 255, 0.92);
  --us13-blue: #2857df;
  --us13-mint: #11a586;
}

html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; }
main h1 {
  max-width: 20ch;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
main h2 {
  font-size: clamp(1.35rem, 2.25vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
main h3 { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.25; }
main p,
main li,
main dd { font-size: clamp(.96rem, 1vw, 1.04rem); line-height: 1.62; }

.us13-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 76px;
  color: var(--us13-ink);
}
.us13-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--us13-muted);
  font-size: .83rem;
  font-weight: 700;
}
.us13-breadcrumbs a { color: inherit; text-decoration: none; }
.us13-breadcrumbs a:hover { color: var(--us13-blue); }
.us13-breadcrumbs span { opacity: .5; }

.us13-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--us13-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 16%, rgba(49, 216, 184, .15), transparent 27%),
    radial-gradient(circle at 12% 90%, rgba(83, 91, 255, .12), transparent 31%),
    linear-gradient(135deg, #f8faff, #eef5ff 58%, #f0fbf8);
  box-shadow: 0 24px 75px rgba(41, 63, 103, .08);
}
.us13-hero > span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--us13-blue);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.us13-hero h1 { margin: 0 0 18px; }
.us13-hero p { max-width: 790px; margin: 0; color: var(--us13-muted); }

.us13-flow,
.us13-tree,
.us13-featured-states {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.us13-flow article,
.us13-tree article,
.us13-featured-states article,
.us13-panel,
.us13-legal-detail {
  border: 1px solid var(--us13-line);
  border-radius: 22px;
  background: var(--us13-panel);
  box-shadow: 0 14px 42px rgba(37, 57, 94, .055);
}
.us13-flow article,
.us13-tree article,
.us13-featured-states article { padding: 24px; }
.us13-flow article > b {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #edf2ff;
  color: var(--us13-blue);
  font-size: .78rem;
}
.us13-flow h2,
.us13-tree h2,
.us13-featured-states h2 { margin: 0 0 10px; font-size: 1.16rem; }
.us13-flow p,
.us13-tree p,
.us13-featured-states p { margin: 0; color: var(--us13-muted); }
.us13-tree { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.us13-tree ol { margin: 15px 0 0; padding-left: 22px; color: var(--us13-muted); }
.us13-tree li + li { margin-top: 8px; }

.us13-panel { margin-top: 24px; padding: clamp(24px, 4vw, 40px); }
.us13-panel h2 { margin: 0 0 14px; }
.us13-panel > p { max-width: 920px; color: var(--us13-muted); }
.us13-levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.us13-levels article {
  padding: 20px;
  border: 1px solid #e0e7f3;
  border-radius: 16px;
  background: #f9fbff;
}
.us13-levels strong { display: block; margin-bottom: 8px; }
.us13-levels p { margin: 0; color: var(--us13-muted); font-size: .92rem; }

.us13-featured-states article a { color: var(--us13-ink); text-decoration: none; }
.us13-featured-states article a:hover { color: var(--us13-blue); }
.us13-state-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 20px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.us13-state-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 2px;
  border-bottom: 1px solid #e5ebf4;
}
.us13-state-list a { color: var(--us13-blue); font-size: .84rem; font-weight: 800; text-decoration: none; }
.us13-legal-detail { margin-top: 24px; padding: clamp(24px, 4vw, 42px); }
.us13-legal-detail section + section { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--us13-line); }
.us13-legal-detail h2 { margin: 0 0 10px; }
.us13-legal-detail p { margin: 0; max-width: 900px; color: var(--us13-muted); }

.us13-routing-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.us13-routing-card > div {
  padding: 20px;
  border: 1px solid var(--us13-line);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f7faff);
}
.us13-routing-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--us13-blue);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.us13-routing-card strong { display: block; font-size: 1.08rem; }
.us13-routing-card p { margin: 8px 0 0; color: var(--us13-muted); font-size: .9rem; line-height: 1.48; }
.us13-routing-card a { display: inline-flex; margin-top: 10px; color: var(--us13-blue); font-size: .84rem; font-weight: 850; }
.us13-routing-card .us13-blocked {
  grid-column: 1 / -1;
  border-color: #efc697;
  background: #fff8ee;
  color: #6c3b10;
}
.us13-checkout-disabled {
  padding: 18px;
  border: 1px solid #efc697;
  border-radius: 15px;
  background: #fff8ee;
  color: #6c3b10;
}
.us13-checkout-disabled p { margin: 8px 0 0; font-size: .9rem; }

.us13-service-links {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--us13-line);
  border-radius: 20px;
  background: linear-gradient(140deg, #f7f9ff, #f2fbf8);
}
.us13-service-links h2 { margin: 0 0 14px; }
.us13-service-links div { display: flex; flex-wrap: wrap; gap: 10px; }
.us13-service-links a {
  display: inline-flex;
  padding: 10px 13px;
  border: 1px solid #d3dded;
  border-radius: 999px;
  background: #fff;
  color: var(--us13-ink);
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
}
.us13-service-links a:hover { border-color: #aebee2; color: var(--us13-blue); }

.us13-footer .us12-footer-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.us13-footer .us12-footer-groups section { min-width: 0; }
.us13-footer .us12-footer-groups a { white-space: normal; }

@media (max-width: 900px) {
  .us13-flow,
  .us13-featured-states { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .us13-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .us13-state-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  main h1 { font-size: clamp(1.9rem, 10vw, 2.65rem); }
  main h2 { font-size: 1.35rem; }
  .us13-page { width: min(100% - 24px, 1180px); padding-top: 20px; }
  .us13-hero { padding: 25px 20px; border-radius: 22px; }
  .us13-flow,
  .us13-tree,
  .us13-featured-states,
  .us13-levels,
  .us13-routing-card,
  .us13-state-list { grid-template-columns: 1fr; }
  .us13-flow article,
  .us13-tree article,
  .us13-featured-states article,
  .us13-panel,
  .us13-legal-detail { border-radius: 18px; }
  .us13-routing-card .us13-blocked { grid-column: auto; }
  .us13-state-list li { padding: 12px 0; }
  .us13-footer .us12-footer-groups { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
