/* ---------------------------------------------------------------------------
   n8n Community Weekly Challenge: shared theme
   Built by infra/build-theme.js -- do not edit in n8n, the next build overwrites it.

   DARK since 2026-09-10, following n8n.io itself: a deep purple-black ground with
   a dot grid, near-black cards edged in white at 10%, and the orange-to-red of the
   Get Started button as the one loud colour. The light in-the-loop palette it
   replaces is in git history and only ever swapped token VALUES.

   Geomanist is licensed, so DM Sans stands in: same geometric skeleton.
--------------------------------------------------------------------------- */
:root{
  /* ground and surfaces - n8n.io body #0e0918, cards #1b1728 */
  --bg:#0e0918;
  --bg-elevated:#130d20;
  --surface:#1b1728;
  --surface-2:#241e35;
  --sunk:#120d1d;
  /* text - body #d1cece, headings near white, muted #9d9797 */
  --ink:#f4f2f7;
  --ink-2:#d1cece;
  --muted:#9d9797;
  /* lines - white at 10% and 18%, the way n8n.io draws a card edge */
  --rule:rgba(255,255,255,.10);
  --rule-strong:rgba(255,255,255,.18);
  /* the one loud colour: the coral-red of the Get Started button */
  --accent:#ff5a3c;
  --accent-hover:#ff7a45;
  --accent-soft:rgba(255,90,60,.14);
  --accent-line:rgba(255,90,60,.40);
  /* n8n coral, for brand and community affordances */
  --brand:#ee4f27;
  --brand-soft:rgba(238,79,39,.14);
  --brand-line:rgba(238,79,39,.40);
  /* semantic, tuned for a dark ground */
  --ok:#3ddc97;   --ok-soft:rgba(61,220,151,.14);  --ok-line:rgba(61,220,151,.38);
  --warn:#f5b545; --warn-soft:rgba(245,181,69,.14);--warn-line:rgba(245,181,69,.38);
  --bad:#ff5c7a;  --bad-soft:rgba(255,92,122,.12); --bad-line:rgba(255,92,122,.38);
  --love:#fa6c8d;
  /* shape and motion - 8px controls, 24px cards, as measured */
  --r:8px;
  --r-lg:24px;
  --shadow:0 1px 2px rgba(0,0,0,.40), 0 18px 40px -20px rgba(0,0,0,.80);
  --shadow-lift:0 2px 6px rgba(0,0,0,.45), 0 26px 56px -22px rgba(255,90,60,.35);
  --ease:cubic-bezier(.25,.46,.45,.94);
  --t:.2s;
  --maxw:1080px;
  --readw:760px;
}

/* DARK, decided 2026-09-10. Anshul: "literally what n8n.io has". The light
   in-the-loop palette that lived here from 2026-09-06 is in git history; every value
   above was measured off n8n.io the same way that one was measured off intheloop. */

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
html{overflow-x:hidden}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-size:16px;line-height:1.62;-webkit-font-smoothing:antialiased;
  min-height:100vh;display:flex;flex-direction:column;
}
/* Sticky footer: main absorbs the spare height, and margin-top:auto is the belt
   to the braces for any page whose main is missing. Without this, short pages
   (the completion screens especially) left the footer floating mid-viewport. */
main{flex:1 0 auto}
.site-header,.hero{flex-shrink:0}
.site-footer{margin-top:auto}
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accent-hover)}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}
code,.mono{font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace}
code{background:var(--sunk);border:1px solid var(--rule);border-radius:var(--r);
  padding:2px 6px;font-size:.84em;color:var(--ink-2);word-break:break-all}

/* ---------- header ---------- */
.site-header{position:sticky;top:0;z-index:50;background:var(--bg);
  border-bottom:1px solid var(--rule);backdrop-filter:saturate(140%) blur(8px)}
.hdr{max-width:var(--maxw);margin:0 auto;padding:0 22px;height:60px;
  display:flex;align-items:center;gap:26px}
.brand{display:inline-flex;align-items:center;gap:12px;font-weight:600;font-size:15.5px;
  color:var(--ink);letter-spacing:-.01em;white-space:nowrap}
.brand:hover{color:var(--ink)}
/* Official n8n logo. Two variants because the wordmark is white on dark grounds and
   navy on light ones, exactly how community.n8n.io swaps it with a <picture>. */
.brand .logo{width:74px;height:20px;flex:none;display:block;
  background-image:url("https://europe1.discourse-cdn.com/n8n/original/2X/a/afa2f499837e9dc9d85724dd8f2eb39bf11a0b5f.png");
  background-repeat:no-repeat;background-position:left center;background-size:contain}
.brand .rule{width:1px;height:18px;background:var(--rule-strong);flex:none}
.brand .sub{color:var(--ink);font-weight:600;letter-spacing:-.01em}
/* retired marks: hidden so any stale markup cannot resurface them */
.brand .dot,.brand .n8n{display:none}
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]) .brand .logo{background-image:url("https://europe1.discourse-cdn.com/n8n/original/2X/f/f7960ddd4483de08308ee0c0d2d031f31c0b899e.png")}
}
.hdr nav{margin-left:auto;display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.hdr nav a{padding:7px 12px;border-radius:var(--r);font-size:14.5px;font-weight:500;
  color:var(--ink-2)}
.hdr nav a:hover{background:var(--surface-2);color:var(--ink)}
.hdr nav a.on{color:var(--ink);background:var(--surface-2)}
.hdr nav a.community{color:var(--brand);border:1px solid var(--brand-line);background:var(--brand-soft);margin-left:6px}
.hdr nav a.community:hover{background:var(--brand);color:#fff;border-color:var(--brand)}
@media(max-width:720px){
  .hdr{height:auto;padding:12px 16px;flex-direction:column;align-items:flex-start;gap:10px}
  .hdr nav{margin-left:0}
}

/* ---------- hero ---------- */
.hero{position:relative;overflow:hidden;border-bottom:1px solid var(--rule);
  background:var(--bg-elevated)}
.hero::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(760px 340px at 12% -30%, var(--brand-soft), transparent 70%),
    radial-gradient(680px 320px at 88% 120%, var(--accent-soft), transparent 72%)}
.hero-in{position:relative;max-width:var(--maxw);margin:0 auto;padding:52px 22px 44px}
.eyebrow{display:flex;align-items:center;gap:10px;font-size:11.5px;font-weight:700;
  letter-spacing:.17em;text-transform:uppercase;color:var(--brand);margin:0 0 18px;padding:0}
.eyebrow .live{width:7px;height:7px;border-radius:50%;background:var(--brand);flex:none;
  animation:pulse 2.6s ease-in-out infinite}
.eyebrow::after{content:"";flex:1;max-width:120px;height:1px;background:var(--rule)}
h1{font-size:clamp(2.1rem,5.4vw,3.4rem);line-height:1.04;letter-spacing:-.035em;
  font-weight:700;margin:0 0 16px;max-width:16ch;text-wrap:balance}
.hero p.lede{font-size:clamp(1.02rem,2vw,1.2rem);color:var(--ink-2);margin:0 0 28px;max-width:60ch}

/* ---------- buttons ---------- */
.cta{display:flex;flex-wrap:wrap;gap:10px}
.btn{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:var(--r);
  font-weight:600;font-size:14.5px;border:1px solid transparent;cursor:pointer;
  transition:background .13s,border-color .13s,color .13s}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{background:var(--accent-hover);color:#fff}
.btn-brand{background:var(--brand);color:#fff}
.btn-brand:hover{filter:brightness(1.08);color:#fff}
.btn-ghost{background:var(--surface);color:var(--ink);border-color:var(--rule-strong)}
.btn-ghost:hover{border-color:var(--accent);color:var(--ink)}

/* ---------- layout ---------- */
.wrap{max-width:var(--maxw);margin:0 auto;padding:38px 22px 56px;width:100%}
.wrap.read{max-width:var(--readw)}
.grid2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
/* minmax(0,1fr) not 1fr: a 1fr track refuses to shrink below its content's
   intrinsic width, so one long nowrap .sample row blew the whole grid past the
   viewport. With a 0 minimum the card holds its column and .sample scrolls
   inside itself, which is what its own overflow-x is there for. */
@media(max-width:840px){.grid2{grid-template-columns:minmax(0,1fr)}}

.card{background:var(--surface);border:1px solid var(--rule);border-radius:var(--r-lg);
  padding:24px 26px;box-shadow:var(--shadow);min-width:0}
.card h2{font-size:16px;font-weight:700;margin:0 0 14px;letter-spacing:-.005em}
.card h2 .n{color:var(--accent);font-family:'JetBrains Mono',monospace;font-size:13px;margin-right:8px}
p{margin:0 0 14px;color:var(--ink-2)}
p:last-child{margin-bottom:0}
p b,li b,strong{color:var(--ink);font-weight:600}
.note{font-size:14.5px;line-height:1.6}

/* ---------- steps ---------- */
ol.steps{list-style:none;counter-reset:s;padding:0;margin:0}
ol.steps li{counter-increment:s;position:relative;padding:0 0 16px 40px;color:var(--ink-2);font-size:14.8px}
ol.steps li:last-child{padding-bottom:0}
ol.steps li::before{content:counter(s);position:absolute;left:0;top:0;width:25px;height:25px;
  border-radius:50%;background:var(--accent-soft);border:1px solid var(--accent-line);
  color:var(--accent);font-size:12px;font-weight:700;
  display:flex;align-items:center;justify-content:center;font-family:'JetBrains Mono',monospace}
ol.steps b{display:block;color:var(--ink);font-weight:600;margin-bottom:3px;font-size:15px}

/* ---------- stats ---------- */
.stats{display:flex;border:1px solid var(--rule);border-radius:var(--r-lg);
  overflow:hidden;background:var(--surface);margin:0 0 24px}
.stats div{flex:1;padding:16px 20px;border-right:1px solid var(--rule)}
.stats div:last-child{border-right:0}
.stats b{display:block;font-size:1.7rem;line-height:1.15;letter-spacing:-.025em;
  font-variant-numeric:tabular-nums;color:var(--ink)}
.stats span{font-size:10.5px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--muted)}
@media(max-width:560px){.stats{flex-direction:column}
  .stats div{border-right:0;border-bottom:1px solid var(--rule)}
  .stats div:last-child{border-bottom:0}}

/* ---------- fact list ---------- */
ul.facts{list-style:none;padding:0;margin:0 0 14px}
ul.facts li{position:relative;padding:0 0 10px 22px;color:var(--ink-2);font-size:14.6px}
ul.facts li:last-child{padding-bottom:0}
ul.facts li::before{content:"";position:absolute;left:2px;top:.62em;width:6px;height:6px;
  border-radius:2px;background:var(--accent);opacity:.85}
ul.facts b{color:var(--ink)}
.callout{border-left:2px solid var(--brand);background:var(--brand-soft);
  border-radius:0 var(--r) var(--r) 0;padding:12px 16px;margin:14px 0 0;font-size:14.2px;color:var(--ink-2)}
.callout b{color:var(--ink)}

/* "Before you start" as a scannable board rather than one very tall column. The
   auto-fit/minmax pair is what keeps this honest on a phone: it collapses to a
   single column instead of squeezing five unreadable slivers side by side. */
.callouts{display:grid;grid-template-columns:repeat(auto-fit,minmax(272px,1fr));
  gap:12px;margin-top:14px}
.callouts .callout{margin:0;height:100%}
.card.wide{margin-top:18px}

/* ---------- data sample ---------- */
/* pre, not nowrap: nowrap collapsed the newlines in the site's event-rules block into one
   scrolling line (live since the 06 Sep theme). pre keeps lines and still scrolls. */
.sample{background:var(--sunk);border:1px solid var(--rule);border-radius:var(--r);
  padding:12px 15px;font-family:'JetBrains Mono',monospace;font-size:12.6px;
  color:var(--ink-2);overflow-x:auto;white-space:pre;margin:14px 0}

/* ---------- pills ---------- */
.pill{display:inline-flex;align-items:center;gap:7px;border-radius:999px;
  padding:5px 13px;font-size:12.5px;font-weight:700;border:1px solid transparent}
.pill.ok{background:var(--ok-soft);color:var(--ok);border-color:var(--ok-line)}
.pill.warn{background:var(--warn-soft);color:var(--warn);border-color:var(--warn-line)}
.pill.bad{background:var(--bad-soft);color:var(--bad);border-color:var(--bad-line)}
.pill.info{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-line)}

/* ---------- keybox ---------- */
.keybox{background:var(--brand-soft);border:1px solid var(--brand-line);
  border-radius:var(--r-lg);padding:24px;text-align:center;margin:0 0 18px}
.keybox .kl{font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--brand);margin-bottom:10px}
.keybox .k{font-family:'JetBrains Mono',monospace;font-size:clamp(20px,4.4vw,28px);
  font-weight:700;letter-spacing:.04em;color:var(--ink)}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--rule);background:var(--bg-elevated)}
.ftr{max-width:var(--maxw);margin:0 auto;padding:26px 22px;display:flex;flex-wrap:wrap;
  gap:12px;align-items:center;font-size:13.5px;color:var(--muted)}
.ftr .spacer{margin-left:auto}
.ftr a{color:var(--ink-2)}
.ftr a:hover{color:var(--accent)}

/* ---------- motion ----------
   Restrained on purpose: one entrance per surface, hover feedback that confirms a
   thing is interactive, and nothing looping except the live status dot. */
@keyframes fadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.78)}}
.hero-in>*{animation:fadeUp .52s cubic-bezier(.2,.7,.3,1) both}
.hero-in>*:nth-child(2){animation-delay:.05s}
.hero-in>*:nth-child(3){animation-delay:.1s}
.hero-in>*:nth-child(4){animation-delay:.15s}
.wrap>*{animation:fadeUp .52s cubic-bezier(.2,.7,.3,1) both;animation-delay:.12s}
.wrap>*:nth-child(2){animation-delay:.18s}
.wrap>*:nth-child(3){animation-delay:.24s}
.card{transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.card:hover{transform:translateY(-2px);border-color:var(--rule-strong)}
.btn{transition:background .14s,border-color .14s,color .14s,transform .14s}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.stats div{transition:background .18s}
.stats div:hover{background:var(--surface-2)}
.pod{transition:transform .2s ease,border-color .2s ease}
.pod:hover{transform:translateY(-3px)}
.row{transition:background .14s}
.row:hover{background:var(--surface-2)}
ol.steps li::before{transition:transform .18s,background .18s,color .18s}
ol.steps li:hover::before{transform:scale(1.12);background:var(--accent);color:#fff}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}


/* ===========================================================================
   2026-09 redesign. Reference: n8n.io/intheloop
   Near-white ground, a dot grid, one saturated rose, and motion that is felt
   rather than watched. Everything below degrades to the old look if a browser
   ignores it, and all of it is switched off by prefers-reduced-motion.
   =========================================================================== */

/* ---------- ground: the dot grid ---------- */
/* Two layers so the grid never sits on top of content: a fixed background on the
   body, and nothing else. Cheap, no extra elements, no repaint cost on scroll. */
body{
  background-color:var(--bg);
  background-image:radial-gradient(currentColor .8px, transparent .8px);
  background-size:22px 22px;
  background-position:-11px -11px;
  background-attachment:fixed;
  color:var(--ink);
}
body{ --dot:rgba(20,20,20,.055); }
/* dot colour follows the palette, so it is opt-in dark too */

body{ background-image:radial-gradient(var(--dot) .9px, transparent .9px); }

/* The n8n wordmark is navy on light grounds now that light is the default. */
.brand .logo{ background-image:url("https://europe1.discourse-cdn.com/n8n/original/2X/f/f7960ddd4483de08308ee0c0d2d031f31c0b899e.png") }
/* the white wordmark belongs with the dark palette, so it is opt-in too */


/* ---------- header: a floating pill, like the reference ---------- */
.site-header{
  background:transparent;
  border-bottom:0;
  padding:10px 0 0;
  backdrop-filter:none;
}
.hdr{
  background:var(--surface);
  border:1px solid var(--rule);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow);
  height:auto;
  min-height:56px;
  padding:8px 16px;
}

/* ---------- BETA badge ---------- */
/* Small, honest, and next to the name: the programme works but is not finished,
   and saying so is better than letting somebody discover it. */
.brand .beta{
  display:inline-flex;align-items:center;
  /* The parent .brand is a flex row with gap:12px, so a margin here ADDS to that.
     It used to be +8px, putting the pill 20px from the name and reading as a
     separate thing; -5px pulls it back to a 7px gap so "Weekly Challenge" and the
     pill read as one phrase. */
  margin-left:-5px;
  padding:3px 7px;
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:9.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--accent);
  background:var(--accent-soft);
  border:1px solid var(--accent-line);
  border-radius:999px;
  line-height:1;
  /* No transform. It used to carry translateY(-1px), which on top of the flex
     centring left the pill visibly riding above the name. Symmetric padding plus
     align-items:center puts it on the optical centre of the text. */
}

/* ---------- type: bigger, lighter, tighter ---------- */
.hero h1{ font-weight:400; letter-spacing:-.028em; line-height:1.04; }
.card h2{ letter-spacing:-.015em; }
.eyebrow{ color:var(--brand); }

/* ---------- shape ---------- */
.card{ border-radius:var(--r-lg); }
.btn{ border-radius:999px; padding:11px 22px; font-weight:600; }
.pill,.tag{ border-radius:999px; }

/* ---------- motion ---------- */
/* One easing and one duration, used everywhere, so the whole site feels like one
   object rather than a pile of components. */
a,.btn,.card,.hdr nav a,.pill{
  transition:background-color var(--t) var(--ease),
             border-color var(--t) var(--ease),
             color var(--t) var(--ease),
             box-shadow var(--t) var(--ease),
             transform var(--t) var(--ease);
}
.btn:hover{ transform:translateY(-1px); box-shadow:var(--shadow-lift); }
.btn:active{ transform:translateY(0); box-shadow:var(--shadow); }
.btn-primary:hover{ background:var(--accent-hover); }
.card:hover{ border-color:var(--rule-strong); box-shadow:var(--shadow-lift); }
.stages .card:hover{ transform:translateY(-2px); }
.hdr nav a:hover{ transform:translateY(-1px); }

/* Page-load reveal. Staggered so the eye lands on the hero first, and short enough
   that nobody waiting to read is kept waiting. */
@keyframes cwc-rise{ from{ opacity:0; transform:translateY(10px) } to{ opacity:1; transform:none } }
.hero-in>*{ animation:cwc-rise .5s var(--ease) both }
.hero-in>*:nth-child(2){ animation-delay:.06s }
.hero-in>*:nth-child(3){ animation-delay:.12s }
.hero-in>*:nth-child(4){ animation-delay:.18s }
.wrap>.card,.wrap>.grid2>.card,.stages>.card{ animation:cwc-rise .45s var(--ease) both }
.stages>.card:nth-child(3){ animation-delay:.05s }
.stages>.card:nth-child(5){ animation-delay:.10s }
.stages>.card:nth-child(7){ animation-delay:.15s }

/* The live dot on the eyebrow gets a slow pulse: it is the one thing on the page
   that is genuinely live. */
@keyframes cwc-pulse{ 0%,100%{ opacity:1; transform:scale(1) } 50%{ opacity:.55; transform:scale(.86) } }
.eyebrow .live{ animation:cwc-pulse 2.4s var(--ease) infinite; background:var(--accent) }

/* Focus stays obvious. A redesign that loses the focus ring is a regression. */
a:focus-visible,.btn:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{
  outline:2px solid var(--accent); outline-offset:2px; border-radius:var(--r);
}

/* Nothing above runs for anyone who has asked for less movement. */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation:none!important; transition:none!important }
  .btn:hover,.card:hover,.stages .card:hover,.hdr nav a:hover{ transform:none!important }
}


/* ===========================================================================
   2026-09-10 redesign, layer two: THE CANVAS.
   n8n's own visual language is nodes on a dotted canvas joined by wires, and the
   site already stood on that dot grid without ever using it. Now it does: stages are
   nodes with ports, the arrows between them are wires that draw themselves and carry
   a pulse, the avatar wears a spinning ring, the status page is a pipeline lighting
   up step by step. Colour is a coral-rose-violet ribbon used for the shouting, on a
   ground that stays white so a 600-row ledger is still readable after an hour.

   Every rule here is additive over the layer above it. All motion is switched off by
   prefers-reduced-motion at the bottom, and nothing loops on a data surface.
   =========================================================================== */

/* ---------- tokens this layer adds (never removes) ---------- */
:root{
  --violet:#6b5cff; --violet-soft:rgba(107,92,255,.10); --violet-line:rgba(107,92,255,.32);
  --sun:#f5b545; --mint:#22b07d;
  --ribbon:linear-gradient(120deg,#ee4f27 0%,#ea4b71 52%,#6b5cff 100%);
  --ribbon-soft:linear-gradient(120deg,rgba(238,79,39,.12),rgba(234,75,113,.12) 52%,rgba(107,92,255,.12));
  --wire:#d9d9df; --port:#ea4b71;
  --spring:cubic-bezier(.34,1.56,.64,1);
  --t-slow:.55s;
  --glow:0 0 0 4px rgba(234,75,113,.16);
}

/* ---------- ground: the aurora behind the canvas ---------- */
/* One fixed pseudo-element, three blurred blobs. Still - nothing on the page drifts. It sits under
   everything and is faint enough that the dot grid still reads as a grid. */
body{position:relative}
body::before{
  content:"";position:fixed;inset:-20vh -20vw;z-index:-1;pointer-events:none;
  background:
    radial-gradient(42vw 42vw at 18% 12%, rgba(238,79,39,.13), transparent 60%),
    radial-gradient(38vw 38vw at 82% 8%,  rgba(107,92,255,.12), transparent 60%),
    radial-gradient(46vw 46vw at 60% 92%, rgba(234,75,113,.10), transparent 62%);
  filter:blur(28px);
}
body{ --dot:rgba(20,20,20,.075); }

/* ---------- header: a floating node ---------- */
.hdr{ border-radius:999px; padding:8px 12px 8px 18px; transition:box-shadow var(--t) var(--ease), transform var(--t) var(--ease) }
.hdr:hover{ box-shadow:var(--shadow-lift) }
.hdr nav a{ position:relative; border-radius:999px }
.hdr nav a.on{ background:transparent }
.hdr nav a.community{ background:var(--ribbon); color:#fff; border-color:transparent }
.hdr nav a.community::after{ display:none }
.hdr nav a.community:hover{ filter:brightness(1.06); color:#fff }
.brand .beta{ background:var(--ribbon); color:#fff; border-color:transparent }
.brand .logo{ transition:transform var(--t) var(--spring) }

/* ---------- hero ---------- */
.hero{ background:transparent; border-bottom:0 }
.hero::before{ display:none }
.hero-in{ padding:64px 22px 48px }
/* the two-column hero only where a page brings its own art; every other page keeps
   a single column, so the profile and status heroes never carry an empty 300px gap */
.hero-in:has(.hero-art){ display:grid; grid-template-columns:minmax(0,1fr) 440px; gap:28px 40px; align-items:center }
.hero-in>.eyebrow,.hero-in>h1,.hero-in>.lede,.hero-in>.cta,.hero-in>.phead{ grid-column:1 }
.hero-in>.hero-art{ grid-column:2; grid-row:1/span 4; align-self:center; justify-self:end }
@media(max-width:900px){ .hero-in:has(.hero-art){ grid-template-columns:minmax(0,1fr) } .hero-in>.hero-art{ display:none } }
.hero h1{
  font-weight:700; letter-spacing:-.04em; line-height:.98;
  font-size:clamp(2.4rem,6.2vw,4.1rem); max-width:14ch;
  background:var(--ribbon); -webkit-background-clip:text; background-clip:text; color:transparent;
  background-size:130% 100%;
}
.eyebrow{ color:var(--ink-2) }
.eyebrow::before,.eyebrow .live{ display:none!important }
.hdr nav a::after{ display:none!important }
.brand:hover .logo,.brand .logo{ transform:none!important }
.hero p.lede{ font-size:clamp(1.05rem,1.9vw,1.22rem); line-height:1.55 }

/* the hero canvas: four nodes drawn the way n8n draws them - a rounded-left trigger, square
   nodes with their icon in the middle and their name underneath, grey wires with an
   arrowhead at the input. Still; the wires draw in once on load. */
.hero-art{ width:440px; height:130px; display:block; overflow:visible }
.hero-art .nd{ fill:#2a2836; stroke:rgba(255,255,255,.22); stroke-width:1.2 }
.hero-art .ic{ fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round }
.hero-art .ic.t{ stroke:#ff9a5c } .hero-art .ic.a{ stroke:#6fb4ff } .hero-art .ic.b{ stroke:#c084fc } .hero-art .ic.c{ stroke:#3ddc97 }
.hero-art .sig{ fill:#3ddc97; font:700 26px 'JetBrains Mono',monospace; text-anchor:middle }
.hero-art .pt{ fill:#8f8ca3; stroke:var(--bg); stroke-width:1.5 }
.hero-art .pin{ fill:#8f8ca3 }
.hero-art .wr{ fill:none; stroke:#8f8ca3; stroke-width:1.6 }
.hero-art .ah{ fill:#8f8ca3 }
.hero-art .wr.draw{ stroke:var(--accent); stroke-dasharray:70; stroke-dashoffset:70;
  animation:cwc-draw 1s var(--ease) forwards; animation-delay:.4s }
@keyframes cwc-draw{ to{ stroke-dashoffset:0 } }
.hero-art .lb{ fill:var(--ink-2); font:500 11px 'DM Sans',sans-serif; text-anchor:middle }

/* ---------- buttons: ribbon, shine, spring ---------- */
.btn{ position:relative; overflow:hidden; transition:transform var(--t) var(--spring), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease) }
.btn-primary{ background:var(--ribbon); background-size:200% 100%; border:0; box-shadow:0 8px 20px -10px rgba(234,75,113,.7) }
.btn-primary:hover{ background-position:100% 50%; transform:translateY(-2px) scale(1.02); box-shadow:0 14px 28px -12px rgba(234,75,113,.75) }
.btn-primary::after{
  content:"";position:absolute;top:-40%;bottom:-40%;left:-60%;width:40%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);
  transform:skewX(-20deg);transition:left .6s var(--ease);pointer-events:none;
}
.btn-primary:hover::after{ left:130% }
.btn:active{ transform:translateY(0) scale(.97)!important }
.btn-ghost:hover{ border-color:var(--accent); transform:translateY(-2px); box-shadow:var(--glow) }
.cta .btn{ animation:cwc-pop .5s var(--spring) both }
.cta .btn:nth-child(2){ animation-delay:.06s } .cta .btn:nth-child(3){ animation-delay:.12s }
@keyframes cwc-pop{ from{ opacity:0; transform:scale(.86) translateY(6px) } to{ opacity:1; transform:none } }

/* ---------- cards: nodes ---------- */
.card{ transition:transform var(--t) var(--spring), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease) }
.card:hover{ transform:translateY(-3px) }
.stages .card{ position:relative; overflow:visible }
.stages .card::before{
  content:"";position:absolute;left:18px;right:18px;top:0;height:3px;border-radius:0 0 4px 4px;
  background:var(--ribbon);opacity:0;transform:scaleX(.6);transition:opacity var(--t) var(--ease),transform var(--t) var(--spring);
}
.stages .card:hover::before{ opacity:1; transform:scaleX(1) }
.stagetag{ display:inline-flex; align-items:center; gap:7px; color:var(--ink); background:var(--sunk);
  border:1px solid var(--rule); border-radius:999px; padding:4px 11px 4px 8px }
.stagetag::before{ content:""; width:8px; height:8px; border-radius:2px; background:var(--ribbon); transform:rotate(-8deg) }
/* ports: the little circles a node has on each side. Only where the grid is wide
   enough for wires between them - on a phone the cards stack and ports would float. */
@media(min-width:1041px){
  .stages .card::after{
    content:"";position:absolute;top:50%;right:-7px;width:12px;height:12px;border-radius:50%;
    background:var(--port);border:2.5px solid var(--surface);box-shadow:0 0 0 2px var(--port);
    transform:translateY(-50%) scale(.9);transition:transform var(--t) var(--spring);
  }
  .stages .card:hover::after{ transform:translateY(-50%) scale(1.25) }
  /* the last card has nothing after it, and the second's wire leaves downward, so
     neither gets a right-hand port pointing at nothing */
  .stages>:nth-child(3)::after,.stages>:nth-child(7)::after{ display:none }
}
/* wires: the hop between stages. One line, the arrow kept, nothing moving on it. */
.hop{ position:relative; overflow:visible }
.hop::before{ content:"";position:absolute;left:0;right:0;top:50%;height:2px;margin-top:-1px;background:var(--wire) }
.hop svg{ position:relative; z-index:1; background:var(--bg); border-radius:50%; padding:2px; color:var(--accent) }
@media(min-width:1041px){
  .stages>:nth-child(4)::before{ left:50%; right:auto; top:0; bottom:0; width:2px; height:auto; margin:0 0 0 -1px }
}
@media(max-width:1040px){
  .hop::before{ left:50%; right:auto; top:0; bottom:0; width:2px; height:auto; margin:0 0 0 -1px }
}

/* section heads: the number becomes a node badge */
.sechead .no{ background:var(--ribbon); color:#fff; border-color:transparent; border-radius:9px; transform:rotate(-6deg);
  box-shadow:0 8px 18px -8px rgba(234,75,113,.6); transition:transform var(--t) var(--spring) }
.sechead:hover .no{ transform:rotate(0) scale(1.08) }
.sechead h2{ letter-spacing:-.03em }

/* start steps: numbered nodes that ping */
.stepurl{ transition:border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--spring) }
.stepurl:hover{ border-color:var(--accent-line); box-shadow:var(--glow); transform:translateX(3px) }
.freetag span{ animation:cwc-pop .5s var(--spring) both }
.freetag span:nth-child(2){ animation-delay:.08s } .freetag span:nth-child(3){ animation-delay:.16s }

/* ---------- numbers: gradient, and they count up (see script) ---------- */
.stats b,.fstat b{ background:var(--ribbon); -webkit-background-clip:text; background-clip:text; color:transparent; font-weight:700 }
.stats div{ transition:transform var(--t) var(--spring), background var(--t) var(--ease) }
.stats div:hover{ transform:translateY(-2px); background:var(--surface-2) }
.stats{ border-radius:var(--r-lg); box-shadow:var(--shadow) }

/* ---------- pills: pop in, jiggle on hover ---------- */
.pill{ animation:cwc-pop .45s var(--spring) both; transition:transform var(--t) var(--spring) }
.pill:hover{ transform:rotate(-3deg) scale(1.06) }
.creds .pill:nth-child(2){ animation-delay:.08s } .creds .pill:nth-child(3){ animation-delay:.16s }

/* ---------- profile: the avatar ring and the record ---------- */
.avatar{ position:relative; flex:none; width:96px; height:96px; display:grid; place-items:center }
.avatar::before{
  content:"";position:absolute;inset:0;border-radius:50%;
  background:conic-gradient(from 0deg,#ee4f27,#ea4b71,#6b5cff,#22b07d,#f5b545,#ee4f27);
}
.avatar::after{ content:"";position:absolute;inset:4px;border-radius:50%;background:var(--surface) }
.avatar .big{ position:relative; z-index:1; width:80px; height:80px; font-size:34px; transition:transform var(--t) var(--spring) }
.avatar:hover .big{ transform:rotate(-8deg) scale(1.06) }
.phead h1{ font-size:clamp(2rem,5vw,3.1rem) }
.row{ position:relative; padding-left:8px; border-radius:var(--r); transition:background var(--t) var(--ease), transform var(--t) var(--spring) }
.row::before{ content:"";position:absolute;left:0;top:14px;bottom:14px;width:3px;border-radius:3px;background:var(--ribbon);
  opacity:0;transform:scaleY(.4);transition:opacity var(--t) var(--ease),transform var(--t) var(--spring) }
.row:hover{ transform:translateX(6px); background:var(--surface-2) }
.row:hover::before{ opacity:1; transform:scaleY(1) }
.row .rk{ background:var(--ribbon); -webkit-background-clip:text; background-clip:text; color:transparent }
.wfopen:hover{ box-shadow:var(--glow) }

/* ---------- leaderboard ---------- */
.medal{ position:relative; overflow:hidden; transition:transform var(--t) var(--spring) }
.board tr:hover .medal{ transform:scale(1.2) rotate(-8deg) }
.board tbody tr{ transition:background var(--t) var(--ease) }
.board tbody tr:hover td{ background:var(--surface-2) }
.board tr.lead td:first-child{ box-shadow:inset 3px 0 0 var(--accent) }
.champ .av{ box-shadow:0 0 0 3px var(--surface),0 0 0 6px var(--accent); transition:transform var(--t) var(--spring) }
.champ:hover .av{ transform:rotate(-8deg) scale(1.08) }
.card.spot{ background:linear-gradient(160deg,var(--surface),var(--surface) 55%,rgba(234,75,113,.07)); border-color:var(--accent-line) }

/* ---------- status: the pipeline ---------- */
.pipe{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; margin:6px 0 4px; counter-reset:ps }
.pstep{ position:relative; padding:14px 8px 0; text-align:center; font-size:12.5px; color:var(--muted); font-weight:600 }
.pstep::before{
  content:"";display:block;width:14px;height:14px;border-radius:50%;margin:0 auto 10px;
  background:var(--surface);border:2px solid var(--rule-strong);position:relative;z-index:1;
  transition:transform var(--t) var(--spring),background var(--t) var(--ease),border-color var(--t) var(--ease);
}
.pstep::after{ content:"";position:absolute;top:20px;left:-50%;right:50%;height:2px;background:var(--rule);z-index:0 }
.pstep:first-child::after{ display:none }
.pstep.done{ color:var(--ink) }
.pstep.done::before{ background:var(--ribbon); border-color:transparent; box-shadow:0 0 0 3px var(--surface) inset }
.pstep.done::after,.pstep.now::after{ background:var(--ribbon) }
.pstep.now{ color:var(--accent) }
.pstep.now::before{ background:var(--surface); border-color:var(--accent); animation:cwc-ping 1.8s var(--ease) infinite; transform:scale(1.15) }
.pstep.done:hover::before{ transform:scale(1.3) }
.pstep i{ display:block; font-style:normal; font-family:"JetBrains Mono",monospace; font-size:9.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-top:3px; font-weight:700 }
.pstep.done i{ color:var(--mint) } .pstep.now i{ color:var(--accent) }
.pill.ok.burst{ animation:cwc-burst .9s var(--spring) both }
@keyframes cwc-burst{ 0%{ transform:scale(.6); box-shadow:0 0 0 0 rgba(31,139,76,.5) } 60%{ transform:scale(1.12) } 100%{ transform:scale(1); box-shadow:0 0 0 18px rgba(31,139,76,0) } }
.statline{ transition:background var(--t) var(--ease), padding-left var(--t) var(--ease); border-radius:var(--r) }
.statline:hover{ background:var(--surface-2); padding-left:8px }

/* ---------- forms ---------- */
.field input{ transition:border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--spring) }
.field input:focus{ box-shadow:var(--glow); transform:translateY(-1px) }
.field:focus-within label{ color:var(--accent) }

/* ---------- links: underline that draws ---------- */
main a:not(.btn):not(.wfopen):not(.brand){ background:linear-gradient(var(--accent),var(--accent)) no-repeat left bottom / 0 1.5px; transition:background-size var(--t) var(--ease), color var(--t) var(--ease); padding-bottom:1px }
main a:not(.btn):not(.wfopen):not(.brand):hover{ background-size:100% 1.5px }

/* ---------- scroll reveal (progressive: only once the script says .js) ---------- */
.js .reveal{ opacity:0; transform:translateY(16px); transition:opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--spring) }
.js .reveal.in{ opacity:1; transform:none }

/* ---------- footer ---------- */
.site-footer{ background:transparent; border-top:0; position:relative }
.site-footer::before{ content:"";display:block;height:2px;max-width:var(--maxw);margin:0 auto;background:var(--ribbon);opacity:.35;border-radius:2px }

/* ---------- dark tuning, measured off n8n.io 2026-09-10 ----------
   Everything structural above stays; this is the part that knows the ground is dark.
   Shadows become glows, dots and wires go light, cards go glassy, and the ribbon is
   n8n's own orange-to-red with the blue-to-violet of its secondary pill kept for the
   badge. Anything hard-coded for a white page is overridden here, not edited above,
   so the light version can come back as a paste. */
:root{
  --violet:#6b21ef; --violet-soft:rgba(107,33,239,.16); --violet-line:rgba(107,33,239,.42);
  --ribbon:linear-gradient(30deg,#fd8925 0%,#ff3b2e 55%,#ff0c00 100%);
  --ribbon-soft:linear-gradient(30deg,rgba(253,137,37,.16),rgba(255,12,0,.16));
  --sky:linear-gradient(141deg,#077ac7,#6b21ef);
  --wire:rgba(255,255,255,.22); --port:#ff5a3c;
  --glow:0 0 0 4px rgba(255,90,60,.22);
}
::selection{ background:rgba(255,90,60,.38); color:#fff }
body{ --dot:rgba(255,255,255,.085) }
/* the light bloom behind the hero, coral from the top like the reference, violet low */
body::before{
  background:
    radial-gradient(52vw 40vw at 68% -6%, rgba(255,90,60,.26), transparent 62%),
    radial-gradient(40vw 40vw at 8% 18%,  rgba(107,33,239,.22), transparent 60%),
    radial-gradient(46vw 46vw at 60% 104%, rgba(253,137,37,.10), transparent 62%);
  filter:blur(34px);
}
/* white wordmark on a dark ground. base.css swaps to navy for light-scheme users
   via a :root:not([data-theme=dark]) rule, which would be wrong here whatever the OS
   says, so this wins on !important rather than on a data attribute. */
.brand .logo,:root:not([data-theme="dark"]) .brand .logo{ background-image:url("https://europe1.discourse-cdn.com/n8n/original/2X/a/afa2f499837e9dc9d85724dd8f2eb39bf11a0b5f.png")!important }
.brand .sub,.brand:hover{ color:#fff }

/* header: the floating glass bar */
.hdr{ background:rgba(19,13,32,.72); border:1px solid rgba(255,255,255,.10); border-radius:14px;
  backdrop-filter:blur(12px) saturate(140%); box-shadow:0 10px 30px -18px rgba(0,0,0,.9) }
.hdr:hover{ box-shadow:0 14px 36px -18px rgba(0,0,0,.95) }
.hdr nav a{ color:var(--ink-2) }
.hdr nav a:hover,.hdr nav a.on{ background:rgba(255,255,255,.06); color:#fff }
.hdr nav a.community{ background:var(--ribbon); color:#fff }
.brand .beta{ background:var(--sky) }

/* hero: near-white headline warming into coral and violet at the end */
/* background-IMAGE, not the shorthand: the shorthand resets background-clip to
   border-box and the title becomes a painted slab with invisible text - which is
   exactly what it did the first time round. */
.hero h1{ background-image:linear-gradient(120deg,#ffffff 0%,#ffe1d6 38%,#ff8a5c 68%,#c084fc 100%); background-size:130% 100%;
  -webkit-background-clip:text; background-clip:text; color:transparent }
.eyebrow{ color:var(--muted) }
.hero p.lede{ color:var(--ink-2) }

/* controls: 8-10px corners like the reference, not pills */
.btn{ border-radius:10px }
.btn-primary{ background:var(--ribbon); background-size:200% 100%; box-shadow:0 10px 24px -10px rgba(255,60,30,.75) }
.btn-primary:hover{ box-shadow:0 16px 32px -12px rgba(255,60,30,.85) }
.btn-ghost{ background:rgba(255,255,255,.04); border-color:rgba(255,255,255,.14); color:#fff }
.btn-ghost:hover{ border-color:var(--accent); background:rgba(255,255,255,.07); color:#fff }
.pill{ border-radius:8px }
.stagetag,.sechead .no{ border-radius:8px }

/* surfaces: glassy cards, sunk code, dark inputs */
.card{ background:var(--surface); border-color:var(--rule) }
.card:hover{ border-color:rgba(255,255,255,.20) }
.card.gridcard .startstep,.starter{ border-color:var(--rule) }
.starter{ background:rgba(0,0,0,.22) }
.stagetag{ background:rgba(255,255,255,.05); border-color:var(--rule); color:var(--ink) }
.hop svg{ background:var(--bg) }
code{ background:rgba(255,255,255,.07); border-color:var(--rule); color:var(--ink-2) }
.sample,.stepurl,.verify code{ background:rgba(0,0,0,.30); border-color:var(--rule); color:var(--ink-2) }
.field input{ background:rgba(0,0,0,.32); border-color:var(--rule-strong); color:#fff }
.field input::placeholder{ color:var(--muted) }
.callout{ background:rgba(238,79,39,.10); border-left-color:var(--brand) }
.stats{ background:var(--surface); border-color:var(--rule) }
.stats div{ border-color:var(--rule) }
.stats div:hover{ background:var(--surface-2) }
.stats span,.fstat span{ color:var(--muted) }
.fstat{ background:rgba(0,0,0,.22); border-color:var(--rule) }
.avatar::after,.pstep::before{ background:var(--surface) }
.pstep::after{ background:var(--rule-strong) }
.row:hover,.statline:hover,.board tbody tr:hover td{ background:var(--surface-2) }
.board th,.board td{ border-color:var(--rule) }
.board thead th{ background:var(--surface) }
.board tr.lead td{ background:var(--brand-soft) }
.card.spot{ background:linear-gradient(160deg,var(--surface),var(--surface) 55%,rgba(255,90,60,.10)); border-color:var(--accent-line) }
.medal{ color:#1a1a1a }
.keybox{ background:var(--brand-soft); border-color:var(--brand-line) }
.wfdlg{ background:var(--surface); border-color:var(--rule-strong) }
.wfdlg-head{ background:var(--bg-elevated); border-color:var(--rule) }
.wfdlg-body{ background:var(--bg) }
.wfjson,.wfdlg-x,.wfopen{ background:rgba(0,0,0,.28); border-color:var(--rule); color:var(--ink-2) }
.site-footer::before{ opacity:.55 }
.ftr,.ftr a{ color:var(--muted) }
.ftr a:hover{ color:#fff }

/* the reveal and rise keep their values; only the ground changed */

/* ---------- nothing above moves for anyone who asked it not to ---------- */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation:none!important; transition:none!important }
  .hero h1{ animation:none; background-position:0 50% }
  .btn:hover,.card:hover,.row:hover,.stepurl:hover,.pill:hover,.avatar:hover .big{ transform:none!important }
  .js .reveal{ opacity:1; transform:none }
  .hero-art .wr.draw{ stroke-dashoffset:0 }
  .hero-art .pulse{ display:none }
  .hop::after{ display:none }
}

.callout{overflow-wrap:anywhere;min-width:0}


/* Challenge 02 theme: Obsidian Sprint */
:root {
  --bg:#0b1020; --bg-elevated:#101a2e; --surface:#15233b; --surface-2:#1d3150; --sunk:#0d1627;
  --ink:#edf4ff; --ink-2:#c2d0e3; --muted:#8293aa;
  --accent:#50d5ff; --accent-hover:#83e2ff; --accent-soft:rgba(80,213,255,.14); --accent-line:rgba(80,213,255,.42);
  --brand:#a78bfa; --brand-soft:rgba(167,139,250,.15); --brand-line:rgba(167,139,250,.42);
  --dot:rgba(237,244,255,.055);
  --shadow-lift:0 2px 6px rgba(0,0,0,.45),0 26px 56px -22px rgba(80,213,255,.28);
}
body { background-color:var(--bg); background-image:radial-gradient(var(--dot) .9px,transparent .9px); background-size:22px 22px; }
.hero h1 { background-image:linear-gradient(120deg,#edf4ff 0%,#83e2ff 55%,#a78bfa 100%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.btn-primary { background:linear-gradient(110deg,#50d5ff,#a78bfa); color:#08101d; }
.btn-primary:hover { background:linear-gradient(110deg,#83e2ff,#c4b5fd); }
