/* OctoLedger marketing site — plain CSS, no build step, no framework.
   Palette mirrors the application (teal / seafoam / ink) so the hand-off to sign-in feels continuous.
   Accessibility notes: body text is >= 4.5:1 on its background, focus is always visible, and no
   information is conveyed by colour alone. */

:root {
  --ink: #0b1a18;
  --teal: #0f2f2b;
  --teal-light: #14514a;
  --seafoam: #e8f3ef;
  --surface: #ffffff;
  --muted: #4a5f5b;
  --border: #cfded9;
  --danger: #b3261e;
  --radius: 14px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(11, 26, 24, 0.06), 0 8px 24px rgba(11, 26, 24, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  font-size: 18px;
}

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

a {
  color: var(--teal-light);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--teal-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}

.brand-name {
  font-size: 18px;
}

.site-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 16px;
  font-weight: 550;
  padding: 6px 2px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--teal);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--teal);
}

/* Buttons */
.button {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 120ms ease, color 120ms ease;
}

.button-primary {
  background: var(--teal);
  color: #fff;
}

.button-primary:hover {
  background: var(--teal-light);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--border);
}

.button-secondary:hover {
  background: var(--seafoam);
  color: var(--teal);
}

.nav-signin {
  margin-left: 8px;
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.hero h1 {
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  max-width: 20ch;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 26px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}

/* Body */
.page-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 24px 48px;
  display: grid;
  gap: 8px;
}

.content-section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  max-width: 68ch;
}

.content-section h2 {
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.content-section p {
  margin: 0 0 14px;
  color: var(--muted);
}

.content-section ul {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--muted);
}

.content-section li {
  margin-bottom: 8px;
}

.text-link {
  font-weight: 650;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.page-updated {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* CTA band */
.cta-band {
  background: var(--seafoam);
  padding: 48px 24px;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.cta-band p {
  margin: 0 auto 20px;
  max-width: 60ch;
  color: var(--muted);
}

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}

.footer-grid h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 10px;
}

.footer-grid nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
}

.footer-grid a:hover {
  color: var(--teal-light);
  text-decoration: underline;
}

.footer-tagline {
  color: var(--muted);
  font-size: 15px;
  max-width: 32ch;
  margin: 12px 0 0;
}

.footer-small {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 14px;
  }
  .nav-signin {
    margin-left: auto;
  }
}

/* Launch film — a trigger that opens a native dialog.
   The still is the only film asset fetched on page load; everything else waits for the click. */
.film {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 8px;
}

.film-heading {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 12px;
}

.film-trigger {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  max-width: 560px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 120ms ease, transform 120ms ease;
}

.film-trigger:hover {
  border-color: var(--teal-light);
  transform: translateY(-1px);
  color: var(--ink);
}

.film-trigger__still {
  position: relative;
  flex: 0 0 auto;
  width: 168px;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  overflow: hidden;
  background: var(--teal);
}

.film-trigger__still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-trigger__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #fff;
  background: rgba(11, 26, 24, 0.35);
}

.film-trigger__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}

.film-trigger__meta strong {
  font-size: 16px;
  color: var(--ink);
}

/* The film is a 16:9 screen recording of a dense UI, so the dialog wants to be wide — but the chapter
   list sits below the player and must stay on screen. Width is therefore capped by the height available,
   not only by the viewport width: the 250px is the header, chapters and transcript around the video. */
.film-dialog {
  max-width: min(1320px, 96vw, calc((94vh - 250px) * 16 / 9 + 28px));
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(11, 26, 24, 0.35);
}

.film-dialog::backdrop {
  background: rgba(11, 26, 24, 0.78);
}

.film-dialog__body {
  padding: 14px;
  max-height: 94vh;
  overflow: auto;
}

.film-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.film-dialog__header h2 {
  font-size: 1.15rem;
  margin: 0 0 6px;
}

.film-disclosure {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 62ch;
}

.film-close {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink);
}

.film-close:hover {
  background: var(--seafoam);
}

.film-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #06100f;
  border-radius: 10px;
}

.film-chapters {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
}

.film-chapters button {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  color: var(--muted);
}

.film-chapters button:hover {
  background: var(--seafoam);
  color: var(--ink);
}

.film-chapters button[aria-current="true"] {
  border-color: var(--teal-light);
  color: var(--ink);
  font-weight: 650;
}

.film-time {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.film-transcript {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.film-transcript summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--teal-light);
}

.film-transcript ol {
  padding-left: 20px;
  margin: 10px 0 0;
}

.film-transcript li {
  margin-bottom: 6px;
}

@media (max-width: 520px) {
  .film-trigger {
    flex-direction: column;
    align-items: stretch;
  }
  .film-trigger__still {
    width: 100%;
  }
}

/* ---------------------------------------------------------------------------
   Home page composition.

   The first version put the whole proposition in a narrow left column and left
   the right half of a wide screen empty; the page read as a document. The hero
   is now two columns — argument on the left, an actual product view on the
   right — and the sections below change rhythm instead of repeating
   heading/paragraph/divider.
   --------------------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-light);
}

.hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 36px;
}

.hero--split h1 {
  font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.35rem);
  max-width: 16ch;
  margin-bottom: 14px;
}

.hero--split .lead {
  margin-bottom: 20px;
  max-width: 44ch;
  font-size: clamp(1.25rem, 1.15rem + 0.45vw, 1.45rem);
}

.hero__media {
  min-width: 0;
}

.hero-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.hero-note a {
  font-weight: 650;
}

/* Product stills */
.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  background: var(--seafoam);
}

.shot--wide {
  max-width: 1120px;
  margin: 0 auto;
}

.disclosure {
  max-width: 1000px;
  margin: 12px auto 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* Section rhythm */
.band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}

.band h2 {
  font-size: clamp(2rem, 1.4rem + 1.5vw, 2.25rem);
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}

.section-intro {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.15rem;
}

.band--figure {
  padding-top: 24px;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.steps li {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.steps__num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--seafoam);
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.steps p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.steps__effort {
  margin: 22px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--teal-light);
  font-size: 14px;
  color: var(--muted);
  max-width: 68ch;
}

/* Benefit cards */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--seafoam);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* FAQ */
.faq {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 8px 40px;
  max-width: 1000px;
}

.faq div {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.faq dt {
  font-weight: 700;
  margin-bottom: 6px;
}

.faq dd {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* The film inside the hero column: an invitation, not a competing card. */
.hero__media .film {
  max-width: none;
  padding: 0;
  margin-top: 16px;
}

.hero__media .film-heading {
  margin-bottom: 8px;
}

.hero__media .film-trigger {
  max-width: none;
  width: 100%;
}

.hero__media .film-trigger__still {
  width: 132px;
}

@media (max-width: 900px) {
  .hero--split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 32px;
  }
  .hero--split h1 {
    max-width: none;
  }
}
