/* Curated Authority — responsive visual system (HF locked) */
:root {
  --ink: #1A1816;
  --paper: #F3F2EF;
  --surface: #FFFFFF;
  --accent: #2C4A3E;
  --accent-soft: #E8EEEB;
  --line: #D8D4CC;
  --muted: #6B6560;
  --soft: #EAE7E1;
  --radius: 8px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --content: 760px;
  --tap: 44px;
  --font: "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 480px at 100% -10%, rgba(44,74,62,.07), transparent 55%),
    linear-gradient(180deg, #E8E4DC 0%, #E4E0D8 40%, #DED9D0 100%);
  color: var(--ink);
  min-height: 100dvh;
  line-height: 1.55;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }

.chrome {
  display: none;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
}
.chrome a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
body.review .chrome { display: flex; }

.page {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: var(--space-4);
  padding-bottom: calc(var(--space-7) + env(safe-area-inset-bottom, 0px));
}

.wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: clip;
  min-height: 70vh;
  position: relative;
}

.sticky {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand cta"
    "links links";
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243,242,239,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: var(--space-2) var(--space-3);
  align-items: center;
  gap: var(--space-2) var(--space-3);
  min-height: var(--tap);
}
.sticky.scrolled { background: rgba(243,242,239,.99); }
.sticky-name {
  grid-area: brand;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  text-decoration: none;
  min-height: var(--tap);
  display: flex;
  align-items: center;
}
.sticky .btn.primary {
  grid-area: cta;
  flex: 0 0 auto;
  padding: 10px 14px;
  min-height: var(--tap);
  min-width: 118px;
}
.public-nav-links {
  grid-area: links;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.public-nav-links a {
  min-height: var(--tap);
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--accent);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.public-nav-links a:hover {
  background: var(--accent-soft);
}
.public-nav-links a:focus-visible,
.sticky-name:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero, .sec {
  padding: var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  scroll-margin-top: 124px;
}
.hero {
  background: linear-gradient(165deg, var(--paper) 0%, #F7F6F3 55%, var(--surface) 100%);
  animation: rise .4s ease;
}
@keyframes rise {
  from { opacity: .45; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--space-3);
  text-transform: none;
}

.row { display: flex; gap: var(--space-4); align-items: center; }
.av {
  width: 72px; height: 72px; flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.15rem;
  border: 1px solid rgba(26,24,22,.08);
}
.av.office { border-radius: var(--radius); }

h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.25; }
h2 { font-size: clamp(1.05rem, 1.8vw, 1.2rem); line-height: 1.3; margin-bottom: var(--space-2); }
h3 { font-size: 1rem; }

.spec { color: var(--muted); font-size: .95rem; margin: 6px 0 0; line-height: 1.45; }
.hint { color: var(--muted); font-size: .9rem; margin: 6px 0 0; line-height: 1.5; }
.trust {
  margin-top: var(--space-5);
  border-right: 3px solid var(--accent);
  padding-right: var(--space-3);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 38rem;
}
.value {
  margin-top: var(--space-4);
  background: var(--soft);
  border-radius: var(--radius);
  padding: var(--space-4);
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.55;
}
.fv {
  margin-top: var(--space-4);
  font-size: .78rem;
  color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px 10px;
}
.fv span {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 10px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.btn, button.btn {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 12px 16px;
  min-height: var(--tap);
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover, button.btn:hover { border-color: #C7C1B7; }
.btn:focus-visible, button.btn:focus-visible, .quiet:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn.primary, button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  flex: 1 1 180px;
}
.btn.primary:hover, button.primary:hover { background: #243F35; border-color: #243F35; }
.btn.ghost { background: transparent; }
.btn.block, button.block { width: 100%; }
.quiet {
  background: none; border: 0; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px;
  padding: 8px 0; min-height: var(--tap);
  cursor: pointer; font-weight: 500;
}

.sec-head { margin-bottom: var(--space-4); }
.sec-head .hint { margin-top: 4px; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: var(--space-5);
  background: var(--paper);
  text-align: right;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
  display: block;
  font: inherit;
  color: inherit;
}
.card:last-child { margin-bottom: 0; }
.card-media {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(44,74,62,.18), transparent 50%),
    linear-gradient(180deg, #D9D4CB, #C9C3B8);
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: var(--space-4);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 500;
}
.card-body { padding: var(--space-4); background: var(--surface); }
.card-body strong { display: block; font-size: 1.02rem; line-height: 1.35; margin-bottom: 6px; }
.why {
  color: var(--accent);
  font-size: .88rem;
  margin-top: var(--space-3);
  font-weight: 500;
  line-height: 1.5;
  padding-top: var(--space-3);
  border-top: 1px solid var(--soft);
}
.meta { color: var(--muted); font-size: .88rem; }

.toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.toolbar select,
.toolbar input,
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.field { margin-bottom: var(--space-4); }
.field label {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 10px;
  font-size: .75rem;
  background: var(--soft);
  color: var(--muted);
  margin-bottom: var(--space-3);
}

.media-stage {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(44,74,62,.16), transparent 45%),
    linear-gradient(180deg, #E0DBD2, #CEC8BD);
  display: flex; align-items: center; justify-content: center;
  font-weight: 500; color: var(--ink);
  margin-bottom: var(--space-3);
}
.media-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-4);
}
.media-nav .btn { min-width: 0; }
.price-line { font-size: 1.15rem; font-weight: 650; margin: var(--space-3) 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--space-3) 0 var(--space-4); }
.facts .pill { margin: 0; background: var(--accent-soft); color: var(--accent); border-color: transparent; }

.chat-log {
  min-height: 200px;
  max-height: min(48vh, 420px);
  overflow-y: auto;
  padding: var(--space-3);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}
.bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: var(--space-2);
  font-size: .9rem;
  line-height: 1.45;
}
.bubble.me { background: var(--soft); margin-right: auto; }
.bubble.them { background: var(--surface); border: 1px solid var(--line); margin-left: auto; }

.edge {
  text-align: center;
  padding: var(--space-7) var(--space-5);
}
.edge strong { display: block; font-size: 1.1rem; margin-bottom: var(--space-3); }
.skel {
  height: 14px; background: var(--soft); border-radius: 6px; margin: 10px 0;
  animation: pulse 1s infinite alternate;
}
@keyframes pulse { from { opacity: .55; } to { opacity: 1; } }

.channel-list {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.footer-note {
  text-align: center;
  color: var(--muted);
  font-size: .75rem;
  padding: var(--space-4) var(--space-3) 0;
}

/* Tablet */
@media (min-width: 768px) {
  .page { padding: var(--space-5) var(--space-5) var(--space-7); }
  .sticky {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) var(--space-4);
  }
  .sticky-name { max-width: 150px; }
  .public-nav-links { margin-inline: auto; }
  .hero, .sec { scroll-margin-top: 72px; }
  .hero, .sec { padding: var(--space-6) var(--space-5); }
  .av { width: 84px; height: 84px; font-size: 1.25rem; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar input { grid-column: 1 / -1; }
  .cta .btn.primary { flex: 0 1 auto; min-width: 200px; }
}

/* Desktop editorial column */
@media (min-width: 1024px) {
  :root { --content: 780px; }
  .page { padding-top: var(--space-6); }
  .wrap { border-radius: var(--radius); }
  .hero { padding: var(--space-7) var(--space-6) var(--space-6); }
  .sec { padding: var(--space-6); }
  .toolbar { grid-template-columns: 180px 180px 1fr; }
  .toolbar input { grid-column: auto; }
}

@media (min-width: 1280px) {
  body {
    background:
      radial-gradient(900px 420px at 85% 0%, rgba(44,74,62,.08), transparent 50%),
      linear-gradient(180deg, #E9E5DD, #E2DDD4 50%, #D9D3C9);
  }
}

@media (max-width: 359px) {
  .page { padding: 10px; }
  .sticky { padding-inline: 10px; }
  .sticky .btn.primary { min-width: 108px; padding-inline: 10px; }
  .public-nav-links { justify-content: space-between; }
  .public-nav-links a { flex: 1 1 0; padding-inline: 5px; font-size: .8rem; }
  .hero, .sec { padding: 14px 12px; }
  .av { width: 60px; height: 60px; }
  .cta { flex-direction: column; }
  .cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .skel { animation: none; }
}
