/* Layout: product-company site. White cotton ground with a faint loom grid, dark green product panels,
   and the woven tibeb band as the one ornament. Mono labels for the technical voice. */
:root {
  --cotton: #F6F8F5;
  --cotton-2: #ECF1EB;
  --card: #FFFFFF;
  --ink: #12211B;
  --ink-soft: #4C5C54;
  --green: #0F4A3A;
  --gold: #B98A1F;
  --thread-red: #9E2B25;
  --line: #D5DDD5;
  --grid: #E3E9E2;
  --panel: #0C3B2E;
  --panel-ink: #F1F5EF;
  --panel-soft: #B4C8BC;
  --panel-line: #265C4B;
  --panel-raise: #124A3A;
  --band-bg: #0F4A3A;
  --band-cotton: #F6F8F5;
  --ok: #8FE0B6;
  --late: #F0BE7A;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ethiopic: "Noto Serif Ethiopic", "Nyala", "Abyssinica SIL", serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 8vw, 104px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cotton: #0B1411; --cotton-2: #101C17; --card: #13211B; --ink: #E9EEE8; --ink-soft: #A3B3AA;
    --green: #7CC4A6; --gold: #D9B25A; --thread-red: #D0655C; --line: #26372F; --grid: #16241E;
    --panel: #11201A; --panel-ink: #EEF3EC; --panel-soft: #A9BDB2; --panel-line: #2A4238; --panel-raise: #182C24;
    --band-bg: #154735; --band-cotton: #EEF3EC;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --cotton: #0B1411; --cotton-2: #101C17; --card: #13211B; --ink: #E9EEE8; --ink-soft: #A3B3AA;
  --green: #7CC4A6; --gold: #D9B25A; --thread-red: #D0655C; --line: #26372F; --grid: #16241E;
  --panel: #11201A; --panel-ink: #EEF3EC; --panel-soft: #A9BDB2; --panel-line: #2A4238; --panel-raise: #182C24;
  --band-bg: #154735; --band-cotton: #EEF3EC;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cotton); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.alt { background: var(--cotton-2); }
.label { font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }
.head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.head h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
.am { font-family: var(--ethiopic); }

.band { display: block; width: 100%; height: 32px; }
.band-thin { height: 16px; }

/* buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 6px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1.5px solid var(--green); cursor: pointer; font-family: var(--body); line-height: 1.3;
}
.btn-solid { background: var(--green); color: var(--cotton); }
.btn-solid:hover { filter: brightness(1.12); }
.btn-line { background: transparent; color: var(--green); }
.btn-line:hover { background: var(--cotton-2); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #12211B; }
.btn-gold:hover { filter: brightness(1.08); }
.arrow::after { content: " \2192"; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--cotton); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; position: relative; }
.mark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.mark .am { font-weight: 700; font-size: 1.35rem; color: var(--gold); }
.mark .en { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); font-size: 0.96rem; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-soft); padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.nav .btn { padding: 8px 16px; font-size: 0.92rem; }
.menu { display: none; background: transparent; border: 1.5px solid var(--line); color: var(--ink); border-radius: 6px; padding: 7px 12px; font: 600 0.9rem var(--body); cursor: pointer; }
@media (max-width: 860px) {
  .menu { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cotton); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 4px; padding: 12px var(--gutter) 18px; }
  .nav.open { display: flex; }
  .nav .btn { text-align: center; margin-top: 8px; }
}

/* hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
.hero h1 em { font-style: normal; color: var(--green); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { align-self: flex-start; font-family: var(--mono); font-size: 0.78rem; border: 1px solid var(--line); background: var(--card); padding: 5px 12px; border-radius: 99px; color: var(--ink-soft); }
.chip b { color: var(--green); font-weight: 500; }
@media (max-width: 940px) { .hero .wrap { grid-template-columns: 1fr; } }

.page-hero .wrap { position: relative; display: flex; flex-direction: column; gap: 18px; padding-block: clamp(48px, 7vw, 88px); grid-template-columns: none; align-items: flex-start; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 20ch; }

/* stats */
.stats { border-block: 1px solid var(--line); background: var(--card); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 22px 20px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.1; color: var(--green); font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 720px) {
  .stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* card grids */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid, .grid.two, .grid.four { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; text-decoration: none; }
a.card:hover { border-color: var(--green); }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--ink-soft); font-size: 0.99rem; }
.card .tag { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 10px; }
.status { color: var(--green); }
.status.planned { color: var(--gold); }
.card .am { color: var(--gold); font-size: 1rem; }
.plain { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--ink); min-width: 0; }
.plain h3 { font-size: 1.35rem; }
.plain p { color: var(--ink-soft); }

/* split feature rows */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(48px, 7vw, 96px); }
.split.flip > :first-child { order: 2; }
.split-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.split-copy h2, .split-copy h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.split-copy p { color: var(--ink-soft); }
.ticks { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* product screen mock (always dark green, like the real dashboard chrome) */
.screen { background: var(--panel-raise); color: var(--panel-ink); border: 1px solid var(--panel-line); border-radius: 12px; overflow: hidden; min-width: 0; box-shadow: 0 24px 48px -28px rgba(8, 30, 23, 0.55); }
.screen-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--panel-line); background: var(--panel); flex-wrap: wrap; }
.screen-bar b { font-family: var(--display); font-size: 1rem; }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--panel-line); display: block; }
.sample { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--panel-line); padding: 2px 8px; border-radius: 99px; color: var(--panel-soft); }
.scroll { overflow-x: auto; }
.screen table { border-collapse: collapse; width: 100%; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.screen th, .screen td { text-align: left; padding: 11px 18px; border-bottom: 1px solid var(--panel-line); white-space: nowrap; }
.screen th { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--panel-soft); font-weight: 500; }
.screen .num { text-align: right; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 0.76rem; font-weight: 600; border: 1px solid currentColor; }
.pill.ok { color: var(--ok); }
.pill.late { color: var(--late); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tile + .tile { border-left: 1px solid var(--panel-line); }
.tile small { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--panel-soft); }
.tile b { font-family: var(--display); font-size: 1.15rem; }
.tile span { font-size: 0.85rem; color: var(--panel-soft); }
.bar { height: 6px; background: var(--panel-line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 65%; background: var(--gold); }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } .tile + .tile { border-left: 0; border-top: 1px solid var(--panel-line); } }
.cert { padding: 26px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.cert h4 { font-family: var(--display); font-size: 1.3rem; margin: 6px 0; }
.cert p { color: var(--panel-soft); font-size: 0.9rem; }
.cert code { font-family: var(--mono); color: var(--gold); font-size: 0.95rem; }
.qr { width: 84px; height: 84px; background: var(--panel-ink); border-radius: 6px; padding: 8px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--panel-line); font-size: 0.92rem; flex-wrap: wrap; }
.rows li span { color: var(--panel-soft); }

/* dark panel sections */
.dark { background: var(--panel); color: var(--panel-ink); }
.dark .label { color: var(--gold); }
.dark .lede, .dark .split-copy p { color: var(--panel-soft); }
.dark .card { background: var(--panel-raise); border-color: var(--panel-line); }
.dark .card p, .dark .card .tag { color: var(--panel-soft); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; min-width: 0; border-top: 1px solid var(--line); padding-top: 16px; }
.steps li::before { content: "0" counter(step); font-family: var(--mono); font-size: 0.85rem; color: var(--gold); }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* data table on light ground */
.table { width: 100%; border-collapse: collapse; font-size: 0.98rem; background: var(--card); }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.table td:first-child { font-weight: 600; white-space: nowrap; }
.table-box { border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.table tr:last-child td { border-bottom: 0; }

/* gloss, facts, faq */
.gloss { border-left: 3px solid var(--gold); padding-left: clamp(16px, 2.5vw, 28px); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gloss .word { font-family: var(--ethiopic); font-weight: 700; font-size: clamp(4rem, 9vw, 7rem); line-height: 1; color: var(--green); }
.gloss .pron { font-family: var(--display); font-weight: 500; font-size: 1.1rem; }
.gloss .pron span { color: var(--ink-soft); font-family: var(--body); font-style: italic; font-size: 0.95rem; margin-left: 6px; }
.gloss ol { margin: 0; padding-left: 1.2em; color: var(--ink-soft); display: flex; flex-direction: column; gap: 4px; }
.prose { display: flex; flex-direction: column; gap: 18px; color: var(--ink-soft); max-width: 62ch; }
.facts { margin: 0; display: grid; grid-template-columns: 8rem minmax(0, 1fr); row-gap: 12px; column-gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 0.98rem; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--ink-soft); }
.faq { display: flex; flex-direction: column; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding-block: 16px; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.12rem; }
.faq p { color: var(--ink-soft); margin-top: 10px; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.mail a { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 3vw, 1.9rem); color: var(--green); text-underline-offset: 6px; overflow-wrap: anywhere; }

/* promo video */
.video { display: block; width: 100%; max-width: 960px; height: auto; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 48px -28px rgba(8, 30, 23, 0.55); }

/* contact form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 760px; }
.form .wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.field small { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-left: 6px; }
.field input, .field textarea { font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 6px; padding: 11px 13px; width: 100%; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-foot .btn[disabled] { opacity: 0.6; cursor: default; }
.form-status { color: var(--ink-soft); font-size: 0.98rem; }
.form-status.ok { color: var(--green); font-weight: 600; }
.form-status.err { color: var(--thread-red); font-weight: 600; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* closing call to action */
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 20ch; }
.cta p { color: var(--panel-soft); margin-top: 10px; max-width: 50ch; }

/* footer */
footer { border-top: 1px solid var(--line); background: var(--cotton); }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 48px 32px; }
.foot p { color: var(--ink-soft); font-size: 0.95rem; max-width: 34ch; margin-top: 12px; }
.foot h4 { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 12px; font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { text-decoration: underline; }
.legal { border-top: 1px solid var(--line); padding-block: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 820px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .foot { grid-template-columns: 1fr; } }
