/* Shared reading layouts. Loaded after Tailwind utilities and landing.css so
   existing article content can keep its markup while sharing the new brand. */
.document-site {
  --document-accent: #f4d2eb;
  --document-secondary: #ffe493;
  background: #fff9ee;
}
.document-theme-1 {
  --document-accent: #d4e8c1;
  --document-secondary: #ffd1ad;
}
.document-theme-2 {
  --document-accent: #cce4fc;
  --document-secondary: #e7cef7;
}
.document-site .site-header {
  border-bottom: 1px solid #d6cab8;
}
.document-site .site-header a,
.document-site .site-footer a,
.document-site .download-section a {
  text-decoration: none;
}
.document-site .brand {
  color: #30294a;
}
.document-site .download-section {
  margin-top: 0;
}
.document-page {
  padding: 44px 0 85px;
  overflow-wrap: anywhere;
}
.document-shell {
  width: min(900px, calc(100% - 64px));
  margin-inline: auto;
}
.document-hero {
  position: relative;
  isolation: isolate;
  border: 2px solid #30294a;
  border-radius: 30px;
  background: var(--document-accent);
  box-shadow: 7px 8px 0 #30294a;
  padding: 44px 48px 34px;
  margin: 0 -38px 56px;
}
.document-hero-copy {
  position: relative;
  z-index: 1;
}
.document-kicker {
  color: #58416f;
  padding-right: 130px;
  margin-bottom: 28px;
}
.document-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #51416d;
  text-underline-offset: 4px;
  margin-bottom: 20px;
  min-height: 30px;
}
.document-back svg {
  width: 16px;
  height: 16px;
}
.document-hero h1 {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 550;
  font-size: clamp(35px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: #373077;
  margin: 0 0 24px;
  text-wrap: balance;
}
.document-hero h1 + p {
  font-size: 12px;
  font-weight: 400;
  color: #5f526f;
  margin-bottom: 0;
}
.document-hero .uppercase {
  font-size: 11px;
  color: #5f416f;
  letter-spacing: 0.08em;
}
.document-confetti {
  display: flex;
  gap: 7px;
  position: absolute;
  right: 25px;
  top: -15px;
  pointer-events: none;
}
.document-confetti span {
  border: 1.5px solid #30294a;
  border-radius: 99px;
  box-shadow: 2px 3px 0 #30294a;
  font-size: 12px;
  padding: 8px 14px;
  background: #ffe278;
  transform: rotate(-8deg);
}
.document-confetti span:nth-child(2) {
  background: #a9d7ff;
  transform: rotate(7deg) translateY(-5px);
}
.document-confetti span:nth-child(3) {
  background: #b7e49c;
  transform: rotate(-5deg);
}
.document-confetti i {
  color: #6543ad;
  font-style: normal;
  font-size: 40px;
  position: absolute;
  top: 50px;
  right: 0;
}
.document-shell > .space-y-6 {
  font-size: 19px;
  line-height: 1.8;
  font-weight: 400;
}
.document-page p,
.document-page li,
.document-page td {
  color: #565365;
}
.document-page strong {
  color: #373047;
}
.document-page p a,
.document-page li a,
.document-page td a {
  color: #57409a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.document-page p a:hover,
.document-page li a:hover {
  color: #30205e;
}
.document-contents {
  margin-top: 36px;
  border: 1px solid #30294a;
  border-radius: 18px;
  background: #f1e8fc;
  box-shadow: 3px 4px 0 #30294a;
  overflow: hidden;
}
.document-contents summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 500;
  color: #433268;
}
.document-contents summary::-webkit-details-marker {
  display: none;
}
.document-contents summary span {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
}
.document-contents summary::after {
  content: "+";
  font-size: 24px;
  line-height: 1;
}
.document-contents[open] summary::after {
  content: "−";
}
.document-contents nav {
  border-top: 1px solid #cfc0e5;
  padding: 10px 24px 18px;
}
.document-contents ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.document-contents li a {
  display: flex;
  align-items: start;
  gap: 14px;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 0;
}
.document-contents li a span {
  color: #78628e;
  font-size: 12px;
  padding-top: 3px;
}
.document-section {
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid #dacebc;
  scroll-margin-top: 115px;
}
.document-section h2 {
  font-family: Outfit, system-ui, sans-serif;
  font-size: clamp(27px, 3.2vw, 35px);
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #373077;
  margin-bottom: 24px;
  border-left: 7px solid #c5aff0;
  padding-left: 18px;
}
.document-section:nth-of-type(3n + 2) h2 {
  border-color: #f0c55e;
}
.document-section:nth-of-type(3n + 3) h2 {
  border-color: #8fbd70;
}
.document-section h3 {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 24px;
  line-height: 1.25;
  color: #443563;
}
.document-section .text-lg,
.document-section .text-base {
  font-size: 17px;
  line-height: 1.8;
}
.document-section ul .icon {
  color: #7053b7;
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin-top: 5px;
}
.document-section blockquote {
  background: #fff0bf;
  border-color: #b9983e;
  border-radius: 0 16px 16px 0;
}
.document-section a[href*="play.google.com"],
.document-section a[href*="apps.apple.com"] {
  background: #30294a;
  color: #fff;
  border-radius: 14px;
  font-family: Outfit, system-ui, sans-serif;
}
.comparison-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #30294a;
  border-radius: 18px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.comparison-scroll:focus-visible {
  outline: 3px solid #57409a;
  outline-offset: 5px;
}
.comparison-scroll table {
  min-width: 680px;
  width: 100%;
  border-collapse: collapse;
  line-height: 1.6;
}
.comparison-scroll thead tr {
  background: #42316b;
}
.comparison-scroll thead th:last-child {
  background: #6750c5;
}
.comparison-scroll tbody tr:nth-child(odd) {
  background: #fffaf0;
}
.comparison-scroll tbody tr:nth-child(even) {
  background: #f4edf9;
}
.comparison-scroll td:last-child {
  background: #ddcef330;
}
@media (max-width: 760px) {
  .document-page {
    padding-block: 40px 60px;
  }
  .document-shell {
    width: calc(100% - 40px);
  }
  .document-hero {
    margin: 0 0 36px;
    padding: 36px 24px 26px;
    border-radius: 22px;
    box-shadow: 4px 5px 0 #30294a;
  }
  .document-hero h1 {
    font-size: clamp(31px, 8.5vw, 43px);
    text-wrap: pretty;
  }
  .document-kicker {
    padding-right: 0;
    margin-bottom: 15px;
    font-size: 10px;
  }
  .document-confetti {
    right: 12px;
    top: -17px;
    gap: 6px;
  }
  .document-confetti span {
    font-size: 10px;
    padding: 6px 10px;
  }
  .document-confetti i {
    display: none;
  }
  .document-back {
    font-size: 12px;
    margin-bottom: 15px;
  }
  .document-shell > .space-y-6 {
    font-size: 17px;
    line-height: 1.75;
  }
  .document-section {
    margin-top: 38px;
    padding-top: 25px;
    scroll-margin-top: 145px;
  }
  .document-section h2 {
    font-size: 27px;
    border-left-width: 5px;
    padding-left: 13px;
  }
  .document-section .text-lg,
  .document-section .text-base {
    font-size: 16px;
    line-height: 1.8;
  }
  .document-contents summary {
    padding: 18px;
    font-size: 17px;
  }
  .document-contents nav {
    padding-inline: 18px;
  }
  .document-contents li a {
    font-size: 14px;
  }
}

/* Keep comparison labels intact; the region owns any horizontal overflow. */
.comparison-scroll th:first-child,
.comparison-scroll td:first-child {
  min-width: 145px;
  width: 145px;
  overflow-wrap: normal;
  word-break: normal;
}
.comparison-scroll th:not(:first-child),
.comparison-scroll td:not(:first-child) {
  min-width: 180px;
  overflow-wrap: normal;
  word-break: normal;
}
