/* The Tiger Touch site: the installer page and one page per printer brand
   (scripts/make-brand-pages.py). One stylesheet for all of them. */
/* Dark by default; light when the system asks for it, or when chosen with
   the button (data-theme on <html>, remembered in this browser). */
:root {
  --bg: #14161a; --card: #1e2128; --line: #2b2f38; --text: #f2f2f2;
  --muted: #8b909a; --accent: #f58220; --danger: #f06a6a; --ok: #3ecf8e;
  /* Small text in orange (links, labels): 4.5:1 at least on the page and on a
     card. --accent stays for large titles, borders and fills. */
  --link: #f58220;
  --warn-bg: #3a1f1f; --warn-line: #5a2f2f; --shadow: rgba(0, 0, 0, .45);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f5f7; --card: #ffffff; --line: #dde0e6; --text: #16181d;
    --muted: #5d6470; --accent: #e06d0c; --danger: #c93a3a; --ok: #1a9a62; --link: #b04a08;
    --warn-bg: #fdecec; --warn-line: #f2c4c4; --shadow: rgba(0, 0, 0, .12);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f5f7; --card: #ffffff; --line: #dde0e6; --text: #16181d;
  --muted: #5d6470; --accent: #e06d0c; --danger: #c93a3a; --ok: #1a9a62; --link: #b04a08;
  --warn-bg: #fdecec; --warn-line: #f2c4c4; --shadow: rgba(0, 0, 0, .12);
  color-scheme: light;
}
.themebtn {
  display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer;
  background: var(--bg); color: var(--muted); border: 1px solid var(--line); border-radius: 10px;
}
.themebtn:hover { border-color: var(--accent); color: var(--text); }
.themebtn svg { width: 17px; height: 17px; }
.themebtn .sun { display: none; }
:root[data-shown="light"] .themebtn .sun { display: block; }
:root[data-shown="light"] .themebtn .moon { display: none; }
.tools { display: flex; gap: 8px; align-items: center; }
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* One centred column of sections, wide on a computer, full width on a phone. */
.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }
header.bar { padding: 20px 0 8px; }
header.bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.logo { font-size: 1rem; font-weight: 700; color: var(--muted); text-decoration: none; letter-spacing: .02em; }
.logo span { color: var(--muted); font-weight: 400; }
.logo:hover, .logo:hover span { color: var(--link); }
main { padding: 8px 0 40px; }
section { margin-top: 28px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px;
}
h1, h2 { line-height: 1.2; }
p { margin: 0 0 14px; color: var(--muted); }
ol { margin: 0 0 20px; padding-left: 20px; color: var(--muted); }
li { margin-bottom: 6px; }
b { color: var(--text); }
.go { text-align: center; margin: 22px 0 6px; }

/* Hero: the pitch and the install card on one side, the screen on the other. */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
/* The name first, large; the promise under it. */
.hero .name { margin: 0; font-size: clamp(2.8rem, 1.6rem + 5vw, 5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.hero .name span { color: var(--accent); }
.hero .headline { text-wrap: balance; margin: 14px 0 10px; color: var(--text); font-weight: 650; line-height: 1.25; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.9rem); }
.hero .lead { font-size: 1.08rem; margin-bottom: 18px; }
.brands { display: block; width: 100%; height: auto; color: var(--text); }
.brands.strip { margin: 10px 0 30px; }
.views { display: block; width: min(620px, 112%); max-width: none; height: auto; }
.install h2 { margin: 0 0 12px; font-size: 1.2rem; }
.show { display: flex; justify-content: center; }
/* The device, turning over from the start-up screen to the printers. */

/* Before you start: the picture beside the words. */
.pre { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
.pre .eco { display: block; width: 100%; height: auto; border-radius: 12px; }
.pre h2 { margin: 0 0 10px; font-size: 1.35rem; }
.pre p { margin: 0 0 16px; }

/* The call to join, for people who are not installing today. */
.join {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 30px 32px; border-radius: 18px; color: #fff;
  /* Deep enough under every word for white text: 5.2:1 at its lightest. */
  background: linear-gradient(120deg, #c2410c 0%, #b03a12 55%, #9a2f12 100%);
}
.join h2 { margin: 0 0 6px; font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem); }
.join p { margin: 0; color: #fff; }
.joinbtn {
  flex: 0 0 auto; padding: 14px 26px; border-radius: 999px; text-decoration: none;
  background: #fff; color: #9a2f12; font-weight: 700; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.joinbtn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, .24); }
@media (max-width: 639px) {
  .join { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .joinbtn { align-self: stretch; text-align: center; }
}
.links, .foot { display: flex; flex-wrap: wrap; gap: 8px; }
.foot { justify-content: center; margin-top: 8px; }

/* Tablet: one wide column, the screen above the install card. */
@media (max-width: 999px) {
  /* The name at the top, then the promise, the screen, the install card; the brands under them. */
  .hero { grid-template-columns: 1fr; gap: 0; }
  .hero .intro { display: contents; }
  .hero .name { order: 1; } .hero .headline { order: 2; } .hero .lead { order: 3; } .hero .need { order: 4; }
  .show { order: 5; margin: 6px 0 22px; } .hero .install { order: 6; }
  .views { width: min(560px, 100%); }
  .hero .name, .hero .headline, .hero .lead { text-align: center; }
  .brands { margin-left: auto; margin-right: auto; }
}
/* Phone: everything stacked, tighter. */
@media (max-width: 639px) {
  .wrap { width: calc(100% - 32px); }
  .card { padding: 20px; border-radius: 14px; }
  section { margin-top: 20px; }
  .pre { grid-template-columns: 1fr; gap: 18px; }
  .views { width: 100%; }
}
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; min-height: 44px;
  border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .9rem;
}
.pill:hover { border-color: var(--link); color: var(--link); }
/* Dark text on orange: white on this orange is under 4.5:1 in both themes. */
.pill.solid, .pill.solid:visited { background: var(--accent); border-color: var(--accent); color: #14161a; font-weight: 600; }
.pill.solid:hover { filter: brightness(1.08); color: #14161a; }
.pill svg { width: 16px; height: 16px; }
.support { text-align: center; margin-top: 22px; }
.support p { font-size: .9rem; margin: 0 0 10px; }
.support .links { justify-content: center; }
.cmp h2 { margin: 0 0 8px; font-size: 1.35rem; }
.tablewrap { overflow-x: auto; }
.cmp table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .92rem; }
.cmp th, .cmp td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: center; color: var(--muted); }
.cmp th { color: var(--text); font-weight: 600; vertical-align: bottom; }
.cmp td:first-child { text-align: left; color: var(--text); }
.cmp .tt { color: var(--link); background: rgba(245, 130, 32, .07); }
.cmp .yes { color: var(--ok); font-weight: 700; }
.cmp .tt.yes { color: var(--ok); }
.cmp .no { color: var(--danger); }
esp-web-install-button button[slot="activate"] {
  background: var(--accent); color: #14161a; border: 0; border-radius: 12px;
  padding: 14px 28px; font: inherit; font-weight: 600; cursor: pointer;
}
esp-web-install-button button[slot="activate"]:hover { filter: brightness(1.08); }
.warn {
  display: none; margin-top: 16px; padding: 12px 14px; border-radius: 10px;
  background: var(--warn-bg); color: var(--danger); border: 1px solid var(--warn-line);
}
.warn b { color: inherit; }
small { color: var(--muted); display: block; margin-top: 18px; }
small + small { margin-top: 8px; }
.ver { font-size: .9rem; color: var(--muted); margin: 0 0 18px; }
a { color: var(--link); }

/* Language menu. A native <select> cannot be styled below its border. */
.langbox { position: relative; flex: 0 0 auto; }
.langbtn {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--bg); color: var(--text); font: inherit; font-size: .9rem;
  border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; min-height: 44px;
}
.langbtn:hover, .langbox[data-open="1"] .langbtn { border-color: var(--accent); }
.langbtn svg { width: 15px; height: 15px; color: var(--muted); flex: 0 0 auto; }
.langbox[data-open="1"] .caret { transform: rotate(180deg); }
.langmenu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; margin: 0; padding: 6px;
  list-style: none; min-width: 190px; max-height: 60vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px var(--shadow);
  /* Closed, it is hidden from the keyboard too (visibility), after its fade. */
  opacity: 0; transform: translateY(-4px); pointer-events: none; visibility: hidden;
  transition: opacity .12s, transform .12s, visibility 0s .12s;
}
.langbox[data-open="1"] .langmenu { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.langmenu li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--text);
}
.langmenu li:hover { background: var(--bg); }
.langmenu li:focus-visible { background: var(--bg); outline: 2px solid var(--link); outline-offset: -2px; }
.langmenu li[aria-selected="true"] { color: var(--link); font-weight: 600; }
.langmenu li svg { width: 14px; height: 14px; opacity: 0; color: var(--accent); }
.langmenu li[aria-selected="true"] svg { opacity: 1; }

/* ---- The brand strip: every logo a link to its brand's page --------------- */
/* HTML, with explicit colours visited or not: an SVG label inside a link kept
   Chrome's dark visited colour and vanished on the dark theme. */
nav.brands { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px 6px; }
nav.brands a, nav.brands a:visited { display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; text-align: center; }
nav.brands svg { width: 48px; height: 48px; }
nav.brands a:hover, nav.brands a:focus-visible, nav.brands a.cur, nav.brands a.cur:visited { color: var(--link); }
@media (max-width: 760px) { nav.brands { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- A brand's page (scripts/make-brand-pages.py) -------------------------- */
.crumbs { margin: 6px 0 18px; color: var(--muted); font-size: .92rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--link); }
.bp-hero { align-items: start; }
.bp-head { display: flex; align-items: center; gap: 22px; margin: 0 0 12px; }
.bp-logo { flex: none; display: block; width: clamp(56px, 4vw + 30px, 92px); height: auto; aspect-ratio: 1; color: var(--text); }
.logo.duo { font-size: 1.2rem; color: var(--text); letter-spacing: 0; }
.logo.duo b { color: var(--text); }
.logo .x { color: var(--link); font-weight: 600; margin: 0 4px; }
.lineup-sec { margin: 6px 0 26px; }
/* One row of up to seven; a second only when there are more (14 at most):
   the page sets --per, the printers on a row, and they shrink to fit it. */
.lineup { list-style: none; padding: 0 !important; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 18px; max-width: calc(var(--per, 7) * 150px + (var(--per, 7) - 1) * 18px); }
.lineup li { margin: 0 !important; display: flex; flex-direction: column; align-items: center; min-width: 0;
  flex: 0 0 calc((100% - (var(--per, 7) - 1) * 18px) / var(--per, 7)); }
.lineup img { display: block; width: 100%; max-width: 150px; height: auto; aspect-ratio: 1; object-fit: contain; }
/* On a phone, one row that scrolls sideways: never more than two rows anywhere. */
@media (max-width: 640px) {
  .lineup { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px !important; }
  .lineup li { flex: 0 0 34%; max-width: none; scroll-snap-align: start; }
}
.lineup span { margin-top: 4px; font-weight: 600; font-size: clamp(.78rem, .62rem + .4vw, .95rem); text-align: center; overflow-wrap: anywhere; }
.bp-title { margin: 0; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.bp-title span { color: var(--accent); }
.bp-title b { color: var(--accent); font-weight: inherit; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 18px 0 22px; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 0; }
.pill.big { padding: 12px 20px; font-size: 1rem; }
.bp-shot { margin: 0; flex-direction: column; align-items: center; }
.bp-shot img { display: block; width: min(460px, 100%); height: auto; }
.bp-shot figcaption { margin-top: 8px; color: var(--muted); font-size: .85rem; text-align: center; }
.bp-sec { margin: 22px 0; }
.bp-sec h2 { margin: 0 0 12px; font-size: 1.4rem; }
.bp-sec h3 { margin: 18px 0 6px; font-size: 1.08rem; }
.bp-sec ol, .bp-sec ul { margin: 0; padding-left: 1.3em; }
.bp-sec li { margin: 6px 0; }
.ticks { list-style: none; padding-left: 0 !important; }
.ticks li { position: relative; padding-left: 1.6em; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.tip { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 10px 10px 0; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.others { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.others li { margin: 0 !important; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.others a, .others a:visited { color: var(--text); text-decoration: none; }
.others a:hover { color: var(--link); }
.others span { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 16px 0; }
.features div { padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.features h3 { margin: 0 0 6px; font-size: 1rem; }
.features p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 999px) {
  .bp-hero .intro { display: block; }
  .bp-hero .lead { text-align: left; }
  .bp-shot { order: 0; margin: 8px 0 18px; }
}
.latest { margin: 14px 0 0; color: var(--muted); font-size: .92rem; }
.latest b { color: var(--ok); }
.latest a { color: var(--link); }
.pill-ico { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }

/* The comparison: one row per brand, its logo and a link to its page. */
.cmp a.brand, .cmp a.brand:visited { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.cmp a.brand:hover { color: var(--link); }
.cmp a.brand img { flex: none; }

/* Why it exists. */
.phil h2 { margin: 0 0 10px; font-size: 1.35rem; }
.phil p { margin: 0 0 14px; }
.phil-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.phil-points li { padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; }

/* The TigerSquad card stands on its own between the install card and the brands. */
.join { margin: 28px 0 30px; }
.lineup small { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.tt-touch { color: var(--accent); }
.legal { margin: 18px 0 0; color: var(--muted); font-size: .82rem; text-align: center; }
.legal a { color: var(--muted); }
.need { margin: -6px 0 18px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 10px 10px 0; color: var(--text); font-size: .95rem; }
.first { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: .93rem; }
.first a, .install small a { color: var(--link); }
.bp-note { margin: -8px 0 18px; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 10px 10px 0; font-size: .95rem; }
.small-note { margin: 8px 0 0; color: var(--muted); font-size: .85rem; }
.small-note a { color: var(--muted); }

/* The arrow to "Before you start": a 44 px target around a small glyph. */
.first a.down { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  margin: -12px -8px -12px 0; text-decoration: none; font-weight: 700; }

/* On a phone the comparison is stacked: a row's name, then its three answers
   side by side, each under its column's name; nothing to scroll sideways. */
@media (max-width: 640px) {
  .tablewrap { overflow-x: visible; }
  .cmp table { min-width: 0; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cmp tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cmp tbody td { border: 0; padding: 2px 4px; }
  .cmp tbody td:first-child { grid-column: 1 / -1; padding-bottom: 6px; font-weight: 600; }
  .cmp tbody td:not(:first-child)::before { content: attr(data-label); display: block; margin-bottom: 2px;
    color: var(--muted); font-size: .72rem; font-weight: 400; }
  .cmp .tt { background: transparent; }
}

/* The media kit (press/): the files, as a grid of downloads. */
.mk-hero { margin: 28px 0 8px; }
.mk-hero h1 { margin: 0 0 10px; font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.mk-size { opacity: .75; font-weight: 500; }
.mk-facts { grid-template-columns: minmax(110px, max-content) 1fr; }
.mk-quote { margin: 8px 0 10px; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 10px 10px 0; }
.mk-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.mk-grid a, .mk-grid a:visited { display: flex; flex-direction: column; gap: 6px; color: var(--muted); text-decoration: none; font-size: .8rem; }
.mk-thumb { display: flex; align-items: center; justify-content: center; height: 130px; padding: 8px; border: 1px solid var(--line); border-radius: 10px;
  background: repeating-conic-gradient(#8a8f98 0% 25%, #a3a8b0 0% 50%) 50% / 16px 16px; }
.mk-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mk-grid a:hover .mk-thumb, .mk-grid a:focus-visible .mk-thumb { border-color: var(--accent); }
.mk-grid a:hover .mk-name { color: var(--link); }
.mk-name { overflow-wrap: anywhere; }

/* Share this page: one round button per site, then copy the link and the phone's own sheet. */
.share { margin: 30px 0 6px; }
.share h2 { margin: 0 0 12px; font-size: 1.15rem; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share-btn, .share-btn:visited { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); }
.share-btn svg { width: 20px; height: 20px; }
.share-btn:hover, .share-btn:focus-visible { border-color: var(--accent); color: var(--link); }
.share-copy { display: inline-flex; align-items: center; gap: 8px; }
.share-copy svg { width: 18px; height: 18px; }
.share [hidden] { display: none; }

/* The rest of TigerSystem, at the foot of every page: secondary, there to be discovered. */
.eco-sec { margin: 34px 0 8px; }
.eco-sec h2 { margin: 0 0 6px; font-size: 1.3rem; }
.eco-sec > p { margin: 0 0 16px; color: var(--muted); }
.eco-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.eco-item, .eco-item:visited { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; }
.eco-item:hover, .eco-item:focus-visible { border-color: var(--accent); }
.eco-item img { width: 100%; height: 120px; object-fit: contain; margin-bottom: 6px; }
.eco-item h3 { margin: 0; font-size: 1rem; }
.eco-item:hover h3 { color: var(--link); }
.eco-item p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 999px) { .eco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) {
  .eco-grid { grid-template-columns: 1fr; }
  .eco-item { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; }
  .eco-item img { width: 72px; height: 72px; margin: 0; }
  .eco-item h3 { flex: 1; }
}

/* Asked for less motion: the menu and the caret switch at once. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
