/* Fonts (self-hosted, SIL Open Font License): Archivo, IBM Plex Sans, IBM Plex Sans Arabic */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/archivo-latin-ext-c628a8.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/archivo-latin-0186fb.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/archivo-latin-ext-c628a8.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/archivo-latin-0186fb.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/archivo-latin-ext-c628a8.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/archivo-latin-0186fb.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 900; font-display: swap; src: url(/assets/fonts/archivo-latin-ext-c628a8.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 900; font-display: swap; src: url(/assets/fonts/archivo-latin-0186fb.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin-ext-effb1e.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin-f66677.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin-ext-effb1e.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin-f66677.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin-ext-effb1e.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin-f66677.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-arabic-arabic-284d2a.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-arabic-arabic-d2ea6c.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-arabic-arabic-bdba2e.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-arabic-arabic-07d5e7.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

/* Juhub.ss — brand: red #E01B00 / #FF2100, ink #16171B, white. */
:root {
  --red: #E01B00;
  --red-bright: #FF2100;
  --red-dark: #A81400;
  --red-tint: #FFE9E5;
  --ink: #16171B;
  --ink-2: #24262C;
  --ink-3: #31343B;
  --text: #16171B;
  --text-2: #3A3C44;
  --muted: #5F616A;
  --line: #E1E2E6;
  --paper: #FFFFFF;
  --paper-2: #F5F5F7;
  --ok: #0F7B3F;
  --ok-tint: #E3F5EA;
  --taken: #5F616A;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(22 23 27 / 6%), 0 8px 24px rgb(22 23 27 / 8%);
  --font-display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 900; margin-bottom: 24px; }
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; inset-inline-start: 8px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; transform: translateY(-200%); }
.skip:focus { transform: none; color: #fff; }

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-3); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { background: var(--red-tint); color: var(--red-dark); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }

/* --- header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 92%); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand img { width: 92px; height: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; background: transparent; color: var(--ink); border-radius: 10px; cursor: pointer;
}
.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: none; flex-direction: column; gap: 4px; padding: 12px 20px 20px;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.site-nav.open { display: flex; }
.site-nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 500; padding: 12px 4px; border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"]:not(.btn) { color: var(--red); }
.nav-cta { margin-top: 12px; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 6px;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .site-nav a:not(.btn) { border: 0; padding: 10px 12px; border-radius: 8px; }
  .site-nav a:not(.btn):hover { background: var(--paper-2); color: var(--ink); }
  .site-nav a[aria-current="page"]:not(.btn) { color: var(--red); }
  .nav-cta { margin: 0 0 0 10px; }
}

/* --- sections ----------------------------------------------------------- */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-alt { background: var(--paper-2); }
.section-ink { background: var(--ink); color: #fff; }
.section-red { background: var(--red); color: #fff; }

.eyebrow {
  font: 700 .8125rem/1.2 var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: var(--red);
  margin-bottom: 12px;
}
.section-ink .eyebrow { color: #FF7A63; }
.section-red .eyebrow { color: #fff; opacity: .9; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 900; }
.section-head p { margin-top: 16px; font-size: 1.125rem; color: var(--text-2); }
.section-ink .section-head p { color: #C9CAD1; }

.page-hero { padding: 64px 0 56px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0 0 auto; height: 6px; background: var(--red-bright); }
.page-hero h1 { font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 900; max-width: 900px; }
.page-hero p { margin-top: 18px; max-width: 680px; font-size: 1.1875rem; color: #C9CAD1; }
.page-hero .eyebrow { color: #FF7A63; }

/* --- home hero + domain search ------------------------------------------ */
.hero {
  position: relative; overflow: hidden; background: var(--ink); color: #fff;
  padding: 56px 0 64px;
}
@media (min-width: 900px) { .hero { padding: 96px 0 96px; } }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(2.5rem, 7.5vw, 5rem); font-weight: 900; letter-spacing: -0.025em; max-width: 960px; }
.hero h1 em { font-style: normal; color: var(--red-bright); }
.hero-lead { margin-top: 18px; font-size: clamp(1.0625rem, 2vw, 1.25rem); color: #C9CAD1; max-width: 640px; }

.search { margin-top: 36px; max-width: 880px; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 6px 6px 6px 22px;
  box-shadow: 0 0 0 4px rgb(255 33 0 / 0%), 0 18px 48px rgb(0 0 0 / 35%);
  transition: box-shadow .2s;
}
.search-box:focus-within { box-shadow: 0 0 0 4px rgb(255 33 0 / 45%), 0 18px 48px rgb(0 0 0 / 35%); }
.search-box > svg { flex-shrink: 0; color: var(--muted); }
.search-box input {
  flex: 1; min-width: 0; height: 56px; border: 0; outline: 0; background: transparent;
  font: 500 1.1875rem var(--font-body); color: var(--ink);
}
.search-box input::placeholder { color: #6B6D76; }
.search-box .btn { min-height: 52px; }
@media (max-width: 520px) {
  .search-box { padding-left: 16px; }
  .search-box input { height: 50px; font-size: 1.0625rem; }
  .search-box .btn-label { display: none; }
  .search-box .btn { padding: 0 16px; min-height: 48px; }
}
.search-light .search-box { box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.search-light .search-box:focus-within { box-shadow: 0 0 0 4px rgb(224 27 0 / 30%), var(--shadow); }

.tld-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tld-chip {
  display: inline-flex; align-items: baseline; gap: 6px; min-height: 36px; padding: 6px 14px;
  border-radius: 999px; border: 1px solid rgb(255 255 255 / 18%); color: #fff; background: rgb(255 255 255 / 6%);
  font: 600 .9375rem var(--font-body); cursor: pointer;
}
.tld-chip:hover { background: rgb(255 255 255 / 14%); }
.tld-chip small { font-weight: 400; color: #C9CAD1; }
.search-light .tld-chip { border-color: var(--line); color: var(--ink); background: #fff; }
.search-light .tld-chip:hover { border-color: var(--ink); }
.search-light .tld-chip small { color: var(--muted); }

/* results */
.results { margin-top: 22px; display: none; }
.results.show { display: block; }
.result-hero {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: 22px 24px;
  border: 2px solid transparent; box-shadow: var(--shadow);
  animation: pop .28s cubic-bezier(.2,.9,.3,1.2);
}
.result-hero[data-status="available"] { border-color: var(--ok); }
.result-hero .name { font: 800 clamp(1.375rem, 3.4vw, 1.875rem)/1.15 var(--font-display); word-break: break-all; }
.result-hero .name span { color: var(--red); }
.result-hero .verdict { margin-top: 6px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.result-hero[data-status="available"] .verdict { color: var(--ok); }

.result-list {
  margin-top: 12px; background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.result-list:empty { display: none; }
.result-list h3 {
  font: 700 .8125rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding: 16px 20px 8px;
}
.row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 14px;
  padding: 12px 20px; border-top: 1px solid var(--line); min-height: 64px;
  animation: slide .25s ease-out both;
}
.row .dn { font-weight: 600; font-size: 1.0625rem; word-break: break-all; }
.row .dn span { color: var(--red); }
.row .meta { display: flex; align-items: center; gap: 12px; justify-self: end; }
.row .price { color: var(--muted); font-size: .9375rem; white-space: nowrap; }
.row[data-status="taken"] .dn { color: var(--muted); }
.row[data-status="taken"] .dn span { color: var(--muted); }
@media (max-width: 520px) {
  .row { grid-template-columns: 1fr; }
  .row .meta { justify-self: stretch; justify-content: space-between; }
}

.badge {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 12px; border-radius: 999px;
  font-size: .8125rem; font-weight: 600; white-space: nowrap;
}
.badge-checking { background: var(--paper-2); color: var(--muted); }
.badge-available { background: var(--ok-tint); color: var(--ok); }
.badge-taken { background: var(--paper-2); color: var(--taken); }
.badge-unknown { background: #FFF4D6; color: #7A5A00; }
.spinner {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.row .btn, .result-hero .btn { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn-link { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: .9375rem; cursor: pointer; padding: 10px 4px; min-height: 44px; }
.btn-link:hover { color: var(--ink); }
.results-note { margin-top: 12px; font-size: .875rem; color: #A9ABB3; }
.search-light .results-note { color: var(--muted); }
.search-error { margin-top: 14px; color: #FFB3A6; font-weight: 500; }
.search-light .search-error { color: var(--red-dark); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes slide { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.flash { animation: flash .5s ease-out; }
@keyframes flash { from { background: var(--ok-tint); } to { background: #fff; } }

/* --- trust strip -------------------------------------------------------- */
.strip { border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.strip-item { display: flex; gap: 14px; align-items: flex-start; padding: 24px 0; }
@media (min-width: 900px) { .strip-item { padding: 28px 24px; border-left: 1px solid var(--line); } .strip-item:first-child { border-left: 0; padding-left: 0; } }
.strip-item strong { display: block; font-family: var(--font-display); font-size: 1.0625rem; }
.strip-item span { color: var(--muted); font-size: .9375rem; }

/* --- icons -------------------------------------------------------------- */
.icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--red-tint); color: var(--red);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon svg { width: 26px; height: 26px; }
.icon-solid { background: var(--red); color: #fff; }
.icon-ink { background: var(--ink-3); color: #FF7A63; }

/* --- journey ------------------------------------------------------------ */
.journey { display: grid; gap: 12px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 700px) { .journey { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .journey { grid-template-columns: repeat(5, 1fr); } }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 800 .875rem var(--font-display); }
.step h3 { font-size: 1.5rem; font-weight: 900; }
.step p { color: var(--text-2); font-size: .9375rem; }
.step-secure { background: var(--ink); color: #fff; border-color: var(--ink); }
.step-secure p { color: #C9CAD1; }
.step-secure .step-num { background: #fff; color: var(--ink); }

/* --- service cards ------------------------------------------------------ */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
a.card:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-num { font: 800 .875rem var(--font-display); color: var(--red); }
.card h3 { font-size: 1.375rem; font-weight: 800; }
.card ul { display: flex; flex-direction: column; gap: 6px; color: var(--text-2); font-size: .9375rem; }
.card li { display: flex; gap: 10px; }
.card li::before { content: ''; width: 6px; height: 6px; background: var(--red-bright); margin-top: 9px; flex-shrink: 0; }
.card .more { margin-top: auto; font-weight: 600; color: var(--red); display: inline-flex; gap: 6px; align-items: center; }
.card-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
a.card-ink:hover { border-color: var(--red-bright); color: #fff; }
.card-ink ul { color: #C9CAD1; }
.card-ink .card-num, .card-ink .more { color: #FF7A63; }

/* --- process ------------------------------------------------------------ */
.process { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .process { grid-template-columns: repeat(3, 1fr); } }
.proc { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 24px; }
.proc-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font: 800 1.0625rem var(--font-display);
}
.proc h3 { margin-top: 14px; font-size: 1.25rem; font-weight: 800; }
.proc p { margin-top: 6px; color: #C9CAD1; font-size: .9375rem; }
.standards { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.standards strong { margin-right: 6px; font-family: var(--font-display); }
.pill { padding: 8px 14px; border-radius: 999px; border: 1px solid #4A4D55; font-size: .9375rem; color: #E4E5EA; }
.section:not(.section-ink) .pill { border-color: var(--line); color: var(--ink); background: #fff; }

/* --- split / lists ------------------------------------------------------ */
.split { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.ticks { display: flex; flex-direction: column; }
.ticks li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ''; width: 8px; height: 8px; background: var(--red-bright); margin-top: 9px; flex-shrink: 0; }
.ticks-2 { display: grid; grid-template-columns: 1fr; column-gap: 32px; }
@media (min-width: 700px) { .ticks-2 { grid-template-columns: 1fr 1fr; } .ticks-2 li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); } }
.why { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .why { grid-template-columns: 1fr 1fr; } }
.why div { padding: 20px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.why strong { display: block; font-family: var(--font-display); font-size: 1.125rem; }
.why span { color: var(--text-2); font-size: .9375rem; }

/* --- service detail ----------------------------------------------------- */
.svc { padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.svc:first-of-type { border-top: 0; }
.svc-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .svc-grid { grid-template-columns: 5fr 7fr; gap: 64px; } }
.svc-title { display: flex; gap: 16px; align-items: center; }
.svc-title .card-num { display: block; }
.svc h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 900; }
.svc-lead { margin-top: 18px; font-size: 1.125rem; color: var(--text-2); }
.svc .btn { margin-top: 24px; }
.sub-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sub-grid { grid-template-columns: 1fr 1fr; } }
.sub { background: var(--paper-2); border-radius: var(--radius-sm); padding: 18px 20px; }
.sub strong { display: block; }
.sub span { font-size: .9375rem; color: var(--text-2); }
.sub-ink { background: var(--ink); color: #fff; }
.sub-ink span { color: #C9CAD1; }
.panel { border-radius: var(--radius); padding: 26px; background: var(--paper-2); }
.panel-ink { background: var(--ink); color: #fff; }
.panel h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; }
.panel-ink .ticks li { border-color: var(--ink-3); color: #E4E5EA; }

.callout {
  display: flex; gap: 16px; align-items: center; margin-top: 28px; padding: 20px 24px; border-radius: var(--radius);
  background: var(--ink); color: #fff;
}
.callout svg { flex-shrink: 0; color: #FF7A63; }

/* --- vision / values ---------------------------------------------------- */
.duo { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo > div { padding: 32px; border-radius: var(--radius); background: var(--paper-2); }
.duo > div:first-child { background: var(--red); color: #fff; }
.duo h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 10px; }
.duo p { font-size: 1.125rem; }
.values { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .values { grid-template-columns: repeat(5, 1fr); } }
.values div { padding: 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
.values strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--red); }
.values span { color: var(--text-2); font-size: .9375rem; }

/* --- CTA ---------------------------------------------------------------- */
.cta { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .cta { grid-template-columns: 1.3fr 1fr; } }
.cta h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
.cta p { margin-top: 14px; font-size: 1.125rem; opacity: .92; }
.section-red .cta p { opacity: 1; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Outline buttons turn white only on red or dark backgrounds. */
:is(.section-red, .section-ink, .page-hero) .cta-actions .btn-ghost { border-color: #fff; color: #fff; }
:is(.section-red, .section-ink, .page-hero) .cta-actions .btn-ghost:hover { background: #fff; color: var(--red); }

/* --- table -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 420px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
th { font: 700 .8125rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; font-family: var(--font-display); font-size: 1.0625rem; }

/* --- FAQ ---------------------------------------------------------------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 20px 40px 20px 0; font: 700 1.125rem var(--font-display); list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 1.75rem; font-weight: 400; color: var(--red); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 20px; color: var(--text-2); max-width: 760px; }

/* --- forms -------------------------------------------------------------- */
.form { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .9375rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #C8CAD0; border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgb(224 27 0 / 18%); }
/* Visually hidden but readable by screen readers; no offsets, so it never creates scroll area (LTR or RTL). */
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-status { font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--red-dark); }
.contact-cards { display: grid; gap: 12px; align-content: start; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--paper-2); color: var(--ink); text-decoration: none; }
a.contact-card:hover { background: var(--red-tint); color: var(--ink); }
.contact-card small { display: block; color: var(--muted); font-size: .8125rem; }
.contact-card strong { font-size: 1.0625rem; }

/* --- footer ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #C9CAD1; padding: 64px 0 28px; font-size: .9375rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-brand img { width: 110px; background: #fff; border-radius: 8px; padding: 6px; }
.footer-brand .tagline { margin: 16px 0 8px; font: 800 1.125rem var(--font-display); color: #fff; }
.site-footer h2 { font: 700 .8125rem var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #C9CAD1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--ink-3); font-size: .875rem; color: #A9ABB3;
}

.center { text-align: center; }
.mt-lg { margin-top: 40px; }
.lead { font-size: 1.1875rem; color: var(--text-2); }
.stack > * + * { margin-top: 16px; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 24px; }
.span-all { grid-column: 1 / -1; }

/* ======================================================================
   Lively layer: illustrations, colour tiles, chapters, motion
   ====================================================================== */
:root {
}
::selection { background: var(--red-bright); color: #fff; }
input, textarea { caret-color: var(--red); }
html { accent-color: var(--red); scrollbar-color: #9A9CA4 transparent; }

/* hero: domain pills + trace motif ------------------------------------ */
.hero { padding-bottom: 88px; }
.hero-grid { position: relative; }
.hero-trace {
  position: absolute; right: -40px; top: -24px; width: 520px; max-width: 60%; height: auto;
  opacity: .9; pointer-events: none;
}
.hero-pills { display: none; }
@media (min-width: 1100px) {
  .hero-pills { display: block; position: absolute; right: 0; top: 30px; width: 300px; height: 380px; pointer-events: none; }
  .hero-pill {
    position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
    background: #fff; color: var(--ink); font: 800 1.125rem var(--font-display); box-shadow: 0 14px 32px rgb(0 0 0 / 35%);
    animation: drift 7s ease-in-out infinite;
  }
  .hero-pill span { color: var(--red); }
  .hero-pill i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
  .hero-pill:nth-child(1) { right: 40px; top: 0; }
  .hero-pill:nth-child(2) { right: 150px; top: 96px; animation-delay: -2s; }
  .hero-pill:nth-child(3) { right: 10px; top: 190px; animation-delay: -4s; }
  .hero-pill:nth-child(4) { right: 120px; top: 290px; animation-delay: -5.5s; }
  .hero h1, .hero-lead, .search { position: relative; z-index: 1; }
  .hero h1 { max-width: 760px; }
}
@keyframes drift { 50% { transform: translateY(-12px); } }


/* service mosaic ----------------------------------------------------- */
.mosaic { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .mosaic { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .mosaic { grid-template-columns: repeat(12, 1fr); }
  .t-7 { grid-column: span 7; } .t-5 { grid-column: span 5; } .t-4 { grid-column: span 4; }
}
.tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px;
  text-decoration: none; color: var(--ink); background: var(--paper-2);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.t-7 img { aspect-ratio: 16 / 9; }
@media (max-width: 1039px) { .t-7 img { aspect-ratio: 3 / 2; } }
.tile-body { display: flex; flex-direction: column; gap: 6px; padding: 4px 26px 26px; flex: 1; }
.tile h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 900; letter-spacing: -0.02em; }
.tile p { font-size: 1rem; opacity: .86; max-width: 40ch; }
.tile .go {
  position: absolute; right: 18px; top: 18px; width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--ink);
  box-shadow: 0 6px 16px rgb(0 0 0 / 18%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
a.tile:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgb(22 23 27 / 22%); color: inherit; }
a.tile:hover img { transform: scale(1.04); }
a.tile:hover .go { transform: rotate(-45deg); }
.bg-red { background: var(--red); color: #fff; }
.bg-ink { background: var(--ink); color: #fff; }
.bg-tint { background: var(--red-tint); color: var(--ink); }
a.tile.bg-red, a.tile.bg-red:hover, a.tile.bg-ink, a.tile.bg-ink:hover { color: #fff; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags li {
  padding: 7px 14px; border-radius: 999px; font-size: .9375rem; font-weight: 600; line-height: 1.3;
  background: rgb(22 23 27 / 7%);
}
.bg-red .tags li, .bg-ink .tags li { background: rgb(255 255 255 / 14%); }

/* journey path ------------------------------------------------------- */
.journey { position: relative; }
@media (min-width: 1040px) {
  .journey::before {
    content: ''; position: absolute; left: 6%; right: 6%; top: 46px; height: 6px; border-radius: 3px;
    background: repeating-linear-gradient(90deg, var(--red) 0 22px, transparent 22px 34px);
  }
}
.step { z-index: 1; border-width: 2px; }
.step-dot {
  width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--red-tint); color: var(--red); margin-bottom: 8px;
}
.step-dot svg { width: 28px; height: 28px; }

/* section headings without labels ------------------------------------ */
.section-head h2 em, .h2 em, .chapter h2 em, .page-hero h1 em { font-style: normal; color: var(--red-bright); }
.section-ink .section-head h2 em { color: #FF5A3D; }

/* chapters (services page) ------------------------------------------- */
.chapter { padding: 72px 0; scroll-margin-top: 68px; }
.chapter:nth-of-type(odd) { background: var(--paper-2); }
@media (min-width: 900px) { .chapter { padding: 96px 0; } }
.chapter-grid { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) {
  .chapter-grid { grid-template-columns: 1.1fr 1fr; gap: 72px; }
  .chapter:nth-of-type(even) .chapter-art { order: 2; }
}
.chapter-art { border-radius: 28px; overflow: hidden; box-shadow: 0 24px 60px rgb(22 23 27 / 18%); }
.chapter-art img { width: 100%; aspect-ratio: 3 / 2; }
.chapter h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 900; letter-spacing: -0.02em; }
.sub-tags { margin-top: 22px; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .sub-tags { grid-template-columns: 1fr 1fr; } }
.sub-tags strong { font: 800 1.0625rem var(--font-display); }
.chapter-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chapter-jump a {
  padding: 10px 16px; border-radius: 999px; background: rgb(255 255 255 / 10%); color: #fff; text-decoration: none;
  font-weight: 600; border: 1px solid rgb(255 255 255 / 20%);
}
.chapter-jump a:hover { background: #fff; color: var(--ink); }

/* hero art on inner pages -------------------------------------------- */
.page-hero-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; } }
.page-hero-art { border-radius: 26px; overflow: hidden; box-shadow: 0 24px 60px rgb(0 0 0 / 40%); }
.page-hero-art img { width: 100%; aspect-ratio: 3 / 2; }

.skyline { display: block; width: 100%; height: clamp(160px, 22vw, 300px); object-fit: cover; object-position: center bottom; }

/* security: test grid ------------------------------------------------ */
.tests { display: grid; gap: 2px; grid-template-columns: 1fr; background: var(--line); border-radius: 22px; overflow: hidden; border: 2px solid var(--line); }
@media (min-width: 640px) { .tests { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .tests { grid-template-columns: repeat(4, 1fr); } }
.test { background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: background-color .2s; }
.test:hover { background: var(--red-tint); }
.test svg { width: 34px; height: 34px; color: var(--red); margin-bottom: 6px; }
.test strong { font: 800 1.1875rem/1.2 var(--font-display); }
.test span { color: var(--text-2); font-size: .9375rem; }
.test-wide { grid-column: 1 / -1; background: var(--ink); color: #fff; flex-direction: row; align-items: center; gap: 16px; }
.test-wide:hover { background: var(--ink-2); }
.test-wide span { color: #C9CAD1; }
.test-wide svg { color: #FF5A3D; margin: 0; flex-shrink: 0; }

/* values & industries ------------------------------------------------ */
.values strong { font-size: 1.5rem; font-weight: 900; }

.industry-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.industry-cloud li {
  padding: 14px 22px; border-radius: 999px; font: 800 clamp(1.0625rem, 1.8vw, 1.375rem)/1.2 var(--font-display);
  background: #fff; border: 2px solid var(--ink); transition: background-color .2s, color .2s, transform .2s;
}
.industry-cloud li:hover { background: var(--ink); color: #fff; transform: rotate(-2deg); }

/* reveal on scroll: only elements still below the fold are hidden, by JS */
.reveal { transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.pending { opacity: 0; transform: translateY(32px); }
@media (prefers-reduced-motion: reduce) { .reveal.pending { opacity: 1; transform: none; } }
.chapter .pitch strong { display: block; margin-bottom: 8px; font: 800 clamp(1.375rem, 2.4vw, 1.75rem)/1.2 var(--font-display); letter-spacing: -0.01em; }
h1, h2, h3 { text-wrap: balance; }
.chapter-art { box-shadow: 0 18px 40px rgb(22 23 27 / 12%); }
.result-list .row:first-child { border-top: 0; }

/* ======================================================================
   Features: client area, language switch, WhatsApp, prices, bulk, scan
   ====================================================================== */
.nav-lang { font-family: 'IBM Plex Sans Arabic', var(--font-body); font-weight: 600 !important; }
.nav-client { font-weight: 600 !important; }
@media (min-width: 900px) {
  .site-nav { gap: 2px; }
  .site-nav a:not(.btn) { padding: 10px 10px; font-size: .9375rem; }
  .nav-client { border: 1.5px solid var(--ink) !important; border-radius: 999px !important; padding: 8px 14px !important; margin-left: 6px; }
  .nav-client:hover { background: var(--ink) !important; color: #fff !important; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .site-nav a[data-page="security"] { display: none; }
}


/* search mode tabs */
.search-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 999px; background: rgb(255 255 255 / 8%); }
.search-tabs button {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: #C9CAD1;
  font: 600 .9375rem var(--font-body); cursor: pointer;
}
.search-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.bulk-box { background: #fff; border-radius: 22px; padding: 14px; box-shadow: 0 18px 48px rgb(0 0 0 / 35%); }
.bulk-box textarea {
  width: 100%; min-height: 150px; border: 0; outline: 0; resize: vertical; font: 500 1.0625rem/1.6 var(--font-body); color: var(--ink); padding: 8px;
}
.bulk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 4px 0; border-top: 1px solid var(--line); }
.bulk-foot small { color: var(--muted); }
[hidden] { display: none !important; }

/* price table */
.price-table td:first-child span { color: var(--red); }
.price-table td.num, .price-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table td:last-child { text-align: right; }
.price-table .btn { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.price-table tbody tr:hover { background: var(--red-tint); }

/* security check */
.scan-form { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 22px; box-shadow: 0 18px 48px rgb(0 0 0 / 35%); max-width: 760px; margin-top: 32px; }
.scan-form input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 1.1875rem var(--font-body); color: var(--ink); background: transparent; height: 56px; }
.scan-form .btn { min-height: 52px; }
.scan-note { margin-top: 14px; color: #A9ABB3; font-size: .9375rem; max-width: 760px; }
.scan-out { margin-top: 28px; }
.report { display: grid; gap: 22px; grid-template-columns: 1fr; color: var(--ink); }
@media (min-width: 900px) { .report { grid-template-columns: 320px 1fr; align-items: start; } }
.grade-card { background: #fff; border-radius: 22px; padding: 28px; text-align: center; position: sticky; top: 88px; }
.grade {
  width: 132px; height: 132px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font: 900 4.5rem/1 var(--font-display); color: #fff; background: var(--ink);
}
.grade[data-grade="A"], .grade[data-grade="B"] { background: var(--ink); }
.grade[data-grade="C"], .grade[data-grade="D"], .grade[data-grade="F"] { background: var(--red); }
.grade-card h2 { font-size: 1.5rem; font-weight: 900; word-break: break-all; }
.grade-card p { color: var(--text-2); margin-top: 6px; }
.grade-card .btn { margin-top: 18px; width: 100%; }
.check-groups { display: grid; gap: 18px; }
.check-group { background: #fff; border-radius: 22px; overflow: hidden; }
.check-group h3 { padding: 18px 22px 10px; font-size: 1.125rem; font-weight: 900; }
.check { display: grid; grid-template-columns: 28px 1fr; gap: 4px 14px; padding: 14px 22px; border-top: 1px solid var(--line); }
.check-ico { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; grid-row: span 2; }
.check[data-status="pass"] .check-ico { background: var(--ink); }
.check[data-status="warn"] .check-ico { background: var(--red-tint); color: var(--red); }
.check[data-status="fail"] .check-ico { background: var(--red); }
.check strong { font-size: 1rem; }
.check span { color: var(--text-2); font-size: .9375rem; }
.scan-loading { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 600; }
.scan-loading .spinner { width: 20px; height: 20px; border-width: 3px; }
.scan-error { color: #FFB3A6; font-weight: 600; margin-top: 16px; }

/* ======================================================================
   Arabic (right-to-left)
   ====================================================================== */
:root[lang="ar"] {
  --font-display: 'IBM Plex Sans Arabic', 'Archivo', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
}
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] .tile h3 { letter-spacing: 0; font-weight: 700; line-height: 1.3; }
[lang="ar"] body { line-height: 1.8; }
[dir="rtl"] .btn svg, [dir="rtl"] .go svg { transform: scaleX(-1); }
[dir="rtl"] .search-box { padding: 6px 22px 6px 6px; }
[dir="rtl"] .scan-form { padding: 6px 22px 6px 6px; }
[dir="rtl"] .search-box input:placeholder-shown, [dir="rtl"] .scan-form input:placeholder-shown, [dir="rtl"] .bulk-box textarea:placeholder-shown { direction: rtl; }
[dir="rtl"] .tile .go { right: auto; left: 18px; }
[dir="rtl"] th, [dir="rtl"] td { text-align: right; }
[dir="rtl"] .price-table td.num, [dir="rtl"] .price-table th.num, [dir="rtl"] .price-table td:last-child { text-align: left; }
[dir="rtl"] .faq summary { padding: 20px 0 20px 40px; }
[dir="rtl"] .faq summary::after { right: auto; left: 4px; }
@media (min-width: 900px) {
  [dir="rtl"] .nav-cta { margin: 0 10px 0 0; }
  [dir="rtl"] .nav-client { margin-left: 0; margin-right: 6px; }
}
@media (min-width: 1100px) {
  [dir="rtl"] .hero-pills { right: auto; left: 0; }
  [dir="rtl"] .hero-pill:nth-child(1) { right: auto; left: 40px; }
  [dir="rtl"] .hero-pill:nth-child(2) { right: auto; left: 150px; }
  [dir="rtl"] .hero-pill:nth-child(3) { right: auto; left: 10px; }
  [dir="rtl"] .hero-pill:nth-child(4) { right: auto; left: 120px; }
}
.ltr { direction: ltr; unicode-bidi: isolate; }

/* name ideas, lookup panel, renewal badge, printable report */
.ideas-tld {
  height: 44px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 12px; background: #fff; color: var(--ink);
  font: 600 .9375rem var(--font-body);
}
@media (max-width: 520px) { .ideas-tld { width: 84px; padding: 0 6px; } }
.same-renew {
  display: inline-block; margin-inline-start: 10px; padding: 2px 10px; border-radius: 999px; background: var(--red-tint); color: var(--red-dark);
  font-size: .8125rem; font-weight: 600; vertical-align: middle;
}
.price-table .same-renew { display: block; width: max-content; margin: 4px 0 0 auto; }
[dir="rtl"] .price-table .same-renew { margin: 4px auto 0 0; }
.lookup { border-top: 1px solid var(--line); background: var(--paper-2); padding: 18px 20px; display: grid; gap: 16px; animation: slide .25s ease-out both; }
.result-hero + .lookup { margin-top: 12px; border-radius: var(--radius); border: 0; background: #fff; color: var(--ink); }
.lookup-loading { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.lookup-facts { margin: 0; display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.lookup-facts dt { font-size: .8125rem; color: var(--muted); }
.lookup-facts dd { margin: 0; font-weight: 600; word-break: break-word; }
.lookup-want { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.lookup-want p { color: var(--text-2); font-size: .9375rem; max-width: 52ch; }
.lookup-want .btn { min-height: 44px; }
.print-btn { width: 100%; margin-top: 10px; }
.print-only { display: none; }
@media print {
  .site-header, .site-footer, .scan-form, .scan-note, .skip, [data-scan] ~ *, main > section:not([data-scan]), .grade-card .btn { display: none !important; }
  body, .hero, [data-scan] { background: #fff !important; color: var(--ink) !important; }
  .hero { padding: 0 !important; }
  .hero::before { display: none; }
  .hero h1 { color: var(--ink); font-size: 28pt; }
  .hero-lead { color: var(--text-2) !important; }
  .grade-card { position: static; border: 1px solid var(--line); }
  .check-group { border: 1px solid var(--line); break-inside: avoid; }
  .print-only { display: block; color: var(--muted); margin-top: 10px; }
  .report { grid-template-columns: 1fr; }
  * { animation: none !important; box-shadow: none !important; }
}

/* accredited registrar trust line */
.accred { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: #E4E5EA; font-size: .9375rem; max-width: 760px; }
.accred svg { flex-shrink: 0; color: #fff; background: var(--red); border-radius: 50%; padding: 6px; width: 32px; height: 32px; }
.accred strong { color: #fff; }
.why .why-wide { grid-column: 1 / -1; background: var(--ink); border-color: var(--ink); }
.why .why-wide strong { color: #fff; }
.why .why-wide span { color: #C9CAD1; }
@media (min-width: 1100px) { .hero-grid .search, .hero-grid .accred { max-width: min(880px, calc(100% - 330px)); } }

/* hosting plans */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.plans-sub { font-size: 1.375rem; font-weight: 900; margin: 32px 0 14px; }
.plans-sub:first-of-type { margin-top: 0; }
.plan {
  display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 22px; background: #fff;
  border: 1.5px solid var(--line); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.plan:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.375rem; font-weight: 900; }
.plan-price strong { font: 900 2.5rem/1 var(--font-display); color: var(--red); letter-spacing: -0.02em; }
.plan-price span { color: var(--muted); font-weight: 600; }
.plan-feats { display: flex; flex-direction: column; gap: 8px; color: var(--text-2); font-size: .9375rem; flex: 1; }
.plan-feats li { display: flex; gap: 10px; }
.plan-feats li::before { content: ''; width: 7px; height: 7px; margin-top: 8px; flex-shrink: 0; background: var(--red-bright); border-radius: 2px; }
.plan .btn { margin-top: 6px; }
.plans-empty { color: var(--text-2); }
.more-links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.more-links .contact-card { background: #fff; }

/* security report: how to fix */
.check .fix { grid-column: 2; margin-top: 6px; }
.check .fix summary { cursor: pointer; font-weight: 600; color: var(--red); font-size: .9375rem; width: max-content; padding: 4px 0; }
.check .fix p { margin: 6px 0 10px; color: var(--text-2); font-size: .9375rem; }
.snippet { position: relative; background: var(--ink); border-radius: 12px; }
.snippet pre { margin: 0; padding: 14px 16px; padding-right: 76px; overflow-x: auto; color: #F3F3F5; font: 500 .8125rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.copy-btn {
  position: absolute; top: 8px; right: 8px; min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px;
  background: #fff; color: var(--ink); font: 600 .8125rem var(--font-body); cursor: pointer;
}
.copy-btn:hover { background: var(--red-tint); }
@media print { .check .fix { display: block; } .check .fix:not([open]) > :not(summary) { display: block; } .copy-btn { display: none; } }

/* footer social icons */
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ink-3); color: #fff; transition: background-color .2s, transform .2s; }
.social a:hover { background: var(--red); color: #fff; transform: translateY(-2px); }

/* payment methods */
.pay { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; }
.pay-label { font-weight: 600; font-size: .9375rem; color: var(--text-2); }
.pay-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-list img { display: block; width: 56px; height: 35px; border-radius: 6px; }
.site-footer .pay-label { color: #fff; }
.site-footer .pay-list { flex-direction: row; gap: 8px; }

/* transfer helper */
.transfer-card { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.transfer-head { padding: 22px 24px 16px; }
.transfer-head .name { font: 800 clamp(1.375rem, 3vw, 1.75rem)/1.2 var(--font-display); word-break: break-all; }
.transfer-head p { margin-top: 4px; color: var(--muted); font-weight: 500; }
.transfer-card > .btn { margin: 0 24px 22px; }
.transfer-card > .check { border-top: 1px solid var(--line); }
.transfer-steps { border-radius: 0; }
.transfer-steps .check { grid-template-columns: 28px 1fr; align-items: center; }
.transfer-steps .check-ico { grid-row: auto; }
.transfer-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 18px 24px; border-top: 1px solid var(--line); background: var(--paper-2); }
.transfer-foot strong { font-size: 1.125rem; }
.search-tabs { flex-wrap: wrap; }

/* guides */
.crumbs { margin-bottom: 14px; color: #C9CAD1; font-weight: 600; font-size: .9375rem; }
.crumbs a { color: #fff; }
.guide-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
.prose { max-width: 720px; margin: 0 auto; font-size: 1.125rem; line-height: 1.75; color: var(--text); }
.prose h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); font-weight: 900; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.prose li { position: relative; padding-inline-start: 20px; }
.prose li::before { content: ''; position: absolute; inset-inline-start: 0; top: .72em; width: 8px; height: 8px; background: var(--red-bright); }
.prose code { font: 500 .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--paper-2); padding: 2px 6px; border-radius: 5px; }
.prose pre { margin: 14px 0; padding: 16px 18px; border-radius: 12px; background: var(--ink); color: #F3F3F5; overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.guide-cta { margin-top: 48px; padding: 26px; border-radius: 22px; background: var(--red-tint); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.guide-cta strong { font: 800 1.25rem var(--font-display); }
@media (min-width: 1040px) { .guides-grid .t-4 { grid-column: span 6; } }

/* chat assistant */
.chat-open {
  position: fixed; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 61; display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--red); color: #fff;
  font: 600 1rem var(--font-body); cursor: pointer; box-shadow: 0 10px 30px rgb(224 27 0 / 35%); transition: transform .2s, background-color .2s;
}
.chat-open:hover { background: var(--red-dark); transform: translateY(-2px); }
[dir="rtl"] .chat-open { right: auto; left: 18px; }
@media (max-width: 600px) { .chat-open-label { display: none; } .chat-open { width: 52px; padding: 0; justify-content: center; } }
.chat-panel {
  position: fixed; right: 18px; bottom: 84px; z-index: 70; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 116px));
  display: flex; flex-direction: column; background: #fff; color: var(--ink); border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 60px rgb(22 23 27 / 30%); border: 1px solid var(--line);
}
.chat-panel[hidden] { display: none; }
[dir="rtl"] .chat-panel { right: auto; left: 18px; }
@media (max-width: 600px) { .chat-panel { right: 12px; left: 12px; width: auto; bottom: 12px; height: calc(100vh - 90px); } [dir="rtl"] .chat-panel { left: 12px; } .chat-is-open .chat-open { display: none; } }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--ink); color: #fff; }
.chat-head strong { font: 800 1.0625rem var(--font-display); }
.chat-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.chat-close:hover { background: var(--ink-3); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper-2); }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .9375rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-assistant { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-end-start-radius: 4px; }
.chat-user { align-self: flex-end; background: var(--red); color: #fff; border-end-end-radius: 4px; }
.chat-typing { color: var(--muted); font-style: italic; }
.chat-error { border-color: var(--red-tint); background: var(--red-tint); color: var(--red-dark); }
.chat-note { padding: 8px 16px; font-size: .75rem; color: var(--muted); border-top: 1px solid var(--line); }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; font: inherit; font-size: .9375rem; color: var(--ink); }
.chat-form textarea:focus { outline: 0; border-color: var(--red); }
.chat-send { min-height: 44px; padding: 0 16px; }

/* admin dashboard */
.admin { background: var(--paper-2); }
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.admin-card { width: min(380px, 100%); background: #fff; border-radius: 22px; padding: 30px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.admin-card h1 { font-size: 1.5rem; font-weight: 900; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.admin-actions { display: flex; gap: 8px; align-items: center; }
.admin-main { padding-bottom: 60px; }
.admin-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 20px; }
.admin-stats div { background: #fff; border-radius: 16px; padding: 18px; }
.admin-stats strong { display: block; font: 900 2rem/1 var(--font-display); color: var(--red); }
.admin-stats span { color: var(--muted); font-weight: 600; }
.admin-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.admin-filter button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 600 .875rem var(--font-body); cursor: pointer; }
.admin-filter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-table { min-width: 760px; font-size: .9375rem; }
.admin-table td { vertical-align: top; font-family: var(--font-body) !important; font-weight: 400 !important; font-size: .9375rem !important; }
.admin-table .msg { max-width: 320px; }
.admin-table details p { margin-top: 6px; white-space: pre-wrap; }
.admin-table select { min-height: 36px; border-radius: 8px; border: 1.5px solid var(--line); padding: 0 8px; font: inherit; }
.admin-table tr[data-status="new"] td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.admin-sub { margin-top: 44px; margin-bottom: 6px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.grade-pill { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; color: #fff; background: var(--red); font-weight: 800; }
.grade-pill[data-grade="A"], .grade-pill[data-grade="B"] { background: var(--ink); }
.table-wrap { position: relative; }
@media (max-width: 520px) { .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; } }

/* domain watch */
.watch { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.watch input { min-height: 44px; padding: 0 14px; border: 1.5px solid #C8CAD0; border-radius: 10px; font: inherit; max-width: 360px; }
.watch input:focus { outline: 0; border-color: var(--red); }
.watch-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.watch-actions .btn { min-height: 44px; font-size: .9375rem; }
.watch-status { font-weight: 600; font-size: .9375rem; }
.watch-status[data-ok="true"] { color: var(--ok); }
.watch-status[data-ok="false"] { color: var(--red-dark); }

/* status page */
.status-wrap { max-width: 880px; }
.status-banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 20px 24px; border-radius: 18px; background: var(--ink); color: #fff; margin-bottom: 18px; }
.status-banner strong { font: 800 1.25rem var(--font-display); }
.status-banner span { color: #C9CAD1; font-size: .9375rem; }
.status-banner[data-state="down"] { background: var(--red); }
.status-banner[data-state="down"] span { color: #fff; }
.status-list { display: grid; gap: 12px; }
.svc-status { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: grid; gap: 12px; }
.svc-status-main { display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; align-items: center; }
.svc-status-main strong { display: block; }
.svc-status-main span { color: var(--muted); font-size: .9375rem; }
.svc-dot { width: 12px; height: 12px; border-radius: 50%; background: #C8CAD0; }
.svc-status[data-state="up"] .svc-dot { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-tint); }
.svc-status[data-state="down"] .svc-dot { background: var(--red); box-shadow: 0 0 0 4px var(--red-tint); }
.svc-state { font-weight: 600; white-space: nowrap; }
.svc-status[data-state="up"] .svc-state { color: var(--ok); }
.svc-status[data-state="down"] .svc-state { color: var(--red-dark); }
.svc-bars { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 30px; }
.svc-bars i { border-radius: 3px; background: #E1E2E6; }
.svc-bars i[data-h="up"] { background: var(--ok); }
.svc-bars i[data-h="partial"] { background: #F2A93B; }
.svc-bars i[data-h="down"] { background: var(--red); }
.svc-foot { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .8125rem; }
@media (max-width: 520px) { .svc-foot span:first-child, .svc-foot span:last-child { display: none; } .svc-status-main { grid-template-columns: 14px 1fr; } .svc-state { grid-column: 2; } }
.status-note { margin-top: 18px; }

/* news & guides editor */
.admin-titlebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.admin-titlebar .h2 { margin: 0; }
.pill-on, .pill-off { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600; }
.pill-on { background: var(--ok-tint); color: var(--ok); }
.pill-off { background: var(--paper-2); color: var(--muted); border: 1px solid var(--line); }
.editor-form { background: #fff; border-radius: 22px; padding: 24px; }
.editor-form textarea#e-body { min-height: 380px; font: 500 .9375rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.editor-check { justify-content: flex-end; }
.editor-check label { display: flex; gap: 10px; align-items: center; font-weight: 600; min-height: 48px; }
.editor-check input { width: 20px; height: 20px; }
.editor-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.editor-delete { margin-top: 14px; }
.md-help { margin-top: 26px; background: #fff; border-radius: 16px; padding: 14px 18px; }
.md-help summary { cursor: pointer; font-weight: 600; }
.md-help pre { margin-top: 10px; padding: 14px; background: var(--ink); color: #F3F3F5; border-radius: 10px; overflow-x: auto; font-size: .8125rem; }
.prose h3 { font-size: 1.25rem; font-weight: 800; margin: 28px 0 8px; }

/* AI as the lead product */
/* AI is the flagship: marked with weight and a dot, so red keeps meaning "you are here" */
.nav-ai { font-weight: 700 !important; display: inline-flex; align-items: center; gap: 7px; }
.nav-ai::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.ai-feature { padding: 72px 0; background: var(--red-tint); border-bottom: 1px solid #F6CFC7; }
@media (min-width: 900px) { .ai-feature { padding: 96px 0; } }
.ai-feature-grid { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .ai-feature-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.ai-feature h2 { font-size: clamp(2.125rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -0.02em; }
.ai-feature .lead { margin-top: 16px; max-width: 56ch; }
.ai-points { display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 560px) { .ai-points { grid-template-columns: repeat(3, 1fr); } }
.ai-points li { background: #fff; border-radius: 14px; padding: 14px 16px; border: 1px solid #F6CFC7; }
.ai-points strong { display: block; font: 800 1rem/1.25 var(--font-display); }
.ai-points span { color: var(--text-2); font-size: .875rem; }
.ai-feature-art { border-radius: 28px; overflow: hidden; box-shadow: 0 24px 60px rgb(224 27 0 / 18%); }
.ai-feature-art img { width: 100%; aspect-ratio: 3 / 2; }
.ai-tests .test svg { color: var(--red); }
@media (min-width: 1040px) { .ai-tests { grid-template-columns: repeat(3, 1fr); } }

/* six product lines: chapter details */
.chapter .for { margin-top: 12px; color: var(--text-2); font-size: .9375rem; }
.chapter .for b { color: var(--ink); }
.chapter .how-h { margin-top: 22px; font: 800 1rem var(--font-display); }
.mini-steps { margin-top: 10px; display: grid; gap: 8px; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 560px) { .mini-steps { grid-template-columns: repeat(3, 1fr); } }
.mini-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: .9375rem; line-height: 1.4; }
.chapter:nth-of-type(odd) .mini-steps li { background: #fff; }
.mini-steps span { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 800 .8125rem var(--font-display); }
.promise { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.promise svg { flex-shrink: 0; color: var(--ok); margin-top: 2px; }

/* Juhub Secure lifecycle */
.life-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .life-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .life-grid { grid-template-columns: repeat(4, 1fr); } }
.life-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 80px; }
.life-card h3 { font-size: 1.5rem; font-weight: 900; }
.life-card p { color: var(--text-2); }
.life-card .tags { margin-top: 4px; }
.promise-list { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.promise-list li { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.promise-list li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; flex-shrink: 0; }

/* Beadwork strip: rows of red and ink beads, used sparingly as a divider */
.beads { height: 20px; background: #fff url("/assets/img/beads.svg") 0 0 / 40px 20px repeat-x; }
.beads-footer { border-top: 1px solid var(--line); height: 34px; background-position: 0 7px; }

/* Hosting promises */
.promise-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .promise-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .promise-grid { grid-template-columns: repeat(3, 1fr); } }
.promise-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.promise-card .big { font: 900 clamp(2rem, 4vw, 2.5rem)/1 var(--font-display); color: var(--red); letter-spacing: -0.02em; }
.promise-card h3 { font-size: 1.125rem; font-weight: 800; }
.promise-card p { color: var(--text-2); font-size: .9375rem; }
.promise-foot { margin-top: 20px; color: var(--text-2); }

/* Legal pages */
.legal-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
.legal-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .legal-grid { grid-template-columns: 240px 1fr; gap: 56px; } }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 960px) { .legal-nav { flex-direction: column; position: sticky; top: 96px; } }
.legal-nav a { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.legal-nav a:hover { border-color: var(--ink); }
.legal-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.prose.legal { margin: 0; font-size: 1.0625rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { color: inherit; }

/* Branded PDF for the security check (print only) */
@page { size: A4; margin: 16mm 14mm 18mm; @bottom-left { content: "Juhub Secure · juhub.ss · info@juhub.ss"; font: 8pt "IBM Plex Sans", sans-serif; color: #6B6D76; } @bottom-right { content: counter(page) " / " counter(pages); direction: ltr; unicode-bidi: isolate; font: 8pt "IBM Plex Sans", sans-serif; color: #6B6D76; } }
@media print {
  html, body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { font-size: 10pt; }
  [data-scan] .wrap > h1, [data-scan] .hero-lead, .print-btn { display: none !important; }
  [data-scan] .wrap { max-width: none; padding: 0; }
  .print-head { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; }
  .print-head img { width: 110px; height: auto; }
  .print-title { text-align: end; display: flex; flex-direction: column; gap: 2px; }
  .print-title strong { font: 900 18pt/1.1 var(--font-display); color: var(--ink); }
  .print-title span { color: var(--red); font-weight: 600; font-size: 9pt; letter-spacing: .02em; }
  [data-scan] .beads.print-only { display: block !important; height: 14px; background-size: 28px 14px; margin: 0 0 16px; }
  .print-meta { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .print-meta div { padding: 8px 12px; border-inline-end: 1px solid var(--line); }
  .print-meta div:last-child { border: 0; }
  .print-meta dt { font-size: 7.5pt; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
  .print-meta dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
  .print-meta dd bdi { word-break: break-all; }
  .report { gap: 12px !important; }
  .grade-card { display: grid !important; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; text-align: start; padding: 16px 20px !important; border-radius: 12px !important; break-inside: avoid; }
  .grade-card .grade { grid-row: span 4; margin: 0 !important; }
  .grade-card h2 { font-size: 15pt !important; }
  .grade-card p { margin-top: 2px !important; }
  .print-score { display: flex !important; gap: 14px; margin-top: 6px !important; font-weight: 700; color: var(--ink) !important; }
  .print-score [data-status="pass"] { color: var(--ok); }
  .print-score [data-status="warn"] { color: #A15C00; }
  .print-score [data-status="fail"] { color: var(--red); }
  .check-group { border-radius: 12px !important; break-inside: auto !important; }
  .check-group h3 { break-after: avoid; }
  .check-group h3 { color: var(--ink); }
  .check { break-inside: avoid; }
  .snippet pre { white-space: pre-wrap; word-break: break-all; font-size: 8pt; }
  .print-close { display: block !important; margin-top: 18px; break-inside: avoid; }
  .print-next { background: var(--ink); color: #fff; border-radius: 12px; padding: 16px 20px; }
  .print-next h3 { font: 900 13pt var(--font-display); color: #fff; }
  .print-next p { margin-top: 6px; color: #E4E5EA; }
  .print-contact { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text-2); }
  .print-contact strong { color: var(--ink); font-size: 11pt; }
  .print-disclaimer { margin-top: 12px; font-size: 8pt; color: var(--muted); }
  .beads-footer { display: none !important; }
  .check[data-status="pass"] .check-ico, .check[data-status="fail"] .check-ico { color: #fff !important; }
  .check .fix summary { list-style: none; pointer-events: none; }
  .check .fix summary::-webkit-details-marker { display: none; }
}

/* Keyboard focus for boxes whose inner field has no outline */
.bulk-box:focus-within, .scan-form:focus-within { box-shadow: 0 0 0 4px rgb(255 33 0 / 45%), 0 18px 48px rgb(0 0 0 / 35%); }

/* Visitor stats (dashboard) */
.admin-filter a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 600 .875rem var(--font-body); text-decoration: none; }
.admin-filter a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-titlebar .admin-filter { margin: 0; }
.stat-chart, .stat-list { background: #fff; border-radius: 16px; padding: 20px; }
.stat-chart h2, .stat-list h2 { font: 800 1.0625rem var(--font-display); margin-bottom: 12px; }
.chart { width: 100%; height: auto; display: block; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { font: 500 11px var(--font-body); fill: var(--muted); }
.chart-bar { fill: var(--red); }
.chart-hit { fill: transparent; }
.chart-day:hover .chart-bar { fill: #B81600; }
.chart-day:hover .chart-hit { fill: rgb(22 23 27 / 4%); }
.stat-chart .md-help { margin-top: 12px; }
.stat-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 14px; }
@media (min-width: 800px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat-list .admin-table { width: 100%; min-width: 0; }
.stat-list .admin-table td { padding: 8px 6px; word-break: break-word; }
.stat-list .num, .stat-chart .num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat-note { margin-top: 18px; font-size: .875rem; }

/* Interface guidelines: touch, scrolling and focus */
html { scroll-padding-top: 88px; }
a, button, input, select, textarea, label, summary { touch-action: manipulation; }
a, button, summary { -webkit-tap-highlight-color: rgb(224 27 0 / 12%); }
.chat-log, .chat-panel { overscroll-behavior: contain; }
@media (max-width: 600px) { .chat-panel { height: calc(100dvh - 90px); } }

/* Browser surfaces in the brand palette */
::selection { background: #FFD3CA; color: var(--ink); }
input, textarea { caret-color: var(--red); }
.result-hero .next-step { margin-top: 8px; font-size: .9375rem; color: var(--text-2); max-width: 56ch; }
.result-hero .next-step[hidden] { display: none; }
.field-error { margin-top: 6px; color: var(--red-dark); font-size: .875rem; font-weight: 600; }
.field [aria-invalid="true"] { border-color: var(--red); }
.form-status .sent-copy { display: inline-block; margin-top: 6px; color: var(--text-2); font-style: italic; }

/* Hosting: one recommended plan per group */
.plan { position: relative; }
.plan-pick { border-color: var(--ink); }
.plan-tag { position: absolute; top: -12px; inset-inline-start: 22px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 .75rem/1.2 var(--font-body); }
.plans-more { margin-top: 32px; }
.plans-more > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; }
.plans-more > summary::-webkit-details-marker { display: none; }
.plans-more > summary::after { content: '+'; margin-inline-start: auto; font: 800 1.375rem/1 var(--font-display); color: var(--red); }
.plans-more[open] > summary::after { content: '–'; }
.plans-more > summary .plans-sub { margin: 0; }
.plans-more > summary span { color: var(--text-2); }
.plans-more > summary:hover { border-color: var(--ink); }
.plans-more[open] > .plans { margin-top: 16px; }

/* Home: one story, from a .ss name to AI */
.step-goal { background: var(--ink); color: #fff; border-color: var(--ink); }
.step-goal p { color: #C9CAD1; }
.step-goal .step-num { background: #fff; color: var(--ink); }
.story-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .story-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.story-end h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; text-wrap: balance; }
.story-end p { margin-top: 14px; font-size: 1.125rem; max-width: 56ch; }
.story-end .story-call { font-size: .9375rem; }
.story-end .story-call a { color: #fff; font-weight: 700; }
.story-art { border-radius: 26px; overflow: hidden; box-shadow: 0 24px 60px rgb(22 23 27 / 30%); }
.story-art img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 2; }
.story-end h2 em { font-style: normal; color: var(--ink); }

/* WhatsApp hand-off inside the chat */
.chat-msg + .chat-wa { align-self: flex-start; min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.chat-msg a { color: var(--red-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

/* team replies and takeover */
.chat-staff { border-color: var(--red); box-shadow: inset 3px 0 0 var(--red); }
.chat-who { display: block; font-size: .75rem; font-weight: 700; color: var(--red-dark); margin-bottom: 2px; }
.chat-event { align-self: center; max-width: 90%; text-align: center; font-size: .8125rem; color: var(--muted); }
.chat-open.chat-unread::after { content: ""; position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.chat-state { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: .8125rem; font-weight: 700; background: var(--paper-2); }
.chat-state[data-state="needs"] { background: var(--red); color: #fff; }
.chat-state[data-state="team"] { background: var(--ink); color: #fff; }
.admin-table tr[data-chat-state="needs"] td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.chat-admin { max-width: 760px; }
.chat-transcript { flex: none; max-height: 60vh; min-height: 200px; border-radius: 18px; border: 1px solid var(--line); margin: 16px 0; }
.chat-reply { display: grid; gap: 8px; }
.chat-reply label { font-weight: 700; }
.chat-reply textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #C8CAD0; border-radius: 12px; font: inherit; resize: vertical; }
.chat-reply textarea:focus { outline: 0; border-color: var(--red); }
.chat-reply-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-actions a[aria-current="page"] { background: var(--ink); color: #fff; }
.chat-user .chat-who { color: rgb(255 255 255 / 85%); }
.chat-state[data-state="ai"] { background: #fff; border: 1.5px solid var(--line); }
.chat-ask-team { padding: 0; border: 0; background: none; color: var(--red-dark); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.chat-ask-team[hidden] { display: none; }
.nav-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-inline-start: 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; }
.chat-lead { margin-top: 24px; background: #fff; border-radius: 16px; padding: 14px 18px; }
.chat-lead summary { font-weight: 700; cursor: pointer; }
.chat-lead-form { display: grid; gap: 12px; margin-top: 12px; }
.chat-lead-form input, .chat-lead-form textarea { width: 100%; }
.lead-chat { display: inline-block; margin-bottom: 4px; font-weight: 700; color: var(--red-dark); }

/* quote tools */
.quote-wrap { max-width: 860px; }
.quote-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.quote-tabs button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 700 .9375rem var(--font-body); cursor: pointer; }
.quote-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.quote-form[hidden] { display: none; }
.q-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.q-group legend { font-weight: 700; margin-bottom: 8px; }
.q-options { display: flex; flex-wrap: wrap; gap: 8px; }
.q-options label { position: relative; cursor: pointer; }
.q-options input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.q-options span { display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 8px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; line-height: 1.3; }
.q-options small { font-weight: 400; color: var(--muted); font-size: .8125rem; }
.q-options input:checked + span { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); background: #FFF3F1; }
.q-options input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.quote-estimate { padding: 14px 18px; border-radius: 14px; background: var(--paper-2); font-weight: 600; }

/* work: case studies and client logos */
.work-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 24px; }
.work-card { display: flex; flex-direction: column; gap: 10px; }
.work-card h3 { font: 800 1.25rem/1.25 var(--font-display); }
.work-meta { font-size: .8125rem; font-weight: 700; color: var(--red-dark); }
.work-result { font-weight: 700; }
.work-card .link-arrow { margin-top: auto; font-weight: 700; color: var(--red-dark); text-underline-offset: 3px; }
.work-clients-h { margin-top: 36px; font-weight: 700; color: var(--muted); }
.work-clients { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; padding: 0; list-style: none; }
.work-clients img { display: block; width: 140px; height: 70px; object-fit: contain; padding: 10px; background: #fff; border-radius: 14px; border: 1px solid var(--line); filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.work-clients a:hover img { filter: none; opacity: 1; }

/* AI page: worked examples ---------------------------------------------- */
.demos { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .demos { grid-template-columns: repeat(3, 1fr); } }
.demo { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; }
.demo-tag { font-weight: 700; font-size: .8125rem; color: var(--red-dark); }
.demo h3 { font: 800 1.3125rem/1.2 var(--font-display); }
.demo-chat { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--paper-2); border-radius: var(--radius); }
.demo-chat p { max-width: 88%; padding: 9px 13px; border-radius: 16px; font-size: .9375rem; line-height: 1.45; }
.demo-chat .q { align-self: flex-end; background: var(--ink); color: #fff; border-end-end-radius: 4px; }
.demo-chat .a { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-end-start-radius: 4px; }
.demo-chat [dir="rtl"].q, .demo-chat [dir="ltr"].q { align-self: flex-end; }
.demo-in { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px dashed #B9BBC2; border-radius: var(--radius); font-size: .9375rem; }
.demo-in svg { flex: none; width: 28px; height: 28px; color: var(--red); }
.demo-out, .demo-list { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; margin: 0; font-size: .9375rem; }
.demo-out { padding: 6px 14px; background: var(--ok-tint); border-radius: var(--radius); }
.demo-out dt, .demo-out dd, .demo-list dt, .demo-list dd { padding: 8px 0; border-bottom: 1px solid rgb(22 23 27 / 8%); }
.demo-out dt:nth-last-of-type(1), .demo-out dd:last-child, .demo-list dt:nth-last-of-type(1), .demo-list dd:last-child { border-bottom: 0; }
.demo-out dt, .demo-list dt { color: var(--muted); }
.demo-out dd, .demo-list dd { margin: 0; font-weight: 600; }
.demo-list dd { font-weight: 400; color: var(--text-2); }
.demo-note { margin-top: auto; color: var(--muted); font-size: .875rem; }

/* retention dashboard */
.ret-risk { display: inline-block; min-width: 46px; padding: 3px 9px; border-radius: 999px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--ok-tint); color: var(--ok); }
.ret-risk[data-band="medium"] { background: #FFF2D6; color: #7A5200; }
.ret-risk[data-band="high"] { background: var(--red-tint); color: var(--red-dark); }
.ret-tag { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 700; }
.ret-notice { margin-bottom: 14px; padding: 12px 16px; border-radius: 12px; background: var(--ok-tint); color: var(--ok); font-weight: 600; }
.ret-notice[data-kind="error"] { background: var(--red-tint); color: var(--red-dark); }
.ret-setup { background: #fff; border-radius: 16px; padding: 22px; }
.ret-setup h2 { font: 800 1.25rem var(--font-display); margin-bottom: 10px; }
.ret-setup ol { display: grid; gap: 10px; padding-inline-start: 20px; list-style: decimal; }
.ret-next { margin-bottom: 14px; padding: 18px 20px; border-radius: 16px; background: var(--ink); color: #fff; }
.ret-next h2 { font: 800 1.25rem var(--font-display); }
.ret-next p { color: #C9CAD1; }
.ret-reasons { display: grid; gap: 8px; }
.ret-reasons span[aria-hidden] { display: inline-block; width: 20px; font-size: .75rem; }
.ret-reasons li[data-dir="up"] span[aria-hidden] { color: var(--red); }
.ret-reasons li[data-dir="down"] span[aria-hidden] { color: var(--ok); }
.ret-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.ret-draft { display: grid; gap: 14px; margin-bottom: 14px; padding: 20px; background: #fff; border-radius: 16px; }
.ret-reply { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ret-history { display: grid; gap: 10px; }
@media (min-width: 1200px) { .ret-grid { grid-template-columns: 1fr 2fr; } .ret-grid + .admin-sub + .ret-row { margin-top: 0; } }
.admin-head { flex-wrap: wrap; }
.admin-actions { flex-wrap: wrap; justify-content: flex-end; }
.admin-actions .btn-sm { min-height: 40px; padding: 0 14px; }

/* reseller admin */
.res-key { display: block; padding: 10px 12px; background: #fff; color: var(--ink); border-radius: 8px; overflow-wrap: anywhere; user-select: all; }
.res-groups { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.res-prices { min-width: 560px; }
.res-prices input, .ret-row .field input, .ret-row .field select { min-height: 40px; width: 100%; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; }
.res-groups .stat-list { min-width: 0; }
.res-prices input { min-width: 70px; }
.ret-row .field { min-width: 0; flex: 1 1 140px; }

/* ======================================================================
   Dashboard: one shell, one surface, one control vocabulary
   ====================================================================== */
.admin { color-scheme: light; --surface: #fff; --surface-line: #E6E7EB; --rail: var(--ink); --rail-text: #C9CAD1; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.admin :focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.admin-side :focus-visible { outline-color: #fff; }
.admin-skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 700; transition: top .15s ease-out; }
.admin-skip:focus { top: 12px; }

/* rail: a horizontal strip on small screens, a fixed column on large ones */
.admin-side { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 10px; background: var(--rail); color: var(--rail-text); }
.admin-brand { display: inline-flex; align-self: flex-start; }
.admin-brand img { height: 36px; width: auto; }
.admin-nav { display: flex; gap: 2px; margin: 0 -16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a, .admin-signout button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--rail-text); font: 600 .9375rem var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color .15s ease-out, color .15s ease-out; }
.admin-nav a:hover, .admin-signout button:hover { background: var(--ink-2); color: #fff; }
.admin-nav a[aria-current="page"] { background: var(--ink-3); color: #fff; }
.admin-nav a[aria-current="page"] svg { color: var(--red-bright); }
.admin-nav svg, .admin-signout svg { flex: none; }
.admin-nav .nav-count { margin-inline-start: auto; }
.admin-side { position: relative; }
.admin-signout { position: absolute; top: 12px; inset-inline-end: 10px; }
@media (min-width: 1040px) {
  .admin:has(> .admin-side) { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
  .admin-side { position: sticky; top: 0; height: 100vh; padding: 22px 14px 16px; gap: 22px; }
  .admin-brand { padding-inline-start: 10px; }
  .admin-brand img { height: 42px; }
  .admin-nav { flex-direction: column; flex: 1; margin: 0; padding: 0; overflow: visible; }
  .admin-signout { position: static; }
  .admin-signout button { width: 100%; }
  .admin-main { width: 100%; max-width: 1240px; margin: 0; padding: 34px 40px 72px; }
}
@media (max-width: 1039.98px) { .admin-main { padding-top: 22px; } }

/* type: fixed, product-sized steps */
.admin-main .h2 { font-size: 1.75rem; line-height: 1.15; margin-bottom: 18px; text-wrap: balance; }
.admin-main .admin-titlebar .h2 { margin-bottom: 0; }
.admin-main .admin-sub { margin-top: 40px; margin-bottom: 10px; font: 800 1.1875rem/1.25 var(--font-display); }
.admin-main .h2 em { font-style: normal; }
.admin-back a { display: inline-flex; font-weight: 600; font-size: .9375rem; margin-bottom: 10px; }

/* surfaces */
.admin-stats div, .stat-chart, .stat-list, .ret-setup, .ret-draft, .editor-form, .md-help, .chat-lead, .admin-card { border: 1px solid var(--surface-line); border-radius: 14px; background: var(--surface); }
.admin-card { box-shadow: 0 18px 48px rgb(22 23 27 / 10%); }
.admin .table-wrap { border-color: var(--surface-line); border-radius: 14px; }
.stat-list .table-wrap { border: 0; border-radius: 0; }

/* figures: ink for reading, red kept for action and state */
.admin-stats { gap: 10px; }
.admin-stats div { padding: 16px 18px; }
.admin-stats strong { font: 800 1.75rem/1.1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.admin-stats span { font-size: .875rem; font-weight: 500; }

/* tables */
.admin-table th { padding: 11px 16px; font: 600 .75rem var(--font-body); letter-spacing: .04em; color: var(--muted); background: #FAFAFB; }
.admin-table td { padding: 13px 16px; border-bottom-color: #EFF0F3; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr { transition: background-color .15s ease-out; }
.admin-table tbody tr:hover { background: #FAFAFB; }
.admin-table td.num, .admin-table th.num { text-align: end; font-variant-numeric: tabular-nums; }
.admin-table td a { text-underline-offset: 2px; }
.admin-table td { overflow-wrap: anywhere; }
.admin-table tr[data-status="new"] td:first-child, .admin-table tr[data-chat-state="needs"] td:first-child { box-shadow: none; }
.admin-table tr[data-status="new"] td:first-child::before, .admin-table tr[data-chat-state="needs"] td:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 8px; border-radius: 50%; background: var(--red); vertical-align: 2px; }

/* controls */
.admin-main .btn-sm { min-height: 38px; padding: 0 14px; font-size: .875rem; }
.admin-main .btn-ghost { background: #fff; border: 1px solid #D5D7DD; }
.admin-main .btn-ghost:hover { background: var(--paper-2); border-color: #B9BBC2; color: var(--ink); }
.admin-main .btn:disabled { opacity: .55; cursor: not-allowed; }
.admin-main .admin-actions { flex-wrap: wrap; justify-content: flex-start; }
.admin-main select, .admin-table select { min-height: 38px; padding: 0 8px; border: 1px solid #D5D7DD; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.admin-main .field input, .admin-main .field select, .admin-main .field textarea, .res-prices input { border: 1px solid #D5D7DD; border-radius: 8px; background: #fff; }
.admin-main .field input:hover, .admin-main .field textarea:hover, .res-prices input:hover { border-color: #B9BBC2; }
.admin-main .field input:focus, .admin-main .field select:focus, .admin-main .field textarea:focus, .res-prices input:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgb(224 27 0 / 14%); }
.admin-filter { gap: 4px; }
.admin-filter a, .admin-filter button { min-height: 36px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; font: 600 .875rem var(--font-body); color: var(--text-2); text-decoration: none; transition: background-color .15s ease-out, color .15s ease-out; }
.admin-filter a:hover, .admin-filter button:hover { background: #E9EAEE; }
.admin-filter a[aria-current="page"], .admin-filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* status */
.ret-risk { min-width: 44px; padding: 2px 8px; font-size: .8125rem; font-weight: 600; }
.ret-tag { padding: 1px 6px; border-radius: 5px; background: #ECEDF0; color: var(--text-2); font-size: .6875rem; font-weight: 600; vertical-align: 1px; }
.ret-notice { border-radius: 10px; padding: 11px 14px; font-size: .9375rem; font-weight: 500; }
.ret-next { border-radius: 14px; }
.ret-next h2 { font-size: 1.0625rem; }
.ret-reasons i { display: inline-flex; width: 22px; vertical-align: -2px; }
.ret-reasons li[data-dir="up"] i { color: var(--red); }
.ret-reasons li[data-dir="down"] i { color: var(--ok); }
.ret-setup h2 { font-size: 1.0625rem; }
@media (prefers-reduced-motion: reduce) { .admin * { transition: none !important; } }
.admin-table td a { color: var(--ink); text-decoration-color: #B9BBC2; text-underline-offset: 3px; }
.admin-table td a:hover { color: var(--red-dark); text-decoration-color: currentColor; }
.admin-table td strong { white-space: nowrap; }
.admin .stat-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .admin .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .admin .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .admin .stat-grid.ret-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }

/* Dashboard: social media queue */
.soc-grid { display: grid; gap: 14px; }
@media (min-width: 1100px) { .soc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.soc-post { margin-bottom: 0; align-content: start; }
.soc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.soc-head h3 { font-size: 1.0625rem; }
.soc-link { margin: 0; font-size: .875rem; overflow-wrap: anywhere; }
.soc-post .ret-row { margin-bottom: 0; }
.soc-poster { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; border-radius: 12px; background: #16171B; }
.soc-fields { display: grid; gap: 10px; }
.soc-fields input { min-height: 40px; width: 100%; padding: 0 10px; border: 1.5px solid var(--line, #d9dbe1); border-radius: 10px; font: inherit; }
.soc-schedule { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 22px; padding: 14px 18px; background: #fff; border: 1px solid var(--line, #e3e4ea); border-radius: 14px; }
.soc-schedule p { margin: 0; flex: 1 1 320px; }
.soc-slot { margin-bottom: 10px; background: #fff; border: 1px solid var(--line, #e3e4ea); border-radius: 14px; }
.soc-slot summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 14px 18px; cursor: pointer; }
.soc-slot[open] summary { border-bottom: 1px solid var(--line, #e3e4ea); }
.soc-slot .soc-grid { padding: 14px; }
.soc-slot .soc-post { border: 1px solid var(--line, #e3e4ea); }
.soc-due { color: var(--red-dark); font-weight: 600; }
.ret-template { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; padding: 12px 14px; border: 1px solid var(--line, #ddd); border-radius: 8px; font: inherit; }
.wa-inbox { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.wa-list { list-style: none; margin: 0; padding: 0; max-height: 640px; overflow-y: auto; border-inline-end: 1px solid var(--line); }
.wa-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.wa-list a:hover { background: var(--paper-2); }
.wa-list a[aria-current="true"] { background: var(--red-tint); }
.wa-list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-list .nav-count { grid-column: 2; grid-row: 2; justify-self: end; }
.wa-list time { grid-column: 2; grid-row: 1; color: var(--muted); font-size: .75rem; }
.wa-list .wa-last { grid-column: 2; grid-row: 2; overflow: hidden; color: var(--muted); font-size: .875rem; text-overflow: ellipsis; white-space: nowrap; }
.wa-pick { padding: 24px; }
.wa-thread { display: flex; flex-direction: column; min-width: 0; padding: 16px 20px; }
.wa-thread header h2 { margin: 0; font-size: 1.125rem; }
.wa-thread header p { margin: 2px 0 12px; }
.wa-log { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; margin: 0 0 14px; padding: 14px; list-style: none; border-radius: 10px; background: var(--paper-2); }
.wa-msg { align-self: flex-start; max-width: 80%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.wa-msg[data-dir="out"] { align-self: flex-end; border-color: var(--ink-3); background: var(--ink-2); color: #fff; }
.wa-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.wa-meta { display: block; margin-top: 4px; font-size: .75rem; opacity: .75; }
.wa-state[data-kind="failed"], .wa-state[data-kind="unknown"] { font-weight: 700; opacity: 1; }
.wa-closed { margin: 0; }
.wa-reply .field { margin-bottom: 8px; }
.wa-tpl { font-weight: 700; }
.wa-tpl[data-kind="APPROVED"] { color: #12703a; }
.wa-tpl[data-kind="REJECTED"], .wa-tpl[data-kind="DISABLED"], .wa-tpl[data-kind="PAUSED"] { color: var(--red-dark); }
.wa-connect summary { cursor: pointer; }
.wa-connect summary h2 { display: inline; }
.wa-setup { display: grid; gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
.wa-setup b { display: inline-block; min-width: 58px; color: #12703a; }
.wa-setup li[data-on="0"] b { color: var(--red-dark); }
@media (max-width: 760px) { .wa-inbox { grid-template-columns: minmax(0, 1fr); } .wa-list { max-height: 260px; border-inline-end: 0; border-bottom: 1px solid var(--line); } .wa-msg { max-width: 92%; } }
.admin-main .table-wrap + form.ret-row { margin-top: 12px; }

/* ======================================================================
   Dashboard: people, time and state
   ====================================================================== */
.admin { --ease-out: cubic-bezier(.16, 1, .3, 1); }
.admin-main time[title] { cursor: default; }
.admin-main td.num, .admin-stats strong, .wa-meta, .nav-count { font-variant-numeric: tabular-nums; }
.admin-skip { top: 12px; transform: translateY(-80px); transition: transform .15s ease-out; }
.admin-skip:focus { transform: none; }

/* the line under a page title that says what needs you */
.admin-hello { margin-top: 6px; color: var(--text-2); max-width: 80ch; text-wrap: pretty; }
.admin-hello a { color: var(--red-dark); font-weight: 600; text-underline-offset: 3px; }
.admin-card-lede { margin-top: -8px; }

/* a figure that needs action: red, with a live dot beside its label */
.admin-stats div[data-hot] strong { color: var(--red-dark); }
.admin-stats div[data-hot] span { position: relative; padding-inline-start: 16px; }
.admin-stats div[data-hot] span::before, .admin-stats div[data-hot] span::after { content: ""; position: absolute; inset-inline-start: 0; top: .42em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.admin-stats div[data-hot] span::after { animation: admin-ping 2.4s var(--ease-out) infinite; }
@keyframes admin-ping { from { opacity: .55; transform: scale(1); } 70%, to { opacity: 0; transform: scale(2.8); } }

/* rail */
.admin-nav a svg { transition: transform .2s var(--ease-out); }
.admin-nav a:hover svg { transform: translateX(2px); }
.admin-nav a:active, .admin-signout button:active { background: var(--ink-3); }

/* buttons and filters answer a press */
.admin-main .btn { transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out, transform .1s ease-out; }
.admin-main .btn:active:not(:disabled) { transform: scale(.97); }
.admin-filter a:active, .admin-filter button:active { background: #DCDEE3; }
.admin-main .btn[aria-busy="true"] { position: relative; color: transparent; pointer-events: none; }
.admin-main .btn[aria-busy="true"]::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; border-inline-end-color: transparent; animation: admin-spin .7s linear infinite; }
.admin-main .btn-ghost[aria-busy="true"]::after { border-color: var(--ink); border-inline-end-color: transparent; }
@keyframes admin-spin { to { transform: rotate(360deg); } }

/* notices arrive, and say what kind they are */
.ret-notice { display: flex; gap: 10px; align-items: flex-start; animation: admin-arrive .32s var(--ease-out) both; }
.ret-notice::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .5em; border-radius: 50%; background: currentColor; }
@keyframes admin-arrive { from { opacity: 0; transform: translateY(-6px); } }
.admin-toast { position: fixed; z-index: 70; inset-inline: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: fit-content; max-width: min(440px, calc(100vw - 32px)); margin-inline: auto; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 500; box-shadow: 0 2px 4px rgb(22 23 27 / 12%), 0 12px 32px rgb(22 23 27 / 22%); animation: admin-rise .3s var(--ease-out) both; }
.admin-toast[data-kind="error"] { background: var(--red-dark); }
.admin-toast[hidden] { display: none; }
@keyframes admin-rise { from { opacity: 0; transform: translateY(10px); } }

/* empty screens */
.admin-empty { display: flex; align-items: center; gap: 14px; padding: 22px; border: 1px dashed #C8CAD0; border-radius: 14px; color: var(--text-2); }
.admin-empty svg { flex: none; width: 28px; height: 28px; color: var(--muted); }
.admin-empty p { display: grid; gap: 2px; margin: 0; }
.admin-empty span { color: var(--muted); }
.admin-none { margin-top: 12px; }

/* people */
.avatar { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #E9EAEE; color: var(--ink-3); font: 700 .8125rem/1 var(--font-display); letter-spacing: .02em; }
.avatar[data-tone="1"] { background: var(--red-tint); color: var(--red-dark); }
.avatar[data-tone="2"] { background: var(--ok-tint); color: var(--ok); }
.avatar[data-tone="3"] { background: #FFF2D6; color: #7A5200; }

/* leads: the message gets the room, names and addresses wrap at words */
.admin-table td strong { white-space: normal; }
.admin-table .lead-who { min-width: 170px; max-width: 260px; overflow-wrap: break-word; }
.admin-table .msg { min-width: 260px; max-width: 420px; }
.admin-table .msg summary { cursor: pointer; }
.admin-table tr[hidden] { display: none; }

.admin-table th { white-space: nowrap; }

/* who is answering: never wraps */
.chat-state { white-space: nowrap; }
.chat-state[data-state="needs"]::before { content: ""; width: 7px; height: 7px; margin-inline-end: 7px; border-radius: 50%; background: #fff; animation: admin-blink 1.6s ease-in-out infinite; }
@keyframes admin-blink { 50% { opacity: .35; } }

/* a chat read from the team's side: the visitor on the left, our answers on the right */
.chat-transcript .chat-msg { animation: admin-arrive .28s var(--ease-out) both; }
.chat-transcript .chat-user { align-self: flex-start; background: #fff; color: var(--text); border: 1px solid var(--line); border-end-end-radius: 16px; border-end-start-radius: 4px; }
.chat-transcript .chat-user .chat-who { color: var(--red-dark); }
.chat-transcript .chat-assistant { align-self: flex-end; background: #E9EAEE; border-color: transparent; border-end-start-radius: 16px; border-end-end-radius: 4px; }
.chat-transcript .chat-assistant .chat-who { color: var(--text-2); }
.chat-transcript .chat-staff { background: var(--ink-2); color: #fff; box-shadow: none; }
.chat-transcript .chat-staff .chat-who { color: #C9CAD1; }
.chat-transcript .chat-staff a { color: #fff; }
.chat-who time { margin-inline-start: 6px; font-weight: 500; opacity: .8; font-variant-numeric: tabular-nums; }

/* retention */
.ret-reasons + .muted { margin-top: 12px; }
.ret-next h2 { text-wrap: balance; }

/* WhatsApp */
.wa-inbox { border-color: var(--surface-line); border-radius: 14px; }
.wa-list a { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; align-items: center; transition: background-color .15s ease-out; }
.wa-list .avatar { grid-row: 1 / span 2; }
.wa-list b { grid-column: 2; grid-row: 1; }
.wa-list time { grid-column: 3; grid-row: 1; }
.wa-list .nav-count { grid-column: 3; grid-row: 2; margin: 0; }
.wa-list a[data-unread] b { font-weight: 800; }
.wa-list a[data-unread] .wa-last { color: var(--text); font-weight: 500; }
.wa-list a[data-unread] time { color: var(--red-dark); font-weight: 600; }
.wa-list a[aria-current="true"] { background: #ECEDF0; }
.wa-list li:last-child a { border-bottom: 0; }
.wa-thread header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wa-thread header p { margin: 2px 0 0; }
.wa-pick { display: grid; place-content: center; justify-items: center; gap: 8px; min-height: 240px; padding: 24px; text-align: center; }
.wa-pick svg { width: 32px; height: 32px; color: #B9BBC2; }
.wa-pick p { margin: 0; }
.wa-log { gap: 6px; scroll-behavior: smooth; }
.wa-day { align-self: center; margin: 8px 0 4px; }
.wa-day span { padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: .75rem; font-weight: 600; }
.wa-msg { border-radius: 16px; border-end-start-radius: 4px; animation: admin-arrive .28s var(--ease-out) both; }
.wa-msg[data-dir="out"] { border-radius: 16px; border-end-end-radius: 4px; }
.wa-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; opacity: .8; }
.wa-state { display: inline-flex; align-items: center; gap: 3px; }
.wa-state[data-kind="read"] svg { color: #6FE3A1; }
.wa-state[data-kind="failed"], .wa-state[data-kind="unknown"] { color: #FFB4A8; }
.wa-reply textarea, .chat-reply textarea { min-height: 64px; max-height: 40vh; }
.wa-tpl { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.wa-tpl::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #B9BBC2; }
.wa-tpl[data-kind="APPROVED"]::before { background: var(--ok); }
.wa-tpl[data-kind="PENDING"]::before, .wa-tpl[data-kind="IN_APPEAL"]::before { background: #E2A100; animation: admin-blink 1.6s ease-in-out infinite; }
.wa-tpl[data-kind="REJECTED"]::before, .wa-tpl[data-kind="DISABLED"]::before, .wa-tpl[data-kind="PAUSED"]::before { background: var(--red); }
.wa-connect { margin-top: 28px; }
.wa-connect summary .admin-sub { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .admin *, .admin *::before, .admin *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* deleting a row: quiet until you reach for it */
.row-delete { display: inline-flex; align-items: center; white-space: nowrap; min-height: 32px; padding: 0 2px; border: 0; background: none; color: var(--muted); font: 500 .8125rem var(--font-body); text-decoration: underline; text-decoration-color: #C8CAD0; text-underline-offset: 3px; cursor: pointer; transition: color .15s ease-out; }
.row-delete:hover, .row-delete:focus-visible { color: var(--red-dark); text-decoration-color: currentColor; }
.admin-table select + form { margin-top: 4px; }
@media (pointer: coarse) { .row-delete { min-height: 44px; } }

/* leads: an email address or domain stays whole unless it is longer than its column */
.admin-table tr[data-status] td { overflow-wrap: break-word; }
.admin-table tr[data-status] td:nth-child(3) { max-width: 280px; }
.admin-table tr[data-status] td:nth-child(4) { max-width: 200px; }
.admin-table .lead-who { min-width: 150px; max-width: 210px; }
.admin-table .msg { min-width: 220px; }
.admin-table tr[data-status] td:nth-child(3) { max-width: 250px; }
