/* ==========================================================================
   adelyons.com — home page styles
   Design system: "Final assembly 5a" (Claude Design handoff, 2026-07-10)
   Type: Instrument Sans (UI) + Newsreader italic (accents)
   Ink #101828 · Body #475467 · Muted #667085 · Border #eaecf0 · Blue #1d4ed8
   ========================================================================== */

:root {
  --ink: #101828;
  --body: #475467;
  --muted: #667085;
  --faint: #98a2b3;
  --border: #eaecf0;
  --blue: #1d4ed8;
  --blue-dark: #1a44be;
  --tint: #f9fafb;
  --dark: #101828;
}

/* ── Base ────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}

section[id] { scroll-margin-top: 24px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

/* ── Brand mark ──────────────────────────────────────────────────────────── */

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  grid-template-columns: 12px 12px;
  grid-template-rows: 12px 12px;
  gap: 2.5px;
}

.brand__tile {
  border-radius: 4px;
  background: var(--ink);
}

.brand__tile--blue {
  background: var(--blue);
  transform: rotate(9deg);
}

.brand__mark--small {
  grid-template-columns: 9px 9px;
  grid-template-rows: 9px 9px;
  gap: 2px;
}

.brand__mark--small .brand__tile { border-radius: 3px; }

.brand__mark--dark .brand__tile { background: #fff; }
.brand__mark--dark .brand__tile--blue { background: #6c96ff; }

.brand__name {
  font-weight: 650;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
}

.nav__link:hover,
.nav__link.is-active { color: var(--ink); }

.nav__cta {
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  padding: 9px 18px;
  border-radius: 8px;
}

.nav__cta:hover,
.nav__cta.is-active { color: #fff; background: var(--blue-dark); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.hamburger__bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn--primary { color: #fff; background: var(--blue); }
.btn--primary:hover { background: var(--blue-dark); }

.btn--secondary {
  color: #344054;
  background: #fff;
  border: 1px solid #d0d5dd;
}
.btn--secondary:hover { border-color: var(--faint); }

.btn--light { color: var(--ink); background: #fff; }
.btn--light:hover { background: #eaecf0; }
.btn--light:disabled { opacity: 0.6; cursor: default; }

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

.hero { border-bottom: 1px solid var(--border); }

.hero__grid {
  padding-top: 84px;
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blue);
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero__title {
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}

.hero__accent {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--blue);
}

.hero__lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 32px;
  max-width: 56ch;
}

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

.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Hero icon cluster ───────────────────────────────────────────────────── */

.hero__cluster {
  position: relative;
  height: 280px;
  max-width: 360px;
  margin: 0 auto;
}

.hero-app {
  position: absolute;
  cursor: pointer;
}

.hero-app:hover,
.hero-app:focus-within { z-index: 30; }

.hero-app__icon {
  width: 100%;
  height: 100%;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.18);
}

.hero-app--wrenly { top: 4px; left: 26px; width: 82px; height: 82px; }
.hero-app--wrenly .hero-app__icon { border-radius: 20px; transform: rotate(-8deg); }

.hero-app--parcard { top: 30px; right: 20px; width: 98px; height: 98px; }
.hero-app--parcard .hero-app__icon { border-radius: 24px; transform: rotate(6deg); }

.hero-app--combwise { top: 96px; left: 116px; width: 90px; height: 90px; }
.hero-app--combwise .hero-app__icon { border-radius: 22px; transform: rotate(3deg); }

.hero-app--volleyvelocity { bottom: 22px; left: 8px; width: 84px; height: 84px; }
.hero-app--volleyvelocity .hero-app__icon { border-radius: 20px; transform: rotate(7deg); }

.hero-app--formfill { bottom: 0; right: 84px; width: 78px; height: 78px; }
.hero-app--formfill .hero-app__icon { border-radius: 19px; transform: rotate(-6deg); }

.hero-app--baseball { bottom: 58px; right: 0; width: 70px; height: 70px; }
.hero-app--baseball .hero-app__icon { border-radius: 17px; transform: rotate(-3deg); }

/* Popover cards — colors per app via custom properties */

.hero-app--wrenly         { --pc-bg: #fdf6ec; --pc-border: #f0e2cc; --pc-title: #4a2b40; --pc-text: #8a6f63; --pc-btn: #c87d2a; --pc-btn-hover: #b06c1f; --pc-btn-color: #fff; --pc-shadow: rgba(74, 43, 64, 0.22); }
.hero-app--parcard        { --pc-bg: #f0f8f2; --pc-border: #d7ecdc; --pc-title: #14532d; --pc-text: #4d7c5f; --pc-btn: #1e7a45; --pc-btn-hover: #166638; --pc-btn-color: #fff; --pc-shadow: rgba(20, 83, 45, 0.22); }
.hero-app--combwise       { --pc-bg: #fdf8ea; --pc-border: #f0e4bf; --pc-title: #5c4419; --pc-text: #8a7440; --pc-btn: #ecc257; --pc-btn-hover: #dfb141; --pc-btn-color: #3a2c08; --pc-shadow: rgba(92, 68, 25, 0.22); }
.hero-app--volleyvelocity { --pc-bg: #101828; --pc-border: rgba(255, 255, 255, 0.12); --pc-title: #fff; --pc-text: #9aa4b8; --pc-btn: #1d4ed8; --pc-btn-hover: #1a44be; --pc-btn-color: #fff; --pc-shadow: rgba(16, 24, 40, 0.35); }
.hero-app--formfill       { --pc-bg: #f4f6fb; --pc-border: #dbe1f0; --pc-title: #1e3a8a; --pc-text: #5a6a92; --pc-btn: #1e3a8a; --pc-btn-hover: #17306f; --pc-btn-color: #fff; --pc-shadow: rgba(30, 58, 138, 0.2); }
.hero-app--baseball       { --pc-bg: #eef3fa; --pc-border: #d4e0ef; --pc-title: #1b3a6b; --pc-text: #56688a; --pc-btn: #e8590c; --pc-btn-hover: #d14e08; --pc-btn-color: #fff; --pc-shadow: rgba(27, 58, 107, 0.22); }

.hero-card {
  display: none;
  position: absolute;
  z-index: 40;
  width: 232px;
  background: var(--pc-bg);
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 12px 32px var(--pc-shadow);
  flex-direction: column;
  gap: 10px;
  cursor: auto;
}

.hero-app:hover .hero-card,
.hero-app:focus-within .hero-card { display: flex; }

/* Invisible bridge so the pointer can cross the gap between icon and card */
.hero-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
}

.hero-card--below { top: calc(100% + 12px); }
.hero-card--below::before { top: -14px; }

.hero-card--above { bottom: calc(100% + 12px); }
.hero-card--above::before { bottom: -14px; }

.hero-card--left { left: 0; }
.hero-card--right { right: 0; }
.hero-card--center { left: 50%; transform: translateX(-50%); }

.hero-card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--pc-title);
}

.hero-card__head img { width: 26px; height: 26px; border-radius: 7px; }

.hero-card__blurb {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--pc-text);
}

.hero-card__link {
  display: block;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pc-btn-color);
  background: var(--pc-btn);
  padding: 8px 0;
  border-radius: 999px;
  text-decoration: none;
}

.hero-card__link:hover { background: var(--pc-btn-hover); color: var(--pc-btn-color); }

/* ── Stat band ───────────────────────────────────────────────────────────── */

.stats { border-bottom: 1px solid var(--border); }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 150px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.stat__value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat__label {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
}

/* ── Sections ────────────────────────────────────────────────────────────── */

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.section--tinted { background: var(--tint); }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section__title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
}

.section__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.section__aside {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: var(--faint);
}

.section__more {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}

.section__more:hover { color: var(--blue-dark); text-decoration: underline; }

.section__sub {
  font-size: 15px;
  color: var(--muted);
  margin: 8px 0 36px;
}

/* ── App tiles (flagship + rising) ───────────────────────────────────────── */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.app-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.app-tile:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
}

.app-tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-tile__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.badge {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #027a48;
  background: #ecfdf3;
  padding: 4px 10px;
  border-radius: 999px;
}

.app-tile__name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.app-tile__blurb {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Grouped catalog ─────────────────────────────────────────────────────── */

.groups {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.group__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.group__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--dot, var(--faint));
  flex: none;
}

.group__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0;
}

.group__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 24px;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}

.app-row:hover { background: #f2f6ff; }

.app-row__icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  flex: none;
}

.app-row__text {
  min-width: 0;
  font-size: 13px;
  color: var(--muted);
}

.app-row__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* ── Principles ──────────────────────────────────────────────────────────── */

.principles { padding: 56px 0; }

.principles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.principle__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.principle__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ── Contact ─────────────────────────────────────────────────────────────── */

.contact {
  background: var(--dark);
  color: #fff;
  padding: 64px 0;
}

.contact__band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.contact__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.contact__sub {
  font-size: 15px;
  color: var(--faint);
  margin: 0;
}

.contact__email {
  font-size: 15px;
  color: #d0d5dd;
  text-decoration: none;
}

.contact__email:hover { color: #fff; text-decoration: underline; }

.contact-form { max-width: 720px; }

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #d0d5dd;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 12px 14px;
}

.form-input::placeholder { color: rgba(255, 255, 255, 0.35); }

.form-input:focus {
  outline: none;
  border-color: #6c96ff;
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-status {
  max-width: 720px;
  font-size: 14px;
  margin-bottom: 16px;
}

.form-status--success { color: #86efac; }
.form-status--error { color: #fca5a5; }

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

.site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.site-footer__brand p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.site-footer__link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.site-footer__link:hover { color: #d0d5dd; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .group__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 48px;
  }
}

@media (max-width: 768px) {
  .container,
  .header-inner { padding-left: 20px; padding-right: 20px; }

  .nav__hamburger { display: flex; order: 1; }

  .nav__links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 24px 20px;
    border-top: 1px solid var(--border);
  }

  .nav__links.is-open { display: flex; }

  .nav__link {
    display: block;
    width: 100%;
    font-size: 16px;
    padding: 12px 0;
  }

  .nav__cta {
    text-align: center;
    padding: 12px 18px;
    margin-top: 8px;
  }

  .principles__grid { grid-template-columns: 1fr; }

  .contact-form__row { grid-template-columns: 1fr; }

  /* Popovers become a bottom sheet on small screens */
  .hero-card--below,
  .hero-card--above {
    position: fixed;
    top: auto;
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: auto;
    transform: none;
    z-index: 100;
  }

  .hero-card::before { content: none; }
}

@media (max-width: 600px) {
  .tile-grid { grid-template-columns: 1fr; }
  .group__grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero__cluster {
    transform: scale(0.85);
    transform-origin: center;
    margin-top: -20px;
  }
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
