/* SWARM design tokens — single source for colours. Swap this file to change the palette.
   Values come from Vision E; status colours approved by Kameramann 3.12.2026. */
:root{
  color-scheme:dark;
  /* surfaces */
  --bg:#0E1413; --bg2:#131B19; --card:#111917; --raise:#18221F; --raise-h:#1F2B27;
  /* text + lines */
  --ink:#F4EFE6; --mute:#B4B8AC; --line:#26332F; --line-strong:#5F756D;
  /* honey accent */
  --honey:#FFC54D; --edge:#FFE3A1; --amber:#E39A1C; --amber2:#D98A14; --deep:#8A4A08;
  --onhoney:#1A1003; --honey-soft:rgba(255,197,77,.12); --honey-ring:rgba(255,197,77,.22);
  /* honey material: light to dark (landing page gradients, glass, combs) */
  --honey-50:#FFF6DC; --honey-100:#FFF1CC; --honey-200:#FFD877; --honey-400:#F4A622;
  --honey-600:#C97F12; --honey-650:#B4780F; --honey-700:#B4680C; --honey-750:#A9690F;
  --honey-800:#7A4A10; --honey-850:#6B3606; --honey-900:#2A1C0A;
  /* deeper surfaces */
  --bg-0:#020403; --bg-1:#0B100F; --bg-3:#101917; --bg-4:#141D1B; --bg-5:#182220;
  /* wax moth side of the comparison: intentionally colourless */
  --moth-1:#D8D6CB; --moth-2:#C9C9BF; --moth-3:#A3A69C; --moth-4:#4C514C;
  /* status */
  --ok:#5FD08A; --ok-soft:rgba(95,208,138,.13);
  --info:#6FB7FF; --info-soft:rgba(111,183,255,.13);
  --alert:#F0965A; --alert-soft:rgba(240,150,90,.14);
  --bad:#FF6B5E; --bad-soft:rgba(255,107,94,.13);
  --idle:#8C938A; --idle-soft:rgba(140,147,138,.14);
  /* washes, scrims, shadows (replace the literals that used to live in app.css) */
  --wash-1:rgba(255,255,255,.04); --wash-2:rgba(255,255,255,.08); --warm-1:rgba(255,236,214,.03); --warm-2:rgba(255,236,214,.16); --warm-3:rgba(255,236,214,.26);
  --scrim:rgba(2,4,3,.74); --scrim-soft:rgba(0,0,0,.5); --shadow-1:rgba(0,0,0,.28); --shadow-2:rgba(0,0,0,.5);
  --ok-ring:rgba(95,208,138,.16); --selection:rgba(255,197,77,.35);
  /* text in honey: same as the accent in dark, a deeper amber on the light (cream) theme for contrast */
  --honey-ink:var(--honey); --edge-ink:var(--edge); --empire:#FFC54D;
  /* hive */
  --hex-line:var(--line-strong); --hex-fill:linear-gradient(155deg,var(--honey-200),var(--honey-400) 45%,var(--honey-650)); /* end stop 650 (not 700): --onhoney stays >= 4.5:1 on every stop */
  --honey-glint:var(--honey-50); --honey-shade:var(--honey-700);
  /* third-party brand colours (platform + app dots) */
  --plat-ig-1:#F58529; --plat-ig-2:#DD2A7B; --plat-ig-3:#8134AF; --plat-fb:#1877F2; --plat-yt:#FF0000; --plat-dark:#000000; --plat-ink:#FFFFFF;
  --app-instagram:#DD2A7B; --app-tiktok:#25F4EE; --app-threads:#8A8088; --app-telegram:#2AABEE; --app-whatsapp:#25D366; --app-safari:#3B82F6; --app-capcut:#2A2530; --app-photos:#F5A623; --app-settings:#8E8E93;
  /* icons as data (colour inside the SVG = --mute / --onhoney) */
  --ico-chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23B4B8AC' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ico-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%231A1003' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* variant — per-variant colour tokens go below this line (Teil 2 der Bau-Spec) */

/* variant A · "Honigstrom innen" — the app is the next section of the landing page, only calm.
   Honey is material: primary button, honey-filled comb cell (= phone online), honey strand in the page head.
   Everything else is petrol-black glass with a warm light edge. */
:root[data-variant="a"]{
  --comb-ink:color-mix(in srgb,var(--edge) 6%,transparent);
  --glow:radial-gradient(46% 62% at 100% 0,color-mix(in srgb,var(--amber) 20%,transparent),transparent 72%),radial-gradient(70% 90% at 100% 0,color-mix(in srgb,var(--honey-800) 52%,transparent),transparent 72%);
  --frame:color-mix(in srgb,var(--edge) 55%,transparent);
  /* warm light edges (glass rim): 1 = resting, 2 = control outline, 3 = hover / lit */
  --edge-1:color-mix(in srgb,var(--edge) 8%,transparent);
  --edge-2:color-mix(in srgb,var(--edge) 17%,transparent);
  --edge-3:color-mix(in srgb,var(--edge) 34%,transparent);
  --card-bd:color-mix(in srgb,var(--edge) 9%,var(--line));
  --card-bg:linear-gradient(180deg,var(--bg-4),var(--card) 140px);
  --well:var(--bg-1);
  --ctl-face:linear-gradient(180deg,var(--raise-h),var(--raise));
  --ctl-face-h:linear-gradient(180deg,color-mix(in srgb,var(--edge) 7%,var(--raise-h)),var(--raise-h));
  /* honey material */
  --honey-btn:linear-gradient(180deg,var(--honey-200),var(--honey) 48%,var(--honey-400));
  --honey-btn-sh:inset 0 1.5px 0 color-mix(in srgb,var(--honey-50) 90%,transparent),inset 0 -6px 10px -3px color-mix(in srgb,var(--deep) 55%,transparent),0 8px 20px -12px color-mix(in srgb,var(--honey) 70%,transparent);
  --glint:radial-gradient(ellipse 30% 13% at 33% 23%,color-mix(in srgb,var(--honey-50) 88%,transparent) 0 50%,transparent 100%);
  /* status cells. Digit is --onhoney: no stop darker than --honey-650 behind it (>= 4.5:1) */
  --cell-on:var(--glint),linear-gradient(160deg,var(--honey-200),var(--honey-400) 52%,var(--honey-650));
  --cell-on-h:var(--glint),linear-gradient(160deg,var(--honey-100),var(--honey-200) 45%,var(--honey-400));
  --cell-use:var(--glint),linear-gradient(160deg,var(--honey-50),var(--honey-200) 50%,var(--honey-400));
  --cell-full:radial-gradient(ellipse 15% 8% at 35% 26%,var(--honey-50) 0 55%,transparent 100%),radial-gradient(circle at 50% 58%,var(--honey-200) 0,var(--honey-400) 44%,var(--honey-700) 80%,var(--honey-850) 100%);
  --cell-half:radial-gradient(ellipse 13% 5% at 38% 60%,color-mix(in srgb,var(--honey-50) 80%,transparent) 0 55%,transparent 100%),linear-gradient(0deg,var(--honey-700),var(--honey-400) 44%,var(--honey-200) 47%,var(--bg-3) 48.5%,var(--bg-1));
  --cell-empty:radial-gradient(90% 90% at 50% 22%,var(--bg-4),var(--bg-0));
  --cell-rim:linear-gradient(155deg,var(--edge),var(--honey-750));
  --cell-wax:color-mix(in srgb,var(--edge) 13%,var(--line));
  --thread:linear-gradient(90deg,var(--honey),color-mix(in srgb,var(--honey) 35%,transparent) 96px,var(--card-bd) 280px,transparent);
  --pool:radial-gradient(closest-side,color-mix(in srgb,var(--honey-800) 55%,transparent),transparent);
  --drop-sh:0 14px 28px -22px var(--shadow-2);
  --nav-on:linear-gradient(90deg,color-mix(in srgb,var(--honey) 15%,transparent),color-mix(in srgb,var(--honey) 3%,transparent));
  /* ring motif of the landing hero (static): thin honey loops, opened to the right */
  --rings:repeating-radial-gradient(circle at 108% 50%,transparent 0 25px,color-mix(in srgb,var(--honey) 15%,transparent) 25.5px 26.5px,transparent 27px 52px);
  /* honey strand of the page head: a picture, so its colours live here (= honey-200/400, amber, honey-700, honey-50). Update together with the palette. */
  --stream:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 212'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FFD877'/%3E%3Cstop offset='.22' stop-color='%23F4A622'/%3E%3Cstop offset='.72' stop-color='%23E39A1C'/%3E%3Cstop offset='.9' stop-color='%23F4A622'/%3E%3Cstop offset='1' stop-color='%23FFD877'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 0H140V8C136 8 130 9 129 16C129 70 126 110 126 165C126 174 132 182 132 191C132 200 128 205 123 205C118 205 114 200 114 191C114 182 120 174 120 165C120 110 117 70 117 20C117 12 112 8 104 8H92C89 8 88 10 88 14V30C88 35 85 38 82 38C79 38 76 35 76 30V14C76 10 75 8 72 8H56C53 7 52 9 52 12V18C52 22 50 24 47.5 24C45 24 43 22 43 18V11C43 8 41 6 38 6C24 5 10 2 0 0Z' fill='url(%23g)' stroke='%23B4680C' stroke-opacity='.55' stroke-width='.8'/%3E%3Cg fill='none' stroke='%23FFF6DC' stroke-linecap='round'%3E%3Cpath d='M30 2.2H134' stroke-opacity='.55' stroke-width='1'/%3E%3Cpath d='M120.6 22C120.6 70 122.8 112 122.8 160' stroke-opacity='.75' stroke-width='1.4'/%3E%3Cpath d='M79.4 13V29' stroke-opacity='.7' stroke-width='1.3'/%3E%3Cpath d='M45.6 11V18' stroke-opacity='.7' stroke-width='1.1'/%3E%3C/g%3E%3Cellipse cx='119.6' cy='188' rx='2' ry='3.6' fill='%23FFF6DC' fill-opacity='.85'/%3E%3C/svg%3E");
}

/* light theme · cream (approved 4.12.2026): only the signed-in dashboard (index.html sets data-theme on <html> while #app is shown,
   the sign-in screen and the public site stay dark). Page #F4EFE6, lines #E4E1D8, text #0E1413, honey stays the material,
   honey as text becomes amber #8A5404 (5.5:1). Status colours darkened to >= 4.5:1 on the page. */
:root[data-theme="light"]{
  color-scheme:light;
  --bg:#F4EFE6; --bg2:#EDE7DC; --card:#FBF8F2; --raise:#EFEAE0; --raise-h:#E7E1D5;
  --ink:#0E1413; --mute:#5A615B; --line:#E4E1D8; --line-strong:#B9B3A6;
  --bg-0:#E4DED2; --bg-1:#EFEAE1; --bg-3:#EAE4D9; --bg-4:#FDFBF7; --bg-5:#F2EDE4;
  --ok:#1C7A43; --ok-soft:rgba(28,122,67,.11); --info:#2A64A8; --info-soft:rgba(42,100,168,.10);
  --alert:#A9501A; --alert-soft:rgba(169,80,26,.11); --bad:#B3302A; --bad-soft:rgba(179,48,42,.10);
  --idle:#5F655E; --idle-soft:rgba(95,101,94,.12);
  --wash-1:rgba(14,20,19,.035); --wash-2:rgba(14,20,19,.07); --warm-1:rgba(122,74,16,.035); --warm-2:rgba(122,74,16,.10); --warm-3:rgba(122,74,16,.18);
  --scrim:rgba(14,20,19,.38); --scrim-soft:rgba(14,20,19,.22); --shadow-1:rgba(70,52,20,.10); --shadow-2:rgba(70,52,20,.18);
  --ok-ring:rgba(28,122,67,.16); --selection:rgba(255,197,77,.45);
  --honey-ink:#8A5404; --edge-ink:#7A4A10; --empire:#C27C0E;
  --ico-chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%235A615B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
:root[data-theme="light"][data-variant="a"]{
  --comb-ink:rgba(14,20,19,.045);
  --glow:radial-gradient(46% 62% at 100% 0,color-mix(in srgb,var(--honey) 16%,transparent),transparent 72%);
  --frame:color-mix(in srgb,var(--honey-700) 45%,transparent);
  --edge-1:rgba(14,20,19,.06); --edge-2:rgba(14,20,19,.13); --edge-3:rgba(14,20,19,.24);
  --card-bd:#E4E1D8; --card-bg:linear-gradient(180deg,var(--bg-4),var(--card) 140px); --well:var(--bg-1);
  --ctl-face:linear-gradient(180deg,#FBF8F2,#EFEAE0); --ctl-face-h:linear-gradient(180deg,#FFFDF9,#F3EEE5);
  --cell-empty:radial-gradient(90% 90% at 50% 22%,#FBF8F2,#E2DCCF);
  --cell-half:radial-gradient(ellipse 13% 5% at 38% 60%,color-mix(in srgb,var(--honey-50) 80%,transparent) 0 55%,transparent 100%),linear-gradient(0deg,var(--honey-700),var(--honey-400) 44%,var(--honey-200) 47%,#EAE4D9 48.5%,#F7F3EC);
  --cell-wax:#D6D0C3;
  --pool:radial-gradient(closest-side,color-mix(in srgb,var(--honey-200) 45%,transparent),transparent);
  --drop-sh:0 14px 28px -22px var(--shadow-2);
  --nav-on:linear-gradient(90deg,color-mix(in srgb,var(--honey) 26%,transparent),color-mix(in srgb,var(--honey) 6%,transparent));
  --thread:linear-gradient(90deg,var(--honey-600),color-mix(in srgb,var(--honey-600) 35%,transparent) 96px,var(--card-bd) 280px,transparent);
}
