/*
 * rfid.smartzoom.tech
 *
 * The same system the product is built in: concrete and ink, one safety orange, hairlines,
 * 2px corners, IBM Plex. Tokens are copied from apps/web/src/styles/index.css rather than
 * re-picked — a landing page whose orange is a shade off the dashboard's is a landing page
 * that looks like somebody else made it.
 */

:root {
  --bg: #f1f0ec;
  --surface: #faf9f6;
  --raised: #ffffff;
  --ink: #17181a;
  --muted: #5d6166;
  --faint: #696e73;
  --line: #d8d6d0;
  --row: #e6e4df;
  --accent: #de5308;
  --accent-ink: #b84205;
  --accent-soft: #fbe8dc;
  --ok: #1e7b34;
  --danger: #c22f2e;
  --danger-soft: #f9e9e9;
  --shell: #17181a;

  --sans: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', Consolas, monospace;
  --arabic: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;

  --r: 2px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --wrap: 68rem;
}

html[lang='ar'] body { font-family: var(--arabic); }
html[lang='ar'] .mono { font-family: var(--mono); }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.mono { font-family: var(--mono); }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--accent-ink); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  background: var(--ink); color: var(--surface); padding: .7rem 1rem; font-size: .85rem;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------------ bar */

.bar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky; top: 0; z-index: 10;
}
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.mark { width: 30px; height: 30px; display: block; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 1rem; font-weight: 600; letter-spacing: .16em; }
.brand-text small {
  font-family: var(--mono); font-size: .55rem; letter-spacing: .2em;
  color: var(--accent-ink); margin-top: 2px;
}

.bar-nav { display: flex; align-items: center; gap: .5rem; }

.lang {
  font-family: var(--arabic); font-size: .85rem; background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r); color: var(--muted);
  padding: .4rem .7rem; transition: border-color .12s var(--ease), color .12s var(--ease);
}
html[lang='ar'] .lang { font-family: var(--sans); }
.lang:hover { border-color: var(--ink); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: .88rem; font-weight: 500;
  padding: .55rem 1.1rem; border-radius: var(--r); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .12s var(--ease), border-color .12s var(--ease);
}
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--raised); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-solid:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-solid[disabled] { opacity: .55; cursor: default; }
.btn-lg { padding: .8rem 1.6rem; font-size: .95rem; }

/* ----------------------------------------------------------------- hero */

.eyebrow {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-ink); font-weight: 500;
}
html[lang='ar'] .eyebrow { letter-spacing: 0; }

.hero { border-bottom: 1px solid var(--line); }
.hero-in {
  display: grid; grid-template-columns: 1fr 22rem; gap: 3rem;
  padding-top: 4rem; padding-bottom: 4rem; align-items: start;
}
.hero-copy { max-width: 34rem; }
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.3rem); letter-spacing: -.02em; margin: .9rem 0 1.1rem;
}
.lede { font-size: 1.08rem; color: var(--muted); }

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 2.6rem 0 0;
  border: 1px solid var(--line); background: var(--surface);
}
.facts > div { padding: 1rem 1.1rem; border-inline-end: 1px solid var(--line); }
.facts > div:last-child { border-inline-end: 0; }
.facts dt {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint);
}
html[lang='ar'] .facts dt { letter-spacing: 0; }
.facts dd {
  margin: .35rem 0 0; font-family: var(--mono); font-size: 1.65rem; font-weight: 500;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.facts dd span { font-size: .9rem; color: var(--accent); }
.facts .note {
  font-family: var(--sans); font-size: .72rem; color: var(--faint);
  margin-top: .4rem; line-height: 1.4; font-weight: 400;
}

/* --------------------------------------------------------------- signin */

.card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); }
.signin { padding: 1.5rem; position: sticky; top: 84px; }
.signin h2 { font-size: 1.15rem; }
.card-sub { font-size: .8rem; color: var(--faint); margin-top: .3rem; }

form { display: flex; flex-direction: column; margin-top: 1.3rem; }
label {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .35rem;
}
html[lang='ar'] label { letter-spacing: 0; }
label:not(:first-of-type) { margin-top: 1rem; }

input {
  font-family: var(--mono); font-size: .95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: .6rem .7rem; width: 100%;
  transition: border-color .12s var(--ease);
}
input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 1px var(--accent); }
.up { text-transform: uppercase; letter-spacing: .08em; }
.hint { font-size: .7rem; color: var(--faint); margin-top: .35rem; }

.err {
  margin-top: 1rem; padding: .55rem .7rem; font-size: .8rem;
  background: var(--danger-soft); color: var(--danger);
  border: 1px solid var(--danger); border-radius: var(--r);
}

form .btn-solid { margin-top: 1.3rem; width: 100%; }
.card-foot {
  margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--row);
  font-size: .76rem; color: var(--faint); line-height: 1.5;
}

/* ---------------------------------------------------------------- bands */

.band { background: var(--surface); border-bottom: 1px solid var(--line); padding: 4rem 0; }
.section { padding: 4rem 1.5rem; }
.h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); letter-spacing: -.012em; margin: .7rem 0 0; }
.section-lede { color: var(--muted); margin-top: .8rem; max-width: 42rem; }

.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.2rem; }
.cmp-col { border: 1px solid var(--line); background: var(--raised); padding: 1.4rem 1.5rem 1.6rem; }
.cmp-col.is-now { border-color: var(--ink); }
.cmp-head {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 1rem;
}
html[lang='ar'] .cmp-head { letter-spacing: 0; }
.is-now .cmp-head { color: var(--accent-ink); }

.ticks li {
  position: relative; padding-inline-start: 1.5rem; font-size: .92rem;
  color: var(--muted); margin-bottom: .8rem; line-height: 1.45;
}
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .55rem;
  width: .6rem; height: 1px; background: var(--line);
}
.ticks.now li { color: var(--ink); }
.ticks.now li::before { background: var(--accent); height: 2px; top: .5rem; }

/* -------------------------------------------------------------- channels */

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.2rem; }
.ch { padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem; }
.ch-tag { font-size: .72rem; color: var(--accent); letter-spacing: .1em; }
.ch h3 { font-size: 1.15rem; }
.ch p { font-size: .9rem; color: var(--muted); line-height: 1.55; }
.ch-foot {
  margin-top: auto; padding-top: .9rem; border-top: 1px dashed var(--line);
  font-size: .6rem; letter-spacing: .14em; color: var(--faint);
}
html[lang='ar'] .ch-foot { letter-spacing: 0; }

/* ---------------------------------------------------------- capabilities */

.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 2.2rem;
        background: var(--line); border: 1px solid var(--line); }
.cap { background: var(--raised); padding: 1.3rem 1.4rem; }
.cap h4 { font-size: .98rem; margin-bottom: .45rem; }
.cap p { font-size: .86rem; color: var(--muted); line-height: 1.5; }

/* -------------------------------------------------------------- closing */

.close { background: var(--shell); color: var(--surface); padding: 3.5rem 0; }
.close-in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.close h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.close p { color: #b9bcb6; margin-top: .6rem; max-width: 36rem; font-size: .95rem; }

.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot-in {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.4rem; padding-bottom: 1.4rem; font-size: .7rem; color: var(--faint);
  letter-spacing: .1em;
}
html[lang='ar'] .foot-in { letter-spacing: 0; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 2.5rem; }
  .signin { position: static; }
  .cmp, .grid3, .caps { grid-template-columns: 1fr; }
  .caps { gap: 1px; }
}

@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .facts > div:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
