/* The Editor's Friend — Notes2Markers site */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-var.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-400.woff") format("woff"); font-weight: 400 500; font-display: swap; }
:root {
  --paper: #f2f3f5;
  --surface: #ffffff;
  --ink: #22262b;
  --ink-soft: #565d66;
  --rule: #d9dce1;
  --accent: #7e6193;        /* the app's Avid purple */
  --accent-strong: #6a4f7e;
  --accent-ink: #ffffff;
  --bay: #2f343b;            /* timeline panel */
  --bay-2: #3b4149;
  --bay-text: #c9ced6;
  --m-red: #e5484d; --m-green: #30a46c; --m-blue: #3e63dd;
  --m-cyan: #05a2c2; --m-magenta: #8e4ec6; --m-yellow: #f5d90a;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 66ch;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1d2025; --surface: #262a30; --ink: #e8eaed; --ink-soft: #a7adb6;
    --rule: #3a3f46; --accent: #a68bba; --accent-strong: #bba3cf; --accent-ink: #1d1426;
    --bay: #15181c; --bay-2: #23272d; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1d2025; --surface: #262a30; --ink: #e8eaed; --ink-soft: #a7adb6;
  --rule: #3a3f46; --accent: #a68bba; --accent-strong: #bba3cf; --accent-ink: #1d1426;
  --bay: #15181c; --bay-2: #23272d; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono, code, kbd { font-family: var(--mono); font-size: .86em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 17px; } }

/* type scale (1.25) */
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.45rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 650; line-height: 1.25; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.22rem; color: var(--ink-soft); max-width: 38em; }

/* header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.12rem; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand small { font-weight: 400; color: var(--ink-soft); font-size: .82rem; }
.nav { margin-left: auto; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { font-weight: 650; }
@media (max-width: 720px) { .nav .hide-sm { display: none; } .site-head .wrap { gap: 12px; } .nav { gap: 16px; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 620; font-size: 1rem; line-height: 1;
  padding: 15px 22px; border-radius: 8px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; min-height: 48px;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-plain { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-plain:hover { border-color: var(--ink-soft); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }
.nav .btn { padding: 11px 16px; min-height: 40px; font-size: .92rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.fine { font-size: .88rem; color: var(--ink-soft); }

/* hero */
.hero { padding: 72px 0 40px; }
.hero h1 { max-width: 16ch; }
@media (max-width: 600px) { .hero { padding: 44px 0 28px; } }

/* the demo: notes become markers */
.demo {
  margin-top: 48px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); background: var(--surface);
}
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } }
.mail { padding: 22px 24px 24px; border-right: 1px solid var(--rule); }
@media (max-width: 860px) { .mail { border-right: 0; border-bottom: 1px solid var(--rule); } }
.mail-head { font-size: .86rem; color: var(--ink-soft); border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 14px; }
.mail-head b { color: var(--ink); font-weight: 600; }
.mail-body { font-size: .95rem; line-height: 1.5; }
.mail-body .ln { display: block; padding: 3px 8px; margin: 0 -8px; border-radius: 5px; transition: background-color .25s; }
.mail-body .tc { font-family: var(--mono); font-size: .84em; }
.mail-body .ln.on { background: color-mix(in srgb, var(--c) 18%, transparent); }
.mail-body .who { font-weight: 620; margin-top: 8px; }
.mail-body .head { font-weight: 620; letter-spacing: .02em; margin-top: 10px; font-size: .86rem; color: var(--ink-soft); }

.bay { background: var(--bay); color: var(--bay-text); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.bay .timeline { margin: auto 0; }
.bay-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .84rem; }
.bay-top .seq { font-weight: 600; color: #fff; }
.bay-top .count { font-family: var(--mono); }
.timeline { position: relative; padding-top: 30px; }
.ruler { position: relative; height: 22px; border-bottom: 1px solid #59606a; font-family: var(--mono); font-size: 10.5px; color: #8d949e; }
.ruler span { position: absolute; bottom: 4px; transform: translateX(-50%); white-space: nowrap; }
.ruler span:first-child { transform: none; }
.ruler span:last-child { transform: translateX(-100%); }
.track { position: relative; height: 44px; margin-top: 6px; display: flex; gap: 2px; }
.track i { display: block; height: 100%; background: #56606c; border-radius: 2px; }
.track.v2 i { background: #4a535e; }
.track b { display: block; height: 100%; }
.track.a i { height: 26px; background: #3f6b5c; }
.track.a { height: 26px; }
.track-label { position: absolute; left: -2px; font-family: var(--mono); font-size: 10px; color: #8d949e; }
.timeline .pins { position: absolute; left: 0; right: 0; top: 0; height: 30px; }
.pin {
  position: absolute; top: 4px; width: 12px; height: 18px; margin-left: -6px;
  background: var(--c); clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
  opacity: 1; transform: none; transition: opacity .3s, transform .35s cubic-bezier(.2,.9,.3,1.3);
}
.pin.est { outline: 2px dashed var(--c); outline-offset: 1px; background: transparent; clip-path: none; height: 12px; width: 12px; margin-left: -6px; top: 7px; border-radius: 50%; }
.pin::after { content: ""; position: absolute; left: 50%; top: 18px; width: 1px; height: 400px; background: var(--c); opacity: .0; }
.pin.cur::after { opacity: .55; }
.demo.play .pin { opacity: 0; transform: translateY(-14px); }
.demo.play .pin.in { opacity: 1; transform: none; }
.readout {
  border-top: 1px solid #4a5059; padding-top: 12px; min-height: 76px; font-size: .92rem;
  display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline;
}
.readout .r-tc { font-family: var(--mono); color: #fff; font-size: .9rem; }
.readout .r-name { font-size: .8rem; display: flex; align-items: center; gap: 6px; }
.readout .r-name::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, #888); }
.readout .r-text { grid-column: 1 / -1; color: #e6e9ee; }
.readout .r-est { font-family: var(--mono); font-size: .72rem; color: #c9b6d8; }
.bay-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; font-size: .84rem; }
.files { display: flex; gap: 8px; flex-wrap: wrap; }
.file { font-family: var(--mono); font-size: .76rem; border: 1px solid #59606a; border-radius: 5px; padding: 5px 8px; color: #e6e9ee; }
.replay { font: inherit; font-size: .84rem; color: var(--bay-text); background: none; border: 1px solid #59606a; border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.replay:hover { color: #fff; border-color: #8d949e; }

/* sections */
.section { padding: 88px 0 0; }
.section:last-of-type { padding-bottom: 96px; }
@media (max-width: 600px) { .section { padding-top: 64px; } }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* written → marker table */
.pairs { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; font-size: .95rem; }
.pairs th { text-align: left; font-weight: 600; font-size: .84rem; color: var(--ink-soft); padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.pairs td { padding: 13px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.pairs tr:last-child td { border-bottom: 0; }
.pairs td:first-child { font-family: var(--mono); font-size: .82rem; width: 46%; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .pairs, .pairs tbody, .pairs tr, .pairs td { display: block; width: 100%; }
  .pairs thead { display: none; }
  .pairs td:first-child { width: 100%; border-bottom: 0; padding-bottom: 2px; }
}

.shot { margin: 36px 0 0; }
.shot img { border-radius: 12px; border: 1px solid var(--rule); box-shadow: 0 18px 40px -24px rgba(34, 38, 43, .35); }
.shot figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 12px; max-width: var(--measure); }

/* editors */
.editors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 32px; border-top: 2px solid var(--ink); }
.editors > div { padding: 20px 24px 8px 0; }
.editors > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.editors .ext { font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); }
.editors ol { padding-left: 1.2em; margin: 12px 0 0; font-size: .95rem; }
.editors li { margin-bottom: 6px; }
@media (max-width: 860px) {
  .editors { grid-template-columns: 1fr; }
  .editors > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

.facts { list-style: none; padding: 0; margin: 20px 0 0; }
.facts li { padding: 12px 0; border-top: 1px solid var(--rule); max-width: var(--measure); }
.facts li:last-child { border-bottom: 1px solid var(--rule); }

/* pricing */
.price {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 36px;
}
@media (max-width: 720px) { .price { grid-template-columns: 1fr; padding: 24px; } }
.amount { font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.amount small { font-size: 1.1rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; margin-left: 6px; }
.price ul { margin: 18px 0 0; padding-left: 1.1em; }
.price li { margin-bottom: 6px; }

/* faq */
.faq details { border-top: 1px solid var(--rule); max-width: 760px; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 620; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; font-weight: 400; color: var(--ink-soft); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; }

/* inner pages */
.page { padding: 56px 0 96px; }
.page h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); max-width: none; }
.page h2 { font-size: 1.5rem; margin-top: 2em; }
.page h3 { margin-top: 1.6em; }
.page ul, .page ol { max-width: var(--measure); padding-left: 1.2em; }
.page li { margin-bottom: 6px; }
.prose { max-width: 760px; }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 28px 0; }
@media (max-width: 720px) { .dl-grid { grid-template-columns: 1fr; } }
.dl { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 24px; }
.dl h2 { margin-top: 0; font-size: 1.35rem; }
.note { background: var(--surface); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 8px 8px 0; max-width: 760px; }

/* footer */
.site-foot { border-top: 1px solid var(--rule); padding: 36px 0 44px; font-size: .9rem; color: var(--ink-soft); }
.site-foot .wrap { display: grid; gap: 14px; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { color: var(--ink); }
.site-foot p { max-width: 70ch; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 520px) { .ruler .hide-xs { display: none; } }
