/* The support pages in the account flow's design (Nov 2026): Help & Support
 * (pages/home_help, .hp), Contact (pages/home_contact, .ct, which is also
 * .hp) and Talk to a Specialist (pages/specialist and specialist_sent,
 * .sp-page). Contact and the specialist pages load this file too, for the
 * primitives at its top.
 *
 * The shared pieces are not redrawn here: the card surface (.ac-card), the
 * icon rings (.ac-ring), the eyebrow and its bar (.ac-eyebrow,
 * .ac-eyebrow-bar) live in account.css; the buttons (.ac-btn--primary,
 * --secondary) and fields in forms.css. This file adds sizes and the
 * support pages' own layout. Every colour is a token (tokens.css, --ez-*;
 * TOKEN_MAP.md). Rules are scoped under the page root (.hp, .sp-page) so
 * they outrank account.css's `.ac-body a`. */

/* ===================================================================== */
/* Primitives (Help, Contact, Talk to a Specialist)                       */
/* ===================================================================== */

.hp,
.sp-page {
  min-width: 0;
  color: var(--ez-pearl);
}

/* A centred section head: eyebrow, h2, lede. */
.hp-head {
  text-align: center;
}

/* Its eyebrow is a centred row of its own (the design's .eyebrow.c), so it
 * sits in no line box of the section's taller body text. */
.hp-head > .ac-eyebrow {
  display: flex;
  justify-content: center;
}

.hp-h2 {
  max-width: 760px;
  margin: 10px auto 0;
  color: var(--ez-pearl);
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hp-lede {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--ez-copy);
  font-size: 17px;
  line-height: 1.55;
}

/* Two ring sizes the shared .ac-ring lacks (it has 30, 36 and 44). */
.hp-ring--40 {
  width: 40px;
  height: 40px;
}

.hp-ring--40 svg {
  width: 18px;
  height: 18px;
}

.hp-ring--48 {
  width: 48px;
  height: 48px;
}

.hp-ring--48 svg {
  width: 20px;
  height: 20px;
}

/* The design draws 44px rings with 18px icons, and 36px with 16px. */
.hp .ac-ring:not(.ac-ring--30):not(.ac-ring--36):not(.hp-ring--40):not(.hp-ring--48) svg {
  width: 18px;
  height: 18px;
}

.hp .ac-ring--36 svg {
  width: 16px;
  height: 16px;
}

/* Icons in a ring are drawn a touch lighter than inline ones (1.9, not 2). */
.ac-ring .hp-icon {
  stroke-width: 1.9;
}

/* A card that is a link: no underline, and a lilac edge on hover. */
.hp a.ac-card,
.sp-page a.ac-card {
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease;
}

.hp a.ac-card:hover,
.sp-page a.ac-card:hover {
  border-color: var(--ez-lilac-55);
  color: inherit;
}

/* "@EazdropSupport": bold, the @ in the gold gradient. */
.hp-handle {
  font-weight: 700;
  white-space: nowrap;
}

.hp-handle__at {
  background: var(--ez-saffron-sweep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hp-mono {
  font-family: var(--font-mono);
}

/* The quiet link (the design's .lnk) and the underlined one (.lnk-w). */
.hp .hp-lnk,
.sp-page .hp-lnk {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ez-link-quiet);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.hp .hp-lnk:hover,
.sp-page .hp-lnk:hover {
  color: var(--ez-pearl);
}

.hp-lnk .hp-icon {
  width: 14px;
  height: 14px;
  flex: none;
}

.hp .hp-lnk-w {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ez-pearl);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--ez-pearl-35);
  text-underline-offset: 4px;
}

/* A row of buttons. */
.hp-btnrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.hp-btnrow--center {
  justify-content: center;
}

.hp .ac-btn .hp-icon,
.sp-page .ac-btn .hp-icon {
  width: 17px;
  height: 17px;
  flex: none;
}

/* Sections: 80px apart; an anchor lands under the header (and the phone's
 * sticky navigation row). */
.hp-section {
  margin-top: 80px;
  scroll-margin-top: calc(var(--ac-bar-h) + var(--ac-subnav-h) + 24px);
}

.hp-grid3,
.hp-grid2 {
  display: grid;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.hp-grid3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hp-grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.hp a:focus-visible,
.hp button:focus-visible,
.hp summary:focus-visible,
.sp-page a:focus-visible {
  outline: var(--ez-focus);
  outline-offset: var(--ez-focus-offset);
}

/* ===================================================================== */
/* Help & Support                                                         */
/* ===================================================================== */

/* The design's 20px from the title to the hero's eyebrow: the frame's
 * 24px gap under the page head (account.css .hm-page), less 4px. */
.hp-hero {
  margin-top: -4px;
  padding-top: 0;
}

.hp-hero__title {
  font-size: clamp(38px, 4.6vw, 58px);
}

/* The search box: an ivory well with the violet focus (tokens.css gives
 * .hp-search the violet --ez-focus). */
.hp-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 580px;
  height: 52px;
  margin: 28px auto 0;
  padding: 0 16px;
  border-radius: var(--ez-radius-field-lg);
  background: var(--ez-ivory);
  box-shadow: var(--ez-search-inset);
  color: var(--ez-ink-soft);
  box-sizing: border-box;
}

.hp-search:focus-within {
  outline: var(--ez-focus);
  outline-offset: 2px;
}

.hp-search .hp-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.hp-search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ez-plum);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
}

.hp-search__input::placeholder {
  color: var(--ez-ink-soft);
  opacity: 1;
}

/* The three quick cards. */
.hp-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.hp-quick__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 22px;
  box-sizing: border-box;
}

.hp-quick__title {
  margin: 6px 0 0;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hp-quick__text {
  margin: 0;
  color: var(--ez-mute);
  font-size: 14px;
  line-height: 1.45;
}

/* Meet @EazdropSupport: three numbered cards. */
.hp-step {
  padding: 24px;
}

.hp-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background: var(--ez-violet-sweep);
  box-shadow: var(--ez-violet-chip-shadow);
  color: var(--ez-pearl);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.hp-step__title {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hp-step__copy {
  margin: 8px 0 0;
  color: var(--ez-copy);
  font-size: 14.5px;
  line-height: 1.5;
}

/* Help topics: each a card that opens to its questions. */
.hp-topics {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 30px auto 0;
  text-align: left;
}

.hp-topic {
  border: 1px solid var(--ez-hair);
  border-radius: 16px;
  background: var(--ez-surface);
}

.hp-topic[hidden] {
  display: none;
}

.hp-topic__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  list-style: none;
  cursor: pointer;
}

.hp-topic__head::-webkit-details-marker,
.hp-q > summary::-webkit-details-marker {
  display: none;
}

.hp-topic__head > .ac-ring {
  grid-row: 1 / span 2;
}

.hp-topic__title {
  grid-column: 2;
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hp-topic__preview {
  grid-column: 2;
  margin-top: 2px;
  color: var(--ez-mute);
  font-size: 13.5px;
  line-height: 1.3;
}

.hp-topic__chevron {
  display: inline-flex;
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--ez-pearl);
  transition: transform 200ms ease;
}

.hp-topic__chevron .hp-icon {
  width: 18px;
  height: 18px;
}

.hp-topic[open] > summary .hp-topic__chevron {
  transform: rotate(180deg);
}

/* Its questions, each a <details> of its own. */
.hp-qa {
  padding: 0 20px 14px 74px;
}

.hp-q {
  border-top: 1px solid var(--ez-hair);
}

.hp-q > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-radius: 6px;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.hp-q > summary .hp-icon {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--ez-pearl);
  transition: transform 200ms ease;
}

.hp-q[open] > summary .hp-icon {
  transform: rotate(180deg);
}

.hp-q__a {
  margin: 0;
  padding: 0 0 14px;
  color: var(--ez-copy);
  font-size: 14.5px;
  line-height: 1.55;
}

.hp-q__more {
  margin: -6px 0 0;
  padding: 0 0 14px;
}

/* The empty-search message (a live region, drawn as nothing when empty). */
.hp-empty {
  margin-top: 16px;
  color: var(--ez-mute);
  text-align: center;
}

.hp-empty:empty {
  display: none;
}

/* Still need help? Three whole-card links. */
.hp-talk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 26px;
  text-align: center;
  box-sizing: border-box;
}

.hp-talk__title {
  margin: 6px 0 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hp-talk__main {
  max-width: 100%;
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
  overflow-wrap: anywhere;
}

.hp-talk__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ez-mute);
  font-size: 12.5px;
  line-height: normal;
}

.hp-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 4px;
  background: var(--ez-active);
  box-shadow: var(--ez-active-glow);
}

/* The card's lines at the design's normal leading (one line each). */
.hp-talk__text {
  margin: 0;
  color: var(--ez-copy);
  font-size: 14px;
  line-height: normal;
}

/* Explore Eazdrop: nine row cards. */
.hp-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.hp-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 16px 18px;
  box-sizing: border-box;
}

.hp-link-card__txt {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.hp-link-card__title {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

.hp-link-card__text {
  margin-top: 2px;
  color: var(--ez-mute);
  font-size: 13px;
  line-height: 1.4;
}

.hp-link-card__go {
  display: inline-flex;
  flex: none;
  color: var(--ez-mute-2);
}

.hp-link-card__go .hp-icon {
  width: 15px;
  height: 15px;
}

/* We've got your back. */
.hp-cta {
  padding-bottom: 10px;
}

/* ===================================================================== */
/* Narrower screens                                                       */
/* ===================================================================== */

@media (max-width: 900px) {
  .hp-quick,
  .hp-grid3,
  .hp-grid2,
  .hp-links {
    grid-template-columns: minmax(0, 1fr);
  }
  .hp-qa {
    padding: 0 16px 12px;
  }
  /* The prototype scrolls sideways at 390px; these never do. */
  .hp-h2,
  .hp-lede {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 560px) {
  .hp-handle {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp a.ac-card,
  .sp-page a.ac-card,
  .hp-topic__chevron,
  .hp-q > summary .hp-icon {
    transition: none;
  }
}
