/* Kurgu Tools - editing tools for event videographers.
   Graphite like the editing apps; the only colours are the camera-track labels; tally red marks "live". */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  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: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  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 {
  --graphite: #1d1e21;      /* page */
  --panel: #26272b;         /* raised surfaces */
  --rule: #3a3c41;          /* lines */
  --text: #ecebe7;
  --muted: #a3a29c;
  --cam1: #9a88f2;          /* iris */
  --cam2: #3fb8a9;          /* caribbean */
  --cam3: #e8a64f;          /* mango */
  --cam4: #e9789f;          /* rose */
  --tally: #ff3b30;
  --ok: #7fd07f;
  --bad: #f09a9a;
  --wide: 118%;
  --measure: 34rem;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--graphite); color: var(--text);
  font: 400 1.0625rem/1.6 "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-stretch: 100%;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--cam2); outline-offset: 3px; border-radius: 3px; }
img { max-width: 100%; }
.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }

/* ---- header / footer ---- */
.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 2rem; min-height: 4rem; }
.mark { white-space: nowrap; display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 700;
        font-stretch: var(--wide); letter-spacing: -0.01em; font-size: 1.05rem; }
.mark svg { display: block; }
.nav { display: flex; gap: 1.5rem; margin-left: auto; align-items: center; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.lang { border: 1px solid var(--rule); border-radius: 999px; padding: 0.15rem 0.7rem; color: var(--text) !important; }
.foot { border-top: 1px solid var(--rule); margin-top: 6rem; padding: 2.5rem 0 3rem; color: var(--muted); font-size: 0.9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* ---- type ---- */
h1, h2, h3 { font-stretch: var(--wide); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 1rem; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 750; max-width: 15ch; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
p { margin: 0 0 1rem; max-width: var(--measure); }
.lead { font-size: 1.2rem; color: #d6d5d0; max-width: 32rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font: inherit; font-weight: 600; font-size: 1rem;
       padding: 0.75rem 1.2rem; border-radius: 0.5rem; border: 1px solid var(--rule); background: transparent;
       color: var(--text); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--panel); }
.btn.solid { background: var(--text); color: var(--graphite); border-color: var(--text); }
.btn.solid:hover { background: #fff; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---- hero: the program recording and its cuts dropping into the camera tracks ---- */
.hero { padding: 5.5rem 0 4.5rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3.5rem; align-items: center; }
.tl { margin: 0; background: var(--panel); border: 1px solid var(--rule); border-radius: 0.75rem; padding: 1.1rem 1.1rem 1.25rem;
      font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-head { display: flex; justify-content: space-between; margin-bottom: 0.85rem; }
.live { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text); }
.live::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--tally);
                box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.18); }
.rows { display: grid; grid-template-columns: 5rem 1fr; row-gap: 0.45rem; column-gap: 0.6rem; align-items: center; }
.lane { position: relative; height: 2.1rem; border-radius: 0.3rem; background: rgba(255, 255, 255, 0.035); }
.lane.prog { height: 2.9rem; background: none; }
.gap { height: 0.9rem; }
.seg { position: absolute; top: 0; bottom: 0; border-radius: 0.28rem; }
.prog .seg { background: #4a4b50; border: 1px solid #5a5c62;
             background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 6px); }
.cam .seg { background: var(--c); opacity: 0.95; }
.wave { position: absolute; inset: 0.35rem 0; border-radius: 0.2rem;
        background: repeating-linear-gradient(90deg, rgba(236,235,231,.55) 0 1px, transparent 1px 3px);
        -webkit-mask: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.tl figcaption { margin-top: 0.9rem; }
@media (prefers-reduced-motion: no-preference) {
  .cam .seg { animation: drop 0.9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(0.5s + var(--i) * 0.11s); }
  @keyframes drop {
    from { transform: translateY(calc(var(--row) * -2.55rem - 4.9rem)); background: #55575c; opacity: 0.6; }
    60% { background: var(--c); }
    to { transform: none; opacity: 0.95; }
  }
}

/* ---- sections ---- */
section { padding: 4.5rem 0; }
/* the tour: a SwitchCut-like window - the app's own steps on the left, its real screen on the right */
.tour { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); margin-top: 2.25rem; background: #232323;
        border: 1px solid var(--rule); border-radius: 0.75rem; overflow: hidden; }
.tour-rail { display: flex; flex-direction: column; background: #1b1b1b; border-right: 1px solid #2e2e2e; padding: 0.6rem 0; }
.tour-rail button { text-align: left; font: inherit; color: var(--muted); background: none; border: 0;
                    border-left: 3px solid transparent; padding: 1rem 1.25rem; cursor: pointer; }
.tour-rail button:hover { color: var(--text); }
.tour-rail button[aria-selected="true"] { background: #262626; color: var(--text); border-left-color: var(--c); }
.tour-rail strong { display: block; font-weight: 650; }
.tour-rail .n { color: var(--c); font-weight: 700; margin-right: 0.45rem; }
.tour-rail .d { display: block; font-size: 0.9rem; line-height: 1.5; color: var(--muted); margin-top: 0.35rem; }
.tour-view { position: relative; aspect-ratio: 1.45; }
.tour-view a { position: absolute; inset: 0; display: block; }
.tour-view img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tour-cap { display: none; }
.tl-short { display: none; }
.tour-note { margin-top: 0.9rem; }
.steps { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--c); padding-top: 1.1rem; }
.steps li::before { content: counter(s); display: block; font-stretch: var(--wide); font-weight: 750; font-size: 2rem; color: var(--c); line-height: 1; margin-bottom: 0.8rem; }
.devices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; margin: 2.25rem 0 0; }
.devices div { padding: 1.2rem 0; border-top: 1px solid var(--rule); }
.devices dt { font-weight: 650; margin-bottom: 0.3rem; }
.devices dd { margin: 0; color: var(--muted); max-width: 30rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.band { border: 1px solid var(--rule); border-left: 4px solid var(--tally); border-radius: 0.6rem; padding: 2rem 2.2rem; background: var(--panel); }
.band h2 { margin-bottom: 0.6rem; }

/* ---- download ---- */
.dl { display: grid; gap: 1rem; margin-top: 2rem; max-width: 46rem; }
.dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; justify-content: space-between;
          border: 1px solid var(--rule); border-radius: 0.6rem; padding: 1.3rem 1.5rem; background: var(--panel); }
.dl-row h3 { margin: 0; }
.how { padding-left: 1.2rem; max-width: var(--measure); }
.how li { margin-bottom: 0.5rem; }

/* ---- account ---- */
.page { padding: 4rem 0 2rem; }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 0.75rem; padding: 2rem; max-width: 30rem; }
.tabs { display: flex; gap: 0.4rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.tabs button { font: inherit; font-weight: 600; background: none; border: 0; color: var(--muted); padding: 0.6rem 0.2rem;
               margin-right: 1rem; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--text); border-color: var(--text); }
label { display: block; font-size: 0.92rem; margin: 0 0 0.35rem; color: #d6d5d0; }
input { width: 100%; font: inherit; color: var(--text); background: var(--graphite); border: 1px solid var(--rule);
        border-radius: 0.45rem; padding: 0.7rem 0.8rem; margin-bottom: 1rem; }
input:focus { border-color: var(--cam2); outline: none; }
.pw { position: relative; }
.pw input { padding-right: 5.5rem; }
.pw .show { position: absolute; right: 0.4rem; top: 0.4rem; font: inherit; font-size: 0.85rem; color: var(--muted);
            background: var(--panel); border: 1px solid var(--rule); border-radius: 0.35rem; padding: 0.3rem 0.65rem; cursor: pointer; }
.pw .show:hover { color: var(--text); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.msg { margin: 1rem 0 0; padding: 0.8rem 1rem; border-radius: 0.45rem; background: rgba(255,255,255,.04); max-width: 30rem; }
.msg.ok { color: var(--ok); } .msg.bad { color: var(--bad); }
[hidden] { display: none !important; }
.lic { border-top: 1px solid var(--rule); padding: 1.3rem 0; max-width: 46rem; }
.lic h3 { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; }
.lic h3 small { font-weight: 400; font-stretch: 100%; color: var(--muted); font-size: 0.9rem; letter-spacing: 0; }
.dev { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.6rem 0.9rem; margin-top: 0.5rem;
       background: var(--graphite); border: 1px solid var(--rule); border-radius: 0.45rem; }
.dev .btn { padding: 0.4rem 0.8rem; font-size: 0.9rem; }

/* ---- legal ---- */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.5rem; }
.legal p, .legal li { max-width: none; color: #d6d5d0; }

@media (max-width: 860px) {
  .hero { padding-top: 3rem; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps, .devices { grid-template-columns: 1fr; gap: 1.5rem; }
  .tour { grid-template-columns: 1fr; }
  .tour-rail { flex-direction: row; overflow-x: auto; padding: 0; border-right: 0; border-bottom: 1px solid #2e2e2e; }
  .tour-rail button { flex: 1 0 auto; border-left: 0; border-bottom: 3px solid transparent; padding: 0.8rem 1rem; }
  .tour-rail button[aria-selected="true"] { border-bottom-color: var(--c); }
  .tour-rail .d { display: none; }
  .tl-long { display: none; }
  .tl-short { display: inline; }
  .tour-cap { display: block; padding: 0.9rem 1rem 1.1rem; margin: 0; color: var(--muted); border-top: 1px solid #2e2e2e; }
  .nav { gap: 1rem; }
  .top .wrap { gap: 1rem; }
  .nav .opt { display: none; }
}
