/*
 * spread.apphero.tech, in the new apphero design (reference: apphero-tech, src/next/next.css;
 * starting point: coe-apphero-tech/public/site.css).
 * Cream ground, ink text, cyan as the single accent, navy for the closing band.
 * Source Serif 4 (SIL OFL 1.1, fonts/OFL.txt) for display, Inter for body.
 */
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(/fonts/source-serif-4-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(/fonts/source-serif-4-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4"; font-style: italic; font-display: swap; font-weight: 200 900;
  src: url(/fonts/source-serif-4-latin-wght-italic.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --nx-ground: #f6f3ec; --nx-paper: #fcfaf6; --nx-sand: #ede8de; --nx-line: #e1dbcf;
  --nx-ink: #17151c; --nx-ink-soft: #3b3842; --nx-muted: #6c675f;
  --nx-cyan: #01cafd; --nx-cyan-soft: rgba(1, 202, 253, 0.12); --nx-navy: #10004b;
  --nx-on-navy: #f4f1ea; --nx-on-navy-soft: #d9d4e8;
  --nx-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --nx-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh; background: var(--nx-ground); color: var(--nx-ink); font-family: var(--nx-sans);
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  line-height: 1.6;
}
::selection { background: var(--nx-cyan-soft); color: var(--nx-ink); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--nx-cyan); outline-offset: 3px; }
ul, ol { list-style: none; }
[id] { scroll-margin-top: 96px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 60; background: var(--nx-ink); color: var(--nx-paper); padding: 8px 16px; border-radius: 999px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* Type: one H1 scale, 38px mobile to 62px desktop */
.display { font-family: var(--nx-serif); font-optical-sizing: auto; font-weight: 400; line-height: 1.08; letter-spacing: -0.026em; font-size: clamp(2.375rem, 4.3vw, 3.875rem); text-wrap: balance; }
.h2 { font-family: var(--nx-serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.016em; font-size: clamp(1.75rem, 3.2vw, 2.6rem); text-wrap: balance; }
.h3 { font-family: var(--nx-serif); font-weight: 500; line-height: 1.25; font-size: 1.3rem; }
.lead { font-size: clamp(1.0625rem, 1.35vw, 1.1875rem); line-height: 1.6; color: var(--nx-ink-soft); text-wrap: pretty; }
.body { font-size: 1.05rem; line-height: 1.7; color: var(--nx-ink-soft); }

/* Button: the closing call only */
.btn { display: inline-flex; align-items: center; height: 48px; padding: 0 26px; border-radius: 999px; font-size: 0.95rem; font-weight: 500; white-space: nowrap; transition: background-color .2s; }
.btn-cyan { background: var(--nx-cyan); color: var(--nx-ink); }
.btn-cyan:hover { background: #5fdcfd; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 45; background: var(--nx-ground); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.site-header.scrolled { border-bottom-color: var(--nx-line); background: rgba(246, 243, 236, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header.open { background: var(--nx-ground); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--nx-line); }
.site-header .bar { max-width: 1120px; margin: 0 auto; height: 72px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand .mark { width: 28px; height: 28px; }
.brand .type { height: 19px; width: auto; }
.mainnav { display: flex; align-items: center; gap: 4px; }
.mainnav a { padding: 8px 16px; border-radius: 999px; font-size: 0.94rem; color: var(--nx-ink-soft); transition: color .2s; }
.mainnav a:hover { color: var(--nx-ink); }
.menu-btn { display: none; background: none; border: 0; border-radius: 999px; padding: 8px; color: var(--nx-ink); cursor: pointer; }
.menu-btn:hover { background: var(--nx-sand); }
.menu-btn svg { width: 24px; height: 24px; display: block; }
.menu-btn .x { display: none; }
.site-header.open .menu-btn .x { display: block; }
.site-header.open .menu-btn .burger { display: none; }
.sheet { display: none; position: fixed; left: 0; right: 0; top: 72px; bottom: 0; overflow-y: auto; background: var(--nx-ground); padding: 16px 20px 40px; }
.site-header.open .sheet { display: block; }
.sheet a { display: block; font-family: var(--nx-serif); font-size: 1.5rem; padding: 18px 0; border-bottom: 1px solid var(--nx-line); }

/* Hero */
.hero { padding: 88px 0 56px; }
.hero .display { max-width: 900px; }
.hero .lead { margin-top: 24px; max-width: 640px; }
.nowrap { white-space: nowrap; }
.hero-shot { padding-bottom: 32px; }

/* Product screens */
.shot { display: block; border: 1px solid var(--nx-line); border-radius: 16px; overflow: hidden; background: var(--nx-paper); box-shadow: 0 1px 2px rgba(23, 21, 28, 0.04), 0 24px 48px -28px rgba(16, 0, 75, 0.28); }
.shot img { display: block; width: 100%; height: auto; }

/* Sections: a title and the minimum */
.section { padding: 96px 0; }
.section > .container > .h2 { max-width: 760px; margin-bottom: 56px; }

/* Stages: title and one line beside the screen */
.stages { display: grid; gap: 88px; }
.stage { display: grid; grid-template-columns: 1fr 1.7fr; gap: 56px; align-items: center; }
.stage .body { margin-top: 10px; }

/* Entries: title on the left, one sentence on the right */
.entries { display: grid; gap: 0; border-top: 1px solid rgba(23, 21, 28, 0.15); }
.entries > li { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; padding: 28px 0; border-bottom: 1px solid var(--nx-line); }

/* Closing band — the page's single call to action */
.cta-band { padding: 32px 0 96px; }
.cta-band .box { background: var(--nx-navy); color: var(--nx-on-navy); border-radius: 28px; padding: 64px 56px; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-band .h2 { max-width: 620px; }

/* Legal documents */
.doc-head { padding: 96px 0 40px; }
.doc-head .meta { margin-top: 20px; font-size: 0.9rem; color: var(--nx-muted); }
.prose { max-width: 720px; font-size: 1.02rem; line-height: 1.75; color: var(--nx-ink-soft); overflow-wrap: anywhere; padding-bottom: 80px; }
.prose > * + * { margin-top: 1.1rem; }
.prose h1 { display: none; }
.prose h1 + * { margin-top: 0; }
.prose h2 { margin-top: 3rem; font-family: var(--nx-serif); font-weight: 400; font-size: 1.75rem; line-height: 1.2; color: var(--nx-ink); }
.prose h3 { margin-top: 2rem; font-family: var(--nx-serif); font-weight: 500; font-size: 1.25rem; color: var(--nx-ink); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4rem; }
.prose strong { color: var(--nx-ink); font-weight: 600; }
.prose a { color: var(--nx-ink); text-decoration: underline; text-decoration-color: var(--nx-cyan); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose code { font-size: 0.92em; background: var(--nx-sand); padding: 1px 6px; border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--nx-line); margin: 2.5rem 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; overflow-wrap: normal; }
.prose th, .prose td { border-bottom: 1px solid var(--nx-line); padding: 0.6rem 0.75rem 0.6rem 0; text-align: left; vertical-align: top; }
.prose th { color: var(--nx-ink); font-weight: 600; }
.doclist { border-top: 1px solid rgba(23, 21, 28, 0.15); max-width: 860px; }
.doclist a { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; padding: 28px 0; border-bottom: 1px solid var(--nx-line); }
.doclist a:hover .h3 { text-decoration: underline; text-decoration-color: var(--nx-cyan); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.legal-index { padding-bottom: 96px; }
.related { border-top: 1px solid var(--nx-line); padding: 56px 0 96px; }
.related .h3 { margin-bottom: 8px; }
.related ul { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 16px; }
.related a { color: var(--nx-ink-soft); text-decoration: underline; text-decoration-color: var(--nx-cyan); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Footer */
.site-footer { padding: 24px 0 40px; }
.site-footer .row { display: flex; justify-content: space-between; align-items: center; gap: 24px 32px; flex-wrap: wrap; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 0.9rem; }
.site-footer nav a { color: var(--nx-ink-soft); }
@media (min-width: 1024px) { .site-footer nav { margin-right: 16px; } }
.site-footer nav a:hover, .site-footer .fine a:hover { color: var(--nx-ink); }
.site-footer .fine { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 0.8rem; color: var(--nx-muted); }

@media (max-width: 1023px) {
  .mainnav { display: none; }
  .menu-btn { display: inline-flex; }
  .stage { grid-template-columns: 1fr; gap: 24px; }
  .entries > li, .doclist a { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 767px) {
  .container, .site-header .bar { padding: 0 20px; }
  .hero { padding: 40px 0 32px; }
  .hero-shot { padding-bottom: 8px; }
  .hero-shot + .section { padding-top: 48px; }
  .section { padding: 64px 0; }
  .section > .container > .h2 { margin-bottom: 36px; }
  .stages { gap: 56px; }
  .shot { border-radius: 12px; }
  .doc-head { padding-top: 56px; }
  .cta-band { padding: 0 0 64px; }
  .cta-band .box { flex-direction: column; align-items: flex-start; padding: 44px 28px; }
}

/* Video, FAQ and hero actions (added 2026-11-20). */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.video { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--nx-line); border-radius: 16px; overflow: hidden; background: var(--nx-paper); box-shadow: 0 1px 2px rgba(23, 21, 28, 0.04), 0 24px 48px -28px rgba(16, 0, 75, 0.28); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.faq { max-width: 760px; }
.faq-item { border-top: 1px solid var(--nx-line); padding: 18px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--nx-line); }
.faq-item summary { cursor: pointer; font-weight: 500; font-size: 1.0625rem; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { margin-bottom: 10px; }
.related li.current a { font-weight: 600; }
