/* Ichor website. Colours and type follow the plugin: violet / cyan accents on a near-black blue. */
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("/fonts/barlow-semicondensed-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("/fonts/barlow-semicondensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0d1018;
  --panel: #151a26;
  --well: #11151f;
  --line: #1e2433;
  --edge: #2a3142;
  --edge-strong: #3a4256;
  --text: #e9edf5;
  --dim: #b7becd;
  --faint: #8e96aa;
  --violet: #a78bfa;
  --violet-hi: #c4b5fd;
  --cyan: #50e3d1;
  --ice: #7aa2f7;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 "Barlow", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--violet); }
a:hover { color: var(--violet-hi); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--violet); color: var(--bg); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* header / footer */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand span { font-size: 20px; font-weight: 400; letter-spacing: 0.32em; }
.main-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; flex-grow: 1; font-size: 16px; }
.main-nav a, .legal-nav a { color: var(--dim); text-decoration: none; }
.main-nav a:hover, .legal-nav a:hover { color: var(--text); }
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 14px; color: var(--faint); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer p { margin: 0; flex-basis: 100%; }

/* type */
h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.05; font-weight: 600; letter-spacing: -0.01em; }
h1.page { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
h2 { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.2; }
h3 { margin: 0 0 10px; font-size: 22px; font-weight: 600; }
.eyebrow { margin: 0 0 18px; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 500; font-size: 15px; letter-spacing: 0.06em; color: var(--faint); text-transform: uppercase; }
.kicker { margin: 0 0 8px; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 15px; letter-spacing: 0.06em; color: var(--violet); text-transform: uppercase; }
.min0 { min-width: 0; }
.end { align-items: flex-end; }
.lead { margin: 0 0 24px; }
.note { margin: 14px 0 0; }
.mb28 { margin-bottom: 28px; }
.mb40 { margin-bottom: 40px; }
.pay { margin: 16px 0 0; font-size: 15px; color: #d5dae5; }
.pay + p { margin-top: 6px; }
.wide-wrap { max-width: 1248px; }
.gap20 { gap: 20px; }
.center { display: flex; justify-content: center; }
.corner b.a { background: var(--violet); } .corner b.b { background: var(--cyan); }
.corner b.c { background: var(--ice); } .corner b.d { background: #d9def0; }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.prose p, .prose li { color: var(--dim); }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose ul { padding-left: 22px; }

/* layout */
section { padding: 72px 0 24px; }
.hero { padding: 72px 0 40px; }
.page-top { padding: 64px 0 8px; }
.split { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.split > * { min-width: 0; }
.grow-2 { flex: 1 1 560px; }
.grow-1 { flex: 1 1 340px; }
.half { flex: 1 1 420px; }
.wide { flex: 1 1 520px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.feature { padding: 56px 0; border-bottom: 1px solid var(--line); align-items: center; }
.feature:first-of-type { padding-top: 0; }
.feature:last-child { border-bottom: 0; padding-bottom: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; font: 600 16px/1 "Barlow", sans-serif; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--violet); color: var(--bg); }
.btn-primary:hover { background: var(--violet-hi); color: var(--bg); }
.btn-ghost { border-color: var(--edge-strong); color: var(--text); font-weight: 500; background: transparent; }
.btn-ghost:hover { border-color: var(--violet); color: var(--text); }
.btn-small { min-height: 44px; padding: 0 20px; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* cards */
.card { padding: 16px 18px; border-radius: 10px; background: var(--panel); border: 1px solid var(--edge); }
.card-title { font-weight: 600; }
.card-text { color: var(--dim); font-size: 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.panel { padding: 28px; border-radius: 12px; border: 1px solid var(--edge); }
.panel.raised { background: var(--panel); border-color: #3a3466; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding: 28px 32px; border-radius: 12px; background: var(--panel); border: 1px solid var(--edge); }
.banner h2 { font-size: 24px; margin-bottom: 6px; }
.banner p { margin: 0; }
.feature h3 { font-size: 26px; margin-bottom: 14px; }
.feature p { margin: 0 0 12px; }
.prose code { font-size: 15px; color: var(--text); background: var(--well); padding: 1px 6px; border-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { padding: 8px 14px; border-radius: 18px; border: 1px solid var(--violet); color: var(--text); font-size: 15px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price { font-size: 30px; font-weight: 600; }
.price.later { font-size: 18px; font-weight: 500; color: var(--dim); }
.ticks { margin: 16px 0 24px; padding: 0 0 0 20px; color: var(--dim); }

/* screenshot */
.shot { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--edge); }
.caption { margin: 12px 0 0; font-size: 14px; color: var(--faint); }

/* demo tiles */
.tiles { display: flex; flex-wrap: wrap; gap: 16px; }
.tile { flex: 1 1 240px; min-width: 0; padding: 16px; border-radius: 10px; background: var(--panel); border: 1px solid var(--edge); display: flex; flex-direction: column; gap: 14px; }
.tile-head { display: flex; align-items: center; gap: 14px; }
.play { flex: none; width: 44px; height: 44px; border-radius: 22px; border: 2px solid var(--violet); background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.play:hover { background: rgba(167, 139, 250, 0.12); }
.play .icon-pause { display: none; }
.tile.playing .play { background: var(--violet); }
.tile.playing .play .icon-play { display: none; }
.tile.playing .play .icon-pause { display: block; }
.tile-name { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-cat { font-size: 14px; color: var(--faint); }
.wave { width: 100%; height: 40px; display: block; }
.wave .done { stroke: var(--violet); }

/* morph pad drawing */
.pad { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1 / 1; background: var(--well); border: 1px solid var(--edge); border-radius: 12px; }
.pad svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.corner { position: absolute; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.corner b { width: 26px; height: 26px; border-radius: 13px; color: var(--bg); font-weight: 600; display: flex; align-items: center; justify-content: center; }
.corner.tl { left: 14px; top: 14px; } .corner.tr { right: 14px; top: 14px; }
.corner.bl { left: 14px; bottom: 14px; } .corner.br { right: 14px; bottom: 14px; }

/* faq / changelog */
.list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.list > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.list h3 { font-size: 18px; margin: 0 0 6px; }
.list p { margin: 0; color: var(--dim); }
.release { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.release-ver { flex: 0 1 200px; min-width: 0; }
.release-ver .ver { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 18px; color: var(--cyan); }
.release p { flex: 1 1 480px; min-width: 0; }

/* forms */
.field { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }
.field input { flex: 1 1 280px; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--edge-strong); background: var(--well); color: var(--text); font: 17px "Barlow", sans-serif; }
.field input:focus { outline: none; border-color: var(--violet); }
.status { min-height: 28px; margin: 8px 0 0; color: var(--cyan); }
.status.error { color: #f7a1a1; }

@media (max-width: 640px) {
  section { padding-top: 56px; }
  .hero { padding-top: 48px; }
  .banner, .panel { padding: 22px; }
}
