/* SwissTropic: App Store style storefront under a tropical sky. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #1a2b20;
  --ink-dim: #51604f;
  --accent: #006600;
  --accent-tint: rgba(0, 102, 0, 0.10);
  --accent-tint-strong: rgba(0, 102, 0, 0.18);
  --glass: rgba(255, 255, 255, 0.78);
  --glass-line: rgba(255, 255, 255, 0.9);
  --hairline: rgba(26, 43, 32, 0.08);
  --sans: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
/* fixed tropical sky behind everything */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background: #bfe6e2 url('assets/hero-bg.jpg') center / cover no-repeat;
}
::selection { background: var(--accent); color: #fff; }
a { color: var(--accent); }

/* ── masthead: logo + what this is ── */
.masthead {
  max-width: 760px; margin: 0 auto; padding: 240px 24px 88px;
  text-align: center;
}
.logo { width: min(460px, 86vw); height: auto; display: block; margin: 0 auto; }
.tagline {
  margin-top: 8px;
  font-size: clamp(20px, 3.4vw, 29px);
  font-weight: 700; letter-spacing: -0.5px; line-height: 1.15;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.lede {
  margin: 14px auto 0; max-width: 480px;
  font-size: 16px; color: var(--ink-dim);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.lede a { font-weight: 600; }

/* ── frosted panels ── */
main { max-width: 680px; margin: 0 auto; padding: 0 20px 32px; }
.panel {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(26, 43, 32, 0.08);
  padding: 20px 20px 10px;
  margin-bottom: 18px;
}
.panel-head { padding: 0 4px 6px; }
.panel-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; }
.panel:not(.panel-newsletter) .panel-head h2 { text-transform: uppercase; letter-spacing: 0.06em; font-size: 15px; color: var(--ink-dim); }
.panel-head p { font-size: 14px; color: var(--ink-dim); margin-top: 2px; }

/* ── app rows: the whole tile is the target (App Store style) ── */
.app {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 10px;
  border-radius: 14px;
  text-decoration: none; color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s;
}
a.app { cursor: pointer; }
@media (hover: hover) {
  a.app:hover { background: var(--accent-tint); }
}
a.app:focus-visible { background: var(--accent-tint); outline: none; }
.app-icon {
  width: 56px; height: 56px; flex: none;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(26, 43, 32, 0.22), inset 0 0 0 1px rgba(26, 43, 32, 0.06);
}
.app-icon img { width: 62%; height: 62%; object-fit: contain; }
.app-icon-full img { width: 100%; height: 100%; object-fit: cover; }
.app-icon-placeholder {
  background: linear-gradient(180deg, #f2f4f2, #e4e8e4);
}
.app-icon-placeholder span {
  font-size: 24px; font-weight: 800; color: #a3ada4;
}
.app-info { flex: 1; min-width: 0; }
.app-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-info h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.app-info p { font-size: 13.5px; color: var(--ink-dim); }

/* relationship badge: partner roles only; in-house apps carry no badge */
.app-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim); background: rgba(26, 43, 32, 0.07);
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
/* maturity tag: beta = further along (amber), alpha = earliest (outlined) */
.app-stage-beta { color: #a86400; background: rgba(216, 137, 0, 0.14); }
.app-stage-alpha {
  color: var(--ink-dim); background: transparent;
  box-shadow: inset 0 0 0 1px rgba(26, 43, 32, 0.18);
}

/* solid green CTA, revealed on hover (App Store "Get") */
.app-cta {
  flex: none; margin-left: auto;
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--accent);
  padding: 8px 20px; border-radius: 999px; white-space: nowrap;
  opacity: 0; transform: translateX(6px);
  transition: opacity 0.18s, transform 0.18s;
}
@media (hover: hover) {
  /* :focus-visible only: plain click focus must not pin the capsule open */
  a.app:hover .app-cta, a.app:focus-visible .app-cta { opacity: 1; transform: none; }
}
@media (hover: none) {
  .app-cta { opacity: 1; transform: none; }
}
.app-cta-soon {
  opacity: 1; transform: none;
  color: var(--ink-dim); background: rgba(26, 43, 32, 0.07);
}

/* solid green primary button (always visible, e.g. newsletter) */
.btn-primary {
  flex: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; background: var(--accent);
  padding: 12px 26px; border-radius: 999px;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn-primary:hover { background: #007a00; box-shadow: 0 6px 18px rgba(0, 102, 0, 0.28); }

/* ── newsletter ── */
.panel-newsletter { padding-bottom: 20px; }
.signup { display: flex; gap: 10px; padding: 6px 4px 0; flex-wrap: wrap; }
.signup-input {
  flex: 1; min-width: 200px;
  font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 11px 16px; border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.signup-input::placeholder { color: #9aa79c; }
.signup-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.app-btn-big { font-size: 13px; padding: 11px 26px; border: none; cursor: pointer; }
.social-x {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 14px 4px 0;
  font-size: 13px; font-weight: 600; color: var(--ink-dim);
  text-decoration: none; transition: color 0.15s;
}
.social-x:hover { color: var(--accent); }
.social-x svg { flex: none; width: 15px; height: 15px; fill: currentColor; }

/* ── footer ── */
.footer {
  max-width: 680px; margin: 0 auto; padding: 6px 24px 44px;
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--ink-dim);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

@media (max-width: 480px) {
  /* clear the palm fronds in the hero corners so the logo reads cleanly */
  .masthead { padding-top: 152px; }
  .panel { padding: 16px 14px 6px; border-radius: 18px; }
  .app { gap: 12px; }
  .app-icon { width: 50px; height: 50px; border-radius: 12px; }
  /* compact capsule, always visible at phone widths: the App Store
     affordance that says "tappable" */
  .app-cta { padding: 6px 13px; font-size: 11px; opacity: 1; transform: none; }
  .app-info p {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
