/* Hrdware — every colour and style in one place.
   Follows "Hrdware visual identity & digital design standards" v1.0 (8 Nov 2026).
   Change the brand here: the homepage, its drawings and the app only use these tokens and classes.
   Section 1 (tokens) is global. Sections 2-5 are the homepage, scoped to <body class="hp"> so they
   never touch the app, which imports this file for its tokens (app/src/styles.css).

   1. Tokens      2. Base      3. Components      4. Illustration      5. Layout (desktop, phones) */

/* ---------------------------------------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------------------------------------- */
:root {
  /* core palette: monochrome first */
  --snow: #F6F6F3;            /* color.bg.primary: page background */
  --graphite: #1A1A1A;        /* color.text.primary: text, icons, outlines, primary controls */
  --mist: #D9D9D6;            /* color.border.subtle: dividers, quiet borders */
  --white: #FFFFFF;
  --muted: #6B6B68;           /* secondary text and labels (graphite at reduced contrast) */
  --field: #FBFBF9;           /* input surface, a touch lighter than snow */
  --field-line: #C9C9C5;      /* input border */
  --placeholder: #85857F;

  /* accents: colour with intent */
  --gold: #E6B800;            /* color.action.primary: submit, active, selected, key status */
  --gold-press: #D4A900;      /* gold, hovered or pressed */
  --ice: #D7EEF8;             /* color.illustration.technical: water, sensing, signals */
  --plant: #9AAA77;           /* color.illustration.organic: plants, natural materials */

  /* status (app): never colour alone; always with a label or shape */
  --ok: #2F7D32;
  --warn: #A86B00;
  --fail: #B3261E;
  --wait: #5B6B8A;
  --water-line: #2F7FB8;      /* tubes and water paths in diagrams (ice blue is too light for a line) */

  /* illustration: flat fills with restrained tonal variation, graphite edges */
  --ill-face-top: #FFFFFF;    /* isometric faces, lit from the top left */
  --ill-face-left: #ECECEA;
  --ill-face-right: #D9D9D6;
  --ill-cyl-1: #ECECEA;       /* cylinders, left to right */
  --ill-cyl-2: #FBFBF9;
  --ill-cyl-3: #CFCFCB;
  --ill-dark-1: #2B2B2A;      /* dark parts: chips, boards, buttons */
  --ill-dark-2: #0B0B0A;
  --ill-pcb: #1F2420;
  --ill-shadow: #1F1F1E;      /* hard geometric cast shadows, one light direction */
  --ill-soil: #3A3836;
  --ill-glass-lo: #B9B9B4;
  --ill-water-1: #E4F3FA;
  --ill-water-2: #BCDCEA;
  --ill-shell-1: #FDFDFB;     /* the soil spike's shell */
  --ill-shell-2: #F0F0ED;
  --ill-shell-3: #DCDCD8;
  --ill-shell-back: #E4E4E1;
  --ill-shell-side: #D3D3CF;
  --ill-trace: #8F8F8A;       /* board tracks */
  --ill-panel: #1A1A1A;       /* dark panels inside drawings */
  --ill-panel-text: #F6F6F3;
  --ill-panel-muted: #8B8A82;
  --ill-ice-left: #C3DFEC;    /* ice-blue blocks */
  --ill-ice-right: #A8CADB;
  --ill-box-top: #EADCC2;     /* cardboard */
  --ill-box-left: #DAC7A2;
  --ill-box-right: #C6AF86;

  /* 3D renders (the app's model viewer): monochrome parts, gold only on what you press, ice blue for
     water and see-through parts. A shell the spec gives a colour is drawn in that colour instead. */
  --render-shell: #E2DFD8;        /* printed shells: warm light grey plastic, so the light shows the form */
  --render-accessory: #E2DFD8;    /* lids, flaps: the same plastic as the shell */
  --render-cap: #E6B800;          /* the button: gold, the action colour */
  --render-board: #3A3F3C;        /* a board, or a probe made of one: slate, not black */
  --render-components: #2B2B2A;
  --render-module: #0B0B0A;
  --render-battery: #B9B9B4;
  --render-fitted: #1A1A1A;       /* screws, plugs, grommets */
  --render-bought: #CBD9DF;       /* bought parts (pumps, leads, stakes): a pale solid */
  --render-glass: #BCDCEA;        /* the tint of clear bought parts (jars, tubes) */
  --render-backdrop: #F6F6F3;     /* the studio sweep behind the product: Snow, just off white */
  --render-clash: #B3261E;
  --render-ink: #1A1A1A;          /* outlines when looking inside (X-ray, sections) */

  /* line-weight hierarchy */
  --line-silhouette: 1.6px;
  --line-construction: 1.1px;
  --line-leader: .9px;

  /* type */
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* layout */
  --m: 64px;                  /* outer margin: desktop */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px;
  --radius-control: 2px;     /* square or minimally softened corners; no pills */

  color-scheme: light;
}
body.hp.mob { --m: 20px; }    /* outer margin: phones */

/* ---------------------------------------------------------------------------------------------
   2. Base
   --------------------------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.hp { margin: 0; background: var(--snow); color: var(--graphite); font: 16px/1.5 var(--sans); }
.hp a { color: inherit; }
.hp :focus-visible { outline: 2px solid var(--graphite); outline-offset: 3px; }
.hp .mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.hp .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* the scroll track; the stage is fixed on top of it */
.hp .track { height: calc(var(--n, 10) * 115svh); }
body.hp.mob .track { height: calc(var(--n, 10) * 60svh); }
.hp .stage { position: fixed; inset: 0; overflow: hidden; }
.hp #art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hp .rail { display: none; }      /* the step rail is replaced by the footer's step count */

/* ---------------------------------------------------------------------------------------------
   3. Components
   --------------------------------------------------------------------------------------------- */
/* navigation: wordmark, sign in, menu */
.hp .top { position: fixed; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  padding: max(26px, env(safe-area-inset-top, 0px)) var(--m) 26px; }
.hp .brand { display: flex; align-items: center; text-decoration: none; }
.hp .brand b { font-weight: 400; font-size: 26px; letter-spacing: -0.03em; }
/* the wordmark's arrow: progress, invention, moving forward. Sits from x-height to ascender, letter-weight stroke */
.brand .arrow { width: .38em; height: .38em; margin-left: .07em; vertical-align: .4em; fill: none; stroke: currentColor; stroke-width: 2.1; }
.hp .top nav { display: flex; align-items: center; gap: 36px; }
.hp .top .signin { font-size: 16px; text-decoration: none; }
.hp .top .signin:hover { text-decoration: underline; text-underline-offset: 4px; }
.hp .menu { appearance: none; background: none; border: 0; width: 34px; height: 22px; display: grid; align-content: center; gap: 8px; padding: 0; cursor: pointer; }
.hp .menu span { display: block; height: 1.5px; background: var(--graphite); }
.hp .menu-panel { position: fixed; z-index: 6; top: 76px; right: var(--m); min-width: 220px; display: grid;
  background: var(--white); border: 1px solid var(--mist); }
.hp .menu-panel[hidden] { display: none; }
.hp .menu-panel a { padding: 14px 18px; text-decoration: none; border-top: 1px solid var(--mist); }
.hp .menu-panel a:first-child { border-top: 0; }
.hp .menu-panel a:hover { background: var(--snow); }

/* headline */
.hp .caps { position: fixed; z-index: 3; pointer-events: none; text-align: left; }
.hp .cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: start; gap: 18px; opacity: 0; }
.hp .cap h2 { margin: 0; font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; text-wrap: pretty; }

/* the build prompt: one field and a gold square */
.hp .ask { position: fixed; z-index: 4; display: grid; grid-template-columns: 1fr 80px;
  background: var(--field); border: 1px solid var(--field-line); border-radius: var(--radius-control); }
.hp .ask:focus-within { outline: 2px solid var(--graphite); outline-offset: 2px; }
.hp .ask textarea { display: block; width: 100%; border: 0; resize: none; background: none; outline: none;
  font: 400 18px/1.45 var(--sans); color: var(--graphite); caret-color: var(--graphite); padding: 14px 20px; height: 80px; }
.hp .ask textarea::placeholder { color: var(--placeholder); }
.hp .ask .go { display: grid; place-items: center; background: var(--gold); color: var(--graphite); text-decoration: none; transition: background .12s; }
.hp .ask .go:hover { background: var(--gold-press); }
.hp .ask .go svg { width: 28px; }

/* the step's facts under the prompt: thin dividers, no boxes */
.hp .facts { position: fixed; z-index: 3; pointer-events: none; }
.hp .fset { position: absolute; inset: 0 0 auto; margin: 0; opacity: 0; }
.hp .fset div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--mist); }
.hp .fset dt { font-size: 11px; color: var(--muted); padding-top: 3px; }
.hp .fset dd { margin: 0; font-size: 15px; line-height: 1.45; }

/* metadata footer */
.hp .meta { position: fixed; z-index: 5; left: var(--m); right: var(--m); bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--mist); padding: 14px 0 max(22px, env(safe-area-inset-bottom, 0px)); background: var(--snow); pointer-events: none; }
.hp .meta > div { display: grid; gap: 4px; padding-left: 24px; border-left: 1px solid var(--mist); }
.hp .meta > div:first-child { padding-left: 0; border-left: 0; }
.hp .meta .l { color: var(--muted); }
.hp .meta b { font-weight: 400; font-size: 22px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.hp .meta .sq { width: 10px; height: 10px; background: var(--gold); display: inline-block; }

/* the scroll nudge: a secondary button */
.hp .scroll { position: fixed; z-index: 3; display: flex; align-items: center; gap: 10px; transition: opacity .4s;
  appearance: none; background: none; border: 0; font: inherit; font-family: var(--mono); color: var(--muted); }
.hp .scroll span { width: 1px; height: 26px; background: var(--graphite); animation: drip 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
body.hp.mob .scroll { cursor: pointer; background: var(--white); color: var(--graphite); border: 1px solid var(--field-line); padding: 8px 16px; gap: 8px; }
body.hp.mob .scroll span { display: none; }
body.hp.mob .scroll::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg); margin-top: -5px; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px) rotate(45deg); } }

/* ---------------------------------------------------------------------------------------------
   4. Illustration (SVG classes used by the drawings)
   --------------------------------------------------------------------------------------------- */
.hp #art text { font-family: var(--sans); fill: var(--graphite); }
.hp #art .m { font-family: var(--mono); letter-spacing: .08em; }
.hp #art .mu { fill: var(--muted); }
.hp #art .lm { fill: var(--gold); }
.hp #art .pt { fill: var(--ill-panel-text); }
.hp #art .pm { fill: var(--ill-panel-muted); }

/* solids */
.hp .ft, .hp .fl, .hp .fr, .hp .cs, .hp .et { stroke: var(--graphite); stroke-width: var(--line-construction); stroke-linejoin: round; }
.hp .ft, .hp .et { fill: var(--ill-face-top); } .hp .fl { fill: var(--ill-face-left); } .hp .fr { fill: var(--ill-face-right); }
.hp .cs { fill: url(#cg); }
.hp .k.ft, .hp .k.et { fill: var(--ill-dark-1); } .hp .k.fl { fill: var(--ill-dark-1); } .hp .k.fr { fill: var(--ill-dark-2); } .hp .k.cs { fill: url(#kg); }
.hp .g.ft { fill: var(--gold); } .hp .g.fl { fill: var(--gold-press); } .hp .g.fr { fill: var(--gold-press); }
.hp .b.ft { fill: var(--ice); } .hp .b.fl { fill: var(--ill-ice-left); } .hp .b.fr { fill: var(--ill-ice-right); }
.hp .mt.ft { fill: var(--mist); }
.hp .gd.cs, .hp .gd.et { fill: var(--gold); }
.hp .bx.ft { fill: var(--ill-box-top); } .hp .bx.fl { fill: var(--ill-box-left); } .hp .bx.fr { fill: var(--ill-box-right); }
.hp .gl.cs { fill: url(#gg); } .hp .gl.et { fill: rgba(255, 255, 255, .35); }
.hp .wa.cs { fill: url(#wg); stroke-opacity: .35; } .hp .wa.et { fill: var(--ice); stroke-opacity: .35; }
.hp .jb.cs, .hp .jb.et { fill: var(--ill-cyl-1); stroke: none; }
.hp .gh-p.ft, .hp .gh-p.fl, .hp .gh-p.fr { fill: rgba(255, 255, 255, .3); stroke-dasharray: 5 4; }
.hp .soil { fill: var(--ill-soil); stroke: var(--graphite); stroke-width: var(--line-construction); }
.hp .leaf { fill: var(--plant); stroke: var(--graphite); stroke-width: 1; }
.hp .shd { fill: var(--ill-shadow); }
.hp .pcb { fill: var(--ill-pcb); stroke: var(--graphite); stroke-width: var(--line-construction); vector-effect: non-scaling-stroke; }

/* lines */
.hp .ln { fill: none; stroke: var(--graphite); stroke-width: var(--line-leader); stroke-linecap: round; stroke-linejoin: round; }
.hp .ln2 { fill: none; stroke: var(--graphite); stroke-width: var(--line-silhouette); stroke-linecap: round; stroke-linejoin: round; }
.hp .thin { fill: none; stroke: var(--graphite); stroke-width: .8; stroke-opacity: .22; }
.hp .gh { fill: none; stroke: var(--graphite); stroke-width: 1.3; stroke-dasharray: 4 4; }
.hp .tr { fill: none; stroke: var(--ill-trace); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp .trb { fill: none; stroke: var(--ice); stroke-width: 2.2; stroke-linecap: round; }
.hp .wire { fill: none; stroke: var(--graphite); stroke-width: 5; stroke-linecap: round; }
.hp .wire2 { fill: none; stroke: var(--snow); stroke-width: 2.6; stroke-linecap: round; }
.hp .tube { fill: none; stroke: var(--graphite); stroke-width: 4.6; stroke-linecap: round; }
.hp .tube2 { fill: none; stroke: var(--ice); stroke-width: 2.4; stroke-linecap: round; }
.hp .lead { fill: none; stroke: var(--graphite); stroke-width: 1.6; stroke-linecap: round; }
.hp .led { fill: none; stroke: var(--gold); stroke-width: 3.2; }

/* flat parts inside drawings */
.hp .card, .hp .note { fill: var(--white); stroke: var(--mist); stroke-width: 1; }
.hp .dark { fill: var(--ill-panel); }
.hp .chip { fill: none; stroke: var(--gold); stroke-width: 1; }
.hp .f-gold { fill: var(--gold); } .hp .f-white { fill: var(--white); } .hp .f-panel { fill: var(--ill-panel); } .hp .f-mist { fill: var(--mist); }
.hp .f-dark { fill: var(--ill-dark-1); } .hp .s-ink { stroke: var(--graphite); } .hp .s-gold { stroke: var(--gold); } .hp .s-muted { stroke: var(--muted); }

/* the soil spike */
.hp .sk-o { fill: var(--graphite); stroke: var(--graphite); stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.hp .sk-s { fill: var(--ill-shell-side); stroke: none; }
.hp .sk-f { fill: url(#sg); stroke: var(--graphite); stroke-width: var(--line-construction); vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.hp .sk-back { fill: var(--ill-shell-back); }
.hp .sk-g { fill: none; stroke: var(--graphite); stroke-width: 1.4; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.hp .sk-b { fill: var(--ill-dark-1); stroke: var(--graphite); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hp .sk-l { fill: none; stroke: var(--gold); stroke-width: 2.6; vector-effect: non-scaling-stroke; }
.hp .sk-m { fill: none; stroke: var(--graphite); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }

/* gradient stops (the drawings' <defs> use these) */
.hp .st-cyl-1 { stop-color: var(--ill-cyl-1); } .hp .st-cyl-2 { stop-color: var(--ill-cyl-2); } .hp .st-cyl-3 { stop-color: var(--ill-cyl-3); }
.hp .st-dark-1 { stop-color: var(--ill-dark-1); } .hp .st-dark-2 { stop-color: var(--ill-dark-2); }
.hp .st-white { stop-color: var(--white); } .hp .st-glass-lo { stop-color: var(--ill-glass-lo); }
.hp .st-water-1 { stop-color: var(--ill-water-1); } .hp .st-water-2 { stop-color: var(--ill-water-2); }
.hp .st-shell-1 { stop-color: var(--ill-shell-1); } .hp .st-shell-2 { stop-color: var(--ill-shell-2); } .hp .st-shell-3 { stop-color: var(--ill-shell-3); }

/* motion: engineered, not theatrical */
.hp .glow { animation: glow 1.8s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .35; } }
.hp .pop { transform-box: fill-box; transform-origin: center; }
.hp .grow { transform-box: fill-box; transform-origin: left center; }
@media (prefers-reduced-motion: reduce) { .hp .glow, .hp .scroll span, body.hp.mob .scroll::after { animation: none; } }

/* ---------------------------------------------------------------------------------------------
   5. Layout
   --------------------------------------------------------------------------------------------- */
/* desktop: text column on the left (headline, prompt, facts), the drawing on the right */
body.hp:not(.mob) .caps { left: var(--m); width: min(560px, 40vw); bottom: calc(50% + 40px + 26px); }
body.hp:not(.mob) .cap h2 { font-size: clamp(40px, 4.2vw, 64px); }
body.hp:not(.mob) .ask { left: var(--m); top: 50%; transform: translateY(-50%); width: min(560px, 40vw); }
body.hp:not(.mob) .facts { left: var(--m); width: min(560px, 40vw); top: calc(50% + 40px + 34px); }
body.hp:not(.mob) #art { left: 46vw; width: calc(54vw - var(--m)); top: 90px; height: calc(100% - 200px); }
body.hp:not(.mob) .scroll { left: var(--m); bottom: 104px; }

/* phones: nav, headline, prompt, illustration, metadata (positions set by the page) */
body.hp.mob .top { padding: max(18px, env(safe-area-inset-top, 0px)) 20px 18px; }
body.hp.mob .brand b { font-size: 24px; }
body.hp.mob .top nav { gap: 26px; }
body.hp.mob .menu-panel { top: 64px; left: 20px; }
body.hp.mob .caps { left: 20px; right: 20px; }
body.hp.mob .cap { gap: 14px; }
body.hp.mob .cap h2 { font-size: clamp(32px, 9.4vw, 44px); line-height: 1.06; }
body.hp.mob .ask { left: 20px; right: 20px; grid-template-columns: 1fr 64px; }
body.hp.mob .ask textarea { font-size: 17px; height: 100px; padding: 12px 16px; }   /* three lines: the example idea wraps to three */
body.hp.mob .facts { display: none; }
body.hp.mob .meta { grid-template-columns: 1fr 1fr; }
body.hp.mob .meta .st { display: none; }
body.hp.mob .meta b { font-size: 20px; }
body.hp.mob .scroll { left: 50%; transform: translateX(-50%); bottom: 98px; }

/* ---------------------------------------------------------------------------------------------
   6. Text pages (privacy): one readable column under the same header
   --------------------------------------------------------------------------------------------- */
body.doc { margin: 0; background: var(--snow); color: var(--graphite); font: 16px/1.6 var(--sans); }
.doc a { color: inherit; }
.doc :focus-visible { outline: 2px solid var(--graphite); outline-offset: 3px; }
.doc .mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--muted); }
.doc header { display: flex; align-items: center; justify-content: space-between; padding: 24px var(--m); }
.doc header .brand { text-decoration: none; font-size: 22px; }
.doc header nav a { text-decoration: none; }
.doc main { max-width: 680px; padding: 32px var(--m) 96px; }
.doc h1 { font-weight: 500; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 8px 0 24px; }
.doc h2 { font-weight: 500; font-size: 20px; margin: 40px 0 8px; padding-top: 16px; border-top: 1px solid var(--mist); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--mist); }
.doc th { font-weight: 500; }
.doc ul { padding-left: 20px; }
@media (max-width: 640px) { body.doc { --m: 16px; } .doc table, .doc tbody, .doc tr, .doc td, .doc th { display: block; } .doc thead { display: none; } .doc td:first-child { font-weight: 500; padding-top: 12px; border: 0; } }
