/* Appily Fiftythree — Seed Signal Desk / Pulse Board help UI */

.af-help {
  --afh-ink: var(--ts-ink, #15202B);
  --afh-paper: #FFFFFF;
  --afh-mist: var(--ts-paper, #F3F5F8);
  --afh-copper: var(--ts-wine, #B85C38);
  --afh-copper-deep: var(--ts-wine-dark, #8E3F24);
  --afh-teal: var(--ts-grove, #2A6F7A);
  --afh-line: var(--ts-line, #CDD4DE);
  --afh-muted: var(--ts-muted, #5E6B7A);
  --afh-ease: var(--ease-out, cubic-bezier(.22, 1, .36, 1));
}

@keyframes afh-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: .45; }
}
@keyframes afh-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes afh-spin-soft {
  from { stroke-dashoffset: 220; }
  to { stroke-dashoffset: 70; }
}
@keyframes afh-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ── Hero ── */
.afh-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 48px;
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(184, 92, 56, .18), transparent 55%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(42, 111, 122, .14), transparent 50%),
    linear-gradient(160deg, #1B2430 0%, #15202B 55%, #1A4A52 100%);
  color: #F4F7FA;
}
.afh-hero-glow {
  position: absolute;
  width: 420px; height: 420px;
  right: -80px; top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, .2), transparent 70%);
  pointer-events: none;
  animation: afh-pulse 6s ease-in-out infinite;
}
.afh-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 40px;
  align-items: center;
  animation: afh-rise .7s var(--afh-ease) both;
}
.afh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #E8C4B4;
}
.afh-kicker-ink { color: var(--afh-copper); }
.afh-pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #7DCFB6;
  box-shadow: 0 0 0 0 rgba(125, 207, 182, .6);
  animation: afh-pulse 1.8s ease-out infinite;
}
.afh-hero-copy h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.03em;
  max-width: 10ch;
}
.afh-hero-copy h1 em {
  font-style: italic;
  font-weight: 500;
  color: #F0D2C4;
}
.afh-lede {
  margin: 0 0 28px;
  max-width: 40ch;
  color: rgba(244, 247, 250, .72);
  font-size: 15px;
  line-height: 1.65;
}
.afh-search {
  display: flex;
  align-items: center;
  max-width: 480px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px);
  transition: border-color .25s, box-shadow .25s;
}
.afh-search:focus-within {
  border-color: rgba(184, 92, 56, .8);
  box-shadow: 0 0 0 4px rgba(184, 92, 56, .18);
}
.afh-search-icon {
  display: grid;
  place-items: center;
  padding-left: 14px;
  color: rgba(255, 255, 255, .55);
}
.afh-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  padding: 16px 12px;
  font-size: 14px;
  min-width: 0;
}
.afh-search input::placeholder { color: rgba(255, 255, 255, .42); }
.afh-search button {
  border: 0;
  background: var(--afh-copper);
  color: #fff;
  padding: 16px 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.afh-search button:hover { background: var(--afh-copper-deep); }

/* Meter */
.afh-meter {
  display: grid;
  justify-items: center;
  gap: 22px;
}
.afh-meter-ring {
  position: relative;
  width: 160px;
  height: 160px;
}
.afh-meter-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.afh-meter-track {
  fill: none;
  stroke: rgba(255, 255, 255, .1);
  stroke-width: 8;
}
.afh-meter-value {
  fill: none;
  stroke: url(#none);
  stroke: #B85C38;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 70;
  animation: afh-spin-soft 1.4s var(--afh-ease) both;
}
.afh-meter-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 2px;
}
.afh-meter-core strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: .08em;
}
.afh-meter-core span {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244, 247, 250, .55);
}
.afh-meter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(100%, 280px);
  display: grid;
  gap: 10px;
}
.afh-meter-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.afh-meter-list span { color: rgba(244, 247, 250, .55); }
.afh-meter-list strong { font-weight: 600; text-align: right; }

/* ── Board ── */
.afh-board {
  padding: 36px 0 72px;
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

/* Orbit chips */
.afh-orbit {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.afh-orbit-line {
  display: none;
}
.afh-orbit-chip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  border: 1px solid var(--afh-line);
  background: var(--afh-paper);
  color: var(--afh-ink);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--afh-ease), border-color .25s, background .25s, color .25s, box-shadow .3s;
}
.afh-orbit-chip:hover {
  transform: translateY(-3px);
  border-color: var(--afh-copper);
}
.afh-orbit-chip.is-active {
  background: var(--afh-ink);
  border-color: var(--afh-ink);
  color: #fff;
  box-shadow: 0 16px 36px rgba(21, 32, 43, .22);
}
.afh-orbit-step {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  background: rgba(184, 92, 56, .12);
  color: var(--afh-copper);
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  transition: background .25s, color .25s;
}
.afh-orbit-chip.is-active .afh-orbit-step {
  background: var(--afh-copper);
  color: #fff;
}
.afh-orbit-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.afh-orbit-text strong {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.afh-orbit-text small {
  font-size: 11px;
  color: var(--afh-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.afh-orbit-chip.is-active .afh-orbit-text small {
  color: rgba(244, 247, 250, .62);
}

/* Workspace: panel + dock */
.afh-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, .7fr);
  gap: 18px;
  align-items: start;
}
.afh-panels {
  background: var(--afh-paper);
  border: 1px solid var(--afh-line);
  min-height: 480px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.afh-panel {
  display: none;
  padding: 32px 34px 40px;
  animation: afh-rise .45s var(--afh-ease) both;
}
.afh-panel.is-active { display: block; }
.afh-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--afh-line);
}
.afh-panel-tag {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--afh-copper);
}
.afh-panel-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
}
.afh-panel-head p {
  margin: 0;
  color: var(--afh-muted);
  max-width: 48ch;
  font-size: 14px;
}
.afh-panel-badge {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--afh-teal);
  background:
    linear-gradient(135deg, rgba(42, 111, 122, .12), rgba(184, 92, 56, .1));
  border: 1px solid var(--afh-line);
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}

/* Signal accordion */
.afh-signals {
  display: grid;
  gap: 10px;
}
.afh-signal {
  border: 1px solid var(--afh-line);
  background: var(--afh-mist);
  transition: border-color .25s, background .25s, box-shadow .3s;
}
.afh-signal.is-open {
  background: #fff;
  border-color: var(--afh-copper);
  box-shadow: 0 10px 28px rgba(184, 92, 56, .1);
}
.afh-signal-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--afh-ink);
}
.afh-signal-index {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--afh-copper);
  min-width: 1.6ch;
}
.afh-signal-q {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.afh-signal-chev {
  width: 28px;
  height: 28px;
  border: 1px solid var(--afh-line);
  background: #fff;
  position: relative;
  transition: transform .3s var(--afh-ease), background .2s, border-color .2s;
}
.afh-signal-chev::before,
.afh-signal-chev::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--afh-ink);
  transform: translate(-50%, -50%);
}
.afh-signal-chev::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity .2s, transform .3s;
}
.afh-signal.is-open .afh-signal-chev {
  background: var(--afh-copper);
  border-color: var(--afh-copper);
  transform: rotate(180deg);
}
.afh-signal.is-open .afh-signal-chev::before,
.afh-signal.is-open .afh-signal-chev::after {
  background: #fff;
}
.afh-signal.is-open .afh-signal-chev::after {
  opacity: 0;
}
.afh-signal-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--afh-ease);
}
.afh-signal.is-open .afh-signal-body {
  grid-template-rows: 1fr;
}
.afh-signal-body-inner {
  overflow: hidden;
  padding: 0 16px 0 54px;
  font-size: 14px;
  color: var(--afh-muted);
  line-height: 1.7;
  max-width: 62ch;
}
.afh-signal.is-open .afh-signal-body-inner {
  padding-bottom: 18px;
}
.afh-signal-body a {
  color: var(--afh-copper);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.afh-empty {
  display: none;
  padding: 40px 24px;
  text-align: center;
  color: var(--afh-muted);
}
.afh-empty.is-visible { display: block; }
.afh-empty a {
  color: var(--afh-copper);
  text-decoration: underline;
}

/* Contact dock */
.afh-dock {
  position: sticky;
  top: 96px;
  padding: 28px 24px;
  background:
    linear-gradient(160deg, #1B2430 0%, #1A4A52 100%);
  color: #F4F7FA;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  animation: afh-rise .6s var(--afh-ease) .08s both;
}
.afh-dock-kicker {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #E8C4B4;
}
.afh-dock h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}
.afh-dock > p {
  margin: 0 0 18px;
  font-size: 13px;
  color: rgba(244, 247, 250, .68);
  line-height: 1.55;
}
.afh-dock-btn {
  display: block;
  text-align: center;
  padding: 13px 16px;
  background: var(--afh-copper);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  transition: background .2s, transform .25s;
}
.afh-dock-btn:hover {
  background: #fff;
  color: var(--afh-ink);
  transform: translateY(-2px);
}
.afh-dock-links {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}
.afh-dock-links a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: background .2s;
}
.afh-dock-links a:hover { background: rgba(255, 255, 255, .12); }
.afh-dock-links span {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(244, 247, 250, .5);
}
.afh-dock-links strong {
  font-size: 13px;
  font-weight: 600;
  word-break: break-word;
}
.afh-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.afh-facts div {
  display: grid;
  gap: 4px;
}
.afh-facts em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(244, 247, 250, .45);
}
.afh-facts b {
  font-size: 12px;
  font-weight: 700;
}

/* Shortcuts */
.afh-shortcuts {
  padding: 64px 0 56px;
  background:
    linear-gradient(180deg, transparent, rgba(42, 111, 122, .05)),
    var(--afh-mist);
  border-top: 1px solid var(--afh-line);
}
.afh-shortcuts-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.afh-shortcuts-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
}
.afh-shortcuts-head > p {
  margin: 0;
  max-width: 34ch;
  color: var(--afh-muted);
  font-size: 14px;
}
.afh-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.afh-shortcut {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 22px 20px 20px;
  background: #fff;
  border: 1px solid var(--afh-line);
  overflow: hidden;
  transition: transform .35s var(--afh-ease), border-color .25s, box-shadow .35s;
}
.afh-shortcut::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--afh-copper), var(--afh-teal));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s var(--afh-ease);
}
.afh-shortcut:hover {
  transform: translateY(-4px);
  border-color: var(--afh-copper);
  box-shadow: var(--shadow-soft);
}
.afh-shortcut:hover::before { transform: scaleY(1); }
.afh-shortcut:nth-child(even) { margin-top: 18px; }
.afh-shortcut-code {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--afh-copper);
}
.afh-shortcut strong {
  font-size: 1rem;
}
.afh-shortcut > span:not(.afh-shortcut-code):not(.afh-shortcut-arrow) {
  font-size: 12px;
  color: var(--afh-muted);
}
.afh-shortcut-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  font-size: 18px;
  color: var(--afh-teal);
  transition: transform .3s var(--afh-ease);
}
.afh-shortcut:hover .afh-shortcut-arrow {
  transform: translateX(4px);
}

/* Bottom ribbon */
.afh-ribbon {
  background:
    linear-gradient(90deg, var(--afh-copper), var(--afh-copper-deep) 40%, var(--afh-teal));
  background-size: 200% 100%;
  animation: afh-shimmer 8s linear infinite;
  color: #fff;
}
.afh-ribbon-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0;
  font-size: 14px;
}
.afh-ribbon-inner p { margin: 0; }
.afh-ribbon-inner a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  padding-bottom: 2px;
}
.afh-ribbon-inner a:hover { border-bottom-color: #fff; }

@media (max-width: 1024px) {
  .afh-hero-grid,
  .afh-workspace { grid-template-columns: 1fr; }
  .afh-orbit { grid-template-columns: 1fr 1fr; }
  .afh-dock { position: static; }
  .afh-shortcut:nth-child(even) { margin-top: 0; }
  .afh-shortcut-grid { grid-template-columns: 1fr 1fr; }
  .afh-meter { justify-items: start; grid-template-columns: auto 1fr; align-items: center; }
}

@media (max-width: 640px) {
  .afh-hero { padding: 40px 0 36px; }
  .afh-orbit { grid-template-columns: 1fr; }
  .afh-panel { padding: 24px 18px 28px; }
  .afh-signal-body-inner { padding-left: 16px; }
  .afh-shortcut-grid { grid-template-columns: 1fr; }
  .afh-meter { grid-template-columns: 1fr; justify-items: center; }
  .afh-facts { grid-template-columns: 1fr; }
  .afh-search { flex-wrap: wrap; }
  .afh-search button { width: 100%; }
}
