:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --soft: #f5f5f7;
  --white: #ffffff;
  --text-orange: #c7352b;
  --green: #146c43;
  --blue: #0066cc;
  --blue-hover: #004f9e;
  --error: #b42318;
  --error-soft: #fff5f4;
  --content-max: 1200px;
  --nav-max: 1024px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--white);
  scroll-behavior: smooth;
  scroll-padding-top: 44px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
select,
input[type="date"],
input[type="file"] {
  cursor: pointer;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4 {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 16px;
  min-height: 40px;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 200ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.content-shell {
  width: min(calc(100% - 128px), var(--content-max));
  margin-inline: auto;
}

.global-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 44px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.global-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(29, 29, 31, 0.14);
  content: "";
}

.site-header {
  display: flex;
  width: min(calc(100% - 48px), var(--nav-max));
  height: 44px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.brand {
  min-height: 44px;
}

.brand-mark {
  display: block;
  width: 23px;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: auto;
}

.header-divider {
  width: 1px;
  height: 14px;
  margin-inline: 2px;
  background: var(--line);
}

.product-label {
  color: var(--muted);
  font-weight: 500;
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  transition: color 180ms ease;
}

.back-link:hover,
.site-footer a:hover {
  color: var(--blue-hover);
}

.report-hero {
  background: var(--white);
}

.hero-inner {
  padding-block: clamp(84px, 9vw, 132px) clamp(68px, 7vw, 104px);
}

.eyebrow,
.section-kicker {
  margin-bottom: 22px;
  color: var(--text-orange);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.report-hero h1 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(52px, 6.4vw, 80px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: -0.016em;
  line-height: 1.4;
}

.privacy-strip {
  border-block: 1px solid var(--line-soft);
  background: var(--soft);
}

.privacy-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 14px;
}

.privacy-symbol {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e7f4ec;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.privacy-inner p {
  margin: 0;
  color: #3a3a3c;
  font-size: 14px;
  line-height: 1.45;
}

.privacy-inner strong {
  color: var(--ink);
}

.installation {
  border-bottom: 1px solid var(--line-soft);
  background: var(--white);
}

.installation-inner {
  display: grid;
  min-height: 144px;
  padding-block: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
}

.installation-kicker {
  margin-bottom: 8px;
  color: var(--text-orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.installation h2 {
  margin-bottom: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.16;
}

.installation-status {
  max-width: 720px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.install-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 180ms ease, transform 180ms ease;
}

.install-button:hover {
  transform: translateY(-1px);
  background: var(--blue-hover);
}

.workspace {
  min-height: 640px;
  padding-block: 64px 120px;
  background: var(--white);
}

.tool-switcher {
  display: inline-flex;
  margin-bottom: 72px;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.tool-tab {
  min-height: 38px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease;
}

.tool-tab:hover {
  background: var(--soft);
}

.tool-tab.is-active {
  background: var(--ink);
  color: var(--white);
}

.tool-heading {
  display: grid;
  margin-bottom: 48px;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
}

.section-number {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.tool-heading h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.tool-heading div > p {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.date-grid,
.comparison-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.date-grid {
  max-width: 760px;
}

.field-label {
  display: grid;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.field-label input,
.field-label select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 13px;
  box-shadow: none;
}

.field-label input:hover,
.field-label select:hover {
  border-color: #a1a1a6;
}

.platform-select {
  width: min(100%, 360px);
}

.subheading-row {
  display: flex;
  margin-top: 72px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  align-items: end;
  justify-content: space-between;
}

.subheading-row h3,
.results-heading h3 {
  margin-bottom: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.subheading-row p,
.format-guidance {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upload-item {
  min-width: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.upload-item:nth-child(odd) {
  padding-right: 28px;
}

.upload-item:nth-child(even) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.upload-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  padding-right: 0;
}

.file-label {
  display: grid;
  min-height: 106px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  align-content: space-between;
  gap: 16px;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.file-label:hover {
  border-color: #a1a1a6;
  background: #f0f0f2;
}

.file-label:has(input:focus-visible) {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.file-label > span:first-child {
  font-size: 15px;
  font-weight: 600;
}

.file-control {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.file-button {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}

.file-name {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-label input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.file-message {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.file-message.is-error,
.status-summary.is-error {
  color: var(--error);
}

.status-summary {
  min-height: 22px;
  margin-top: 20px;
  color: var(--green);
  font-size: 13px;
  line-height: 1.5;
}

.format-guidance {
  min-height: 20px;
  margin-top: 14px;
}

.comparison-upload-grid {
  margin-top: 26px;
}

.comparison-upload-grid .upload-item {
  padding: 0;
  border: 0;
}

.results {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.results-heading {
  display: flex;
  margin-bottom: 32px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.results-heading .section-kicker {
  margin-bottom: 12px;
  font-size: 13px;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.primary-button {
  background: var(--blue);
  color: var(--white);
}

.primary-button:hover {
  transform: translateY(-1px);
  background: var(--blue-hover);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue);
}

.secondary-button:hover {
  border-color: var(--blue);
  background: var(--soft);
}

.platform-result {
  border-top: 1px solid var(--line);
}

.platform-result summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.platform-result summary::-webkit-details-marker {
  display: none;
}

.platform-result summary::after {
  color: var(--muted);
  content: "+";
  font-size: 20px;
  font-weight: 400;
}

.platform-result[open] summary::after {
  content: "−";
}

.platform-result .table-scroll {
  margin-bottom: 28px;
}

.combined-table {
  margin-top: 48px;
}

.combined-table h4 {
  margin-bottom: 16px;
  font-size: 17px;
  font-weight: 600;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.4;
}

#comparison-table table {
  min-width: 680px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--soft);
  color: #3a3a3c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td:nth-child(2),
td:nth-child(6),
td:nth-child(7),
td:nth-child(8),
td:nth-child(9),
td:nth-child(10) {
  font-variant-numeric: tabular-nums;
}

td[data-column="Post text"] {
  min-width: 260px;
  max-width: 400px;
  white-space: normal;
}

td a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.change-up {
  color: var(--green);
}

.change-down {
  color: var(--error);
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--soft);
}

.footer-inner {
  display: grid;
  min-height: 112px;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.site-footer a {
  justify-self: end;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .content-shell {
    width: min(calc(100% - 80px), var(--content-max));
  }

  .workspace {
    padding-bottom: 96px;
  }

  .tool-switcher {
    margin-bottom: 64px;
  }
}

@media (max-width: 700px) {
  .content-shell,
  .site-header {
    width: calc(100% - 44px);
  }

  .product-label,
  .header-divider {
    display: none;
  }

  .back-link {
    font-size: 11px;
  }

  .hero-inner {
    padding-block: 72px 64px;
  }

  .eyebrow,
  .section-kicker {
    font-size: 13px;
  }

  .report-hero h1 {
    font-size: clamp(42px, 12vw, 58px);
    line-height: 1.01;
  }

  .hero-copy {
    margin-top: 22px;
    font-size: 18px;
  }

  .privacy-inner {
    min-height: 88px;
    padding-block: 16px;
    align-items: flex-start;
  }

  .privacy-symbol {
    margin-top: 1px;
  }

  .installation-inner {
    min-height: 0;
    padding-block: 28px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .install-button {
    width: max-content;
  }

  .workspace {
    padding-block: 48px 80px;
  }

  .tool-switcher {
    display: flex;
    width: 100%;
    margin-bottom: 56px;
  }

  .tool-tab {
    flex: 1;
    padding-inline: 10px;
  }

  .tool-heading {
    margin-bottom: 40px;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .tool-heading h2 {
    font-size: 36px;
  }

  .tool-heading div > p {
    margin-top: 14px;
    font-size: 16px;
  }

  .date-grid,
  .upload-grid,
  .comparison-upload-grid {
    grid-template-columns: 1fr;
  }

  .subheading-row {
    margin-top: 56px;
  }

  .upload-item,
  .upload-item:nth-child(odd),
  .upload-item:nth-child(even),
  .upload-item:last-child:nth-child(odd) {
    grid-column: auto;
    padding: 18px 0;
    border-right: 0;
    border-left: 0;
  }

  .comparison-upload-grid {
    gap: 18px;
  }

  .results {
    margin-top: 56px;
    padding-top: 44px;
  }

  .results-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-actions {
    width: 100%;
  }

  .download-actions button,
  .results-heading > button {
    flex: 1;
  }

  .footer-inner {
    padding-block: 36px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-inner p {
    text-align: left;
  }

  .site-footer a {
    justify-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
