/* ==========================================================================
   X3WEB — Hosting page (/packages/hosting), on top of x3.css

   Loaded only by packages/hosting.php through $x3_page_css; uses x3.css's
   tokens and nothing else. The page sells hosting through the X3WEB Client
   Zone app (Quentin, 15 Nov 2026): people download the app, buy their domain
   and activate their hosting there, so the plan cards and the closing band
   carry the App Store and Google Play buttons instead of the enquiry form.

   Sections
     1. The app section before the plans: phone, copy, what the app does,
        why X3WEB hosting
     2. The store buttons in the plan cards and the closing band
     3. Trust bar, Advanced Protection card text, backups, real people and
        security sections (Quentin's brief, 18 Nov 2026)
   ========================================================================== */


/* ── 1. The app section ───────────────────────────────────────────────────── */

/* Phones: heading, phone, the rest. From 960px: the phone on the left, the
   heading and the rest on the right. */
.hz-app__grid {
  display: grid;
  grid-template-areas: "head" "visual" "body";
  gap: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  align-items: center;
}
.hz-app__head   { grid-area: head; }
.hz-app__visual { grid-area: visual; }
.hz-app__body   { grid-area: body; }
@media (min-width: 960px) {
  .hz-app__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-areas: "visual head" "visual body";
    grid-template-rows: auto 1fr;
    column-gap: clamp(3rem, 1rem + 5vw, 6.5rem);
    row-gap: 1.75rem;
  }
  .hz-app__head { align-self: end; }
  .hz-app__body { align-self: start; }
}
@media (max-width: 959px) {
  .hz-app__head { text-align: center; }
  .hz-app__head .x3-eyebrow { justify-content: center; }
}

/* The app on a phone: the real screenshot in a plain dark frame, with the
   status bar strip the screenshot leaves out. */
.hz-app__visual {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 1.5rem 0;
}
.hz-app__visual::before {             /* a soft warm disc behind the phone */
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--stone-warm), transparent);
  z-index: 0;
}
.hz-phone {
  position: relative;
  z-index: 1;
  width: min(19rem, 74vw);
  margin: 0;
  padding: 0.625rem;
  border-radius: 2.75rem;
  background: var(--ink);
  box-shadow: var(--shadow-3);
}
.hz-phone__screen {
  overflow: hidden;
  border-radius: 2.25rem;
  background: #edecea;                 /* the app's own background */
  padding-top: 1.75rem;                /* room for the camera, as on a real phone */
  position: relative;
}
.hz-phone__screen::before {            /* the camera */
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 50%;
  width: 5.25rem;
  height: 1.375rem;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
}
.hz-phone img {
  display: block;
  width: 100%;
  height: auto;
}

/* Two small one-line cards on the phone, placed where the screenshot is empty
   so they never cover the app: the SSL card in the blank band between
   "Hosting, websites and more" and "Invoices, domains and support", the
   clients card on the bottom of the frame, under the app's last line. */
.hz-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.875rem 0.4375rem 0.4375rem;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-2);
  font-size: 0.875rem;
  line-height: 1.2;
  color: var(--ink-muted);
  white-space: nowrap;
}
.hz-chip strong { color: var(--ink); }
.hz-chip__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgb(255 85 0 / 0.1);
  color: var(--accent);
}
.hz-chip__icon svg { width: 1.125rem; height: 1.125rem; }
.hz-chip--ssl     { top: 61.5%; right: -2.5rem; }
.hz-chip--clients { top: calc(100% - 1.375rem); left: -2rem; }
@media (max-width: 520px) {
  .hz-chip { font-size: 0.8125rem; padding-right: 0.75rem; }
  .hz-chip__icon { width: 2rem; height: 2rem; }
  .hz-chip--ssl     { right: -0.75rem; }
  .hz-chip--clients { left: -0.75rem; }
}

/* What the app does: icon, then a bold lead and a line of text. */
.hz-does__label,
.hz-why__label {
  margin-bottom: 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hz-does {
  display: grid;
  gap: 1rem;
  margin: 0 0 clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  padding: 0;
  list-style: none;
}
.hz-does li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.875rem;
  align-items: start;
}
.hz-does__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  color: var(--accent);
}
.hz-does__icon svg { width: 1.25rem; height: 1.25rem; }
/* Only the text column: a plain ".hz-does span" also caught the icon box and
   turned its grid into a block, which pushed every icon into a corner. */
.hz-does li > div strong { display: block; color: var(--ink); font-size: 1.0625rem; }
.hz-does li > div span   { display: block; color: var(--ink-muted); line-height: 1.55; }
/* The site centres text on phones; this list keeps its icons, so it reads
   left to right everywhere. */
.hz-does li > div { text-align: left; }
@media (max-width: 959px) { .hz-does__label { text-align: center; } }

/* Why X3WEB hosting: four figures, then a short paragraph. */
.hz-why {
  margin-bottom: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--line);
  background: var(--panel);
}
.hz-why__figs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin: 0 0 1.125rem;
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) { .hz-why__figs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hz-why__figs strong {
  display: block;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hz-why__figs strong span { color: var(--accent); }
.hz-why__figs small { display: block; margin-top: 0.25rem; font-size: 0.8125rem; line-height: 1.35; color: var(--ink-muted); }
.hz-why p { margin: 0; color: var(--ink-muted); line-height: 1.6; }

@media (max-width: 959px) {
  .hz-app__body .x3-stores { justify-content: center; }
}


/* ── 2. Store buttons in the plan cards and the closing band ─────────────── */

/* At the foot of each plan card, where "Let's Get Started" was: a short line,
   then the two store buttons, one under the other and full width. */
.hz-pkg-get {
  display: grid;
  gap: 0.625rem;
  margin-top: auto;
}
.hz-pkg-get__label {
  margin: 0;
  font-size: 0.875rem;
  text-align: center;
  color: var(--ink-muted);
}
.hz-pkg-get .x3-stores { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
.hz-pkg-get .x3-store { justify-content: center; width: 100%; }
/* Speak to Sales, under the store buttons: the same width, opens the form. */
.hz-pkg-get .hz-pkg-sales { justify-content: center; width: 100%; }

.x3-band .x3-stores { justify-content: center; }

/* The enquiry forms on this page (the pop-up and the form at the foot): the
   app download buttons under the phone numbers and email addresses. */
.x3-modal__apps { margin-top: 1.25rem; }
.x3-contact__apps { margin-top: 1.5rem; }


/* ── 3. Quentin's brief (18 Nov 2026): trust bar, backups, people, security ── */

/* The trust bar under the hero: four items, two by two on phones and small
   tablets, one row of four with hairlines from 900px. */
@media (min-width: 640px) { .hz-trust .x3-pkgstrip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .hz-trust .x3-pkgstrip__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hz-trust .x3-pkgstrip__item + .x3-pkgstrip__item { border-left: 1px solid var(--line); }
}
.hz-trust .x3-pkgstrip__item strong { font-weight: 550; }

/* Advanced Protection: why it costs more than Platinum, on the card. */
.hz-pkg-desc { display: grid; gap: 0.625rem; margin-top: 0.25rem; }
.hz-pkg-desc p:first-child { font-weight: 550; color: var(--ink); }

/* The three sections after the plans: heading and copy side by side. */
.hz-split { align-items: start; }
.hz-copy > * + * { margin-top: 1.125rem; }
.hz-copy p:not(.x3-lede) { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-muted); }
.hz-copy .x3-btnrow { margin-top: 2rem; }

/* Backups: the three points under the copy. */
.hz-points { margin-top: clamp(2rem, 1.4rem + 2vw, 3rem); }
.hz-points .x3-tile--row { align-items: center; box-shadow: var(--shadow-2); }

/* Real people: the hosting side of the team, two by two. */
.hz-team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 0.5rem + 0.8vw, 1.25rem);
  list-style: none;
}
.hz-team__card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--card);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-2);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.hz-team__card:hover { box-shadow: var(--shadow-3, var(--shadow-2)); transform: translateY(-2px); }
.hz-team__card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; }
.hz-team__name {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 0.2rem;
  padding: 2.5rem 0.875rem 0.75rem;
  background: linear-gradient(to top, rgb(12 14 18 / 0.88), rgb(12 14 18 / 0));
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.2;
}
.hz-team__name small { font-size: 0.75rem; font-weight: 450; line-height: 1.3; color: rgb(255 255 255 / 0.82); }

/* Security: three tiles beside the copy. */
.hz-shields { display: grid; gap: 0.875rem; }
.hz-shields .x3-tile--row { box-shadow: var(--shadow-2); }


/* ── 4. /ai-website-hosting (the ChatGPT ads page) ───────────────────────── */

/* Five situations: one column on phones, two on tablets; on desktops the
   AI-built one and the domain one share the first row, the other three the
   second. */
.ai-paths {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 0.7rem + 1vw, 1.5rem);
}
@media (min-width: 720px) { .ai-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) {
  .ai-paths { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ai-path { grid-column: span 2; }
  .ai-path--lead, .ai-path--lead + .ai-path { grid-column: span 3; }
}
.ai-path {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  background: var(--card);
  box-shadow: var(--shadow-2);
}
.ai-path--lead { border-top: 3px solid var(--accent); }
.ai-path__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--stone-warm);
  color: var(--accent);
}
.ai-path__icon svg { width: 1.375rem; height: 1.375rem; }
.ai-path p { font-size: 1rem; line-height: 1.65; color: var(--ink-muted); }
.ai-path .x3-stores { margin-top: 0.25rem; }
.ai-path > .x3-btn { margin-top: auto; }
.ai-path > .x3-stores + .x3-btn { margin-top: 0.25rem; }
/* Phones centre body text sitewide; centre the icon and buttons with it. */
@media (max-width: 767.98px) {
  .ai-path { align-items: center; text-align: center; }
  .ai-path .x3-stores { justify-content: center; }
}

/* Phones, /ai-website-hosting's hero: its two small pills (Check
   Compatibility, Find a Domain) side by side at the same size, on one line
   each. The round form button goes; the phone bar already carries Speak to
   Sales. A hero with one small pill (/packages/hosting) is untouched. */
@media (max-width: 599.98px) {
  .hero__more:has(> .x3-btn + .x3-btn) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .hero__more:has(> .x3-btn + .x3-btn) > .x3-btn { padding-inline: 0.5rem; font-size: 0.9375rem; white-space: nowrap; }
  .hero__more:has(> .x3-btn + .x3-btn) > .hero__round { display: none; }
}
/* Tablets and desktops: the same two pills at one width too. */
@media (min-width: 600px) {
  .hero__more:has(> .x3-btn + .x3-btn) > .x3-btn { min-width: 13.25rem; }
}
