/* Shared visual treatment for the public pages outside the approved home. */
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

html:has(.opus-page) {
  overflow-x: clip;
  scroll-padding-top: 80px;
}

body.opus-page {
  --opus-ink: #0b1220;
  --opus-muted: #4b5565;
  --opus-blue: #175cd3;
  --opus-sky: #39b6ff;
  --opus-soft: #f3f7fd;
  --opus-line: #e4e8ef;
  --opus-card-line: #dde7f5;
  --opus-radius: 18px;
  --opus-gutter: 32px;
  --opus-header-height: 68px;
  --opus-title-size: clamp(2rem, 1.85rem + .8vw, 2.625rem);
  --opus-section-title-size: clamp(1.625rem, 1.5rem + .7vw, 2.125rem);
  --opus-reading-size: 1.0625rem;
  margin: 0;
  overflow-x: clip;
  overflow-anchor: none;
  background: #fff;
  color: var(--opus-ink);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.opus-page #app {
  overflow: clip;
}

.opus-header .wrap,
.opus-footer .wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--opus-gutter);
}

.opus-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--opus-line);
}

.opus-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: calc(var(--opus-header-height) - 1px);
}

.opus-header .brandlink {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 48px;
  min-height: 44px;
}

.opus-header .stk,
.opus-header .mini,
.opus-footer .fstk {
  display: block;
  width: auto;
  object-fit: contain;
}

.opus-header .stk { height: 58px; }
.opus-header .mini { display: none; height: 34px; width: 34px; }
.opus-header.shrink .stk { display: none; }
.opus-header.shrink .mini { display: block; }

.opus-header .links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.1vw, 30px);
  color: #344054;
  font-size: .875rem;
  font-weight: 500;
}

.opus-header .links a,
.opus-header .cta,
.opus-footer a {
  text-decoration: none;
}

.opus-header .links a,
.opus-header .cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.opus-header .links a:hover,
.opus-header .links [aria-current="page"],
.opus-footer a:hover {
  color: var(--opus-blue);
  text-decoration: underline;
  text-underline-offset: .22em;
}

.opus-header .cta,
.opus-header summary {
  width: max-content;
  max-width: 100%;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25;
}

.opus-header .cta {
  justify-content: center;
  background: var(--opus-ink);
  color: #fff;
  text-align: center;
}

.opus-header .cta:hover { background: var(--opus-blue); }
.opus-header summary { display: none; }
.opus-header .opus-menu summary::after { content: none; }
.opus-header .opus-menu:last-child { margin-inline: auto; }

.opus-footer {
  border-top: 1px solid var(--opus-line);
  padding-block: 42px 28px;
  font-size: .875rem;
}

.opus-footer .fcols {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 24px 32px;
}

.opus-footer .footer-brand a { display: inline-block; padding: 0; }
.opus-footer .fstk { height: 68px; }
.opus-footer .fcols a {
  display: block;
  padding-block: 6px;
  color: var(--opus-muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.opus-footer .fcols p {
  max-width: 29ch;
  color: var(--opus-muted);
  line-height: 1.6;
}

.opus-footer .copy {
  margin: 28px 0 0;
  font-size: .8125rem;
  color: #667085;
}

.opus-page :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--opus-blue);
  outline-offset: 3px;
}

.opus-page main :is(h1, h2) {
  color: var(--opus-ink);
  letter-spacing: -.035em;
}

.opus-page main:not(.legal-page) :is(h1, h2) {
  font-weight: 600;
}

.opus-page main h1 { line-height: 1.06; }
.opus-page main h2 { line-height: 1.14; }
.opus-page .legal-page h2 { line-height: 1.12; }

/* Reading pages keep a narrow measure. Index pages use the home grid width. */
.opus-page .guide-page {
  --text: var(--opus-ink);
  --muted: var(--opus-muted);
  --quiet: var(--opus-muted);
  --primary: var(--opus-blue);
  --primary-dark: #12499f;
  --primary-soft: var(--opus-soft);
  --bg-soft: var(--opus-soft);
  --line: var(--opus-line);
  --radius: var(--opus-radius);
  width: min(720px, calc(100% - 2 * var(--opus-gutter)));
  margin-block: clamp(26px, 3.3vw, 48px) clamp(48px, 6vw, 76px);
  color: var(--opus-muted);
}

.opus-page .guide-page h1 {
  font-size: var(--opus-title-size);
  line-height: 1.14;
}

.opus-page .guide-page h2 { font-size: var(--opus-section-title-size); }
.opus-page .guide-page h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; }
.opus-page .guide-body > :is(h2, h3) { margin-block-start: clamp(28px, 3.3vw, 44px); }
.opus-page .guide-body > h2 { margin-block-end: 12px; }
.opus-page .guide-body > h3 { margin-block-end: 8px; }
.opus-page .guide-body :where(p, li),
.opus-page .guide-page .guide-lead,
.opus-page .guide-body > p:first-child {
  font-size: var(--opus-reading-size);
  line-height: 1.7;
}

.opus-page .guide-page .guide-byline { font-size: .875rem; margin-top: 12px; }
.opus-page .guide-hero { margin-top: 24px; }
.opus-page .guide-body > p:first-child { margin-top: 20px; }

.opus-page .guide-page.guide-hub {
  width: min(calc(1200px - 2 * var(--opus-gutter)), calc(100% - 2 * var(--opus-gutter)));
}

.opus-page .guide-hub .guide-section {
  margin-block-start: clamp(32px, 5vw, 64px);
}

.opus-page .guide-hub :is(.guide-section h2, .guide-group) {
  scroll-margin-top: 8px;
}

.opus-page .guide-card a,
.opus-page .guide-toc,
.opus-page .guide-summary,
.opus-page .calc-box {
  border: 1px solid var(--opus-card-line);
  border-radius: var(--opus-radius);
}

.opus-page .guide-card a {
  background: #fff;
  box-shadow: none;
}

.opus-page .guide-card a:hover { border-color: var(--opus-blue); }
.opus-page .guide-card-title {
  color: var(--opus-ink);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.015em;
}
.opus-page .guide-card-text { color: var(--opus-muted); }

.opus-page .guide-toc,
.opus-page .guide-summary,
.opus-page .calc-box { background: var(--opus-soft); }

.opus-page .guide-toc { border-inline-start: 3px solid var(--opus-blue); }
.opus-page .guide-toc summary { padding-block: 4px; min-height: 32px; font-weight: 600; }
.opus-page .guide-toc a { line-height: 1.45; }
.opus-page .guide-summary { border-inline-start: 3px solid var(--opus-blue); }
.opus-page .guide-summary h2 {
  color: var(--opus-blue);
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.opus-page .guide-hero img { border-radius: var(--opus-radius); }
.opus-page .guide-page .table-wrap { border-radius: 16px; }
.opus-page .guide-page .button { border-radius: 999px; }
.opus-page .guide-page .calc-title { font-size: 1.375rem; }
.opus-page .calc-box { padding: clamp(16px, 2.4vw, 24px); }
.opus-page .calc-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.opus-page .calc-units label { min-height: 36px; }
.opus-page .guide-page .calc-field :is(input, select) { border-radius: 12px; }
.opus-page .guide-page :is(.guide-prompt, .guide-cta-v2) {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid #2b3f5c;
  border-radius: var(--opus-radius);
  background: #0b0d12;
  box-shadow: 0 20px 48px -32px rgb(23 92 211 / 45%);
}

.opus-page .guide-page .app-card-mark {
  width: min(320px, 72%);
  opacity: .07;
  transform: rotate(-8deg);
}

.opus-page .guide-page .app-card-logo { height: clamp(48px, 7vw, 68px); }
.opus-page .guide-page .app-card-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.opus-page .guide-page .guide-prompt-chip { letter-spacing: .06em; text-transform: uppercase; }
.opus-page .guide-page :is(.guide-prompt, .guide-cta-v2) :is(.guide-prompt-title, .guide-cta-title) {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.015em;
}

.opus-page .guide-page .app-card-links { gap: 10px; }
.opus-page .guide-page .app-card-links .store-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.opus-page .guide-page .app-card-links .store-badge img {
  height: 40px;
  margin: 0;
}

/* The app pages keep their existing photos, screenshots and reading order. */
.opus-page.app-page {
  --ink: var(--opus-ink);
  --muted: var(--opus-muted);
  --blue: var(--opus-blue);
  --line: var(--opus-line);
  --pale: var(--opus-soft);
}

.opus-page.app-page main .wrap {
  width: min(calc(1200px - 2 * var(--opus-gutter)), calc(100% - 2 * var(--opus-gutter)));
}

.opus-page .app-hero {
  gap: clamp(26px, 4vw, 52px);
  padding-block: clamp(24px, 3.4vw, 44px) clamp(36px, 5vw, 64px);
}
.opus-page .app-hero h1 { font-size: var(--opus-title-size); text-wrap: balance; }
.opus-page .app-hero .lead {
  margin-top: 16px;
  max-width: 46ch;
  font-size: var(--opus-reading-size);
  line-height: 1.65;
  letter-spacing: normal;
}
.opus-page .app-hero .hero-actions { column-gap: 10px; row-gap: 8px; margin-top: 20px; }
.opus-page .app-hero .hero-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.opus-page.app-page main h2 { font-size: var(--opus-section-title-size); }
.opus-page.app-page main h3 { font-weight: 600; letter-spacing: -.015em; }
.opus-page.app-page .tech-band h2 { color: #fff; }
.opus-page.app-page :is(.app-features, .app-steps, .app-extra, .app-limits, .faq-section) {
  padding-block: clamp(32px, 4vw, 56px);
}
.opus-page .app-extra { gap: clamp(24px, 4vw, 48px); }
.opus-page .app-hero-photo img { height: clamp(260px, 31vw, 420px); }
.opus-page .app-extra-photo img { height: clamp(250px, 28vw, 380px); }
.opus-page .tech-band-inner { padding-block: clamp(40px, 4.5vw, 64px); }
.opus-page .app-feature-grid,
.opus-page .app-step-list { gap: 16px; margin-top: 24px; }
.opus-page .app-feature-grid li { padding: 20px; }
.opus-page .app-step-list li { padding-block: 20px; }
.opus-page .faq-list p { font-size: 1rem; line-height: 1.65; }

.opus-page.app-page :is(.eyebrow, .tech-eyebrow) {
  letter-spacing: .06em;
  font-size: .8125rem;
  margin-bottom: 14px;
}

.opus-page.app-page .eyebrow { color: var(--opus-blue); }
.opus-page.app-page .tech-eyebrow { color: #8cc8ff; }

.opus-page.app-page :is(.app-feature-grid li, .app-step-list li, .app-limits li) {
  border: 1px solid var(--opus-card-line);
  border-radius: var(--opus-radius);
}

.opus-page.app-page :is(.app-hero-photo img, .app-extra-photo img, .app-screen) {
  border-radius: var(--opus-radius);
}

.opus-page.app-page :is(.app-hero-photo img, .app-extra-photo img) { box-shadow: none; }

.opus-page .legal-page {
  color: var(--opus-ink);
  overflow-wrap: anywhere;
}

.opus-page .legal-page h1 { font-size: clamp(36px, 5vw, 60px); }
.opus-page .legal-page h2 { font-size: clamp(24px, 3.4vw, 34px); }
.opus-page .legal-page :is(p, li) { color: var(--opus-muted); }
.opus-page .legal-page a:not(.button) { color: var(--opus-blue); }

.opus-page .missing-page {
  width: min(640px, calc(100% - 2 * var(--opus-gutter)));
  min-height: 48vh;
  margin: clamp(44px, 7vw, 96px) auto;
}

.opus-page .missing-page h1 { font-size: var(--opus-title-size); margin: 0 0 16px; }
.opus-page .missing-page p { color: var(--opus-muted); font-size: var(--opus-reading-size); line-height: 1.65; }
.opus-page .missing-page .kicker {
  color: var(--opus-blue);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

@media (min-width: 861px) {
  .opus-page .app-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, min(42vw, 470px));
    column-gap: clamp(36px, 4vw, 56px);
  }

  .opus-page .app-hero h1 { max-width: 22ch; }
  .opus-page .app-hero-photo img { height: clamp(260px, 27vw, 365px); }
  .opus-page .app-hero-photo::before {
    inset: -12px -12px -12px 12px;
    border-radius: 24px;
  }
}

@media (max-width: 860px) {
  html:has(.opus-page) { scroll-padding-top: 72px; }
  body.opus-page {
    --opus-gutter: 20px;
    --opus-header-height: 60px;
    --opus-reading-size: 1rem;
  }
  .opus-header .stk { height: 50px; }
  .opus-header .opus-menu,
  .opus-header .opus-menu:last-child { margin-inline: auto 0; }

  .opus-header .links {
    position: absolute;
    inset: 100% var(--opus-gutter) auto;
    display: grid;
    max-height: calc(100dvh - var(--opus-header-height) - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    gap: 0;
    margin-block-start: 8px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--opus-card-line);
    border-radius: 16px;
    box-shadow: 0 14px 36px rgb(11 18 32 / 12%);
  }

  .opus-header summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding-inline: 14px;
    cursor: pointer;
    color: var(--opus-ink);
    background: var(--opus-soft);
    list-style: none;
  }

  .opus-header summary::-webkit-details-marker { display: none; }

  .opus-header summary::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: none;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
  }

  .opus-header details[open] summary::before { transform: rotate(225deg); }

  .opus-header .links a {
    padding: 8px 12px;
    line-height: 1.5;
  }

  .opus-footer { padding-block: 32px 24px; }
  .opus-footer .fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .opus-footer .footer-brand { grid-column: 1 / -1; }
  .opus-footer .fstk { height: 60px; }
  .opus-footer nav a { padding-block: 9px; }
  .opus-page .guide-toc summary,
  .opus-page .calc-units label { min-height: 44px; }
}

@media (max-width: 360px) {
  body.opus-page { --opus-gutter: 16px; }
  .opus-header .nav { gap: 8px; }
  .opus-header .cta { font-size: 13px; padding-inline: 12px; }
  .opus-header summary { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.opus-page) { scroll-behavior: auto; }
}

.opus-page.app-page .hero-actions .store-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
}

.opus-page.app-page .hero-actions .store-badge img {
  width: auto;
  height: clamp(40px, 11vw, 44px);
}

.opus-store-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

main:focus, main:focus-visible, [tabindex="-1"]:focus { outline: none; }
.legal-page h1 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 600; letter-spacing: -0.02em; }
.legal-page h2 { font-size: clamp(20px, 2vw, 26px); font-weight: 600; }
.legal-page p, .legal-page li { font-size: 16px; line-height: 1.7; }
