/* pocket sfx website. colours = src/ui/styles.py, type = dm mono, like the app. */

@font-face { font-family: "DM Mono"; font-weight: 300; font-display: swap; src: url(/fonts/dm-mono-300.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 400; font-display: swap; src: url(/fonts/dm-mono-400.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 500; font-display: swap; src: url(/fonts/dm-mono-500.woff2) format("woff2"); }

:root {
  --bg: #E5E5E0; --canvas: #F5F5F1; --tile: #F5F5F1; --hover: #D8D8D2; --border: #BDBDB6;
  --line: #141414; --on-line: #F5F5F1; --text: #141414; --dim: #4F4F4A; --off: #76766F;
  --accent: #FF5F00; --accent-text: #C24400; --record: #E8261E; --armed: #F2B200;
  --fade: #3D63DD; --success: #13A058; --ink: #141414;
  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 50px -24px rgba(0,0,0,.28);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1A19; --canvas: #111110; --tile: #232321; --hover: #2C2C2A; --border: #3D3D39;
    --line: #F2F2EC; --on-line: #141413; --text: #F2F2EC; --dim: #B0B0A8; --off: #8A8A82;
    --accent: #FF6A14; --accent-text: #FF7A2E; --record: #FF3B30; --armed: #F5BE1E;
    --fade: #6B8BFF; --success: #2EC27E;
    --shadow: 0 1px 0 rgba(255,255,255,.03), 0 24px 60px -30px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1A1A19; --canvas: #111110; --tile: #232321; --hover: #2C2C2A; --border: #3D3D39;
  --line: #F2F2EC; --on-line: #141413; --text: #F2F2EC; --dim: #B0B0A8; --off: #8A8A82;
  --accent: #FF6A14; --accent-text: #FF7A2E; --record: #FF3B30; --armed: #F5BE1E;
  --fade: #6B8BFF; --success: #2EC27E;
  --shadow: 0 1px 0 rgba(255,255,255,.03), 0 24px 60px -30px rgba(0,0,0,.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 400 15px/1.6 "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
       -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: var(--border); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 14px; }
h1, h2, h3 { font-weight: 500; margin: 0; letter-spacing: -0.02em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.dim { color: var(--dim); }
.off { color: var(--off); }
.skip, .sr { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--canvas); padding: 6px 12px; }

/* ---- top bar ---- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent);
       backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 16px; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
:root[data-theme="dark"] .brand img { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img { filter: invert(1); } }
.nav { display: flex; gap: 6px; }
.nav a { text-decoration: none; color: var(--dim); padding: 4px 10px; border-radius: 99px; font-size: 14px; }
.nav a:hover { color: var(--text); background: var(--hover); }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
         color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; }
.theme:hover { background: var(--hover); }
.theme svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.theme .i-moon { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme .i-moon { display: block; }
}

/* ---- buttons, keys ---- */
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 99px;
        padding: 7px 16px; font-size: 14px; line-height: 1.3; text-decoration: none; white-space: nowrap;
        color: var(--text); background: transparent; transition: background .12s, color .12s; }
.pill:hover { background: var(--hover); }
.pill.solid { background: var(--line); color: var(--on-line); }
.pill.solid:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.pill.big { padding: 11px 22px; font-size: 15px; }
.top .pill { padding: 6px 14px; }
kbd { font: inherit; font-size: .88em; display: inline-block; min-width: 1.9em; text-align: center; padding: 0 .55em;
      border: 1px solid var(--line); border-radius: 99px; line-height: 1.45; white-space: nowrap; }
code { font: inherit; font-size: .92em; background: var(--canvas); border: 1px solid var(--border);
       border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.dot.rec { background: var(--record); }

/* ---- type ---- */
.label { color: var(--accent-text); font-size: 14px; margin-bottom: 14px; display: block; }
.cap { color: var(--off); font-size: 13px; display: block; margin-bottom: 8px; }
h1 { font-size: clamp(36px, 5vw, 66px); line-height: 1.04; letter-spacing: -0.035em; }
.nowrap { white-space: nowrap; }
h1 .dim { color: var(--off); }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; margin-bottom: 18px; }
h3 { font-size: 17px; letter-spacing: -0.01em; margin-bottom: 6px; }
.lead { font-size: 17px; line-height: 1.6; color: var(--dim); max-width: 640px; }
.prose > * { max-width: 780px; }
.prose h2 { font-size: clamp(24px, 2.8vw, 32px); margin: 56px 0 14px; }
.prose h3 { margin-top: 28px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--off); }

/* ---- sections ---- */
section { padding: 96px 0; border-top: 1px solid var(--border); }
section.first { border-top: 0; }
.hero { padding: 72px 0 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: end; }
.hero .lead { margin: 26px 0 30px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--dim); font-size: 13px; }
.meta span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
                     background: var(--off); margin-right: 8px; vertical-align: 2px; }
.hero-shot { margin-top: 56px; }
.page-head { padding: 72px 0 8px; }
.page-head h1 { font-size: clamp(34px, 5vw, 60px); }
.page-head .lead { margin-top: 22px; }

/* screenshots: one per theme, the other one is never shown (and lazy ones never load) */
.shot { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--canvas);
        box-shadow: var(--shadow); }
.shot img { width: 100%; }
.shot .on-dark { display: none; }
:root[data-theme="dark"] .shot .on-dark { display: block; }
:root[data-theme="dark"] .shot .on-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot .on-dark { display: block; }
  :root:not([data-theme="light"]) .shot .on-light { display: none; }
}
figure { margin: 0; }
figcaption { color: var(--off); font-size: 13px; margin-top: 12px; }

/* a feature: text on one side, picture on the other */
.feat { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 64px; align-items: start; }
.feat.flip { grid-template-columns: minmax(0, 1fr) 400px; }
/* a wide feature: heading and actions in a row, the picture full width underneath */
.wide-head { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 64px; margin-bottom: 44px; }
.acts4 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.acts4 .act:nth-child(-n+2) { margin-top: 0; }
.feat.flip .txt { order: 2; }
.feat > *, .hero-grid > *, .wide-head > * { min-width: 0; }
.feat .txt { position: sticky; top: 100px; }
.act { margin: 22px 0 0; }
.act p { margin: 0; color: var(--dim); }
.act h3 { display: flex; gap: 10px; align-items: baseline; }
.act h3 .n { color: var(--accent-text); font-size: 13px; font-weight: 400; }
.pro { margin-top: 28px; border-left: 2px solid var(--accent); padding: 2px 0 2px 14px; color: var(--dim); font-size: 14px; }
.pro b { color: var(--accent-text); font-weight: 500; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }

/* the little live auto-mode card in the hero */
.live { background: var(--tile); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px 12px;
        box-shadow: var(--shadow); font-size: 13px; }
.live-top { display: flex; justify-content: space-between; align-items: center; color: var(--dim); margin-bottom: 12px; }
.live-top .state { display: inline-flex; gap: 8px; align-items: center; color: var(--text); }
.live-top .state .dot { background: var(--armed); }
.live.rec .live-top .state .dot { background: var(--record); }
.meter { position: relative; height: 54px; background: var(--canvas); border: 1px solid var(--border); border-radius: 6px;
         overflow: hidden; margin-bottom: 12px; }
.meter canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.meter .thr { position: absolute; left: 6px; top: 2px; font-size: 10.5px; color: var(--armed); line-height: 1; }
.takes { list-style: none; margin: 0; padding: 0; height: 158px; overflow: hidden; }
.takes li { display: flex; justify-content: space-between; padding: 5px 2px; border-bottom: 1px solid var(--border); }
.takes li:last-child { border-bottom: 0; }
.takes li span:last-child { color: var(--off); }
.takes li.new { animation: land .5s ease-out; background: color-mix(in srgb, var(--accent) 16%, transparent); }
@keyframes land { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* cards, tables, lists */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.card { background: var(--tile); border: 1px solid var(--border); border-radius: 12px; padding: 24px; display: flex;
        flex-direction: column; text-decoration: none; transition: border-color .12s; }
a.card:hover { border-color: var(--line); }
.card p { color: var(--dim); margin: 0 0 18px; }
.card .more { margin-top: auto; font-size: 14px; }
.card .more::after { content: " ->"; color: var(--accent-text); }
.card .num { color: var(--accent-text); font-size: 13px; margin-bottom: 18px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--border); }
th { font-weight: 500; }
thead th { color: var(--off); font-weight: 400; font-size: 13px; }
td:first-child, th:first-child { white-space: nowrap; padding-right: 28px; }
.specs td:first-child { color: var(--dim); width: 1%; }
.tablewrap { overflow-x: auto; margin: 24px 0; }
.yes { color: var(--success); }
.no { color: var(--off); }

.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: s; }
.steps li { position: relative; padding-left: 46px; margin-bottom: 18px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px;
                    border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; }

.tree { background: var(--canvas); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px;
        white-space: pre; overflow-x: auto; font-size: 13.5px; line-height: 1.7; }
.tree i { font-style: normal; color: var(--off); }

/* faq */
.faqs { max-width: 820px; margin-top: 28px; }
details.faq { border-bottom: 1px solid var(--border); }
details.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 500; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 15px; width: 24px; height: 24px; border-radius: 50%;
                             border: 1px solid var(--line); display: grid; place-items: center; font-weight: 400; }
details.faq[open] summary::after { content: "-"; }
details.faq > div { padding: 0 0 20px; color: var(--dim); max-width: 720px; }
details.faq > div p:last-child { margin-bottom: 0; }

/* buy block */
.buybox { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; background: var(--tile);
          border: 1px solid var(--border); border-radius: 16px; padding: 44px; }
.price { font-size: clamp(56px, 8vw, 96px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.price small { font-size: 18px; letter-spacing: 0; color: var(--off); font-weight: 400; margin-left: 8px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; color: var(--dim); }
.ticks li::before { content: ""; display: inline-block; width: 10px; height: 6px; border-left: 1.5px solid var(--success);
                    border-bottom: 1.5px solid var(--success); transform: rotate(-45deg) translateY(-3px); margin-right: 12px; }

/* footer */
.foot { border-top: 1px solid var(--border); padding: 56px 0 36px; font-size: 14px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 6px; }
.foot li a { text-decoration: none; color: var(--dim); }
.foot li a:hover { color: var(--text); }
.foot .brand { margin-bottom: 14px; }
.foot .fine { margin-top: 40px; font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot .fine a { color: var(--off); }
.foot .fine span:empty { display: none; }
mark.todo { background: var(--accent); color: var(--ink); padding: 0 4px; border-radius: 3px; }
.taxnote { color: var(--off); font-size: 13px; margin-top: 8px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; }
.legal .lang { margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--border); }

/* ---- small screens ---- */
@media (max-width: 1000px) {
  .hero-grid, .feat, .feat.flip, .wide-head { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feat.flip .txt { order: 0; }
  .feat .txt { position: static; }
  .live { max-width: 420px; }
  .cards { grid-template-columns: 1fr; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .buybox { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 16px; }
  .bar { gap: 8px 12px; flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; }
  .nav { order: 3; width: 100%; overflow-x: auto; margin: 0 -10px; }
  .nav a { font-size: 13.5px; }
  section { padding: 64px 0; }
  .hero { padding-top: 44px; }
  .split, .ticks, .acts4 { grid-template-columns: 1fr; }
  .acts4 .act:nth-child(2) { margin-top: 22px; }
  .foot .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
