/*
 * Homepage sections below the uploader hero (hl-). Light and plain: Geist
 * throughout, the product's blue for actions, real screenshots on soft panels.
 */
.hl {
  --ink: #0f172a;
  --text: #334155;
  --muted: #556275;
  --line: #e2e8f0;
  --soft: #f6f8fb;
  --panel: #eef3fb;
  --blue: #2f5be4;
  --blue-dark: #2349c4;
  --blue-soft: #edf2ff;
  --green: #0e8a5f;
  background: #fff;
  color: var(--text);
  font-family: var(--font-text, "Geist", ui-sans-serif, -apple-system, "Segoe UI", sans-serif);
  font-size: 16px;
  line-height: 1.6;
}
.hl-section { padding: clamp(72px, 9vw, 112px) 0; }
.hl-section + .hl-section { border-top: 1px solid var(--line); }
.hl-wrap { margin: 0 auto; max-width: 1200px; padding: 0 clamp(20px, 4vw, 40px); }
.hl h2, .hl h3 { color: var(--ink); margin: 0; }
.hl h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 650; letter-spacing: -.03em; line-height: 1.12; text-wrap: balance; }
.hl a:focus-visible, .hl summary:focus-visible { border-radius: 6px; outline: 2px solid var(--blue); outline-offset: 3px; }
.hl svg { flex: none; }

.hl-head { margin-bottom: 48px; max-width: 720px; }
.hl-head--center { margin-inline: auto; text-align: center; }
.hl-head p { color: var(--muted); font-size: 18px; margin: 14px 0 0; text-wrap: pretty; }
.hl-head a { color: var(--blue); }

.hl-link { align-items: center; color: var(--blue); display: inline-flex; font-weight: 600; gap: 6px; text-decoration: none; }
.hl-link svg { height: 16px; transition: transform .15s ease; width: 16px; }
.hl-link:hover svg { transform: translateX(2px); }
.hl-button {
  align-items: center;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.hl-button:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.hl-button--outline { background: #fff; border-color: #cbd5e1; color: var(--ink); }
.hl-button--outline:hover { background: var(--soft); border-color: #94a3b8; }
.hl-button--small { font-size: 14px; min-height: 34px; padding: 0 14px; }
.hl-button--white { background: #fff; border-color: #fff; color: var(--blue); }
.hl-button--white:hover { background: #eef2ff; border-color: #eef2ff; }
.hl-button--ghost { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.hl-button--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.hl-checks { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.hl-checks li { align-items: flex-start; color: var(--text); display: flex; gap: 10px; }
.hl-checks svg { color: var(--blue); height: 18px; margin-top: 3px; width: 18px; }

/* Intro and the jump links to each feature */
.hl-intro { padding-bottom: 40px; }
.hl-intro .hl-head { margin-bottom: 32px; }
.hl-jump { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hl-jump a {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 15px;
  font-weight: 550;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px 0 12px;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.hl-jump a:hover { background: var(--soft); border-color: #cbd5e1; }
.hl-jump svg { color: var(--blue); height: 18px; width: 18px; }

/* Feature rows: copy on one side, the real screen on the other */
.hl-feature { border-top: 0 !important; padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.hl-feature__grid { align-items: center; display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.hl-feature--flip .hl-feature__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.hl-feature--flip .hl-feature__copy { order: 2; }
.hl-label { align-items: center; color: var(--blue); display: inline-flex; font-size: 15px; font-weight: 600; gap: 8px; margin: 0 0 12px; }
.hl-label svg { height: 18px; width: 18px; }
.hl-feature__body { color: var(--muted); font-size: 18px; margin: 14px 0 24px; }
.hl-feature .hl-checks { margin-bottom: 28px; }
/* The screen runs off the panel's right and bottom edges, so it can be shown
   larger than the column while the panel keeps a steady shape. */
.hl-shot {
  aspect-ratio: 6 / 5;
  background: linear-gradient(160deg, var(--panel), #f7f9fd);
  border: 1px solid #e3e9f3;
  border-radius: 20px;
  margin: 0;
  overflow: hidden;
  position: relative;
}
.hl-shot img {
  background: #fff;
  border: 1px solid #dbe2ec;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 24px 48px -20px rgba(15, 23, 42, .3);
  display: block;
  height: auto;
  left: clamp(20px, 4%, 40px);
  max-width: none;
  position: absolute;
  top: clamp(20px, 6%, 44px);
  width: 128%;
}

/* Everything else */
.hl-extras { background: var(--soft); }
.hl-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.hl-grid li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.hl-grid__icon { align-items: center; background: var(--blue-soft); border-radius: 10px; color: var(--blue); display: inline-flex; height: 40px; justify-content: center; width: 40px; }
.hl-grid__icon svg { height: 20px; width: 20px; }
.hl-grid h3 { font-size: 16px; font-weight: 600; margin: 16px 0 4px; }
.hl-grid p { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0; }

/* Apps */
.hl-platforms { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0 auto; max-width: 1000px; padding: 0; }
.hl-platforms li {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 4px 12px;
  grid-template-columns: 40px minmax(0, 1fr);
  min-height: 76px;
  padding: 14px 16px;
}
.hl-platforms li.is-live { background: var(--blue-soft); border-color: #c7d5fb; grid-column: span 2; grid-template-columns: 40px minmax(0, 1fr) auto; }
.hl-platforms__icon { align-items: center; background: var(--soft); border-radius: 10px; color: var(--ink); display: flex; grid-row: span 2; height: 40px; justify-content: center; width: 40px; }
.hl-platforms li.is-live .hl-platforms__icon { background: #fff; color: var(--blue); grid-row: auto; }
.hl-platforms__icon svg { height: 20px; width: 20px; }
.hl-platforms__name { color: var(--ink); font-weight: 600; }
.hl-platforms__status { color: var(--muted); font-size: 14px; grid-column: 2; }
.hl-platforms li.is-live .hl-platforms__name::after { color: var(--green); content: " · Available now"; font-size: 14px; font-weight: 500; }

/* Pricing */
.hl-pricing { background: var(--soft); }
.hl-plans { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 auto; max-width: 1040px; }
.hl-plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 20px; padding: 28px; }
.hl-plan.is-featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.hl-plan h3 { align-items: center; display: flex; font-size: 18px; font-weight: 600; justify-content: space-between; }
.hl-plan h3 span { background: var(--blue-soft); border-radius: 999px; color: var(--blue); font-size: 12px; font-weight: 600; padding: 3px 10px; }
.hl-plan__price { margin: 0; }
.hl-plan__price b { color: var(--ink); font-size: 40px; font-weight: 700; letter-spacing: -.03em; }
.hl-plan__price span { color: var(--muted); font-size: 15px; }
.hl-plan .hl-button { margin-top: auto; }
.hl-more { margin: 32px 0 0; text-align: center; }

/* Questions */
.hl-faq__grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
.hl-faq__list details { border-bottom: 1px solid var(--line); }
.hl-faq__list details:first-child { border-top: 1px solid var(--line); }
.hl-faq__list summary { align-items: center; color: var(--ink); cursor: pointer; display: flex; font-size: 17px; font-weight: 600; gap: 16px; justify-content: space-between; list-style: none; padding: 18px 0; }
.hl-faq__list summary::-webkit-details-marker { display: none; }
.hl-faq__list summary::after { color: var(--muted); content: "+"; font-size: 22px; font-weight: 400; transition: transform .15s ease; }
.hl-faq__list details[open] summary::after { transform: rotate(45deg); }
.hl-faq__list p { color: var(--muted); margin: -6px 0 20px; max-width: 64ch; }

/* Closing call to action */
.hl-cta { background: var(--blue); color: #fff; padding: 56px 0; }
.hl-cta__inner { align-items: center; display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; }
.hl-cta h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); }
.hl-cta p { color: rgba(255, 255, 255, .85); margin: 6px 0 0; }
.hl-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* A quiet fade as blocks scroll in (home.js). */
html.hx-js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
html.hx-js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hl-feature__grid, .hl-feature--flip .hl-feature__grid { grid-template-columns: minmax(0, 1fr); }
  .hl-feature--flip .hl-feature__copy { order: 0; }
  .hl-grid, .hl-platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hl-plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .hl-shot { margin: 0 auto; max-width: 640px; width: 100%; }
  .hl-faq__grid { gap: 24px; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .hl-head { margin-bottom: 32px; }
  .hl-head p, .hl-feature__body { font-size: 17px; }
  .hl-shot { aspect-ratio: 5 / 4; border-radius: 16px; }
  .hl-shot img { left: 16px; top: 16px; width: 160%; }
  .hl-grid { gap: 10px; }
  .hl-grid li { padding: 16px; }
  .hl-grid__icon { height: 34px; width: 34px; }
  .hl-grid h3 { font-size: 15px; margin-top: 12px; }
  .hl-grid p { font-size: 13.5px; }
  .hl-platforms { gap: 8px; }
  .hl-platforms li { gap: 2px 10px; grid-template-columns: 34px minmax(0, 1fr); min-height: 0; padding: 12px; }
  .hl-platforms__icon { height: 34px; width: 34px; }
  .hl-platforms__name { font-size: 14px; }
  .hl-platforms__status { font-size: 13px; }
  .hl-platforms li.is-live .hl-platforms__name::after { content: none; }
  /* Plans become a row you swipe through, with the next card peeking in. */
  .hl-plans {
    grid-auto-columns: 84%;
    grid-auto-flow: column;
    grid-template-columns: none;
    margin: 0 calc(-1 * clamp(20px, 4vw, 40px));
    max-width: none;
    overflow-x: auto;
    padding: 2px clamp(20px, 4vw, 40px) 8px;
    scroll-padding-inline: clamp(20px, 4vw, 40px);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .hl-plans::-webkit-scrollbar { display: none; }
  .hl-plan { scroll-snap-align: start; }
  .hl-cta__actions .hl-button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html.hx-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hl-link svg, .hl-faq__list summary::after { transition: none; }
}
