/* ScoreVibe site styles */

:root {
  --paper: #fbfcfd;
  --paper-2: #f2f4f7;
  --ink: #141a2e;
  --ink-2: #3b4258;
  --muted: #5d6479;
  --rule: #d9dde6;
  --rule-soft: #e8ebf0;
  --blue: #0a63e0;
  --blue-deep: #0645b8;
  --cyan: #10dcf4;
  --sky: #0a95f0;
  --royal: #0750e6;
  --brand: linear-gradient(160deg, #10dcf4 0%, #0a95f0 48%, #0750e6 100%);
  --stage: #0a1a4a;
  --stage-2: #18213a;
  --stage-text: #c9cfdd;

  --serif: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 4.25rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1.5rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
::selection { background: #bdf3fb; color: var(--ink); }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--ink); color: #fff; padding: .5rem 1rem; }

/* ---------- Type ---------- */

.display {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6.4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.h3 { font-family: var(--sans); font-size: 1.125rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.005em; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 36rem; }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }
.kicker { font-size: .9375rem; font-weight: 500; color: var(--blue); margin-bottom: 1rem; }

.text-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .3em;
  transition: text-decoration-color .2s;
}
.text-link:hover { text-decoration-color: var(--blue); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 500 .9375rem/1 var(--sans);
  padding: .8rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn-ink { background: var(--royal); background-image: linear-gradient(135deg, #0a95f0, #0750e6); color: #fff; box-shadow: 0 6px 16px -6px rgba(7, 80, 230, .55); transition: box-shadow .25s, transform .25s; }
.btn-ink:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(7, 80, 230, .7); }
.btn-line { border-color: var(--rule); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--ink); }

.badge-link { display: inline-block; line-height: 0; }
.badge-link img { height: 3.25rem; width: auto; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 252, 253, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.site-header .wrap { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 3px 8px -3px rgba(7, 80, 230, .5); }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: .9375rem; color: var(--ink-2); padding-block: .25rem; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.header-cta { padding: .6rem 1rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: 6px; padding: .5rem .7rem; font: 500 .875rem var(--sans); color: var(--ink); cursor: pointer; }

@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; gap: 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--rule-soft); font-size: 1rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule-soft); font-weight: 600; }
  .nav .nav-play { margin-top: 1rem; border: 0; }
}
@media (min-width: 981px) { .nav .nav-play { display: none; } }

/* ---------- Tablet frame ---------- */

.tablet {
  position: relative;
  background: #1c2130;
  border-radius: 26px;
  padding: 12px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.08) inset,
    0 2px 4px rgba(20, 26, 46, .08),
    0 24px 48px -12px rgba(20, 26, 46, .28);
}
.tablet img { border-radius: 15px; width: 100%; aspect-ratio: 1505 / 2048; object-fit: cover; object-position: top; background: #fff; }
.tablet.is-guide img { aspect-ratio: 1280 / 2048; }

/* ---------- Hero ---------- */

.hero { position: relative; padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.hero + .section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .lede { margin-top: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 2.25rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: .9375rem; color: var(--muted); max-width: 36rem; }
.hero-facts span { white-space: nowrap; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 25rem); }
.hero-visual .tablet { position: relative; z-index: 1; }

/* The stave behind the tablet: five lines that extend to the page edge */
.stave {
  position: absolute; left: -2.5rem; right: -100vw; top: 50%;
  height: 64px; transform: translateY(-50%);
  background: repeating-linear-gradient(to bottom, rgba(10, 99, 224, .3) 0 1px, transparent 1px 16px);
  background-size: 100% 65px;
  background-repeat: no-repeat;
  transform-origin: left center;
}
.stave::before { /* opening bar line */
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 65px; background: rgba(10, 99, 224, .3);
}
@media (prefers-reduced-motion: no-preference) {
  .stave { animation: stave-in 1.4s cubic-bezier(.2,.7,.2,1) .15s both; }
  @keyframes stave-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 13ch; }
  .hero-visual { width: min(100%, 20rem); margin-top: 1rem; }
  .stave { left: -100vw; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section + .section { border-top: 1px solid var(--rule-soft); }
.section.tint { background: var(--paper-2); border-top: 0; }
.section.tint + .section { border-top: 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lede { margin-top: 1.25rem; }

/* ---------- Workflow system (a staff divided into measures) ---------- */

.system { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; margin: 0; padding: 0; }
.measure { position: relative; padding-right: 1.25rem; }
.measure .mark {
  display: inline-grid; place-items: center;
  min-width: 2rem; height: 2rem; padding-inline: .4rem;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font: 700 1rem/1 var(--serif);
  transition: background-color .3s, color .3s, transform .3s;
  margin-bottom: .9rem;
}
.measure .staff {
  height: 41px; margin-bottom: 1.25rem; margin-right: -1.25rem;
  background: repeating-linear-gradient(to bottom, rgba(10, 99, 224, .35) 0 1px, transparent 1px 10px);
  background-size: 100% 41px; background-repeat: no-repeat;
  border-left: 1px solid rgba(10, 99, 224, .35);
}
.measure:last-child .staff { position: relative; margin-right: 0; }
.measure:last-child .staff::after { /* final double bar: thin + thick */
  content: ""; position: absolute; right: 0; top: 0; height: 41px; width: 9px;
  border-left: 1px solid var(--blue); border-right: 4px solid var(--blue);
}
.measure h3 { margin-bottom: .35rem; }
.measure p { font-size: .9375rem; color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .system { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .measure:nth-child(2n) .staff { margin-right: 0; }
}
@media (max-width: 520px) {
  .system { grid-template-columns: 1fr; row-gap: 0; border-top: 1px solid var(--rule); }
  .measure { display: grid; grid-template-columns: 2.75rem 1fr; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
  .measure .mark { grid-row: span 2; margin: 0; }
  .measure .staff { display: none; }
}

/* ---------- Feature rows ---------- */

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(4rem, 9vw, 7rem); }
.feature-row .copy { max-width: 31rem; }
.feature-row .copy .lede { margin-top: 1.25rem; }
.feature-row .visual { width: min(100%, 23rem); justify-self: center; }
.feature-row.flip .visual { order: -1; }

.points { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.points li { padding: .9rem 0; border-bottom: 1px solid var(--rule); font-size: .98rem; color: var(--ink-2); }
.points strong { color: var(--ink); font-weight: 600; }

@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip .visual { order: 0; }
  .feature-row .visual { width: min(100%, 19rem); }
}

/* ---------- Plans table ---------- */

.plans { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.plan-table { width: 100%; min-width: 30rem; border-collapse: collapse; font-size: .98rem; }
.plan-table th, .plan-table td { text-align: left; padding: 1rem .75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.plan-table thead th { font-weight: 600; font-size: .9375rem; border-bottom: 1.5px solid var(--ink); padding-top: 0; }
.plan-table tbody th { font-weight: 400; color: var(--ink-2); padding-left: 0; }
.plan-table thead th:first-child { padding-left: 0; }
.plan-table .pro { background: #e6f4fe; color: var(--ink); font-weight: 600; }
.plan-table thead .pro { background: transparent; color: var(--blue); }
.plan-table .no { color: #9aa0b0; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Stage (dark) ---------- */

.stage { position: relative; overflow: hidden; background: var(--stage); background-image: radial-gradient(ellipse 70% 90% at 100% 100%, rgba(7, 80, 230, .9), transparent 70%), radial-gradient(ellipse 50% 60% at 85% 0%, rgba(16, 220, 244, .35), transparent 70%); color: var(--stage-text); }
.stage > .wrap { position: relative; z-index: 1; }
.stage .h2, .stage .display, .stage .h3, .stage strong { color: #fff; }
.stage .lede { color: var(--stage-text); }
.stage .kicker { color: var(--cyan); }
.stage .points { border-color: rgba(255,255,255,.14); }
.stage .points li { border-color: rgba(255,255,255,.14); color: var(--stage-text); }
.stage .text-link { color: #fff; text-decoration-color: rgba(255,255,255,.3); }
.stage .text-link:hover { text-decoration-color: var(--cyan); }
.section.stage + .section { border-top: 0; }

.privacy-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.never-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
.never-list li { padding: .85rem 0; border-top: 1px solid rgba(255,255,255,.14); color: #fff; }
.never-list li span { display: block; font-size: .875rem; color: #8f97ab; }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .never-list { grid-template-columns: 1fr; } }

/* ---------- Video ---------- */

.video-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.phone {
  width: min(100%, 19rem);
  background: #1c2130; border-radius: 28px; padding: 10px;
  box-shadow: 0 24px 48px -12px rgba(20, 26, 46, .28);
}
.phone .frame { aspect-ratio: 9 / 16; border-radius: 19px; overflow: hidden; background: #000; }
.phone iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } .phone { justify-self: center; } }

/* ---------- Closing CTA ---------- */

.closing { text-align: left; }
.closing-inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; }
.closing .h2 { max-width: 16ch; }

/* ---------- Page header (inner pages) ---------- */

.page-head { background: linear-gradient(180deg, #e8f6fe 0%, rgba(232, 246, 254, 0) 100%); padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.page-head .display { font-size: clamp(2.5rem, 5.4vw, 4.25rem); max-width: 16ch; }
.page-head .lede { margin-top: 1.5rem; }

/* ---------- Feature index (features page) ---------- */

.group { display: grid; grid-template-columns: 15rem 1fr; gap: 2rem clamp(2rem, 5vw, 4rem); padding-block: 2.75rem; border-top: 1px solid var(--rule); }
.group:last-child { border-bottom: 1px solid var(--rule); }
.group-title { font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; }
.group-title + p { margin-top: .6rem; font-size: .9375rem; color: var(--muted); }
.group dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
.group dt { font-weight: 600; margin-bottom: .35rem; }
.group dd { margin: 0; color: var(--muted); font-size: .98rem; }
.pro-tag { display: inline-block; margin-left: .4rem; font-size: .75rem; font-weight: 600; color: var(--blue); border: 1px solid #b9dcef; border-radius: 4px; padding: .05rem .35rem; vertical-align: .12em; }
@media (max-width: 860px) { .group { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .group dl { grid-template-columns: 1fr; } }

/* ---------- Gallery (screenshots page) ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3.5vw, 3rem); }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 1.5rem; }
.gallery figcaption h2 { font: 600 1.0625rem/1.35 var(--sans); margin-bottom: .4rem; }
.gallery figcaption p { font-size: .9375rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .gallery { grid-template-columns: 1fr; max-width: 21rem; margin-inline: auto; } }

/* ---------- Quotes ---------- */

.quotes { display: grid; gap: 0; }
.quote { margin: 0; display: grid; grid-template-columns: 1fr 14rem; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--rule); align-items: end; }
.quote:last-child { border-bottom: 1px solid var(--rule); }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.22; max-width: 26ch; text-indent: -.42em; }
.quote figcaption { font-size: .9375rem; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .quote { grid-template-columns: 1fr; gap: 1.25rem; } }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline;
  padding: 1.35rem 0; font-weight: 500; font-size: 1.0625rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 400 1.5rem/1 var(--sans); color: var(--muted); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--blue-deep); }
.faq-list details p { margin: -.35rem 0 1.5rem; color: var(--ink-2); max-width: 38rem; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-aside { position: static; } }

/* ---------- Guide ---------- */

.guide-layout { display: grid; grid-template-columns: 15rem 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.guide-nav { position: sticky; top: calc(var(--header-h) + 1.5rem); max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; padding-bottom: 1rem; }
.guide-search { width: 100%; font: 400 .9375rem var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: .65rem .8rem; margin-bottom: 1.25rem; }
.guide-search:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px #d6ecf8; }
.guide-nav ol { list-style: none; margin: 0; padding: 0; counter-reset: g; }
.guide-nav li { counter-increment: g; }
.guide-nav a { display: flex; gap: .75rem; padding: .45rem 0 .45rem .85rem; text-decoration: none; font-size: .9375rem; color: var(--muted); border-left: 1.5px solid var(--rule); transition: color .15s, border-color .15s; }
.guide-nav a::before { content: counter(g, decimal-leading-zero); font-variant-numeric: tabular-nums; color: #a3a9b8; font-size: .8125rem; padding-top: .1em; }
.guide-nav a:hover { color: var(--ink); }
.guide-nav a.active { color: var(--ink); border-left-color: var(--ink); font-weight: 500; }
.guide-empty { font-size: .9375rem; color: var(--muted); }

.chapter { display: grid; grid-template-columns: 1fr 16rem; gap: clamp(2rem, 4vw, 3.5rem); padding-block: 3rem; border-top: 1px solid var(--rule); align-items: start; }
.chapter:first-child { border-top: 0; padding-top: 0; }
.chapter-num { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: .75rem; }
.chapter h2 { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.12; margin-bottom: 1rem; }
.chapter .intro { color: var(--ink-2); }
.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.steps li { position: relative; padding: .8rem 0 .8rem 1.5rem; border-top: 1px solid var(--rule-soft); color: var(--ink-2); font-size: .98rem; }
.steps li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: .5rem; height: 1px; background: var(--ink); }
.chapter .tablet { border-radius: 20px; padding: 9px; }
.chapter .tablet img { border-radius: 12px; }
@media (max-width: 1000px) { .chapter { grid-template-columns: 1fr; } .chapter .tablet { width: min(100%, 17rem); } }
@media (max-width: 860px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-nav { position: static; max-height: none; }
  .guide-nav ol { columns: 2; column-gap: 1.5rem; }
}
@media (max-width: 480px) { .guide-nav ol { columns: 1; } }

.ref-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.ref-table th, .ref-table td { text-align: left; padding: .85rem .75rem .85rem 0; border-bottom: 1px solid var(--rule); }
.ref-table thead th { font-weight: 600; border-bottom: 1.5px solid var(--ink); }
.ref-table td:first-child { font-weight: 500; white-space: nowrap; }
.ref-table td:last-child { color: var(--ink-2); }

/* ---------- Download ---------- */

.download-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.download-grid .visual { position: relative; width: min(100%, 22rem); justify-self: center; }
.download-grid .visual .tablet, .hero-visual .tablet { z-index: 1; }
@media (max-width: 860px) { .download-grid { grid-template-columns: 1fr; } .download-grid .visual { width: min(100%, 18rem); } }

/* ---------- Legal text ---------- */

.prose { max-width: 42rem; }
.prose h1 { font-family: var(--serif); font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.08; margin-bottom: .75rem; }
.prose h2 { font: 600 1.25rem/1.3 var(--sans); margin: 2.75rem 0 .85rem; }
.prose h3 { font: 600 1.0625rem/1.35 var(--sans); margin: 2rem 0 .6rem; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.75; }
.prose ul { padding-left: 1.2rem; margin: 1rem 0 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--muted); }
.prose a { color: var(--blue-deep); text-underline-offset: .2em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .updated { color: var(--muted); font-size: .9375rem; margin-bottom: 2rem; }
.prose .summary { background: var(--paper-2); border-left: 2px solid var(--ink); padding: 1.5rem 1.75rem; margin: 2rem 0; }
.prose .summary h2 { margin-top: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .85rem .75rem .85rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
.prose thead th { color: var(--ink); font-weight: 600; border-bottom: 1.5px solid var(--ink); }
.prose td:first-child { width: 32%; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0 1.5rem; }
.prose footer p { font-size: .875rem; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer { border-top: 3px solid transparent; border-image: var(--brand) 1; padding-block: 3.5rem 2.5rem; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h2 { font: 600 .875rem/1.4 var(--sans); color: var(--ink); margin-bottom: .9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .55rem; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); }
.footer-about p { color: var(--muted); max-width: 22rem; margin-top: 1rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule-soft); color: var(--muted); font-size: .875rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* =========================================================
   Brand color and motion
   ========================================================= */

/* Hero: gradient orb with a thin orbiting arc, like the logo's swoosh */
.orb {
  position: absolute; z-index: 0;
  width: 116%; aspect-ratio: 1; left: -8%; top: 50%;
  translate: 0 -50%;
  border-radius: 50%;
  background: var(--brand);
}
.orb-ring {
  position: absolute; inset: -5%;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--cyan);
  border-right-color: rgba(10, 149, 240, .35);
}
.orb-ring.two { inset: -9%; border-width: 1px; border-top-color: transparent; border-right-color: transparent; border-bottom-color: rgba(7, 80, 230, .45); border-left-color: rgba(16, 220, 244, .5); }

/* Notes landing on the stave beside the tablet */
.note { position: absolute; width: 15px; height: 11px; border-radius: 50%; background: var(--royal); rotate: -22deg; }
.note::after { content: ""; position: absolute; right: 0; bottom: 5px; width: 1.5px; height: 36px; background: var(--royal); rotate: 22deg; transform-origin: bottom; }
.note.n1 { left: calc(25rem + 4.5rem);  top: 26px; }
.note.n2 { left: calc(25rem + 7.5rem);  top: 18px; background: var(--sky); }
.note.n2::after { background: var(--sky); }
.note.n3 { left: calc(25rem + 10.5rem); top: 34px; }
.note.n4 { left: calc(25rem + 13.5rem); top: 10px; background: var(--cyan); }
.note.n4::after { background: var(--cyan); }

@media (max-width: 900px) {
  .orb { width: 118%; left: -9%; }
  .note.n1 { left: calc(100vw - 6rem); } .note.n2 { left: calc(100vw - 4rem); }
  .note.n3, .note.n4 { display: none; }
}

/* Workflow: a playhead sweeps across the measures and lights each mark */
.system::after {
  content: ""; position: absolute; top: 2.9rem; height: 41px; left: 0; width: 2px;
  background: var(--brand); border-radius: 2px; opacity: 0;
  box-shadow: 0 0 12px rgba(16, 220, 244, .8);
}
.system.play .measure .mark { background: var(--blue); background-image: linear-gradient(160deg, var(--sky), var(--royal)); border-color: transparent; color: #fff; }
@media (max-width: 520px) { .system::after { display: none; } }

/* Closing band in the logo's gradient */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(110deg, #0645d6 0%, #0a7fee 55%, #10cdf0 100%);
  color: #fff;
  padding-block: clamp(4rem, 9vw, 6.5rem);
}
.cta-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.cta-band .h2 { color: #fff; max-width: 15ch; }
.cta-band p { color: rgba(255, 255, 255, .85); font-size: 1.125rem; max-width: 30rem; margin: 1.25rem 0 2rem; }
.cta-band .text-link { color: #fff; text-decoration-color: rgba(255, 255, 255, .45); }
.cta-band .text-link:hover { text-decoration-color: #fff; }
.cta-logo { position: relative; justify-self: center; width: min(100%, 17rem); aspect-ratio: 683 / 900; }
.cta-logo img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 18px 30px rgba(4, 30, 120, .35)); }
.wave { position: absolute; left: 50%; top: 55%; width: 120%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); opacity: 0; }
@media (max-width: 760px) { .cta-inner { grid-template-columns: 1fr; } .cta-logo { width: 11rem; order: -1; justify-self: start; } }

/* Privacy section watermark */
.stage-mark { position: absolute; z-index: 0; right: -6rem; bottom: -8rem; width: min(42rem, 80vw); opacity: .08; pointer-events: none; }

/* Download page app icon */
.app-icon { width: 88px; height: 88px; border-radius: 22px; margin-bottom: 1.75rem; box-shadow: 0 14px 30px -10px rgba(7, 80, 230, .55); }

/* ---------- Motion (only when the visitor hasn't asked for less) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .orb { animation: spin 48s linear infinite; }
  .orb-ring { animation: spin 18s linear infinite; }
  .orb-ring.two { animation: spin 30s linear infinite reverse; }
  .hero-visual .tablet { animation: rise 1s cubic-bezier(.2, .7, .2, 1) .2s both; }
  .hero h1, .hero .lede, .hero-actions, .hero-facts { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .lede { animation-delay: .1s; } .hero-actions { animation-delay: .2s; } .hero-facts { animation-delay: .3s; }
  .note { animation: land .5s cubic-bezier(.3, 1.6, .5, 1) both; }
  .note.n1 { animation-delay: 1.1s; } .note.n2 { animation-delay: 1.35s; } .note.n3 { animation-delay: 1.6s; } .note.n4 { animation-delay: 1.85s; }

  .system.play::after { animation: playhead 2.6s cubic-bezier(.45, 0, .55, 1) forwards; }
  .system .measure .mark { transition-duration: .35s; }
  .system.play .measure:nth-child(1) .mark { transition-delay: .05s; }
  .system.play .measure:nth-child(2) .mark { transition-delay: .45s; }
  .system.play .measure:nth-child(3) .mark { transition-delay: .85s; }
  .system.play .measure:nth-child(4) .mark { transition-delay: 1.25s; }
  .system.play .measure:nth-child(5) .mark { transition-delay: 1.65s; }
  .system.play .measure:nth-child(6) .mark { transition-delay: 2.05s; }

  .cta-logo img { animation: bob 6s ease-in-out infinite; }
  .wave { animation: wave 4.5s ease-out infinite; }
  .wave.w2 { animation-delay: 1.5s; } .wave.w3 { animation-delay: 3s; }
  .stage-mark { animation: drift 24s ease-in-out infinite alternate; }

  html.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .8s cubic-bezier(.2, .7, .2, 1), translate .8s cubic-bezier(.2, .7, .2, 1); }
  html.js .reveal.in { opacity: 1; translate: 0 0; }
  html.js .reveal .tablet { transition: rotate 1.1s cubic-bezier(.2, .7, .2, 1); rotate: 3deg; }
  html.js .reveal.flip-in .tablet { rotate: -3deg; }
  html.js .reveal.in .tablet { rotate: 0deg; }

  .tablet { transition: translate .35s, box-shadow .35s; }
  .gallery figure:hover .tablet { translate: 0 -6px; box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 30px 50px -14px rgba(7, 80, 230, .45); }
  .measure:hover .mark { transform: translateY(-2px); }

  @keyframes spin { to { rotate: 360deg; } }
  @keyframes rise { from { opacity: 0; translate: 0 24px; } }
  @keyframes bob { 50% { translate: 0 -10px; } }
  @keyframes land { from { opacity: 0; transform: translateY(-26px); } }
  @keyframes playhead { 0% { left: 0; opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
  @keyframes wave { 0% { opacity: .7; scale: .55; } 100% { opacity: 0; scale: 1.15; } }
  @keyframes drift { to { translate: -3rem -2rem; rotate: -8deg; } }
}

/* Keep decorative orbs from causing sideways scroll on phones */
main { overflow-x: clip; }

/* ---------- Contact form ---------- */

.contact-form { display: grid; gap: 1.5rem; background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: clamp(1.25rem, 4vw, 2.25rem); box-shadow: 0 24px 60px -32px rgba(7, 80, 230, .35); position: relative; }
.contact-form::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 14px 14px 0 0; background: var(--brand); }
.contact-form fieldset { border: 0; margin: 0; padding: 0; }
.contact-form legend, .field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .55rem; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.topic { display: flex; flex-wrap: wrap; gap: .5rem; }
.topic legend { width: 100%; }
.topic label { cursor: pointer; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic span { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--rule); border-radius: 999px; font-size: .95rem; color: var(--ink-2); background: var(--paper); transition: border-color .2s, background .2s, color .2s; }
.topic label:hover span { border-color: var(--sky); }
.topic input:checked + span { background: linear-gradient(135deg, #0a95f0, #0750e6); border-color: transparent; color: #fff; }
.topic input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field input, .field textarea { width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: .7rem .85rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px #d6ecf8; }
.field textarea::placeholder { color: #8a90a2; }
.help { margin: .4rem 0 0; font-size: .85rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.form-foot .btn { cursor: pointer; padding-inline: 1.5rem; }
.form-foot .btn:disabled { opacity: .7; cursor: progress; transform: none; }
.form-status { margin: 0; font-size: .95rem; }
.form-status.ok { color: #0a7a4b; font-weight: 600; }
.form-status.err { color: #b42318; font-weight: 600; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
