/* Homepage only: shared theme tokens remain authoritative in light and dark. */
.quiet-home {
  width: min(1164px, calc(100% - 40px));
  padding: 0 32px 46px;
  background: var(--panel, #fff);
  color: var(--ink, #2a3543);
  font-size: 14px;
  line-height: 1.8;
}
.quiet-home :is(h1, h2, h3, p, figure) {
  margin: 0;
}
.quiet-home :is(h1, h2, h3) {
  line-height: 1.4;
  font-weight: 550;
  letter-spacing: -0.025em;
}
.quiet-home :is(p, a, h1, h2, h3, figcaption) {
  overflow-wrap: anywhere;
}
.quiet-home a {
  color: var(--accent, #315f88);
  text-underline-offset: 4px;
}
.quiet-home :is(a, button, input, summary):focus-visible {
  outline: 2px solid var(--accent, #315f88);
  outline-offset: 4px;
}
.quiet-home img {
  display: block;
  max-width: 100%;
  height: auto;
}
.quiet-home :is(button, input) {
  font: inherit;
  color: inherit;
}
.quiet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 38px 0 30px;
  min-height: 242px;
}
.quiet-hero-copy {
  max-width: 550px;
}
.quiet-home .quiet-eyebrow {
  color: var(--muted, #526575);
  font-size: 11px;
  letter-spacing: 0.045em;
  margin-bottom: 7px;
}
.quiet-hero h1 {
  font-size: clamp(29px, 3.2vw, 42px);
  margin-bottom: 13px;
}
.quiet-hero-copy > p:not(.quiet-eyebrow) {
  color: var(--muted, #526575);
  font-size: 13px;
  max-width: 49ch;
}
.quiet-home .quiet-text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 12px;
  text-decoration: none;
}
.quiet-home a:hover {
  text-decoration: underline;
}
.quiet-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 0 0 17px;
}
.quiet-section-heading h2,
.quiet-bottom h2 {
  font-size: 18px;
}
.quiet-section-heading > span {
  color: var(--muted, #526575);
  font-size: 11px;
}
.quiet-primary-grid,
.quiet-app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.quiet-work {
  min-width: 0;
  padding: 24px 23px;
  border: 1px solid var(--line, #dbe3eb);
  border-radius: 3px;
}
.quiet-work h2 {
  font-size: clamp(24px, 2.4vw, 29px);
}
.quiet-description {
  color: var(--muted, #526575);
  font-size: 13px;
  padding-top: 12px;
}
.quiet-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 17px 0 10px;
  font-size: 12px;
}
.quiet-home .quiet-launch {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--line, #dbe3eb);
  border-radius: 3px;
  text-decoration: none;
  background: var(--panel, #fff);
}
.quiet-home .quiet-launch:hover {
  background: var(--tint, #f4f6f8);
}
.quiet-home :is(.quiet-note, .toolbox-note, .toolbox-credit, figcaption) {
  font-size: 11px;
  line-height: 1.75;
  color: var(--muted, #526575);
}
.quiet-home .market-entry-branches {
  margin: 16px 0 0;
  padding-block: 9px;
  gap: 0 16px;
}
.quiet-home .market-entry-branches a {
  font-size: 12px;
  min-height: 36px;
  color: var(--accent, #315f88);
}
.quiet-result {
  margin-top: 22px;
  min-width: 0;
}
.quiet-result h3 {
  font-size: 15px;
  margin-bottom: 10px;
}
.quiet-video-result > p {
  margin-block: 10px;
}
.quiet-video-result > p:first-of-type {
  font-size: 12px;
  color: var(--muted, #526575);
}
.quiet-home .toolbox-export-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-block: 15px 10px;
}
.quiet-home .toolbox-export-pair img {
  width: 100%;
}
.quiet-home .toolbox-export-pair figcaption a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.quiet-home .toolbox-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 7px;
  font-size: 12px;
}
.quiet-home .optional-demo {
  margin-top: 14px;
  border-top: 1px solid var(--line, #dbe3eb);
  padding-top: 6px;
}
.quiet-home .optional-demo > summary {
  cursor: pointer;
  min-height: 44px;
  padding-block: 10px;
  font-size: 12px;
  color: var(--accent, #315f88);
}
.quiet-home .optional-demo-content {
  max-width: none;
}
.quiet-home .fx-demo {
  background: var(--tint, #f4f6f8);
  border-radius: 2px;
  padding: 18px;
}
.quiet-home .fx-demo-heading {
  margin-bottom: 15px;
  font-size: 12px;
}
.quiet-home
  :is(
    .example-position,
    .demo-assumptions,
    .demo-caption,
    .demo-status,
    .fx-reading,
    .exposure-unit
  ) {
  font-size: 12px;
}
.quiet-home .example-position {
  flex-wrap: wrap;
  gap: 3px 8px;
}
.quiet-home .exposure-row {
  grid-template-columns: 30px minmax(0, 1fr) 67px;
  gap: 8px;
}
.quiet-home .exposure-key {
  padding-left: 30px;
  padding-right: 67px;
}
.quiet-home .exposure-plot span {
  background: var(--accent, #315f88);
}
.quiet-home .exposure-row[data-side='short'] .exposure-plot span {
  background: var(--muted, #526575);
}
.quiet-home .fx-reading {
  min-height: 0;
  margin-block: 12px;
}
.quiet-home .demo-assumptions summary {
  cursor: pointer;
  min-height: 44px;
  padding-top: 10px;
}
.quiet-home .demo-assumptions p {
  margin-top: 8px;
}
.quiet-home .demo-caption {
  flex-wrap: wrap;
}
.quiet-home .demo-controls {
  min-height: 0;
}
.quiet-apps {
  padding-top: 39px;
}
.quiet-phone-app {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line, #dbe3eb);
  min-width: 0;
}
.quiet-phone-app figure > a {
  display: flex;
  align-items: center;
  height: 178px;
  background: var(--tint, #f4f6f8);
  border: 1px solid var(--line, #dbe3eb);
  overflow: hidden;
}
.quiet-phone-app figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.quiet-phone-app figcaption {
  padding-top: 6px;
  font-size: 10px;
}
.quiet-phone-app h3 {
  font-size: 21px;
  margin-bottom: 9px;
}
.quiet-phone-app h3 a {
  color: inherit;
  text-decoration: none;
}
.quiet-phone-app > div > p:not(.quiet-eyebrow) {
  font-size: 12px;
  color: var(--muted, #526575);
}
.quiet-more-tool {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 25px;
  padding-block: 16px;
  border-block: 1px solid var(--line, #dbe3eb);
  font-size: 12px;
}
.quiet-more-tool h3 {
  font-size: 13px;
}
.quiet-more-tool p {
  color: var(--muted, #526575);
}
.quiet-bottom {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  padding-top: 40px;
}
.quiet-guides nav {
  margin-top: 10px;
}
.quiet-guides nav > a {
  display: block;
  position: relative;
  padding: 13px 24px 13px 0;
  border-bottom: 1px solid var(--line, #dbe3eb);
  text-decoration: none;
  font-size: 13px;
  color: inherit;
}
.quiet-guides nav span {
  display: block;
  color: var(--muted, #526575);
  font-size: 10px;
  margin-bottom: 3px;
}
.quiet-guides nav b {
  position: absolute;
  right: 0;
  top: 24px;
  color: var(--accent, #315f88);
  font-weight: 400;
}
.quiet-about {
  border-left: 1px solid var(--line, #dbe3eb);
  padding-left: 28px;
}
.quiet-about > p {
  font-size: 13px;
  color: var(--muted, #526575);
  margin-top: 17px;
}
@media (max-width: 1000px) {
  .quiet-home {
    padding-inline: 24px;
  }
  .quiet-primary-grid,
  .quiet-app-grid {
    gap: 20px;
  }
  .quiet-work {
    padding: 21px 18px;
  }
  .quiet-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
  .quiet-phone-app {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
  }
  .quiet-phone-app h3 {
    font-size: 18px;
  }
}
@media (max-width: 760px) {
  .quiet-home {
    width: calc(100% - 32px);
    padding-inline: 12px;
  }
  .quiet-hero {
    display: block;
    min-height: 0;
    padding-block: 27px 28px;
  }
  .quiet-hero h1 {
    font-size: 32px;
  }
  .quiet-hero-copy > p:not(.quiet-eyebrow) {
    max-width: 46ch;
  }
  .quiet-primary-grid,
  .quiet-app-grid,
  .quiet-bottom {
    grid-template-columns: 1fr;
  }
  .quiet-work {
    padding: 22px 18px;
  }
  .quiet-work h2 {
    font-size: 27px;
  }
  .quiet-app-grid {
    gap: 24px;
  }
  .quiet-phone-app {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 17px;
  }
  .quiet-phone-app h3 {
    font-size: 20px;
  }
  .quiet-bottom {
    gap: 28px;
    padding-top: 30px;
  }
  .quiet-about {
    padding: 22px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line, #dbe3eb);
  }
}
@media (max-width: 360px) {
  .quiet-home {
    width: calc(100% - 24px);
    padding-inline: 8px;
  }
  .quiet-hero h1 {
    font-size: 28px;
  }
  .quiet-work {
    padding-inline: 14px;
  }
  .quiet-work h2 {
    font-size: 24px;
  }
  .quiet-home .fx-demo {
    padding: 12px;
  }
  .quiet-home .exposure-row {
    grid-template-columns: 27px minmax(0, 1fr) 61px;
    gap: 5px;
  }
  .quiet-phone-app {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 13px;
  }
  .quiet-phone-app h3 {
    font-size: 18px;
  }
}

.quiet-market-screen {
  margin: 0 0 24px;
  border: 1px solid var(--qh-line, var(--line));
  background: var(--qh-paper, var(--panel));
}
.quiet-market-screen img {
  display: block;
  width: 100%;
  height: auto;
}
.quiet-market-screen figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--qh-muted, var(--muted));
}
