/* EDL2PTX homepage. Values follow design/Main.dc.html (dark theme). Only change: logo middle bar is orange. */

@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/familjen-latin.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: "Familjen Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/familjen-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Spline Sans Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/splinemono-latin.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: "Spline Sans Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/splinemono-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --accent: #4C8DFF;
  --logo-orange: #FF9F43;
  --logo-green: #7BD389;
  --bg: #1B2028;
  --text: #E7EAEE;
  --ink: #E8E9EC;
  --soft: #C3CAD3;
  --dim: #9AA4B1;
  --link: #6FD1BE;
  --link-hover: #A6E6DA;
  --window: #12161C;
  --card: #1E242D;
  --card-2: #1A1F27;
  --field: #141920;
  --line-1: #252C36;
  --line-2: #2C3440;
  --line-3: #333C49;
  --line-4: #3A4452;
  --clip-blue: #3A6E9F;
  --clip-green: #2F7F70;
  --clip-red: #9A4D67;
  --clip-text: #EAF2FA;
  --ok: #7BD389;
  --err: #FF8A8A;
  --err-bg: #3A2026;
  --err-line: #6B3540;
  --sans: "Familjen Grotesk", sans-serif;
  --mono: "Spline Sans Mono", monospace;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); min-width: 1280px; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.page { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.5; min-height: 100vh; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-header { padding: 20px 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-1); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.wordmark { font-weight: 700; font-size: 22px; }
.wordmark .two { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-nav a { color: var(--soft); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav .outline { color: var(--ink); border: 1px solid var(--line-4); border-radius: 8px; padding: 7px 16px; }

/* Hero */
.hero { padding: 48px 32px 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.hero h1 { margin: 0; font-weight: 700; font-size: 60px; line-height: 1.05; letter-spacing: -0.025em; }
.hero p { margin: 0; font-size: 18px; color: var(--soft); max-width: 720px; }

/* Converter window */
.converter { padding: 0 32px 28px; }
.window { background: var(--window); border: 1px solid var(--line-3); border-radius: 14px; box-shadow: 0 0 0 1px #07080B, 0 24px 48px rgba(0,0,0,0.45); display: flex; flex-direction: column; }
.titlebar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line-1); font-size: 12px; color: var(--dim); min-height: 18px; }
.titlebar .app-name { display: flex; align-items: center; gap: 8px; }
.titlebar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.titlebar .file { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.win-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.top-row { display: flex; gap: 10px; align-items: stretch; }

/* Left control card */
.controls { flex: 0 0 340px; max-width: 340px; min-width: 0; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; box-sizing: border-box; }
.drop { border: 1.5px dashed var(--line-4); border-radius: 8px; padding: 16px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--card-2); text-align: center; cursor: pointer; min-width: 0; }
.drop.is-over { border-color: var(--accent); }
.drop-title { font-size: 13px; font-weight: 600; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-sub { font-size: 12px; color: var(--dim); }
.drop-sub .browse { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.opt-label { font-size: 12px; color: var(--dim); font-weight: 500; }
.opt select { background: var(--field); color: var(--ink); border: 1px solid var(--line-4); border-radius: 6px; padding: 5px 8px; font-size: 12px; font-family: inherit; }
.opt .static { padding: 5px 0; font-size: 12px; color: var(--ink); }
.note { font-size: 11px; color: var(--dim); }
.note-detected { color: var(--ok); }
.tick { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink); cursor: pointer; }
.tick input { accent-color: var(--accent); width: 14px; height: 14px; margin: 0; }
.error-box { border: 1px solid var(--err-line); background: var(--err-bg); color: var(--err); border-radius: 8px; padding: 8px 10px; font-size: 12px; }
.error-box strong { display: block; font-weight: 600; }
.error-box span { color: var(--soft); }
.dl-area { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: auto; }
.dl-btn { width: 72%; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #FFFFFF; border: 0; border-radius: 8px; padding: 9px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; }
.dl-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.dl-meta { text-align: center; font-size: 12px; color: var(--dim); }
.dl-done { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ok); }
.dl-support { font-size: 12px; color: var(--dim); text-decoration: underline; text-underline-offset: 2px; }
.dl-support:hover { color: var(--ink); }

/* Events card */
.events-card { flex: 2 1 520px; min-width: 0; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-head h2 { margin: 0; font-size: 13px; font-weight: 600; }
.card-head .meta { font-size: 12px; color: var(--dim); }
.events-scroll { flex: none; min-width: 0; height: 444px; overflow: auto; background: var(--field); border: 1px solid var(--line-2); border-radius: 6px; position: relative; }
.events { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.events thead tr { text-align: left; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--dim); }
.events th { position: sticky; top: 0; background: var(--card); padding: 6px 10px; border-bottom: 1px solid var(--line-2); font-weight: 600; }
.events tbody { color: var(--ink); }
.events td { padding: 4px 10px; border-bottom: 1px solid var(--line-1); }
.events td.ev { color: var(--dim); }
.events td.dur { color: var(--soft); }
.trk { display: inline-flex; align-items: center; gap: 6px; }
.trk i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.placeholder { position: absolute; inset: 30px 0 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #8A94A3; font-size: 12px; font-family: var(--sans); text-align: center; padding: 0 16px; }
.clapper { opacity: 0.22; }

/* Preview card */
.preview-card { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.preview-tools { display: flex; align-items: center; gap: 10px; }
.range { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.zoom { display: flex; border: 1px solid var(--line-4); border-radius: 6px; overflow: hidden; }
.zoom button { background: var(--field); color: var(--ink); border: 0; height: 22px; font-size: 13px; font-family: inherit; cursor: pointer; }
.zoom button + button { border-left: 1px solid var(--line-4); }
.zoom .z { width: 26px; }
.zoom .fit { padding: 0 9px; font-size: 11px; }
.zoom button:disabled { color: var(--dim); cursor: default; }
.lane-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lane-name { width: 56px; flex: none; font-size: 11px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lane { flex: 1 1 0; min-width: 0; height: 22px; position: relative; overflow: hidden; }
.lane.markers { height: 14px; }
.marker { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--accent); }
.clip { position: absolute; top: 0; bottom: 0; box-sizing: border-box; min-width: 0; border-radius: 3px; font-size: 10px; line-height: 16px; color: var(--clip-text); padding: 3px 5px; font-family: var(--mono); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lane-empty { height: 58px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 10px; color: #8A94A3; font-size: 12px; border: 1px dashed var(--line-2); border-radius: 6px; }
.lane-empty svg { opacity: 0.14; }
.show-all { align-self: flex-start; margin-left: 64px; background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* Empty state (design/Empty-v1.dc.html): before a file is in. Same layout as the filled converter. */
.window[data-state=empty] .titlebar .dot { background: var(--line-4); }
.window[data-state=empty] .drop { border-color: var(--accent); padding: 28px 12px; }
.window[data-state=empty] .drop svg { width: 26px; height: 26px; stroke: var(--soft); }
.window[data-state=empty] .drop-title { font-size: 14px; }
.window[data-state=empty] .opts, .window[data-state=empty] #opt-markers { opacity: 0.45; }
.window[data-state=empty] #opt-markers { cursor: default; }
.window[data-state=empty] .dl-btn:disabled { opacity: 1; background: var(--line-2); color: #8A94A3; }
.window[data-state=empty] .zoom { opacity: 0.45; }
.window[data-state=empty] .zoom button:disabled { color: var(--ink); }
.dl-hint { text-align: center; font-size: 12px; color: var(--dim); }

/* Skipped card */
.skipped-card { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.skip-head { display: flex; align-items: baseline; gap: 10px; }
.skip-head h2 { margin: 0; font-size: 13px; font-weight: 600; }
.skip-count { color: var(--soft); }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.skip-table { width: 100%; border-collapse: collapse; background: var(--field); border: 1px solid var(--line-2); border-radius: 6px; }
.skip-table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--dim); background: var(--card); padding: 6px 10px; border-bottom: 1px solid var(--line-2); }
.skip-table td { padding: 4px 10px; border-bottom: 1px solid var(--line-1); color: var(--ink); vertical-align: top; }
.skip-table td.mono { font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.skip-table .black-row td { color: var(--dim); font-style: italic; }
.skip-dl { align-self: flex-start; font-size: 12px; }
.quiet { margin: 0; color: var(--soft); }

/* Sections */
.section { padding: 56px 32px 64px; display: flex; flex-direction: column; gap: 24px; }
.section h2.big { margin: 0; font-weight: 700; font-size: 30px; letter-spacing: -0.01em; }
.steps { display: flex; gap: 16px; }
.step { flex: 1 1 220px; min-width: 0; border: 1px solid; border-radius: 12px; padding: 22px; display: flex; gap: 14px; }
.step-blue { background: #1A2335; border-color: #2B3F63; }
.step-orange { background: #3D2611; border-color: #B8661F; }
.step-green { background: #1C2A25; border-color: #2F5240; }
.step .n { font-family: var(--mono); font-size: 14px; }
.step-blue .n { color: var(--accent); }
.step-orange .n { color: #FF9F43; }
.step-green .n { color: #7BD389; }
.step h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.step p, .faq-item p { margin: 0; color: var(--soft); font-size: 15px; }
.faq { background: #172030; border-top: 1px solid #263755; border-bottom: 1px solid #263755; margin-bottom: 40px; }
.faq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.faq-item { border-top: 1px solid #2A3A56; padding: 18px 0; }
.faq-item h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }

.support { padding: 0 32px 20px; }
.support-box { border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.support-text { display: flex; align-items: center; gap: 12px; min-width: 0; }
.support-text h2, .updates h2 { margin: 0; font-size: 14px; font-weight: 600; }
.support-text p, .updates p { margin: 0; font-size: 13px; color: var(--soft); }
.btn-accent { background: var(--accent); color: #FFFFFF; border-radius: 6px; padding: 7px 14px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn-accent:hover { color: #FFFFFF; filter: brightness(1.08); }

.updates { padding: 0 32px 28px; }
.updates-form { border-top: 1px solid var(--line-2); padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.updates-form .col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.updates-form .row { display: flex; gap: 8px; flex: 0 1 380px; min-width: 0; }
.updates-form input { flex: 1; min-width: 0; background: var(--field); color: var(--ink); border: 1px solid var(--line-4); border-radius: 6px; padding: 7px 10px; font-size: 13px; font-family: inherit; }
.updates-form button { background: var(--card); color: var(--ink); border: 1px solid var(--line-4); border-radius: 6px; padding: 7px 14px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; }
.updates-thanks { margin: 0; font-size: 13px; color: var(--ok); }

.site-footer { padding: 14px 32px 22px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--dim); }
.site-footer .links { display: flex; gap: 14px; }
.site-footer .links a { color: var(--dim); }

/* Stub pages */
.stub { padding: 40px 32px 80px; }
.stub h1 { margin: 0 0 8px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.stub p { margin: 0; color: var(--soft); }
.privacy { max-width: 680px; }
.privacy h2 { margin: 24px 0 6px; font-size: 16px; font-weight: 600; }
.privacy ul { margin: 0; padding-left: 18px; color: var(--soft); }
.privacy li { margin: 4px 0; line-height: 1.5; }
.privacy p { line-height: 1.5; }
.privacy .updated { margin-top: 24px; font-size: 12px; color: var(--dim); }

/* DEV_SWITCHER_TODO: dev-only state switcher, remove before launch. */
.dev-switcher { position: fixed; right: 12px; bottom: 12px; z-index: 50; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; max-width: 420px; padding: 8px; background: #F2F4F7; color: #12161C; border-radius: 6px; font: 11px/1.4 var(--sans); box-shadow: 0 4px 16px rgba(0,0,0,0.5); }
.dev-switcher b { width: 100%; font-weight: 600; opacity: 0.7; }
.dev-switcher button { font: inherit; font-size: 11px; padding: 3px 7px; border-radius: 3px; border: 1px solid #9AA4B1; background: transparent; color: #12161C; cursor: pointer; }
.dev-switcher button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
