/* ==========================================================================
   Link Apple — custom UI layer (loaded after main.css, so it wins)
   Modern, clean, Apple-inspired polish + ad-zone styling.
   ========================================================================== */

:root {
  --la-blue: #0071e3;
  --la-blue-dark: #0a2540;
  --la-violet: #7d2ae8;
  --la-ink: #0f172a;
  --la-muted: #6b7280;
  --la-line: #e7edf3;
  --la-radius: 16px;
  --la-shadow-sm: 0 6px 22px rgba(15, 23, 42, .06);
  --la-shadow-md: 0 14px 40px rgba(15, 23, 42, .12);
}

body { -webkit-font-smoothing: antialiased; }

/* ------------------------------------------------------------------ Header */
.header {
  background: rgba(255, 255, 255, .9) !important;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--la-line), 0 8px 24px rgba(15, 23, 42, .05);
}

.header .sitename {
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, var(--la-blue-dark), var(--la-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navmenu ul a {
  font-weight: 500;
  border-radius: 10px;
  transition: color .25s, background .25s;
}
.navmenu ul a:hover,
.navmenu ul li a.active {
  color: var(--la-blue) !important;
}

/* --------------------------------------------------------------- Buttons */
.hero .btn-get-started {
  display: inline-block;
  background: #fff;
  color: var(--la-blue-dark);
  font-weight: 600;
  letter-spacing: .01em;
  padding: 15px 42px;
  margin-top: 30px;
  border-radius: 50px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  transition: transform .3s ease, box-shadow .3s ease, color .3s ease;
}
.hero .btn-get-started:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .3);
  color: var(--la-blue);
  background: #fff;
}

.btn-la {
  display: inline-block;
  background: linear-gradient(120deg, var(--la-blue), var(--la-violet));
  color: #fff;
  font-weight: 600;
  padding: 13px 34px;
  border-radius: 50px;
  border: 0;
  box-shadow: 0 12px 26px rgba(0, 113, 227, .3);
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}
.btn-la:hover {
  color: #fff;
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 18px 34px rgba(0, 113, 227, .42);
}

/* ------------------------------------------------------------------- Hero */
.gradient-bg {
  height: auto;
  background: linear-gradient(125deg, #061a35 0%, var(--la-blue) 48%, var(--la-violet) 100%);
  background-size: 220% 220%;
  animation: laGradient 14s ease infinite;
}
@keyframes laGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 104px;
}
/* The template paints a 70% white veil via .hero:before that washes out the
   gradient. Replace it with a soft dark veil so the gradient stays vivid and
   white text keeps strong contrast. */
.hero:before {
  background: linear-gradient(125deg, rgba(3, 10, 26, .55) 0%, rgba(3, 10, 26, .12) 55%, rgba(125, 42, 232, .30) 100%) !important;
  z-index: 2;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .16;
  mix-blend-mode: soft-light;
  margin: 0;
  z-index: 1;
}
.hero .container { position: relative; z-index: 5; }
.hero h1 {
  color: #fff;
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 18px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .18);
}
.hero p {
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  max-width: 720px;
  margin: 0 auto 6px;
}

/* ----------------------------------------------------------- Section title */
.section-title h2 {
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--la-ink);
}
.section-title h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--la-blue), var(--la-violet));
}
.section-title p { color: var(--la-muted); }

/* ------------------------------------------------------------------ Cards */
.card {
  border: 1px solid var(--la-line);
  border-radius: var(--la-radius);
  box-shadow: var(--la-shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--la-shadow-md);
}
.card-header {
  background: linear-gradient(120deg, var(--la-blue-dark), var(--la-blue));
  color: #fff;
  font-weight: 600;
  border: 0;
}

.icon-box,
.service-item {
  border-radius: var(--la-radius);
  transition: transform .3s ease, box-shadow .3s ease;
}
.icon-box:hover,
.service-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--la-shadow-md);
}
.icon-box .icon i,
.about .icon-box .icon i { color: var(--la-blue); }

/* Numbered step badge used on activate.php */
.secon span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(120deg, var(--la-blue), var(--la-violet)) !important;
  box-shadow: 0 10px 22px rgba(0, 113, 227, .3);
}

/* Steps list on the homepage */
.steps-list .step-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #e9eef5;
  padding: 12px 6px;
}
.steps-list .step-item:last-child { border-bottom: 0; }

/* --------------------------------------------------------------- Ad zones */
.ad-zone {
  margin: 34px auto;
  max-width: 1000px;
  text-align: center;
  clear: both;
}
.ad-zone__label {
  display: block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9aa3af;
  margin-bottom: 8px;
}
.ad-zone ins { margin: 0 auto; }

.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  padding: 20px;
  border: 2px dashed #d7dee8;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff, #f1f6fb);
  color: #9aa3af;
  font-size: .95rem;
}
.ad-placeholder i { font-size: 1.3rem; }
.ad-placeholder code {
  background: #eef3f9;
  color: #5b6675;
  padding: 1px 7px;
  border-radius: 6px;
}

/* Sticky sidebar ad for desktop guide pages */
.ad-sticky { position: sticky; top: 100px; }
.ad-zone--side { margin: 0; max-width: 100%; }
.ad-placeholder--tall {
  flex-direction: column;
  min-height: 600px;
  gap: 12px;
}
.ad-placeholder--tall i { font-size: 1.8rem; }

/* --------------------------------------------------------- Stat / trust bar */
.la-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 940px;
  margin: 0 auto;
}
.la-stat {
  background: var(--surface-color, #fff);
  border: 1px solid var(--la-line);
  border-radius: var(--la-radius);
  padding: 26px 16px;
  text-align: center;
  box-shadow: var(--la-shadow-sm);
}
.la-stat .num {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 2rem;
  background: linear-gradient(90deg, var(--la-blue), var(--la-violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.la-stat .lbl { color: var(--la-muted); font-size: .92rem; margin-top: 6px; }

/* --------------------------------------------------------------- Guide grid */
.guide-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--la-line);
  border-radius: var(--la-radius);
  padding: 30px 26px;
  box-shadow: var(--la-shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.guide-card:hover { transform: translateY(-6px); box-shadow: var(--la-shadow-md); }
.guide-card .g-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(120deg, var(--la-blue), var(--la-violet));
  margin-bottom: 18px;
}
.guide-card h3 { font-size: 1.2rem; font-weight: 700; }
.guide-card p { color: var(--la-muted); flex: 1; }
.guide-card .g-link { color: var(--la-blue); font-weight: 600; }

/* Popular help topics (homepage) */
.popular-card {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--la-line);
  border-radius: 14px;
  color: var(--la-ink);
  font-weight: 500;
  line-height: 1.35;
  box-shadow: var(--la-shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.popular-card:hover {
  transform: translateY(-4px);
  border-color: var(--la-blue);
  box-shadow: var(--la-shadow-md);
  color: var(--la-ink);
}
.popular-card i { font-size: 1.5rem; color: var(--la-blue); flex-shrink: 0; }

/* "Was this helpful?" feedback widget (help articles) */
.helpful {
  background: #f6fafd;
  border: 1px solid var(--la-line);
  border-radius: 14px;
  padding: 22px;
  margin: 28px 0;
  text-align: center;
}
.helpful-q { font-weight: 600; display: block; margin-bottom: 14px; }
.helpful-btns { display: flex; gap: 12px; justify-content: center; }
.helpful-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 24px;
  border: 1px solid var(--la-line);
  background: #fff;
  border-radius: 50px;
  font-weight: 600;
  color: var(--la-ink);
  cursor: pointer;
  transition: transform .2s, border-color .2s, color .2s;
}
.helpful-btn:hover { border-color: var(--la-blue); color: var(--la-blue); transform: translateY(-2px); }
.helpful-thanks p { margin: 0; }
.helpful-more { font-size: .92rem; color: var(--la-muted); margin-top: 6px !important; }

/* --------------------------------------------------------------------- FAQ */
.faq .accordion-item {
  border-radius: 14px !important;
  overflow: hidden;
}
.faq .accordion-button:not(.collapsed) { color: #fff; }

/* ----------------------------------------------------------------- Footer */
.footer { border-top: 1px solid var(--la-line); }
.footer .sitename { font-weight: 800; }
.footer .footer-links a:hover { color: var(--la-blue); padding-left: 4px; }
.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--la-line);
  color: var(--la-blue-dark);
  transition: .25s;
}
.footer .social-links a:hover {
  background: linear-gradient(120deg, var(--la-blue), var(--la-violet));
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

/* ------------------------------------------------------------- Scroll top */
.scroll-top {
  background: linear-gradient(120deg, var(--la-blue), var(--la-violet)) !important;
  border-radius: 12px;
}

/* ------------------------------------------------------------- Page title */
.page-title.accent-background {
  background: linear-gradient(125deg, #061a35, var(--la-blue) 70%, var(--la-violet)) !important;
}

/* ----------------------------------------------------------------- Mobile */
@media (max-width: 768px) {
  .la-stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 72px 0 80px; }
  .ad-zone { margin: 26px auto; }
}

/* ----------------------------------------------------- Mobile anchor (sticky) ad */
.anchor-ad {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1040;
  display: none;                  /* shown only on phones via the query below */
  background: #fff;
  border-top: 1px solid var(--la-line);
  box-shadow: 0 -6px 24px rgba(15, 23, 42, .14);
  padding: 10px 12px 8px;
  text-align: center;
}
.anchor-ad__label {
  display: block;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: #9aa3af; margin-bottom: 3px;
}
.anchor-ad__close {
  position: absolute; top: -15px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--la-line); background: #fff; color: #444;
  font-size: 18px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
}
.anchor-ad__ph {
  min-height: 50px; display: flex; align-items: center; justify-content: center;
  color: #9aa3af; font-size: .82rem; padding: 8px;
  border: 2px dashed #d7dee8; border-radius: 10px;
}
.anchor-ad__ph code { background: #eef3f9; padding: 1px 6px; border-radius: 5px; }

@media (max-width: 992px) {
  .anchor-ad { display: block; }
  body { padding-bottom: 96px; }            /* keep content clear of the anchor */
  .scroll-top { bottom: 104px !important; } /* float the scroll-top above the anchor */
}
