/* Puts /grow in the kija.co look (same as the home page and investor pages):
   Bricolage Grotesque headings, Inter Tight body, IBM Plex Mono labels, dark nav, hero and closing,
   square buttons and panels. Loaded after site.css; remove this file to go back. */
:root {
  --ink: #F4F1EC;          /* page: kija paper */
  --paper: #EAE5DB;        /* software band */
  --line: #D6D1C8;
  --text: #0A0A0A;
  --paper-ink: #0A0A0A;
  --mute: #6B6760;
  --paper-mute: #6B6760;
  --paper-line: #CFC8BB;
  --display: "Bricolage Grotesque",system-ui,sans-serif;
  --body: "Inter Tight", system-ui, sans-serif;
  --k-ink: #0A0A0A; --k-ink-2: #141414; --k-line: #2A2A2A; --k-mute: #9A968F; --k-red-text: #FF3B55;
}
body { font-weight: 400; }

/* headings: light serif, black weight for the second word, red italic for emphasis */
h1, h2, h3 { font-family: var(--display); font-variation-settings: normal; letter-spacing: -0.02em; }
h2, .hero h1, .hero.lead h1, .dp-hero h1, .closing h2 { text-transform: none; font-weight: 300; letter-spacing: -0.03em; font-variation-settings: normal; }
h2 { line-height: .98; font-size: clamp(38px, 5vw, 72px); }
h1 em, h2 em, .hero h1 em, .closing h2 em { font-style: italic; font-weight: 300; color: var(--red); }
h1:has(.lt), h2:has(.lt) { font-weight: 900; }
h2 .lt, h1 .lt { font-weight: 300; }
h3 { font-weight: 600; letter-spacing: -0.01em; }
.kicker { color: var(--red); font-weight: 500; letter-spacing: .16em; font-size: 12.5px; }
.kicker svg { display: none; }
.paper .kicker { color: var(--red); }
.lede { font-weight: 300; }

/* nav: dark bar like kija.co */
nav { background: rgba(10,10,10,.95); border-bottom: 1px solid var(--k-line); }
.brand span { font-family: var(--mono); font-weight: 500; color: var(--k-mute); letter-spacing: .16em; }
.navlinks { font-size: 13px; }
.navlinks a { color: #d8d5cf; text-transform: uppercase; letter-spacing: .08em; font-weight: 400; }
.navlinks a:hover, .navlinks a.active { color: #fff; }
.navlinks a.ext { color: var(--k-mute); }

/* hero: light beige band */
.hero.lead { background: #fff; color: var(--text); border-bottom: 1px solid var(--line); padding: 96px 0 88px; }
.hero.lead .lede { color: var(--mute); }
.caps { border-top: 1px solid var(--text); }
.caps b { font-family: var(--display); font-variation-settings: normal; font-weight: 600; text-transform: none; font-size: 26px; letter-spacing: -.01em; }
.caps span:last-child { color: var(--k-mute); }

/* buttons: square and uppercase */
.btn { border-radius: 0; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 500; padding: 14px 24px; border-color: var(--text); }
.btn:hover { background: var(--text); color: var(--ink); border-color: var(--text); }
.btn.red:hover { background: var(--text); border-color: var(--text); color: #fff; }
/* hero buttons: shaped like the logo dots, rounded on the left with an angled cut on the right */
.hero .cta { gap: 10px; }
.hero .cta .btn { border: 0; border-radius: 999px 0 0 999px; padding: 15px 34px 15px 26px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  background: var(--text); color: #fff; transition: background .2s; }
.hero .cta .btn.red { background: var(--red); }
/* the second button mirrors the first, so the two angled edges sit side by side and the outer ends are rounded */
.hero .cta .btn + .btn { border-radius: 0 999px 999px 0; padding: 15px 26px 15px 34px; margin-left: -18px;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%); }
.hero .cta .btn:hover { background: var(--red); color: #fff; }
.hero .cta .btn.red:hover { background: var(--text); }
.play, .ghost, .extlink, .dact, .pbtn button, .segctl, .app-bar .run { border-radius: 0 !important; }

/* panels: square, like the deck */
.console, .map, .app, .step, .fac, .zone-card, .layer, .sim, .tiles, .chart, .dp-buy, .ports, .wgrid > div,
.appm, .gal, .gstage, .gthumb, .ui, .ui-chart, .prop, .ai-flow, .ai-card, .ai-setup, .ai-cam, .dp-hprog { border-radius: 0 !important; }

/* floating back-to-top button, same as the story page */
.to-top { position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 60; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: #0A0A0A; color: #fff; font-size: 20px; line-height: 1; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--red); }

/* closing and footer: dark, like kija.co */
.closing { background: var(--k-ink); color: #fff; border-top: 0; }
.closing .side { color: var(--k-mute); }
.closing .btn:not(.red) { border-color: #fff; color: #fff; }
.closing .btn:not(.red):hover { background: #fff; color: var(--k-ink); }
footer { background: var(--k-ink); color: var(--k-mute); border-top: 1px solid var(--k-line); }
footer img { height: 56px; width: auto; }
footer a { color: #ccc; text-decoration: none; }
footer a:hover { color: #fff; }

/* device page header */
.back { text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; }

/* headings never uppercase in the kija.co look */
h1, h2, h3 { text-transform: none !important; }
nav .brand span, nav .brand .brand-name { color: #ECE8E1 !important; font-weight: 500; }

/* section labels above each heading (Hardware, Elsa-AI, Farms anywhere…): larger and bolder */
.sec-head .kicker { font-size: clamp(15px, 1.4vw, 18px); font-weight: 700; letter-spacing: .16em; }

/* "Ask your grow" image blocks: what a grower photographs */
.ask-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 24px; }
.ask-shots figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ask-shots img { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; }
.ask-shots figcaption { padding: 14px 18px 16px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--mute); }
.ask-shots figcaption b { display: block; font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--text); margin-bottom: 2px; }
@media (max-width: 760px) { .ask-shots { grid-template-columns: 1fr; } }

/* botanical strip along the bottom of a section */
section:has(> .sec-art) { position: relative; overflow: hidden; padding-bottom: 200px; }
section:has(> .sec-art) > .wrap { position: relative; z-index: 1; }
.sec-art { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); width: min(820px, 80vw); height: auto; opacity: .38; pointer-events: none; z-index: 0; }
@media (max-width: 760px) { section:has(> .sec-art) { padding-bottom: 120px; } .sec-art { width: 130vw; } }

/* use cases: three example setups */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.uc { background: var(--face); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.uc-img { background: #fbf8f1; border-bottom: 1px solid var(--line); height: 190px; display: block; padding: 14px; box-sizing: border-box; }
.uc-img { overflow: hidden; }
.uc-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.uc-body { padding: 22px 22px 24px; display: grid; gap: 12px; align-content: start; }
.uc-body h3 { font-size: 24px; margin: 0; }
.uc-who { color: var(--mute); font-size: 15.5px; margin: 0; }
.uc-kit { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 2px 0 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.uc-kit dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); padding-top: 2px; }
.uc-kit dd { margin: 0; font-weight: 500; }
.uc-body ul { margin: 0; padding-left: 18px; color: var(--mute); font-size: 15px; display: grid; gap: 8px; }
@media (max-width: 960px) { .uc-grid { grid-template-columns: 1fr; } }

/* hero: a tomato vine climbing faintly up the right edge */
.hero.lead { position: relative; overflow: hidden; }
.hero.lead .wrap { position: relative; z-index: 1; }
.hero-vine { position: absolute; right: max(-60px, calc((100vw - 1200px) / 2 - 220px)); bottom: -10px; height: 92%; width: auto; opacity: .3; pointer-events: none; z-index: 0; }
@media (max-width: 960px) { .hero-vine { display: none; } }

/* use cases: line up title, description and kit rows across the three cards */
@media (min-width: 961px) {
  .uc-grid { grid-template-rows: auto auto auto auto auto 1fr; row-gap: 0; }
  .uc { display: grid; grid-row: span 6; grid-template-rows: subgrid; }
  .uc-body { grid-row: span 5; display: grid; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
}
.uc-kit, .uc-body ul { align-content: start; }
.uc-img-full { padding: 0; } .uc-img-full img { object-fit: cover; }
.ask-shots figcaption { line-height: 1.5; } .ask-shots figcaption b { margin-bottom: 6px; }

/* Elsa-AI mark */
.kicker-elsa { display: flex; align-items: center; gap: 12px; }
.elsa-mark { width: 30px; height: 30px; flex: none; }
.elsa-mark.sm { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.elsa-name { color: var(--red); font-weight: 600; } .elsa-full { color: var(--text); font-weight: 600; }
.hero.lead .lede b { color: var(--text); font-weight: 500; }

/* Watch it run: program steps in a pinned sidebar beside the devices */
.sim { overflow: clip; }
.sim-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); }
.sim-steps { border-right: 1px solid var(--line); background: #FBFAF7; }
.sim-steps-in { position: sticky; top: 64px; padding: 18px 12px 18px 16px; max-height: calc(100vh - 64px); display: flex; flex-direction: column; }
.sim-steps .prog { position: relative; max-height: none; flex: 1; overflow-y: auto; scroll-behavior: smooth; }
.sim-steps .prow { grid-template-columns: 20px minmax(0, 1fr) auto; padding: 7px 8px; }
.sim-steps .prow .op { display: none; }
.sim-main { min-width: 0; }
.sim-main .panels { grid-template-columns: 1fr 1fr; }
@media (max-width: 960px) {
  .sim-body { grid-template-columns: 1fr; }
  .sim-steps { border-right: 0; border-bottom: 1px solid var(--line); }
  .sim-steps-in { position: static; max-height: 320px; }
}

/* Watch it run: devices two per row, Hub across the bottom */
.sim-main .kgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sim-main .kcard, .sim-main .kcard.wide { grid-column: span 1; }
.sim-main .kcard:last-child { grid-column: 1 / -1; }
/* Kija Hub: one slim strip instead of a drawing */
.sim-main .kcard:last-child { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 18px; flex-wrap: wrap; }
.sim-main .kcard:last-child .kg { display: none; }
.sim-main .kcard:last-child .khead { align-items: center; gap: 14px; }
.sim-main .kcard:last-child .khead > div { display: flex; align-items: baseline; gap: 12px; }
.sim-main .kcard:last-child .kfoot { min-height: 0; font-size: 13px; }
@media (max-width: 760px) { .sim-main .kgrid { grid-template-columns: 1fr; } }

/* Watch it run: drawings in the illustrations' style: warm ink, paper fills, softer water */
.sim { --water: #5b8cb8; }
.sim .pipe { stroke: #c9bda6; }
.sim .pipe-in { stroke: #fbf8f1; }
.sim .seg.dose .pipe { stroke: #d8cdb8; }
.sim .valve polygon { fill: #e4dccd; stroke: #3b342c; }
.sim .valve .stem { stroke: #3b342c; }
.sim .valve .act { fill: #fbf8f1; stroke: #3b342c; }
.sim .valve.open polygon { fill: var(--water); stroke: #2f5f86; }
.sim .float circle { fill: #e4dccd; stroke: #3b342c; }
.sim .pump .pbody { stroke: #3b342c; fill: #fbf8f1; }
.sim .pump.on .pbody { stroke: var(--water); }
.sim .kcard { background: #fffdf9; }

/* Watch it run: show about five steps at a time; the list follows the active step */
.sim-steps-in { max-height: none; }
.sim-steps .prog { flex: none; height: 214px; overflow-y: auto; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%); }
.sim-steps .prow { min-height: 38px; }

/* Watch it run: charts under the steps in the sidebar; Activity full width below the devices */
.sim-charts { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.sim-charts .charts { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.sim-charts .chart { padding: 6px 8px 4px; }
.sim-charts .chart .ct { font-size: 9px; letter-spacing: .04em; }
.sim-charts .chart svg { height: 62px; }
.sim-main .panels { grid-template-columns: 1fr; }
.sim-main .panels .log { height: 260px; }
/* sidebar charts one per row, a little taller */
.sim-charts .charts { grid-template-columns: 1fr; }
.sim-charts .chart svg { height: 56px; }
.sim-charts .chart .ct { font-size: 10px; letter-spacing: .06em; }

/* Watch it run: every step is two lines (name, then type and live status) so rows stay the same height */
.sim-steps .prow { grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "i lab lab" "i op st"; min-height: 52px; row-gap: 1px; align-items: center; padding: 6px 10px; }
.sim-steps .prow .i { grid-area: i; align-self: start; padding-top: 3px; }
.sim-steps .prow .op { grid-area: op; display: block; font-size: 10.5px; line-height: 1.2; }
.sim-steps .prow > span:not([class]) { grid-area: lab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.sim-steps .prow .st { grid-area: st; font-size: 10.5px; line-height: 1.2; }
.sim-steps .prog { height: 290px; }

/* Device pages: stages down the side, beside the device and its diagram */
@media (min-width: 901px) {
  .dpage .sim { display: grid; grid-template-columns: 210px minmax(0, 1fr); }
  .dpage .sim > .sim-status { grid-column: 1 / -1; }
  .dpage .sim > .phases { grid-column: 1; grid-row: 2; align-self: start; position: sticky; top: 64px;
    grid-auto-flow: row; grid-auto-columns: auto; padding: 24px 16px 8px 20px; border-bottom: 0; background: none; }
  .dpage .sim > .split { grid-column: 2; grid-row: 2; border-left: 1px solid var(--line); }
  .dpage .phases li { grid-template-columns: 40px minmax(0, 1fr); justify-items: start; align-items: center; gap: 12px; padding: 0 0 30px; text-align: left; }
  .dpage .phases li::after { top: 46px; left: 19px; right: auto; width: 2px; height: calc(100% - 52px); }
  .dpage .phases li:last-child { padding-bottom: 8px; }
}
