/* ==========================================================================
   Kaariger — help centre (/support) and page not found (/404)
   Loaded after site.css and built only from its tokens. The one colour that
   is not a Kaariger token is WhatsApp's own green (#1FAF57, the value
   site.css gives .btn-whatsapp), used for the WhatsApp contact card only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared texture: a faint dot grid that fades out from behind the headline
   -------------------------------------------------------------------------- */
.help-hero::before,
.nf::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, var(--line-2) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 52% 62% at 50% 20%, #000 10%, transparent 76%);
          mask-image: radial-gradient(ellipse 52% 62% at 50% 20%, #000 10%, transparent 76%);
}

/* --------------------------------------------------------------------------
   Hero: "How can we help?" and the three ways to reach the team
   -------------------------------------------------------------------------- */
.help-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(56px, 8vw, 112px) clamp(44px, 5vw, 72px);
  background:
    radial-gradient(860px 480px at 50% -16%, var(--green-100), transparent 72%),
    radial-gradient(520px 380px at 100% 18%, var(--purple-50), transparent 70%),
    var(--bg);
}
.help-hero-head { max-width: 820px; margin-inline: auto; text-align: center; }
.help-hero-head h1 { margin-top: 26px; }
.help-hero-head .lead { max-width: 640px; margin: 22px auto 0; text-wrap: balance; }

.contact-cards {
  list-style: none; padding: 0; margin-top: clamp(40px, 5vw, 64px);
  display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.contact-card {
  --accent: var(--green-700);
  position: relative; overflow: hidden; height: 100%;
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "icon arrow" "body body";
  padding: clamp(24px, 2.4vw, 32px);
  background: var(--surface); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.contact-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.contact-card:hover::before,
.contact-card:focus-visible::before { transform: scaleX(1); }
.contact-card .icon-tile { grid-area: icon; margin-bottom: 36px; }
.contact-card.wa { --accent: #1FAF57; }
.contact-card.wa .icon-tile { background: var(--accent); color: #fff; }
.cc-arrow { grid-area: arrow; width: 22px; height: 22px; color: var(--faint); transition: transform .3s var(--ease), color .3s; }
.contact-card:hover .cc-arrow { transform: translateX(3px); color: var(--accent); }
.cc-body { grid-area: body; display: flex; flex-direction: column; min-width: 0; }
.cc-label { font-size: .92rem; font-weight: 700; color: var(--muted); }
.cc-value {
  margin-top: 4px; font-size: clamp(1.2rem, 1.9vw, 1.6rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.2; overflow-wrap: anywhere;
}
.cc-desc { margin-top: 10px; font-size: .95rem; color: var(--muted); }

@media (max-width: 1000px) {
  .contact-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 640px; margin-inline: auto; }
  .contact-card {
    grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon body arrow";
    align-items: center; column-gap: 16px; padding: 18px 20px;
  }
  .contact-card .icon-tile { margin-bottom: 0; }
  .cc-label { font-size: .85rem; }
  .cc-value { margin-top: 2px; font-size: clamp(1.05rem, 4.2vw, 1.3rem); }
  .cc-desc { margin-top: 2px; font-size: .88rem; }
}
@media (max-width: 400px) {
  .contact-card { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon body"; column-gap: 14px; padding: 16px; }
  .contact-card .icon-tile { width: 44px; height: 44px; border-radius: 13px; }
  .cc-arrow { display: none; }
}

/* --------------------------------------------------------------------------
   Help topics
   -------------------------------------------------------------------------- */
.help-topics { padding-top: 0; }
.help-topics-title {
  margin-bottom: 18px; font-size: .82rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.topic-grid { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.topic {
  display: flex; align-items: center; gap: 16px; height: 100%; min-height: 88px;
  padding: 18px 20px 18px 18px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.topic:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--green-200); }
.topic.pro:hover { border-color: var(--purple-200); }
.topic .icon-tile { width: 46px; height: 46px; border-radius: 13px; margin: 0; }
.topic .icon-tile svg { width: 22px; height: 22px; }
.topic-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.topic-body strong { font-size: 1.02rem; font-weight: 750; letter-spacing: -0.01em; line-height: 1.3; }
.topic-body span { font-size: .9rem; line-height: 1.45; color: var(--muted); }
.topic-arrow { width: 20px; height: 20px; flex-shrink: 0; color: var(--faint); transition: transform .25s var(--ease), color .25s; }
.topic:hover .topic-arrow,
.nf-link:hover .topic-arrow { transform: translateX(3px); color: var(--green-700); }
.topic.pro:hover .topic-arrow,
.nf-link.pro:hover .topic-arrow { color: var(--purple-700); }
@media (max-width: 1000px) { .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .topic-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; } .topic { min-height: 0; } }

/* --------------------------------------------------------------------------
   Question sections: intro + real app screen on the left, answers on the right
   -------------------------------------------------------------------------- */
.help-section { border-top: 1px solid var(--line); }
.help-split {
  display: grid; gap: clamp(40px, 6vw, 96px); align-items: start;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.help-aside .eyebrow { margin-bottom: 14px; }
.help-aside .lead { margin-top: 18px; max-width: 440px; }
.help-aside-actions { margin-top: 28px; }
.help-shot {
  margin-top: 40px; padding: clamp(28px, 3vw, 40px) 24px; border-radius: var(--r-xl);
  display: flex; justify-content: center;
  background: radial-gradient(420px 280px at 50% 0%, var(--green-100), transparent 75%), var(--green-50);
  border: 1px solid var(--green-100);
}
.help-shot.pro {
  background: radial-gradient(420px 280px at 50% 0%, var(--purple-100), transparent 75%), var(--purple-50);
  border-color: var(--purple-100);
}
@media (min-width: 901px) and (min-height: 880px) {
  .help-aside { position: sticky; top: calc(var(--header-h) + 32px); }
}
@media (max-width: 900px) {
  .help-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .help-shot { display: none; }
}

/* A phone cut to the height of its screen, as in the store screenshots */
.phone.fit { aspect-ratio: auto; }
/* site.css scales phones with calc(var(--phone-w) / 300 * 13px), which
   multiplies two lengths and is dropped as invalid, so the phone inherits the
   17px body size. These phones only show above 900px, where .phone.sm is
   250px wide: 250 / 300 × 13px. */
.help-shot .phone.sm { font-size: 10.8333px; }
.phone.fit .phone-screen { height: auto; }
.phone.fit .app { padding-bottom: 1.3em; }
.help-shot .app > * + * { margin-top: .8em; }
.help-shot .app > .app-status + * { margin-top: 0; }
.app-name { margin-top: .35em; font-weight: 800; font-size: 1.08em; }
.app-card .app-label + .app-line { margin-top: .5em; }
.app-card.pin-card { background: var(--green-50); border-color: var(--green-500); }
.pin-card .app-sub { font-size: .84em; line-height: 1.45; }
.app-success .app-sub { display: block; font-weight: 500; }
.app-line b { color: var(--ink); font-weight: 800; }
.app-line .app-neg { color: var(--danger); }
.app-line.total .app-price { font-size: 1.3em; }

/* Answers */
.help-faq summary:hover { color: var(--green-800); }
.help-faq .answer a { color: var(--green-800); font-weight: 700; }
.help-faq .answer strong { color: var(--ink-2); font-weight: 750; }
.help-faq .answer .areas { list-style: none; padding: 0; margin: 14px 0 12px; gap: 8px; }
.help-faq .answer .area { padding: 7px 13px; font-size: .88rem; color: var(--ink-2); }
.faq.pro summary:hover { color: var(--purple-800); }
.faq.pro summary::after {
  background-color: var(--purple-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236D28D9' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
.faq.pro details[open] { border-color: var(--purple-200); }
.faq.pro .answer a { color: var(--purple-700); }

/* --------------------------------------------------------------------------
   Your account & data
   -------------------------------------------------------------------------- */
.account-grid .card { display: flex; flex-direction: column; }
.account-grid .card p { color: var(--muted); }
.account-grid .card p + p { margin-top: 10px; }
.account-grid .card p a { color: var(--green-800); font-weight: 700; }
.account-grid .checks { margin-top: 16px; gap: 11px; color: var(--ink-2); font-size: .98rem; }
.account-path {
  align-self: flex-start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 12px; background: var(--green-50); border: 1px solid var(--green-200);
  color: var(--green-800) !important; font-weight: 750; font-size: .95rem; line-height: 1.3;
}
.account-path svg { width: 16px; height: 16px; }
.card-link {
  align-self: flex-start; margin-top: auto; padding-top: 22px; min-height: 44px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 750; color: var(--green-800); text-decoration: none;
}
.card-link svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.card-link:hover { text-decoration: underline; }
.card-link:hover svg { transform: translateX(3px); }
@media (min-width: 681px) and (max-width: 1000px) {
  .account-grid > :last-child { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Still need help? — closing band
   -------------------------------------------------------------------------- */
.help-cta {
  display: grid; align-items: center; gap: clamp(28px, 5vw, 72px); isolation: isolate;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
}
.help-cta-mark {
  position: absolute; z-index: -1; pointer-events: none; opacity: .08;
  right: clamp(-60px, -3vw, -20px); bottom: -64px; width: clamp(180px, 22vw, 280px); height: auto;
}
.help-cta-copy .lead { margin-top: 16px; max-width: 540px; }
.help-cta-actions { display: grid; gap: 12px; }
.help-cta-actions .btn { width: 100%; }
@media (max-width: 900px) {
  .help-cta { grid-template-columns: minmax(0, 1fr); }
  .help-cta-actions { max-width: 420px; }
}
@media (max-width: 480px) {
  .help-cta { padding: 36px 20px; }
  .help-cta-actions .btn { padding-inline: 16px; white-space: normal; text-align: center; }
}

/* --------------------------------------------------------------------------
   Page not found
   -------------------------------------------------------------------------- */
.nf {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding-block: clamp(64px, 10vw, 136px);
  background: radial-gradient(780px 460px at 50% -12%, var(--green-100), transparent 72%), var(--bg);
}
.nf-mark {
  width: 128px; height: 128px; margin: 0 auto 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cream);
  box-shadow: 0 0 0 12px rgba(21, 102, 61, .06), 0 0 0 26px rgba(21, 102, 61, .035), var(--shadow);
}
.nf-mark img { width: 52px; height: auto; }
.nf .eyebrow { margin-bottom: 14px; }
.nf h1 { max-width: 760px; margin-inline: auto; }
.nf-urdu { margin-top: 12px; font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--muted); }
.nf .lead { max-width: 560px; margin: 12px auto 0; }
.nf-links {
  list-style: none; padding: 0; margin: clamp(36px, 5vw, 52px) auto 0; max-width: 920px; text-align: left;
  display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.nf-link {
  display: flex; align-items: center; gap: 14px; height: 100%; min-height: 76px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.nf-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--green-200); }
.nf-link.pro:hover { border-color: var(--purple-200); }
.nf-link > img { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.nf-link .icon-tile { width: 44px; height: 44px; border-radius: 12px; margin: 0; }
.nf-link .icon-tile svg { width: 22px; height: 22px; }
.nf-link-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nf-link-body strong { font-weight: 750; letter-spacing: -0.01em; line-height: 1.3; }
.nf-link-body small { font-size: .86rem; line-height: 1.4; color: var(--muted); }
.nf-contact { margin-top: 36px; color: var(--muted); }
.nf-contact a { color: var(--green-800); font-weight: 700; }
@media (max-width: 760px) {
  .nf-links { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
}
