/* ---------------------------------------------------------------------------
   Luxify — application pages.

   Same design system as the home page (public/index.html): identical tokens,
   container width, radius, shadow, font stack and 720px breakpoint. Kept in an
   external file because it is shared by /apps/ and the six product pages,
   whereas the home page keeps its own inline <style>.
   --------------------------------------------------------------------------- */

:root {
  --bg: #f7faf8;
  --text: #111412;
  --muted: #5f6863;
  --panel: #ffffff;
  --line: rgba(17, 20, 18, 0.1);
  --accent: #10a87d;
  --accent-dark: #0d7f61;
  --shadow: 0 24px 70px rgba(17, 20, 18, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(16, 168, 125, 0.12), transparent 32%),
    linear-gradient(315deg, rgba(245, 193, 71, 0.13), transparent 34%),
    var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------------------------------------------------------------- header --- */

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text);
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

main {
  flex: 1;
}

/* ---------------------------------------------------------------- shared --- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  background: var(--text);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(17, 20, 18, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #0d7f61;
  box-shadow: 0 18px 42px rgba(13, 127, 97, 0.22);
}

.button-secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button-secondary:hover {
  background: var(--panel);
  color: var(--accent-dark);
  border-color: var(--accent);
  box-shadow: 0 14px 32px rgba(17, 20, 18, 0.1);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.breadcrumbs {
  padding: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.breadcrumbs a:hover {
  color: var(--accent-dark);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.45;
}

/* -------------------------------------------------------------- sections --- */

.panel {
  position: relative;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.84)),
    radial-gradient(circle at 18% 20%, rgba(16, 168, 125, 0.2), transparent 24%),
    radial-gradient(circle at 88% 24%, rgba(245, 193, 71, 0.24), transparent 22%),
    linear-gradient(135deg, #ffffff, #eef7f2);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hub-hero {
  margin: 28px 0 0;
  padding: 56px 48px;
}

.hub-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.lede {
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 62ch;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
}

/* ------------------------------------------------------------- app cards --- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 22px;
  list-style: none;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 168, 125, 0.4);
  box-shadow: 0 20px 50px rgba(17, 20, 18, 0.1);
}

.app-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(17, 20, 18, 0.14);
}

.app-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.app-card-tag {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.app-card p {
  color: var(--muted);
  flex: 1;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-weight: 700;
}

.app-card:hover .card-cta {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ------------------------------------------------------------ app detail --- */

.app-hero {
  margin: 20px 0 0;
  padding: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
}

.app-hero-icon {
  width: 148px;
  height: 148px;
  border-radius: 34px;
  box-shadow: 0 20px 46px rgba(17, 20, 18, 0.2);
}

.app-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.app-hero .lede {
  margin-bottom: 28px;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  list-style: none;
}

.meta-list li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.prose h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.prose p {
  color: var(--muted);
  margin-bottom: 18px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose a:hover {
  color: var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
  list-style: none;
}

.feature-grid li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.feature-grid p {
  color: var(--muted);
  font-size: 0.95rem;
}

.audience-list {
  display: grid;
  gap: 12px;
  max-width: 68ch;
  list-style: none;
}

.audience-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
}

.audience-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.6em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--accent);
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 20px;
  list-style: none;
  margin-top: 8px;
}

.shots img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(17, 20, 18, 0.1);
}

.shots figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.cta-panel {
  padding: 44px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-panel h2 {
  max-width: 22ch;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.cta-panel p {
  max-width: 52ch;
  color: var(--muted);
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin-top: 22px;
}

.store-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 0.92rem;
  font-weight: 700;
  transition: border-color 180ms ease, color 180ms ease;
}

.store-links a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 18px;
  list-style: none;
}

.related a {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 180ms ease, transform 180ms ease;
}

.related a:hover {
  border-color: rgba(16, 168, 125, 0.4);
  transform: translateY(-2px);
}

.related img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
}

.related strong {
  display: block;
  font-size: 1rem;
}

.related span {
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------------------------------------------------------------- footer --- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-inner a:hover {
  color: var(--text);
}

/* ------------------------------------------------------------ responsive --- */

@media (max-width: 900px) {
  .app-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-hero-icon {
    order: -1;
    width: 104px;
    height: 104px;
    border-radius: 24px;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: min(100% - 28px, 1120px);
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 14px;
  }

  .header-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
  }

  .wrap {
    width: min(100% - 28px, 1120px);
  }

  .hub-hero,
  .app-hero {
    padding: 34px 24px 40px;
  }

  .cta-panel {
    padding: 32px 24px;
  }

  .section {
    padding: 52px 0;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .actions .button {
    width: 100%;
  }

  .footer-inner {
    width: min(100% - 28px, 1120px);
    flex-direction: column;
    align-items: flex-start;
  }
}
