@import url(fonts.css);

/* ichitech.com: the studio's product page, drawn as a component datasheet. One sheet, a document header with number and revision, a 12-column grid, ruled tables
   with tabular figures, figures numbered as figures, one signal colour for actions and the values that matter.
   The product table sorts by any column (site.js). Light by default, graphite when the device is in Dark Mode. */
:root {
  --paper: #ffffff;
  --sheet: #f3f4f5;
  --ink: #15171c;
  --ink-2: #4d525d;
  --rule: #d5d8dd;
  --rule-strong: #15171c;
  --signal: #d63b1f;
  --signal-ink: #ffffff;
  --text: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --gx: max(16px, min(40px, 3vw));
  --signal-hover: #b72f16;
  --select: #f7c9bf;
  --scroll: #b9bdc4;
  --frame: #f3f4f5;       /* behind the light app screenshots */
  --lift: rgba(21, 23, 28, .25);
  color-scheme: light;
}
/* dark: graphite sheet, ivory ink; screenshots stay on a pale frame so they do not glare */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #1b1d22; --sheet: #121418; --ink: #ecebe6; --ink-2: #a7abb4; --rule: #33363d; --rule-strong: #ecebe6;
  --signal: #ff6a4a; --signal-ink: #16110f; --signal-hover: #ff8a70; --select: #6b2a1d; --scroll: #3d4048;
  --frame: #d9dbdf; --lift: rgba(0, 0, 0, .6); color-scheme: dark } }
:root[data-theme="dark"] {
  --paper: #1b1d22; --sheet: #121418; --ink: #ecebe6; --ink-2: #a7abb4; --rule: #33363d; --rule-strong: #ecebe6;
  --signal: #ff6a4a; --signal-ink: #16110f; --signal-hover: #ff8a70; --select: #6b2a1d; --scroll: #3d4048;
  --frame: #d9dbdf; --lift: rgba(0, 0, 0, .6); color-scheme: dark }
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth; scrollbar-color: var(--scroll) var(--sheet) }
body { margin: 0; background: var(--sheet); color: var(--ink); font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums }
::selection { background: var(--select); color: var(--ink) }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px }
a:hover { color: var(--signal) }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance }
p { margin: 0 }
img { display: block; max-width: 100% }

.sheet { max-width: 1240px; margin: 0 auto; background: var(--paper); padding: 0 var(--gx) 24px; min-height: 100vh }
@media (min-width: 1300px) { .sheet { margin-block: 32px; box-shadow: 0 1px 2px rgba(21, 23, 28, .06), 0 20px 50px -30px var(--lift) } }

/* document header */
.doc { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: end; padding-block: 28px 14px; border-bottom: 2px solid var(--rule-strong) }
.brand { font: 600 22px/1 var(--text); letter-spacing: .04em; text-decoration: none; color: var(--ink) }
.doc nav { display: flex; gap: 24px; justify-content: center; font-size: 15px }
.doc nav a { text-decoration: none; color: var(--ink-2) }
.doc nav a:hover { color: var(--signal) }
.docid { font-size: 13px; color: var(--ink-2); text-align: right; line-height: 1.4 }
.docid b { color: var(--ink); font-weight: 500 }

/* hero: description + key figures */
.hero { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; padding-block: 56px 64px; border-bottom: 1px solid var(--rule) }
.hero h1 { font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.4rem); line-height: 1.08; letter-spacing: -.025em; max-width: 17ch }
.lede { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--ink); max-width: 54ch }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; background: var(--signal); color: var(--signal-ink); border: 0; border-radius: 2px; font: 500 16px/1 var(--text); text-decoration: none; cursor: pointer; transition: background-color .15s, transform .15s }
.btn:hover { background: var(--signal-hover); color: var(--signal-ink) }
.btn:active { transform: translateY(1px) }
.btn svg, .lnk svg { width: 18px; height: 18px; flex: none }
.lnk { display: inline-flex; gap: 6px; align-items: center; font-weight: 500 }

table { width: 100%; border-collapse: collapse }
caption { text-align: left; font-weight: 600; font-size: 15px; padding-bottom: 10px }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: middle }
thead th { font-size: 13px; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid var(--rule-strong); white-space: nowrap }
.keys th { font-weight: 400; color: var(--ink-2); width: 52% }
.keys td { font-weight: 500 }
.keys tr.hi td { color: var(--signal); font-size: 20px; font-weight: 600 }
.num { text-align: right; padding-right: 0 }
td.num { white-space: nowrap }

/* icons strip under the hero */
.strip { display: grid; grid-template-columns: repeat(14, 1fr); gap: 12px; padding-block: 28px; border-bottom: 1px solid var(--rule) }
.strip a { display: block; transition: transform .2s cubic-bezier(.16, 1, .3, 1) }
.strip a:hover { transform: translateY(-3px) }
.strip img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 22.5% }

section { padding-block: 56px; border-bottom: 1px solid var(--rule) }
.sec { display: grid; grid-template-columns: 3fr 9fr; gap: 48px; align-items: start }
.sec > header h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.01em }
.sec > header p { margin-top: 10px; color: var(--ink-2); font-size: 15px; max-width: 30ch }
.sec > div { min-width: 0 }

/* product line */
.scroll { overflow-x: auto }
.line { min-width: 720px }
.line .cell { display: flex; gap: 12px; align-items: center }
.line td:last-child, .line th:last-child { padding-left: 28px }
.line td img { width: 28px; height: 28px; border-radius: 22.5%; flex: none }
.line td .nm { font-weight: 500 }
.line td .what { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.4 }
.line .cell { padding-block: 4px }
.line td .cat { color: var(--ink-2) }
.line tbody tr { transition: background-color .15s }
.line tbody tr:hover { background: var(--sheet) }
.line a { text-decoration: none }
.line a:hover { text-decoration: underline }
th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; color: var(--ink-2); font: 500 13px/1.3 var(--text) }
th button:hover { color: var(--ink) }
th button:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px }
th button svg { width: 12px; height: 12px; opacity: .35 }
th[aria-sort] button { color: var(--ink) }
th[aria-sort] button svg { opacity: 1; color: var(--signal) }
th[aria-sort="ascending"] button svg { transform: rotate(180deg) }
.bar { display: inline-block; height: 6px; background: var(--ink); vertical-align: middle; margin-right: 10px; border-radius: 1px }
.foot { margin-top: 12px; font-size: 13px; color: var(--ink-2) }

/* figures */
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px }
.figs figure { margin: 0 }
.figs .frame { background: var(--frame); padding: 24px 14% 0; overflow: hidden; height: 340px }
.figs img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; border-radius: 14px 14px 0 0 }
.figs figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.5 }
.figs figcaption b { color: var(--ink); font-weight: 600 }

/* capabilities */
.caps th { font-weight: 500; width: 34% }
.caps td { color: var(--ink-2) }

.docfoot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 18px; font-size: 13px; color: var(--ink-2) }
.docfoot a { color: var(--ink-2) }

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr auto; }
  .doc nav { display: none }
  .hero, .sec { grid-template-columns: 1fr; gap: 28px }
  .strip { grid-template-columns: repeat(7, 1fr) }
  .figs { grid-template-columns: 1fr 1fr 1fr; gap: 12px }
  .figs .frame { height: 220px; padding: 12px 12px 0 }
  .figs figcaption { font-size: 13px }
}
@media (max-width: 520px) {
  .docid span { display: none }
  .hero { padding-block: 36px 44px }
  .lede { font-size: 17px }
  .figs { grid-template-columns: 1fr; gap: 24px }
  .figs .frame { height: 300px }
  .line { min-width: 0 }
  .line th:nth-child(2), .line td:nth-child(2), .line th:nth-child(3), .line td:nth-child(3) { display: none }
  .line td:last-child, .line th:last-child { padding-left: 16px }
  .bar { display: none }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } .strip a, .btn, .line tbody tr { transition: none } }
.contact-sec { border-bottom: 2px solid var(--rule-strong) }
