/* ============================================================
 * Jusder site — shared stylesheet for index + all sub-pages.
 * Sage cream palette, generous radii, Inter type.
 * Tokens at :root; component styles below.
 * ============================================================ */

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

:root {
  --bg: #f7f8f5;
  --ink: #111816;
  --panel: #ffffff;
  --deep: #17231f;
  --muted: #64716a;
  --line: #d9ded8;
  --soft: #eef2ec;
  --accent-coming: #2d5641;
  --accent-coming-bg: #e3ede4;
  --accent-coming-line: #c6d6c5;
}

html { background: var(--bg); color: var(--ink); }
body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.68), rgba(247,248,245,0) 420px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

/* ---------- Page shell ---------- */

.page {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 34px;
  padding: 26px 0 34px;
}

.site-nav,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.12);
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #526059;
  font-size: 0.84rem;
  font-weight: 750;
}
.nav-links a,
.footer-links a {
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav-links a:hover,
.footer-links a:hover { color: var(--deep); }

/* ---------- Homepage hero (2-column) ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 34px;
  align-items: stretch;
  margin-top: 14px;
}
.hero-main {
  min-height: 470px;
  display: grid;
  align-content: end;
  padding: 34px;
  background: var(--deep);
  color: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}
.hero-main::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px;
  pointer-events: none;
}
.eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  color: #b9c8bf;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-main h1 {
  position: relative;
  z-index: 1;
  max-width: 780px;
  font-size: clamp(3.1rem, 8.4vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}
.hero-main .tagline {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-top: 24px;
  color: #ced8d1;
  line-height: 1.65;
  font-size: 1rem;
}
.hero-side {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
}
.icon-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.icon-stack img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 1px 1px rgba(0,0,0,0.12);
}
.hero-side h2 {
  max-width: 340px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}
.hero-side p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.side-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--deep);
  border-radius: 999px;
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease;
}
.side-link:hover {
  background: var(--deep);
  color: var(--bg);
}

/* ---------- Apps list (homepage) ---------- */

.apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.app-row {
  min-height: 124px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.app-row::after {
  content: "->";
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--deep);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 900;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.app-row:hover {
  transform: translateY(-3px);
  border-color: var(--deep);
  background: #fbfcf8;
  box-shadow: 0 16px 34px rgba(23, 35, 31, 0.1);
}
.app-row:hover::after {
  opacity: 1;
  transform: translateX(0);
}
.app-icon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 1px 1px rgba(0,0,0,0.12);
  transition: transform 0.18s ease;
}
.app-row:hover .app-icon { transform: scale(1.06); }
.app-title {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  transition: color 0.18s ease;
}
.app-row:hover .app-title { color: var(--deep); }
.app-copy {
  display: block;
  max-width: 520px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.app-type {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  color: #526059;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Highlight for apps not yet released — sage-tinted to read as gentle. */
.app-type.coming {
  color: var(--accent-coming);
  background: var(--accent-coming-bg);
  border-color: var(--accent-coming-line);
}

/* ---------- Sub-page hero (single-column dark card) ---------- */

.app-hero {
  min-height: 380px;
  display: grid;
  align-content: end;
  padding: 34px;
  background: var(--deep);
  color: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  margin-top: 14px;
}
.app-hero::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px;
  pointer-events: none;
}
.app-hero-icon {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  border-radius: 22px;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.app-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 780px;
  font-size: clamp(2.6rem, 7.2vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}
.app-hero h1 em {
  font-style: italic;
  color: #b9c8bf;
}
.app-hero .tagline {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin-top: 22px;
  color: #ced8d1;
  line-height: 1.65;
  font-size: 1.02rem;
}

/* Status pills and store badges (sub-page hero) */
.badges {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  color: #ced8d1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pill.accent {
  color: var(--accent-coming);
  background: var(--accent-coming-bg);
  border-color: var(--accent-coming-line);
}
.badge-store {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--bg);
  color: var(--deep);
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.18s ease;
}
.badge-store:hover { transform: translateY(-1px); }
.badge-store-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}
.badge-store-sub {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}
.badge-store-name {
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}
.badge-try {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.18s ease;
}
.badge-try:hover { transform: translateY(-1px); }
.badge-coming {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(227, 237, 228, 0.18);
  color: #d8e7dc;
  border: 1px solid rgba(198, 214, 197, 0.35);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Features section ---------- */

.features {
  margin-top: 28px;
  padding: 30px 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
}
.features-label {
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.feature:hover {
  transform: translateY(-2px);
  border-color: var(--deep);
  background: #f5f8f3;
}
.feature-icon {
  display: inline-block;
  font-size: 1.4rem;
  margin-bottom: 12px;
  line-height: 1;
}
.feature h2,
.feature h3 {
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.015em;
  color: var(--deep);
  margin-bottom: 8px;
}
.feature p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ---------- Screenshots ---------- */

.screenshots {
  margin-top: 24px;
  padding: 30px 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--soft);
}
.screenshots-label {
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

/* iPhone screenshots — horizontal scroll, tall portrait.
   Flex (not grid) so mobile Safari doesn't collapse the row into a
   vertical stack. `flex: 0 0 220px` locks each item's width so they
   never wrap. Use `justify-content: safe center` so the strip
   centers when it fits but stays scroll-from-start when it overflows
   (plain `center` causes Mobile Safari to push the first item off
   the scrollable origin). */
.shots-strip {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  justify-content: safe center;
  -webkit-overflow-scrolling: touch;
}
.shots-strip::-webkit-scrollbar { height: 8px; }
.shots-strip::-webkit-scrollbar-track { background: transparent; }
.shots-strip::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 10px;
}
.shots-strip img {
  flex: 0 0 220px;
  width: 220px;
  height: auto;
  border-radius: 26px;
  box-shadow: 0 12px 28px rgba(23, 35, 31, 0.16);
  border: 1px solid var(--line);
}
@media (min-width: 980px) {
  .shots-strip img {
    flex-basis: 240px;
    width: 240px;
  }
}

/* Web app screenshot — single large landscape with chrome-style frame. */
.shot-web {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(23, 35, 31, 0.12);
}
.shot-web-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.shot-web-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.shot-web-chrome span:nth-child(1) { background: #e88a85; }
.shot-web-chrome span:nth-child(2) { background: #e9c66a; }
.shot-web-chrome span:nth-child(3) { background: #7fb78a; }
.shot-web img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Note callout (sub-page) ---------- */

.note {
  margin-top: 24px;
  padding: 24px 26px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}
.note strong { color: var(--ink); }

/* ---------- Sub-page links footer row ---------- */

.app-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}
.app-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.18s ease;
}
.app-links a:hover { color: var(--deep); }

/* ---------- Footer ---------- */

.footer {
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.social-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

/* ---------- Prose / privacy ---------- */

.prose {
  max-width: 760px;
  margin: 14px auto 0;
  padding: 36px 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  line-height: 1.7;
}
.prose h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.prose h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--deep);
}
.prose p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}
.prose ul {
  margin: 8px 0 18px 22px;
  color: var(--muted);
}
.prose ul li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.prose a { color: var(--deep); }
.prose .eyebrow {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.prose .meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 8px 0 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.prose .intro {
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 22px;
}
.prose strong { color: var(--ink); font-weight: 800; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .page { width: min(100% - 40px, 760px); }
  .hero { grid-template-columns: 1fr; }
  .hero-main { min-height: 390px; }
  .apps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 32px, 520px);
    padding-top: 20px;
  }
  .site-nav,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .nav-links,
  .footer-links {
    flex-wrap: wrap;
    gap: 12px 16px;
  }
  .hero-main,
  .app-hero {
    min-height: 360px;
    padding: 26px;
    border-radius: 22px;
  }
  .hero-main::before,
  .app-hero::before {
    inset: 16px;
    border-radius: 16px;
  }
  .hero-side { border-radius: 22px; }
  .app-row {
    min-height: 132px;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .app-type {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .features { padding: 24px 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .app-hero-icon { width: 78px; height: 78px; margin-bottom: 22px; }
}
