/* ─────────────────────────────────────────────────────────────────────────
   HORMACHUELOS — landing page
   One idea: a clear blue sky, monochrome blue, as little text as possible.

   Performance: the page is built to paint once and then idle — nothing
   animates on load, the sky is a still photo (standard displays get the
   half-size copy), the glass surfaces are translucent white instead of
   backdrop blur, and below-the-fold sections skip rasterizing until the
   reader scrolls near them. Nothing loops — except the provider belt, which
   drifts on purpose.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --ink: #06264f;
  --ink-soft: #21518f;
  --azure: #0e5fcb;
  --azure-deep: #0a3d8f;
  --white: #ffffff;

  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;

  --glow: 0 24px 60px -22px rgba(4, 40, 100, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: #a8d2fb;
  overflow-x: hidden;
}

/* ── The sky ────────────────────────────────────────────────────────────── */

/* The sky is a still photograph on purpose. A slow drift here kept the whole
   page compositing forever — and forced every glass element to re-blur. */
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  /* Standard-density screens (most cheap laptops) download and decode the
     lighter 1920px copy; 2x screens keep the full-size photo. Browsers
     without image-set fall back to the plain line first. */
  background: #2e7fd9 url("assets/sky.jpg") center / cover no-repeat;
  background-image: -webkit-image-set(
    url("assets/sky-lite.jpg") 1x,
    url("assets/sky.jpg") 2x
  );
  background-image: image-set(
    url("assets/sky-lite.jpg") 1x,
    url("assets/sky.jpg") 2x
  );
}

.sky::before {
  /* A soft scrim: a white wash up top keeps the nav readable, and a bright
     glow sits behind the headline so the navy text stays crisp on the photo. */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0) 30%
    ),
    radial-gradient(
      60% 45% at 50% 42%,
      rgba(255, 255, 255, 0.6),
      rgba(255, 255, 255, 0) 72%
    );
}

.sky::after {
  /* A soft vignette keeps the eye on the middle. */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 90% at 50% 40%,
    transparent 55%,
    rgba(8, 40, 100, 0.22) 100%
  );
}

/* The old 90-second sky drift lived here. Removed for a steady frame rate. */

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

/* ── Nav ────────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px clamp(20px, 5vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  text-decoration: none;
  color: var(--ink);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
}

.nav-cta {
  justify-self: end;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

/* Log in / Sign up, parked in the exact centre of the top bar. */
.nav-auth {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.nav-login,
.nav-signup {
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.25s ease, filter 0.25s ease;
}

.nav-login:hover {
  background: rgba(255, 255, 255, 0.92);
}

.nav-signup {
  background: linear-gradient(180deg, #1667d8, #0b4ea2);
  color: var(--white);
  box-shadow: 0 12px 26px -12px rgba(4, 40, 100, 0.75);
}

.nav-signup:hover {
  filter: brightness(1.06);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 120px 0 60px;
}

/* The hero's own words keep the page gutter; the provider belt below them runs
   the full width of the sky. */
.hero > :not(.models) {
  padding-inline: 20px;
}

.eyebrow {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--ink-soft);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(46px, 9.5vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* Sky shine: a band of sun-on-clouds light rests parked across the headline.
   Frozen on purpose — it was the last animation on the page, and parking it
   means the page truly idles. To bring the sweep back, restore the animation
   line below:  animation: text-shine 6.5s ease-in-out 1.15s infinite; */
.shine {
  display: block;
  background-image: linear-gradient(
    110deg,
    #0b2b5f 0%,
    #0b2b5f 52%,
    #2f7ae0 55%,
    #eaf5ff 57%,
    #2f7ae0 59%,
    #0b2b5f 64%,
    #0b2b5f 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-position: 64% 0;
  animation: none;
}

/* Unused while the shine is parked — kept for the one-line re-enable. */
@keyframes text-shine {
  0% {
    background-position: 0% 0;
  }
  55% {
    background-position: 200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.hero h1 .thin {
  font-weight: 300;
  color: var(--azure-deep);
}

.lede {
  margin: 26px 0 40px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  color: var(--ink-soft);
  /* A soft halo keeps small text readable over bright clouds. */
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.65);
}

.cta {
  display: inline-block;
  padding: 17px 40px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1667d8, #0b4ea2);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: var(--glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 70px -22px rgba(4, 40, 100, 0.7);
}

.cta:active {
  transform: translateY(0);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* The installer button: same weight as the CTA, but glass instead of blue. */
.download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 20px 44px -22px rgba(4, 40, 100, 0.6);
  transition: background 0.25s ease, transform 0.25s ease;
}

.download:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.download:active {
  transform: translateY(0);
}

.download svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--azure-deep);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The version the button ships. publish-app.ps1 stamps this each release
   via the data-app-version marker. */
.download-version {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(11, 78, 162, 0.09);
  color: var(--azure-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.fine {
  margin: 18px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  opacity: 0.95;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.75);
}

/* First-run SmartScreen guidance: quiet, but readable over the clouds. */
.note {
  margin: 16px 0 0;
  max-width: 44ch;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.75);
}

.note strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── Features ───────────────────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 10vh 0;
}

/* Cheap laptops: sections below the fold skip layout and paint until the
   reader scrolls near them, so the first frame only covers the hero. */
.features,
.price {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

.tile {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 26px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.75);
  transition: transform 0.3s ease, background 0.3s ease;
}

.tile:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.86);
}

.tile svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--azure-deep);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ── Models ─────────────────────────────────────────────────────────────── */

.models {
  width: 100%;
  display: grid;
  justify-items: center;
  padding: 2vh 0 6vh;
  text-align: center;
}

/* The belt runs edge to edge; the text above and below keeps the page gutter. */
.models > :not(.belt) {
  width: 100%;
  padding-inline: 20px;
}

/* The lineup belt — one continuous left-to-right escalator of provider
   cards. Two identical sets ride the track and the track slides exactly one
   set width, so the loop never seams; hovering pauses it and reduced-motion
   readers get a still, swipeable row. */

.belt {
  width: 100%;
  margin: 26px 0 0;
  overflow: hidden;
  padding: 20px 0 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08) 58%, rgba(255, 255, 255, 0.3));
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.belt-track {
  display: flex;
  width: max-content;
  background-image: repeating-linear-gradient(90deg, rgba(10, 61, 143, 0.055) 0 1px, transparent 1px 22px);
  animation: belt-run 100s linear infinite;
  will-change: transform;
}

.belt-set {
  display: flex;
  gap: 14px;
  padding-right: 14px;
}

@keyframes belt-run {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.belt:hover .belt-track {
  animation-play-state: paused;
}

.provider {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  width: 232px;
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.78);
  text-align: left;
  transition: background 0.25s ease;
}

.belt:hover .provider {
  background: rgba(255, 255, 255, 0.85);
}

.provider-logo {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--azure-deep);
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}

.provider-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.models-fine {
  margin: 22px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  opacity: 0.95;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.75);
}

/* ── Price ──────────────────────────────────────────────────────────────── */

.price {
  display: grid;
  justify-items: center;
  padding: 12vh 20px 14vh;
}

.kicker {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--ink-soft);
}

.card {
  width: min(420px, 92vw);
  padding: 36px 34px 30px;
  border-radius: 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 46px 90px -36px rgba(4, 40, 100, 0.55);
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1080px, calc(100% - 40px));
}

.plans .card {
  display: flex;
  flex-direction: column;
  width: auto;
  padding: 30px 22px 26px;
  border-radius: 26px;
}

.card.featured {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.96);
  border-color: #ffffff;
  box-shadow: 0 50px 100px -34px rgba(4, 40, 100, 0.7);
}

.card .tag {
  align-self: center;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1667d8, #0b4ea2);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.plans .card h2 {
  font-size: 13px;
  letter-spacing: 0.26em;
}

.plans .amount {
  margin: 14px 0 4px;
}

.plans .amount-value {
  font-size: clamp(34px, 3.6vw, 44px);
}

.plans .card .perks {
  flex: 1;
}

.plans .card .buy {
  margin-top: auto;
}

.card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--azure-deep);
}

.amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 6px;
}

.amount-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 9vw, 74px);
  letter-spacing: -0.03em;
  line-height: 1;
}

.amount-note {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.perks {
  list-style: none;
  margin: 22px 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.perks li {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
}

.perks li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--azure);
  font-weight: 700;
}

.buy {
  display: block;
  padding: 16px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1667d8, #0b4ea2);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  box-shadow: var(--glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 70px -22px rgba(4, 40, 100, 0.7);
}

/* A signed-in plan holder: the active card steps back, the buttons speak. */
.plans .card.is-current {
  border-color: rgba(14, 95, 203, 0.4);
}

.buy.current,
.buy.current:hover {
  background: rgba(14, 95, 203, 0.08);
  color: var(--azure-deep);
  box-shadow: none;
  transform: none;
  cursor: default;
}

.card .fine {
  margin-top: 16px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 36px 20px 44px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(6, 38, 79, 0.75);
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.6);
}

/* ── Small screens ──────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(640px, calc(100% - 40px));
  }

  .card.featured {
    transform: none;
  }
}

@media (max-width: 720px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-name {
    letter-spacing: 0.14em;
  }

  /* The hero's own button covers the call to action; auth stays visible. */
  .nav {
    grid-template-columns: auto 1fr;
  }

  .nav-cta {
    display: none;
  }

  .nav-auth {
    justify-self: end;
  }
}

@media (max-width: 560px) {
  .plans {
    grid-template-columns: 1fr;
    width: min(400px, calc(100% - 40px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .belt-track {
    animation: none;
    transform: none;
  }

  .belt-dup {
    display: none;
  }

  .belt {
    overflow-x: auto;
    overflow-y: hidden;
  }
}
