/* Kobo & Code — graphite and mint, its own identity. Every colour is a token; the
   theme switch (theme.js) sets data-theme, and System follows the device. */
:root {
  --bg: #F2F3EF;
  --surface: #FFFFFF;
  --ink: #14171A;
  --ink-2: #4A5058;
  --ink-3: #6A7078;
  --rule: #DADDD6;
  --band: #111417;          /* the graphite band, in both themes */
  --band-2: #1A1F23;
  --on-band: #EEF0EC;
  --on-band-2: #9CA4AA;
  --mint: #3DDC97;          /* fills, and text on graphite */
  --mint-ink: #0A7550;      /* mint dark enough for text on light grounds */
  --shadow: 0 1px 2px rgba(20,23,26,.06), 0 28px 56px -32px rgba(20,23,26,.5);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --r-md: 16px; --r-lg: 26px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0F11; --surface: #15191C; --ink: #E9ECE8; --ink-2: #ABB3B9; --ink-3: #868E95; --rule: #252B30;
    --band: #07090A; --band-2: #12161A; --mint-ink: #5BE3A6;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 28px 56px -32px rgba(0,0,0,.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D0F11; --surface: #15191C; --ink: #E9ECE8; --ink-2: #ABB3B9; --ink-3: #868E95; --rule: #252B30;
  --band: #07090A; --band-2: #12161A; --mint-ink: #5BE3A6;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 28px 56px -32px rgba(0,0,0,.9);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
img { display: block; max-width: 100%; height: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); color: var(--ink); padding: 8px 12px; z-index: 10; border-radius: 8px; }

/* Band */
.band { background: var(--band); color: var(--on-band); border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; position: relative; }
.band::after { content: ""; position: absolute; inset: auto -10% -45% auto; width: 60vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(61,220,151,.14), transparent 70%); pointer-events: none; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; position: relative; z-index: 1; }
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.coin { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--mint); display: grid; place-items: center; position: relative; }
.coin::before { content: "k"; font-family: var(--font-mono); font-weight: 500; font-size: 15px; color: var(--mint); }
.coin::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed rgba(61,220,151,.45); }
.word { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.word em { font-style: normal; color: var(--mint); font-weight: 600; padding: 0 1px; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 26px); font-size: 14.5px; flex-wrap: wrap; }
.nav a { color: var(--on-band-2); text-decoration: none; }
.nav a:hover { color: var(--on-band); }
.theme { display: inline-flex; border: 1px solid rgba(238,240,236,.16); border-radius: 999px; padding: 3px; gap: 2px; }
.theme button { border: 0; background: transparent; color: var(--on-band-2); font: 500 12.5px var(--font-body); border-radius: 999px; padding: 6px 11px; cursor: pointer; min-height: 30px; }
.theme button[aria-pressed="true"] { background: rgba(238,240,236,.12); color: var(--on-band); }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-block: clamp(36px, 6vw, 76px) clamp(44px, 6vw, 80px); position: relative; z-index: 1; }
.hero .mono { color: var(--mint); }
.hero h1 { font-size: clamp(40px, 6vw, 74px); line-height: 1.0; margin-top: 18px; }
.hero h1 span { color: var(--mint); }
.lede { color: var(--on-band-2); font-size: clamp(16.5px, 1.5vw, 18.5px); max-width: 44ch; margin: 22px 0 0; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: var(--font-body); }
.btn-mint { background: var(--mint); color: #07251A; }
.btn-line { border: 1px solid rgba(238,240,236,.25); color: var(--on-band); }
.btn:hover { filter: brightness(1.06); }
.facts { display: flex; gap: clamp(18px, 3vw, 36px); margin-top: 34px; flex-wrap: wrap; }
.facts div { display: grid; gap: 2px; }
.facts b { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.facts span { font-size: 13px; color: var(--on-band-2); }

.stage { position: relative; min-height: 470px; display: grid; place-items: center; }
.device { width: 228px; border-radius: 30px; padding: 7px; background: #050607; box-shadow: 0 40px 80px -36px rgba(0,0,0,.8), inset 0 0 0 1.5px #2A3036; }
.device img { border-radius: 24px; width: 100%; aspect-ratio: 1080 / 2328; object-fit: cover; object-position: top; background: #0b0d0f; }
.stage .a { transform: translateX(-62px) rotate(-5deg); position: absolute; }
.stage .b { transform: translateX(78px) translateY(26px) rotate(4deg); position: absolute; }
.tag { position: absolute; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; background: rgba(17,20,23,.86); border: 1px solid rgba(238,240,236,.14);
  color: var(--on-band); border-radius: 999px; padding: 6px 11px; }
.tag i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.tag.t1 { left: 4%; top: 12%; } .tag.t1 i { background: #D2B07A; }
.tag.t2 { right: 2%; bottom: 10%; } .tag.t2 i { background: #4090D6; }

/* Sections */
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-block: clamp(56px, 8vw, 96px) 26px; }
.head .mono { color: var(--mint-ink); }
.head h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.04; margin-top: 12px; max-width: 16ch; }
.head p { color: var(--ink-2); max-width: 46ch; margin: 0; }

.product { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(24px, 5vw, 60px); align-items: center; padding-block: clamp(26px, 4vw, 44px); border-top: 1px solid var(--rule); }
.product.flip .copy { order: 2; }
.kind { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--ink-3); }
.kind b { font-weight: 500; color: var(--mint-ink); }
.copy h3 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.02; margin-top: 12px; }
.copy p { color: var(--ink-2); max-width: 46ch; margin: 14px 0 0; }
.points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.points li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; font-size: 15.5px; }
.points li::before { content: ""; width: 7px; height: 7px; margin-top: 9px; border-radius: 2px; background: var(--c); }
.links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14.5px; border: 1px solid var(--rule); background: var(--surface); }
.chip.main { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .arrow { transition: transform .2s; }
.chip:hover .arrow { transform: translateX(3px); }
.note { font-size: 13.5px !important; color: var(--ink-3) !important; margin-top: 10px !important; }

.panel { border-radius: var(--r-lg); padding: clamp(22px, 4vw, 44px); min-height: 460px; display: grid; place-items: center; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.panel .cap { position: absolute; left: 18px; bottom: 14px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; opacity: .7; }
.pair { display: flex; gap: 18px; align-items: flex-start; }
.pair .device { width: 200px; }
.pair .device:last-child { margin-top: 40px; }
.browser { width: min(560px, 100%); border-radius: 14px; overflow: hidden; box-shadow: 0 34px 70px -34px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.08); background: #fff; }
.chrome { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #ECECE8; }
.chrome i { width: 9px; height: 9px; border-radius: 50%; background: #CFCFCA; }
.chrome .url { margin-left: 10px; flex: 1; min-width: 0; background: #fff; border-radius: 6px; padding: 4px 9px; font: 10.5px var(--font-mono); color: #5F646B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.solo { width: 250px; }

/* Each product in its own colours. */
#ajo { --c: #A8834A; } #lumen { --c: #E4547A; } #solar { --c: #E2803A; } #renewal { --c: #1A73C7; }
.p-ajo { background: linear-gradient(155deg, #0E1626, #16223A); color: #F6F3EC; }
.p-lumen { background: linear-gradient(150deg, #F7F2FB, #FDF1F4 55%, #F0EEFB); color: #1E1A26; }
.p-solar { background: radial-gradient(120% 90% at 80% 10%, #3A2414 0%, #1C1714 60%); color: #F6E9DC; }
.p-renewal { background: linear-gradient(160deg, #EAF2FB, #D3E4F7); color: #1A1C1E; }

.also { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--rule); background: var(--surface); border-radius: var(--r-md); padding: 20px 22px; margin-top: 28px; }
.also .mono { color: var(--ink-3); }
.also h3 { font-size: 22px; margin-top: 4px; }
.also p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; max-width: 60ch; }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.principle { border-top: 2px solid var(--mint); padding-top: 18px; }
.principle h3 { font-size: 24px; line-height: 1.15; }
.principle p { color: var(--ink-2); margin: 10px 0 0; font-size: 15.5px; }

.services { background: var(--band); color: var(--on-band); border-radius: var(--r-lg); padding: clamp(26px, 5vw, 56px); margin-top: clamp(56px, 8vw, 96px);
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(26px, 5vw, 60px); }
.services .mono { color: var(--mint); }
.services h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; margin-top: 12px; }
.services .intro p { color: var(--on-band-2); margin: 16px 0 0; }
.svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(238,240,236,.12); border-radius: var(--r-md); overflow: hidden; }
.svc div { background: var(--band-2); padding: 20px; }
.svc h3 { font-size: 20px; }
.svc p { margin: 8px 0 0; color: var(--on-band-2); font-size: 14.5px; }
.svc .mono { display: block; margin-top: 10px; font-size: 10.5px; }

.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 60px); padding-block: clamp(56px, 8vw, 96px) 40px; align-items: start; }
.contact h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; margin-top: 10px; }
.contact .mono { color: var(--mint-ink); }
.contact p { color: var(--ink-2); margin: 14px 0 0; }
.addr { display: inline-flex; margin-top: 18px; font-family: var(--font-mono); font-size: 14px; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 10px 16px; user-select: all; }
form { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; box-shadow: var(--shadow); }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
input, select, textarea { font: 16px var(--font-body); color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; width: 100%; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--mint); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send { justify-self: start; background: var(--ink); color: var(--bg); }
.send[disabled] { opacity: .6; cursor: progress; }
.status { font-size: 14px; color: var(--mint-ink); min-height: 1.4em; margin: 0; }
.status.err { color: #C0392B; }
footer { border-top: 1px solid var(--rule); padding-block: 22px 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); }
footer a { color: var(--ink-2); }

@media (max-width: 900px) {
  .hero, .product, .services, .contact { grid-template-columns: minmax(0, 1fr); }
  .product.flip .copy { order: 0; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 440px; }
}
@media (max-width: 560px) {
  .nav a { display: none; }
  .svc, .row { grid-template-columns: minmax(0, 1fr); }
  .device { width: 190px; }
  .stage .a { transform: translateX(-46px) rotate(-5deg); }
  .stage .b { transform: translateX(56px) translateY(24px) rotate(4deg); }
  .pair .device { width: 150px; }
  .solo { width: 210px; }
}
