@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter-tight.woff2) format('woff2');
  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: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/newsreader-italic.woff2) format('woff2');
  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;
}

/* Ulysses — one idea per section. Dark scenes carry the story; light sections carry the product. */
:root {
  --night: #07111f;
  --night-2: #0d1b2f;
  --night-line: rgba(255, 255, 255, .09);
  --ink-d: #f3f6fa;
  --dim-d: #a3b2c4;
  --faint-d: #8a9ab0;

  --paper: #ffffff;
  --paper-2: #f4f6f9;
  --ink: #0b1b33;
  --dim: #56647a;
  --line: #e2e7ee;

  --teal: #2bb3cc;          /* from the Ulysses interface gradient */
  --teal-ink: #0b6f88;      /* teal text on white, 5.6:1 */
  --deep: #0b2350;          /* from the Ulysses navigation */

  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1180px;
  --display: clamp(40px, 7vw, 96px);
  --display-sm: clamp(32px, 4.6vw, 60px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--ink-d);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink-d); color: var(--night); padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.dark { background: var(--night); color: var(--ink-d); }
.light { background: var(--paper); color: var(--ink); }
.light.alt { background: var(--paper-2); }

/* ---------- Type ---------- */
.eyebrow { margin: 0 0 18px; font: 600 13px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.light .eyebrow { color: var(--teal-ink); }
h1, .display, .display-sm { margin: 0; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.display { font-size: var(--display); line-height: 1.02; }
.display-sm { font-size: var(--display-sm); line-height: 1.06; }
.dark .display em, .dark h1 em, .dark .display-sm em { color: var(--dim-d); }
.light .display em, .light .display-sm em { color: var(--dim); }
.lede { margin: 24px 0 0; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--dim-d); text-wrap: pretty; }
.light .lede, .light p { color: var(--dim); }
.center .lede { margin-inline: auto; max-width: 40ch; }
.note { margin: 28px 0 0; font-size: 15px; color: var(--dim); }
.dark .note { color: var(--dim-d); }
.fine { margin: 56px auto 0; max-width: 60ch; font-size: 14px; color: var(--faint-d); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--sans); color: var(--night); background: var(--ink-d);
  border: 0; border-radius: 999px; padding: 13px 22px; cursor: pointer; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 40px -10px rgba(43, 179, 204, .7); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.btn-block { width: 100%; }
.light .btn { background: var(--ink); color: #fff; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--ink-d); padding: 10px 4px; }
.link-arrow::after { content: " \2192"; display: inline-block; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  background: rgba(7, 17, 31, .72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--night-line);
}
.nav-in { display: flex; align-items: center; gap: 32px; height: 60px; width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.brand img { width: 118px; height: auto; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nav nav { margin-left: auto; }
.nav ul a { text-decoration: none; color: var(--dim-d); transition: color .2s; }
.nav ul a:hover { color: var(--ink-d); }
@media (max-width: 820px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(120px, 16vh, 180px) 0 clamp(64px, 10vw, 120px); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 52%; width: 1400px; height: 900px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(43, 179, 204, .22), rgba(11, 35, 80, .18) 55%, transparent 75%);
  pointer-events: none;
}
.hero h1 { font-size: clamp(46px, 8.6vw, 124px); line-height: .98; letter-spacing: -0.045em; }
.hero .lede { max-width: 46ch; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 36px; }
.hero-shot { margin: clamp(56px, 8vw, 96px) auto 0; width: min(var(--max), 100% - 2 * var(--gutter)); perspective: 2000px; }
.hero-shot .frame { transform-origin: 50% 0; box-shadow: 0 60px 160px -40px rgba(43, 179, 204, .45), 0 30px 80px -30px rgba(0, 0, 0, .9); }
figcaption { margin-top: 16px; font-size: 13px; color: var(--faint-d); text-align: center; }
.light figcaption { color: var(--dim); }

/* Product frame: the interface is the photograph */
.frame {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 100px -40px rgba(0, 0, 0, .8);
}
.frame img { width: 100%; }
.frame-light { box-shadow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(11, 27, 51, .35); }
.frame.tall { max-width: 330px; margin-inline: auto; }

/* ---------- Social proof ---------- */
.trust { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); border-top: 1px solid var(--night-line); }
.trust-title { margin: 0; font: 600 13px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.trust-sub { margin: 12px auto 0; max-width: 52ch; font-size: 15px; color: var(--faint-d); }
.logos { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px clamp(28px, 4.5vw, 56px); }
.logos img { height: 40px; width: auto; max-width: 150px; object-fit: contain; opacity: .62; transition: opacity .3s; }
.logos img.sq { height: 54px; }
.logos li:hover img { opacity: 1; }
@media (max-width: 560px) {
  .logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; gap: 32px 16px; }
  .logos img { height: 34px; max-width: 130px; } .logos img.sq { height: 48px; }
}

/* ---------- Scenes ---------- */
.scene { position: relative; padding: clamp(110px, 16vw, 200px) 0; }
.block { padding: clamp(96px, 13vw, 168px) 0; }
.intro { max-width: 820px; margin-bottom: clamp(48px, 7vw, 80px); }
.intro.center { margin-inline: auto; }

.problems { list-style: none; padding: 0; margin: 56px auto 0; display: grid; gap: 0; max-width: 560px; text-align: left; }
.problems li { padding: 18px 0; border-top: 1px solid var(--night-line); color: var(--dim-d); font-size: 18px; }
.problems li:last-child { border-bottom: 1px solid var(--night-line); }
.problems span { color: var(--ink-d); font-weight: 600; }

/* The thread: a single bright line before the product appears */
.answer { background: linear-gradient(var(--night), var(--night-2)); }
.thread {
  width: min(760px, 80vw); height: 2px; margin: 0 auto 72px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--teal) 22%, #fff 50%, var(--teal) 78%, transparent);
  box-shadow: 0 0 32px 4px rgba(43, 179, 204, .45), 0 0 120px 18px rgba(43, 179, 204, .16);
}
.steps-inline { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.steps-inline li { padding: 8px 16px; border: 1px solid var(--night-line); border-radius: 999px; font-size: 14px; color: var(--dim-d); }

/* ---------- Close-ups and callouts ---------- */
.closeup { margin: 0; }
.annotated { overflow: visible; }
.closeup .frame, .inline-shot .frame { max-width: 100%; }
.annotated img { border-radius: var(--radius); }
.pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; color: var(--ink); font: 700 13px/1 var(--sans);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .28), 0 6px 18px rgba(0, 0, 0, .3);
}
.legend { counter-reset: n; list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.legend li { counter-increment: n; position: relative; padding-top: 44px; font-size: 15px; color: var(--dim); }
.legend li::before {
  content: counter(n); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #fff; font: 700 13px/1 var(--sans);
}
.legend b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
@media (max-width: 900px) { .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .pin { width: 20px; height: 20px; font-size: 11px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .28); }
  .legend { grid-template-columns: 1fr; gap: 20px; }
}

/* Phones: screenshots always fit the screen; tapping one opens it full screen to zoom and read */
.pan-hint { display: none; }
@media (max-width: 700px) {
  .pan { cursor: zoom-in; }
  .pan-hint { display: block; margin: 10px 0 0; font-size: 13px; color: var(--dim); text-align: center; }
  .pin { width: 16px; height: 16px; font-size: 9px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
}
.zoom { position: fixed; inset: 0; z-index: 200; margin: 0; padding: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; background: rgba(7, 17, 31, .96); overflow: auto; -webkit-overflow-scrolling: touch; }
.zoom::backdrop { background: rgba(7, 17, 31, .96); }
.zoom-img { display: block; width: 1100px; max-width: none; height: auto; margin: 72px 16px 24px; border-radius: 10px; background: #fff; }
.zoom-close { position: fixed; top: 14px; right: 14px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font: 600 22px/1 var(--sans); cursor: pointer; }
.zoom-tip { position: fixed; top: 24px; left: 16px; margin: 0; font-size: 13px; color: var(--dim-d); }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.split-media { margin: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.facts { margin: 40px 0 0; }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; color: var(--ink); }
.facts dd { margin: 0; color: var(--dim); }
@media (max-width: 420px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

.status-key { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: var(--ink); }
.status-key li { display: inline-flex; align-items: center; gap: 10px; }
.status-key i { width: 10px; height: 10px; border-radius: 50%; }
.s-overdue { background: #d32f2f; } .s-pending { background: #f2a33a; } .s-progress { background: #1f6fd1; } .s-not { background: #a7afba; }

/* ---------- Approval modes ---------- */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 920px; margin: 0 auto; }
.mode { padding: 36px; border: 1px solid var(--night-line); border-radius: var(--radius); background: rgba(255, 255, 255, .02); }
.mode svg { width: 100%; max-width: 280px; height: auto; margin-bottom: 24px; }
.mode .edge { fill: none; stroke: var(--teal); stroke-width: 1.5; opacity: .7; }
.mode .n { fill: var(--night); stroke: var(--ink-d); stroke-width: 1.5; }
.mode .n-src { fill: var(--teal); }
.mode h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.mode p { margin: 0; color: var(--dim-d); }
@media (max-width: 720px) { .modes { grid-template-columns: 1fr; } .mode { padding: 28px; } }
.states { list-style: none; padding: 0; margin: 56px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; font-size: 14px; }
.states li { display: inline-flex; align-items: center; gap: 12px; color: var(--dim-d); }
.states li + li::before { content: ""; width: 32px; height: 1px; background: var(--faint-d); }

/* ---------- Lifecycle ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: linear-gradient(90deg, var(--deep), var(--teal)); border-radius: 2px; }
.timeline li { position: relative; padding: 36px 20px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--teal-ink); }
.timeline b { display: block; font-size: 17px; letter-spacing: -0.01em; }
.timeline span { display: block; margin-top: 6px; font-size: 14px; color: var(--dim); }
@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; background: linear-gradient(var(--deep), var(--teal)); }
  .timeline li { padding: 0 0 28px 40px; }
}
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(56px, 8vw, 96px); }
.card { padding: 32px; border-radius: var(--radius); background: var(--paper-2); }
.card h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 16px; }
.card b { color: var(--ink); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Reporting tour ---------- */
/* Default (mobile, no JS): three stacked steps, each with its own screenshot. */
.tour-stage { display: none; }
.tour-step { padding: 0 0 56px; }
.tour-step + .tour-step { border-top: 1px solid var(--line); padding-top: 40px; }
.step-n { margin: 0 0 10px; font: 600 13px/1 var(--sans); letter-spacing: .14em; color: var(--teal-ink) !important; }
.tour-step h3 { margin: 0 0 10px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.025em; }
.tour-step p { margin: 0; max-width: 46ch; }
.inline-shot { margin: 28px 0 0; }
.tour-cap { margin: 14px 0 0; font-size: 13px; text-align: center; }

/* Desktop with JS: a sticky stage. Scrolling through the section moves from the whole dashboard to two close-ups. */
@media (min-width: 1024px) {
  .tour.tour-on { height: 280vh; }
  .tour.tour-on .tour-sticky { position: sticky; top: 76px; height: calc(100vh - 92px); display: flex; flex-direction: column; justify-content: center; }
  .tour.tour-on .tour-stage { display: block; width: min(100%, (100vh - 400px) * 2.017); margin-inline: auto; }
  .tour.tour-on .tour-stage .frame { aspect-ratio: 2400 / 1190; background: none; box-shadow: none; overflow: visible; }
  .tour.tour-on .tour-stage img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(11, 27, 51, .35); opacity: 0; transform: scale(.96); transition: opacity .6s var(--ease), transform .8s var(--ease); }
  .tour.tour-on .tour-stage img.on { opacity: 1; transform: none; }
  .tour.tour-on .tour-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 28px; }
  .tour.tour-on .tour-step { padding: 18px 0 0; border: 0; border-top: 2px solid var(--line); transition: border-color .4s; }
  .tour.tour-on .tour-step h3 { color: var(--dim); transition: color .4s; }
  .tour.tour-on .tour-step.on { border-top-color: var(--teal-ink); }
  .tour.tour-on .tour-step.on h3 { color: var(--ink); }
  .tour.tour-on .tour-step h3 { font-size: 20px; }
  .tour.tour-on .tour-step p { font-size: 15px; }
  .tour.tour-on .inline-shot { display: none; }
}

/* ---------- Quality ---------- */
.grid-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--night-line); }
.grid-facts div { padding: 32px 32px 36px 0; border-bottom: 1px solid var(--night-line); }
.grid-facts dt { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.grid-facts dd { margin: 8px 0 0; color: var(--dim-d); font-size: 16px; }
@media (max-width: 900px) { .grid-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-facts { grid-template-columns: 1fr; } .grid-facts div { padding-right: 0; } }

.family p a { color: var(--teal-ink); text-underline-offset: 3px; }
.family p { margin: 24px auto 0; max-width: 56ch; font-size: 18px; }

/* ---------- Demo form ---------- */
.demo { background: radial-gradient(80% 60% at 20% 0%, rgba(43, 179, 204, .14), transparent 70%), var(--night); }
.demo-split { align-items: start; }
.contact-alt { list-style: none; padding: 0; margin: 40px 0 0; }
.contact-alt li { display: grid; grid-template-columns: 5rem 1fr; padding: 14px 0; border-top: 1px solid var(--night-line); }
.contact-alt li:last-child { border-bottom: 1px solid var(--night-line); }
.contact-alt span { color: var(--faint-d); }
.contact-alt a { text-decoration: none; }
.contact-alt a:hover { text-decoration: underline; }

.form { padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--night-2); border: 1px solid var(--night-line); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; gap: 0; } }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--ink-d); }
.field abbr { text-decoration: none; color: var(--teal); }
.opt { color: var(--faint-d); font-weight: 400; margin-left: 4px; }
.field input, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink-d);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 13px 14px;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 3px rgba(43, 179, 204, .25); }
.field [aria-invalid="true"] { border-color: #ff8a80; }
.field .err { display: block; margin-top: 6px; font-size: 13px; color: #ffb4ab; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin-top: 6px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); }
.check label { font-weight: 400; color: var(--dim-d); margin: 0; }
.check a { color: var(--ink-d); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: 8px; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-msg { margin: 16px 0 0; min-height: 1.5em; font-size: 15px; color: var(--dim-d); }
.form-msg.ok { color: #8fe3c0; }
.form-msg.bad { color: #ffb4ab; }

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 24px; max-width: 64ch; }

/* ---------- Footer ---------- */
.foot { padding: 72px 0 32px; border-top: 1px solid var(--night-line); font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.foot h2 { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint-d); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--dim-d); text-decoration: none; }
.foot a:hover { color: var(--ink-d); }
.foot-brand img { width: 140px; }
.foot-brand p { margin: 16px 0 0; color: var(--dim-d); }
.foot address { font-style: normal; color: var(--dim-d); line-height: 1.8; }
.foot-by { margin-top: 56px; }
.foot-by a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 22px; border: 1px solid var(--night-line); border-radius: 14px; text-decoration: none; color: var(--dim-d); transition: border-color .2s, color .2s; }
.foot-by a:hover { border-color: rgba(255, 255, 255, .25); color: var(--ink-d); }
.foot-by img { width: 132px; height: auto; opacity: .9; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 13px; color: var(--faint-d); }
.foot-base p { margin: 0; }
@media (max-width: 900px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-in { grid-template-columns: 1fr; } }

/* ---------- Simple pages ---------- */
.page { padding: 140px 0 96px; min-height: 70vh; }
.page h1 { font-size: var(--display-sm); line-height: 1.06; }
.page h2 { margin: 40px 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.page p, .page li { color: var(--dim); max-width: 68ch; }
.page a { color: var(--teal-ink); }


/* ---------- Interactive home screen ---------- */
.try { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; width: fit-content; margin: 0 auto 18px; padding: 8px 16px; border: 1px solid var(--night-line); border-radius: 999px; background: rgba(255, 255, 255, .04); font-size: 14px; color: var(--dim-d); }
.try b { color: var(--ink-d); font-weight: 600; }
.try-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(43, 179, 204, .6); }
.hotspots { position: absolute; inset: 0; }
.hs {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%);
  border-radius: 6px; cursor: pointer; outline: none;
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.hs:hover, .hs:focus-visible { background: rgba(43, 179, 204, .10); box-shadow: 0 0 0 2px var(--teal), 0 0 28px 4px rgba(43, 179, 204, .55); }
.hs.wide:hover, .hs.wide:focus-visible { background: rgba(43, 179, 204, .05); }
.hs::after {
  content: attr(data-go); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px);
  padding: 7px 12px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 12px/1 var(--sans); white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); z-index: 2;
}
.hs.side::after { left: calc(100% + 10px); bottom: auto; top: 50%; transform: translate(-4px, -50%); }
.hs.wide::after { bottom: auto; top: 10px; }
.hs:hover::after, .hs:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.hs.side:hover::after, .hs.side:focus-visible::after { transform: translate(0, -50%); }
.hs.beacon::before {
  content: ""; position: absolute; right: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 0 rgba(43, 179, 204, .7); pointer-events: none;
}
.hs.side.beacon::before { right: 8px; top: 50%; margin-top: -5px; }
.explored .hs.beacon::before { display: none; }
.hero-chips { display: none; }
@media (max-width: 700px) {
  .hotspots, .try { display: none; }
  .hero-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; }
  .hero-chips span { width: 100%; text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 2px; }
  .hero-chips a { padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: 14px; color: var(--ink-d); text-decoration: none; background: rgba(255, 255, 255, .04); }
  .hero-chips a:active { background: rgba(43, 179, 204, .2); }
}

/* Back to the home screen, after jumping from a hotspot */
.back-home {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%);
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 14px/1 var(--sans); text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .12);
}
.back-home:hover { background: var(--deep); }

/* Landing highlight on the section or panel a hotspot opened */
.arrived .eyebrow::after { content: ""; display: inline-block; vertical-align: middle; width: 72px; height: 2px; margin-left: 12px; border-radius: 2px; background: currentColor; transform-origin: left; }
.repo.arrived { box-shadow: 0 0 0 2px var(--teal-ink), 0 20px 50px -20px rgba(11, 111, 136, .45); }

/* ---------- Repositories ---------- */
.repos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(56px, 8vw, 96px); }
.repo { padding: 32px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line); scroll-margin-top: 110px; transition: box-shadow .4s; }
.repo-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(160deg, var(--deep), #1d6f97); margin-bottom: 20px; }
.repo-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.repo h3 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.repo-tag { margin: 4px 0 12px; font-size: 14px; font-weight: 600; color: var(--teal-ink) !important; }
.repo p:last-child { margin: 0; font-size: 16px; }
@media (max-width: 900px) { .repos { grid-template-columns: 1fr; } }

/* ---------- Create: template illustration ---------- */
.create-split { align-items: center; }
.split-text p + p { margin-top: 16px; }
.tmpl { padding: 24px; border-radius: 20px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(11, 27, 51, .35); }
.tmpl-search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--dim); font-size: 15px; }
.tmpl-search svg { width: 18px; height: 18px; fill: none; stroke: var(--dim); stroke-width: 2; }
.tmpl-cats { list-style: none; padding: 0; margin: 16px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tmpl-cats li { padding: 7px 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 14px; color: var(--ink); }
.tmpl-cats li.on { background: var(--ink); color: #fff; box-shadow: none; }
.tmpl-fields { list-style: none; padding: 18px; margin: 0; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 12px; }
.tmpl-fields li { display: grid; grid-template-columns: 9.5rem 1fr; align-items: center; gap: 12px; font-size: 14px; color: var(--ink); }
.tmpl-fields i { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--line), #eef1f5); }
.tmpl-fields li:nth-child(odd) i { width: 70%; } .tmpl-fields li:nth-child(even) i { width: 85%; }
.cards-one { grid-template-columns: minmax(0, 720px); }
.timeline b a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.timeline b a:hover { text-decoration-color: var(--teal-ink); }

@media (prefers-reduced-motion: no-preference) {
  .try-dot, .hs.beacon::before { animation: beacon 1.8s ease-out infinite; }
  @keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(43, 179, 204, .65); } 80%, 100% { box-shadow: 0 0 0 12px rgba(43, 179, 204, 0); } }
  .arrived .eyebrow::after { animation: sweep .9s var(--ease) both; }
  @keyframes sweep { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
  .back-home:not([hidden]) { animation: pop .35s var(--ease) both; }
  @keyframes pop { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
}

/* ---------- Motion: enhancement only. Content is fully visible without it. ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    @keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

    .thread { animation: draw linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
    @keyframes draw { from { transform: scaleX(.04); opacity: .2; } to { transform: none; opacity: 1; } }

    @media (min-width: 768px) {
      .hero-shot .frame { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
      @keyframes settle { from { transform: rotateX(18deg) scale(.94); } to { transform: none; } }
    }
  }
  .hero .eyebrow, .hero h1, .hero .lede, .hero .ctas { animation: enter 1s var(--ease) both; }
  .hero h1 { animation-delay: .08s; } .hero .lede { animation-delay: .16s; } .hero .ctas { animation-delay: .24s; }
  @keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
