@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

:root {
  --navy: #152019;
  --blue: #e08a45;
  --orange: #c9a06a;
  --bg: #0c1410;
  --bg-deep: #08100c;
  --surface: #1c2a22;
  --surface-raised: #24332a;
  --text: #f2efe8;
  --muted: #a3b0a8;
  --border: rgba(242, 239, 232, 0.12);
  --border-strong: rgba(242, 239, 232, 0.18);
  --heading: #f2efe8;
  --on-primary: #f2efe8;
  --accent: #e08a45;
  --accent-hover: #eba05f;
  --accent-soft: #c9a06a;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Figtree', 'Segoe UI', sans-serif;
}

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

html { font-size: 16px; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 70% 45% at 12% -8%, rgba(47, 74, 60, 0.4), transparent 55%),
    radial-gradient(ellipse 50% 35% at 88% 4%, rgba(224, 138, 69, 0.07), transparent 48%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* Auth gate */
.auth-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(145deg, var(--navy) 0%, #1a2e24 55%, #0f1c16 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
}
.auth-gate-card {
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: 12px; padding: 2.5rem 1.75rem;
  max-width: 400px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.auth-gate-logo { width: 96px; height: 96px; margin-bottom: 1rem; object-fit: contain; }
.auth-gate-title { font-family: var(--font-display); color: var(--heading); font-size: 1.35rem; margin-bottom: .5rem; }
.auth-gate-subtitle { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.auth-gate-input {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--border);
  border-radius: 8px; font-size: 1rem; margin-bottom: .75rem; min-height: 48px;
}
.auth-gate-button {
  width: 100%; padding: .85rem; background: var(--accent); color: #1a1008;
  border: none; border-radius: 999px; font-weight: 600; cursor: pointer; min-height: 48px;
  font-family: var(--font-body);
}
.auth-gate-button:hover { background: var(--accent-hover); }
.auth-gate-error { color: #c0392b; font-size: .85rem; margin-bottom: .5rem; }

.code-gate-brand {
  text-align: center;
  margin-bottom: 0.75rem;
}
.fox-lock {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  border-radius: 4px;
}
.fox-lock--modal {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.5rem;
  display: block;
  object-fit: contain;
  border-radius: 0;
}
.fox-lock-slot {
  display: block;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  flex-shrink: 0;
  box-sizing: border-box;
}

/*
 * Row grid: icon | label | lock | status
 * Lock and badge are direct children (not display:contents) so long titles
 * cannot shove LIVE/BETA out of column alignment.
 */
.sidebar-item-inner > .fox-lock,
.sidebar-item-inner > .fox-lock-slot,
.landing-nav-link > .fox-lock,
.landing-nav-link > .fox-lock-slot,
.landing-nav .unavailable > .fox-lock,
.landing-nav .unavailable > .fox-lock-slot {
  grid-column: 3;
  width: 22px;
  height: 22px;
  min-width: 22px;
  justify-self: center;
}

.sidebar-item-inner > .status-badge,
.landing-nav-link > .status-badge,
.landing-nav .unavailable > .status-badge {
  grid-column: 4;
  justify-self: stretch;
  width: 100%;
  height: 22px;
  min-height: 22px;
  max-height: 22px;
  padding: 0 8px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0;
}

.sidebar-item-inner > em,
.landing-nav .unavailable > em {
  grid-column: 5;
  font-size: .7rem;
  line-height: 1.2;
  align-self: center;
}

.code-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 30, 26, 0.55);
  padding: 1.25rem;
}
.code-gate-card {
  width: min(22rem, 100%);
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.code-gate-title { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 0.5rem; color: var(--heading); }
.code-gate-prompt { color: var(--muted); font-size: 0.92rem; margin: 0 0 1rem; }
.code-gate-input {
  width: 100%;
  font-size: 1.25rem;
  letter-spacing: 0.35em;
  text-align: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.35rem;
  margin-bottom: 0.65rem;
  background: var(--surface);
  color: var(--text);
}
.code-gate-error { color: #c0392b; font-size: 0.85rem; margin: 0 0 0.65rem; }
.code-gate-actions { display: flex; gap: 0.65rem; justify-content: flex-end; }
.code-gate-cancel,
.code-gate-button {
  border: none;
  border-radius: 0.35rem;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font: inherit;
}
.code-gate-cancel { background: transparent; color: var(--muted); }
.code-gate-button { background: var(--navy, #2D4A3E); color: #fff; }
.code-gate-button:hover { filter: brightness(1.08); }


/* Landing */
.landing {
  max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem 4rem; text-align: center;
}
.landing-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 0.85rem;
  text-align: center;
}
.landing-logo {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 1.15rem;
}
.landing-brand .landing-eyebrow {
  margin: 0;
}
.landing-brand h1,
.landing h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.35rem); font-weight: 700; color: var(--heading);
  letter-spacing: .02em; margin: 0;
}
.landing .subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0.35rem auto 0.5rem;
  max-width: 28rem;
}
.landing-descriptor {
  color: color-mix(in srgb, var(--muted) 85%, var(--text));
  font-size: 0.92rem;
  font-style: italic;
  margin-bottom: 1.75rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.landing-search-wrap { margin: 1.25rem auto 2rem; max-width: 480px; width: 100%; }
.landing-search {
  width: 100%; padding: .9rem 1rem; border: 2px solid var(--border);
  border-radius: 10px; font-size: 1rem; cursor: pointer; min-height: 48px;
  background: var(--surface); font-family: var(--font-body);
}
.landing-search:focus { outline: none; border-color: var(--blue); }

.landing-nav-groups { text-align: left; margin: 0 auto; max-width: 480px; width: 100%; }
.landing-group {
  margin-bottom: 2.25rem;
  padding: 1.15rem 1rem 1rem;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  border-radius: 12px;
}
.landing-group + .landing-group {
  margin-top: 0.35rem;
}
.landing-group-title {
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 600; color: var(--navy);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: .75rem; padding: 0 .35rem .55rem;
  border-bottom: 1px solid var(--border);
}
.landing-nav { list-style: none; }
.landing-nav li { border-bottom: 1px solid var(--border); }
.landing-nav a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 22px 3.75rem max-content;
  align-items: center;
  column-gap: .5rem;
  padding: .9rem 1rem; color: var(--text); text-decoration: none; font-weight: 500;
  min-height: 48px;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.15s ease, color 0.15s ease;
}
.landing-nav-link { width: 100%; }
.app-icon {
  width: 40px; height: 40px; border-radius: 10px; object-fit: cover;
  flex-shrink: 0; background: var(--surface);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.landing-nav .app-icon { grid-column: 1; }
.landing-nav a:hover { background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); }
.landing-nav .unavailable {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 22px 3.75rem max-content;
  align-items: center;
  column-gap: .5rem;
  padding: .9rem 1rem; color: var(--muted); font-size: .95rem; min-height: 48px;
  width: 100%;
  box-sizing: border-box;
}
.landing-nav-label {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.landing-nav-toggle-wrap {
  border-bottom: none;
  padding: .25rem 0 .1rem;
  list-style: none;
}
.landing-nav-toggle {
  display: inline-flex;
  align-items: center;
  padding: .5rem .65rem;
  border: none;
  background: transparent;
  color: var(--blue);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
.landing-nav-toggle:hover { text-decoration: underline; }
.landing-empty { color: var(--muted); text-align: center; padding: 1rem; }
.landing-learn-more { margin-top: 2rem; }
.landing-learn-more a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .5rem 1.25rem; font-weight: 600; color: var(--blue);
  text-decoration: none; border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--border));
  border-radius: 8px; background: color-mix(in srgb, var(--surface) 80%, transparent);
}
.landing-learn-more a:hover { background: color-mix(in srgb, var(--blue) 10%, var(--surface)); }
.landing-footer {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center; gap: .35rem .5rem;
}
.landing-footer a { color: var(--blue); text-decoration: none; padding: .35rem .25rem; }
.landing-footer a:hover { text-decoration: underline; }
.landing-footer-sep { opacity: .45; user-select: none; }

.section-summary { font-size: 1.05rem; color: var(--text); margin-bottom: 1rem; }
.app-version-meta { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }
.app-download-wrap {
  margin: 1.25rem 0 2rem; display: flex; flex-direction: column; gap: .85rem; align-items: flex-start;
}
.app-channel { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.app-download-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.25rem; background: var(--accent); color: #1a1008;
  text-decoration: none; border-radius: 999px; font-weight: 600; font-size: .95rem; min-height: 44px;
  box-shadow: 0 8px 20px rgba(224, 138, 69, 0.18);
}
.product-actions .app-download-btn-secondary {
  background: transparent;
  color: var(--accent-soft, #c9a06a);
  border: 1px solid rgba(201, 160, 106, 0.45);
  box-shadow: none;
}
.product-actions .addon-install-hint {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
  max-width: 36rem;
}
.app-download-btn-beta {
  background: transparent; color: var(--accent-soft);
  border: 1px solid rgba(201, 160, 106, 0.45); box-shadow: none;
}
.app-download-btn.is-disabled {
  background: rgba(242, 239, 232, 0.06); color: var(--muted); cursor: not-allowed; filter: none;
  border: 1px solid var(--border); box-shadow: none;
}
.app-channel-meta { font-size: .85rem; color: var(--muted); }
.app-install-help { font-size: .9rem; color: var(--blue); }

.about-page {
  max-width: 46rem;
}
.about-hero {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}
.about-hero-icon {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface);
  box-shadow:
    0 10px 28px rgba(45, 74, 62, 0.18),
    0 0 0 1px color-mix(in srgb, var(--border) 80%, transparent);
}
.about-hero-text { flex: 1; min-width: min(100%, 16rem); }
.about-hero-greeting {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 .45rem;
}
.about-hero-roles {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1rem;
}
.about-hero-blurb {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 1.15rem;
  max-width: 38rem;
}
.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.about-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .55rem 1.15rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
}
.about-hero-btn:hover { filter: brightness(1.08); color: #fff; }
.about-hero-btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid color-mix(in srgb, var(--navy) 35%, var(--border));
}
.about-hero-btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
  filter: none;
  background: color-mix(in srgb, var(--navy) 6%, transparent);
}

.about-skills,
.about-build,
.about-contact {
  margin: 0 0 2.25rem;
}
.about-skills h2,
.about-build h2,
.about-contact h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--heading);
  margin: 0 0 1rem;
}
.about-skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.about-skill-badge {
  display: inline-flex;
  align-items: center;
  padding: .4rem .85rem;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  background: color-mix(in srgb, var(--blue) 12%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--border) 70%, var(--blue));
}

.about-build-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .about-build-grid { grid-template-columns: repeat(3, 1fr); }
}
.about-build-card {
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--surface) 92%, var(--bg)), var(--surface));
  box-shadow: 0 4px 14px rgba(45, 74, 62, 0.05);
}
.about-build-emoji {
  display: block;
  font-size: 1.35rem;
  margin-bottom: .55rem;
  line-height: 1;
}
.about-build-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--heading);
  margin: 0 0 .4rem;
}
.about-build-card p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.45;
  color: var(--muted);
}

.about-contact-cards {
  display: grid; gap: .75rem; margin: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .about-contact-cards { grid-template-columns: repeat(3, 1fr); }
}
.about-contact-card {
  display: flex; flex-direction: column; gap: .2rem;
  padding: 1.05rem 1rem; border: 1px solid var(--border); border-radius: 14px;
  text-decoration: none; color: var(--text);
  background: color-mix(in srgb, var(--surface) 90%, var(--bg));
  min-height: 96px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.about-contact-card:hover {
  border-color: color-mix(in srgb, var(--blue) 55%, var(--border));
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 74, 62, 0.08);
}
.about-contact-emoji {
  font-size: 1.2rem;
  line-height: 1;
  margin-bottom: .35rem;
}
.about-contact-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.about-contact-value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--heading);
  word-break: break-word;
}

@media (max-width: 560px) {
  .about-hero { gap: 1.1rem; }
  .about-hero-icon { width: 88px; height: 88px; border-radius: 22px; }
  .about-contact-cards { grid-template-columns: 1fr; }
}

/* Page shell */
.page {
  max-width: 1100px; margin: 1rem auto 3rem; background: rgba(28, 42, 34, 0.72);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  display: flex; min-height: 70vh;
}
.sidebar {
  width: 340px; flex-shrink: 0; background: rgba(15, 26, 20, 0.96); color: var(--on-primary);
  padding: 1.25rem 0 0; border-radius: 12px 0 0 12px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-self: stretch;
  min-height: 70vh; position: relative;
}
.sidebar-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: .5rem;
}
.sidebar-nav ol { list-style: none; }
.sidebar-nav li { padding: .4rem .85rem; font-size: .9rem; }
.sidebar-nav a {
  color: var(--muted);
  text-decoration: none;
  display: block;
  padding: .35rem 0;
  min-height: 44px;
  box-sizing: border-box;
}
.sidebar-nav a:hover { color: var(--text); }
.sidebar-nav .active {
  color: var(--text);
  font-weight: 600;
  background: rgba(224, 138, 69, 0.08);
  box-shadow: inset 3px 0 0 var(--accent);
}
.sidebar-nav .active .sidebar-item-inner,
.sidebar-nav li > .sidebar-item-inner {
  min-height: 44px;
}
.sidebar-nav .unavailable { color: #6a7a70; font-size: .85rem; }
.sidebar-group { margin-bottom: 1.15rem; }
.sidebar-group + .sidebar-group {
  padding-top: .85rem;
  margin-top: .15rem;
  border-top: 1px solid var(--border);
}
.sidebar-group-title {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-soft);
  padding: 0 1rem .45rem;
}
.sidebar-note {
  margin: 1.5rem 1rem 1rem; padding: 1rem; background: rgba(242, 239, 232, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px; font-size: .8rem; line-height: 1.5;
}
.sidebar-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: transparent;
  padding: .35rem 0 .65rem;
}
.sidebar-footer-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: .45rem 1rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
a.sidebar-footer-link:hover { color: var(--text); }
.sidebar-footer-link.active {
  color: var(--text);
  background: rgba(224, 138, 69, 0.08);
  box-shadow: inset 3px 0 0 var(--accent);
}
.sidebar-footer-link.unavailable { color: #6a7a70; font-weight: 500; }
.sidebar-backdrop { display: none; }
.main { flex: 1; padding: 2rem 2.5rem; min-width: 0; }

/* Section content */
.section-header { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-header h1 { font-family: var(--font-display); font-size: 1.75rem; color: var(--heading); }
.content-block { margin-bottom: 2rem; }
.content-block h2 {
  font-size: 1.1rem; color: var(--blue); margin-bottom: .75rem;
  padding-bottom: .35rem; border-bottom: 2px solid var(--bg);
}
.content-block ul { margin: .75rem 0 0 1.25rem; }
.content-block li { margin-bottom: .45rem; line-height: 1.45; }
.content-block a { color: var(--blue); }

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 0 8px;
  border-radius: 4px;
  flex-shrink: 0;
  height: 22px;
  min-height: 22px;
  max-height: 22px;
  line-height: 1;
  box-sizing: border-box;
}
.status-live { background: rgba(143, 173, 154, 0.12); color: #8fad9a; border: 1px solid rgba(143, 173, 154, 0.28); }
.status-beta { background: rgba(201, 160, 106, 0.12); color: #c9a06a; border: 1px solid rgba(201, 160, 106, 0.28); }
.status-progress { background: rgba(154, 171, 162, 0.12); color: #9aaba2; border: 1px solid rgba(154, 171, 162, 0.24); }
.status-planned { background: rgba(242, 239, 232, 0.05); color: var(--muted); border: 1px solid var(--border); }
.status-archived { background: rgba(242, 239, 232, 0.04); color: #7f8f86; border: 1px solid var(--border); }

/* Product listing (Play Store inspired) */
.product-header {
  display: flex; align-items: flex-start; gap: 1.25rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.product-icon {
  width: 72px; height: 72px; border-radius: 16px; object-fit: cover;
  flex-shrink: 0; background: var(--surface);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.product-header-text { flex: 1; min-width: 0; }
.product-kind {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 .45rem;
}
.product-title-row {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  margin-bottom: .35rem;
}
.product-title-row h1 {
  font-family: var(--font-display); font-size: 1.75rem; color: var(--heading); margin: 0;
}
.product-tagline {
  font-size: 1.05rem; color: var(--text); line-height: 1.45; margin: 0;
}
.product-meta {
  color: var(--muted); font-size: .92rem; margin: 0 0 1.25rem;
}
.product-actions {
  display: flex; flex-direction: column; gap: 1rem; align-items: stretch;
  margin-bottom: 1.75rem; max-width: min(100%, 22rem);
}
.product-actions .app-channel {
  display: flex; flex-direction: column; align-items: stretch; gap: .4rem;
  margin: 0; width: 100%;
}
.product-actions .app-install-help {
  font-size: .875rem; align-self: flex-start; margin: 0;
}
.product-actions .app-download-btn { width: 100%; box-sizing: border-box; }
.product-actions .product-action-block--play { margin-top: .5rem; }
.product-hint {
  color: var(--muted); font-size: .92rem; margin: -0.75rem 0 1.5rem;
}
.app-download-btn-play {
  background: color-mix(in srgb, var(--navy) 88%, #000);
}
.app-download-btn-play.is-disabled {
  opacity: 0.55; cursor: not-allowed; font-size: .88rem;
}

.whats-new, .features-section, .screenshots-section, .about-app-section {
  margin-bottom: 2rem;
}
.whats-new h2, .features-section h2, .screenshots-section h2, .about-app-section > h2 {
  font-family: var(--font-display);
  font-size: 1.2rem; color: var(--heading);
  margin-bottom: .85rem;
}
.whats-new ul { margin: 0; padding-left: 1.25rem; }
.whats-new li { margin-bottom: .4rem; line-height: 1.45; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .85rem;
}
.feature-card {
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.05rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.feature-card:hover {
  box-shadow: 0 4px 14px rgba(45, 74, 62, 0.08);
  transform: translateY(-1px);
}
.feature-card h3 {
  font-size: .95rem; color: var(--heading); margin: 0 0 .35rem;
}
.feature-card p {
  font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.4;
}

.screenshot-carousel {
  display: flex;
  gap: .85rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  touch-action: pan-x pinch-zoom;
  padding: .25rem .25rem 1rem;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: none; /* Firefox */
}
.screenshot-carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge */
}
.screenshot-carousel.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}
.screenshot-carousel.is-dragging img {
  pointer-events: none;
}
.screenshot-slide {
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: center;
  margin: 0;
}
.screenshot-slide img {
  width: 100%; height: auto; display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  -webkit-user-drag: none;
  user-select: none;
}

/* Soft edge hint that more screenshots exist */
.screenshots-section .screenshot-carousel {
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}

.tech-details {
  margin-top: 2rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.tech-details p {
  font-size: .82rem; color: var(--muted); margin: 0;
}

.sidebar-item-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 22px 3.75rem max-content;
  align-items: center;
  column-gap: .45rem;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
}
.sidebar-item-text {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.sidebar-item-link { display: block; text-decoration: none; color: inherit; }
.sidebar-nav .app-icon { width: 28px; height: 28px; border-radius: 6px; grid-column: 1; }


/* Toolbar */
.portal-toolbar {
  background: rgba(12, 20, 16, 0.9); color: var(--text); padding: .45rem .75rem;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.toolbar-inner {
  max-width: 1100px; margin: 0 auto; display: flex; gap: .5rem;
  justify-content: space-between; align-items: center;
}
.toolbar-start, .toolbar-end { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.toolbar-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  width: 44px; height: 44px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.toolbar-btn:hover {
  background: rgba(224, 138, 69, 0.1);
  border-color: rgba(224, 138, 69, 0.35);
  color: var(--accent-soft);
}
a.toolbar-btn { text-decoration: none; }
.toolbar-menu { display: none; }

/* Search modal */
.search-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: flex-start; justify-content: center; padding-top: 10vh; }
.search-modal[hidden] { display: none; }
.search-modal-backdrop { position: absolute; inset: 0; background: rgba(8, 16, 12, 0.72); }
.search-modal-card {
  position: relative; background: var(--surface); border-radius: 12px;
  width: 90%; max-width: 560px; box-shadow: 0 20px 60px rgba(0,0,0,.25); overflow: hidden;
}
.search-modal-input {
  width: 100%; padding: 1rem 1.25rem; border: none; border-bottom: 1px solid var(--border);
  font-size: 1.1rem; outline: none; min-height: 52px; font-family: var(--font-body);
}
.search-modal-results { max-height: 360px; overflow-y: auto; padding: .5rem 0; }
.search-results { list-style: none; }
.search-results a {
  display: block; padding: .85rem 1.25rem; text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--bg); min-height: 48px;
}
.search-results a:hover { background: var(--bg); }
.search-result-title { display: block; font-weight: 600; color: var(--heading); }
.search-result-meta { font-size: .8rem; color: var(--muted); }
.search-hint, .search-empty { padding: 1.25rem; color: var(--muted); font-size: .9rem; }
.search-modal-footer { padding: .75rem 1.25rem; font-size: .75rem; color: var(--muted); background: var(--bg); }

.site-footer {
  text-align: center; padding: 1.5rem; font-size: .85rem; color: var(--muted);
}
.site-footer a { color: var(--blue); }

.loading { color: var(--muted); }

@media print {
  .no-print, .sidebar, .portal-toolbar, .auth-gate, .sidebar-backdrop { display: none !important; }
  .page { box-shadow: none; margin: 0; }
  .main { padding: 1rem; }
}

@media (max-width: 900px) {
  body { overflow-x: hidden; }

  .landing {
    margin: 0; padding: 2rem 1.25rem 3rem;
  }
  .landing h1,
  .landing-brand h1 { font-size: 1.55rem; }
  .landing-logo { width: 100px; height: 100px; }
  .landing-nav-groups { max-width: none; }
  .landing-nav a, .landing-nav .unavailable { padding: 1rem; }

  .page {
    flex-direction: column;
    margin: 0;
    max-width: none;
    min-height: 100vh;
    box-shadow: none;
    border-radius: 0;
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 299;
    background: rgba(15, 42, 31, 0.55);
  }
  body.sidebar-open .sidebar-backdrop { display: block; }
  body.sidebar-open { overflow: hidden; }

  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(340px, 90vw);
    z-index: 300;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    overflow: hidden;
    padding: 1.5rem 0 0;
    border-radius: 0;
    min-height: 100vh;
    height: 100%;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }

  .sidebar-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main { padding: 1.25rem 1rem 1.5rem; width: 100%; }
  .section-header h1 { font-size: clamp(1.25rem, 5vw, 1.6rem); }

  .toolbar-menu { display: inline-flex; }
  .toolbar-inner {
    max-width: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .toolbar-inner::-webkit-scrollbar { display: none; }

  .about-contact-cards { grid-template-columns: 1fr; }
  .app-download-wrap { width: 100%; }
  .app-download-btn { width: 100%; text-align: center; }
}

/* Hidden dedication letter — My Huntress */
body[data-section-id="my-huntress"],
body.dedication-page {
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, color-mix(in srgb, var(--orange) 14%, transparent), transparent),
    radial-gradient(ellipse 50% 40% at 80% 100%, color-mix(in srgb, var(--blue) 12%, transparent), transparent),
    linear-gradient(180deg, #f3eee3 0%, #ebe4d6 45%, #e6dfd0 100%);
}

body[data-section-id="my-huntress"] .page,
body.dedication-page .page {
  display: block;
  max-width: none;
}

body[data-section-id="my-huntress"] .sidebar,
body.dedication-page .sidebar {
  display: none !important;
}

body[data-section-id="my-huntress"] .main,
body.dedication-page .main {
  width: 100%;
  max-width: none;
  padding: 2rem 1.25rem 4rem;
}

.dedication-letter {
  max-width: 40rem;
  margin: 0 auto;
  font-family: var(--font-display);
  opacity: 0;
}

.dedication-letter.is-revealed {
  animation: dedication-fade 0.9s ease-out both;
}

.dedication-mark {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 14px;
  opacity: 1;
  animation: dedication-rise 1s ease-out both;
}

.dedication-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 700;
  color: var(--heading);
  text-align: center;
  letter-spacing: 0.01em;
  margin-bottom: 2rem;
  animation: dedication-rise 1.15s ease-out 0.08s both;
}

.dedication-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.dedication-body p {
  margin: 0 0 1.1rem;
}

.dedication-body p.dedication-emphasis {
  font-weight: 600;
  color: var(--navy);
  margin: 1.35rem 0;
}

.dedication-flourish {
  width: min(12rem, 50%);
  height: 1px;
  margin: 2.25rem auto 1.75rem;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  position: relative;
}

.dedication-flourish::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  transform: translate(-50%, -50%);
  opacity: 0.85;
}

.dedication-epilogue {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  font-style: italic;
}

.dedication-closing {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--heading);
  animation: dedication-fade 1.3s ease-out 0.25s both;
}

.dedication-closing p { margin: 0 0 0.35rem; }

.dedication-signoff {
  font-style: italic;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.2rem;
  margin-top: 0.5rem !important;
}

.dedication-photo {
  margin: 2.75rem auto 0;
  max-width: 22rem;
  text-align: center;
  animation: dedication-fade 1.4s ease-out 0.35s both;
}

.dedication-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 12px 36px rgba(45, 74, 62, 0.18);
}

.dedication-photo figcaption {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Dedication unlock sequence */
.dedication-code-gate {
  position: fixed;
  inset: 0;
  z-index: 820;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 35%, color-mix(in srgb, #c45c6a 10%, transparent), transparent),
    radial-gradient(ellipse 70% 45% at 50% 80%, color-mix(in srgb, var(--orange) 12%, transparent), transparent),
    linear-gradient(165deg, #f7f0e6 0%, #efe6d8 45%, #e8dfd0 100%);
  transition: opacity 0.45s ease;
}
.dedication-code-gate.is-leaving {
  opacity: 0;
  pointer-events: none;
}
.dedication-code-panel {
  max-width: 26rem;
  width: 100%;
  text-align: center;
  padding: 0.5rem;
}
.dedication-code-prompt {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  line-height: 1.65;
  font-style: italic;
  color: var(--heading);
  margin-bottom: 1.75rem;
}
.dedication-code-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.dedication-code-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.dedication-code-input {
  width: 8.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.35em;
  padding: 0.7rem 0.5rem 0.7rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--border) 70%, #c45c6a);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 88%, #fff);
  color: var(--heading);
  min-height: 52px;
}
.dedication-code-input:focus {
  outline: none;
  border-color: #c45c6a;
  box-shadow: 0 0 0 3px color-mix(in srgb, #c45c6a 22%, transparent);
}
.dedication-code-error {
  color: #a33d4a;
  font-size: 0.88rem;
  font-family: var(--font-display);
  font-style: italic;
  min-height: 1.25rem;
}
.dedication-code-submit {
  margin-top: 0.35rem;
  min-height: 44px;
  padding: 0.55rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--navy) 88%, #c45c6a);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.dedication-code-submit:hover {
  background: var(--navy);
}

.dedication-unlock {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 70% 45% at 50% 40%, color-mix(in srgb, #c45c6a 14%, transparent), transparent),
    radial-gradient(ellipse 70% 45% at 50% 40%, color-mix(in srgb, var(--orange) 12%, transparent), transparent),
    linear-gradient(180deg, #f3eee3 0%, #ebe4d6 55%, #e6dfd0 100%);
  transition: opacity 0.65s ease;
}

.dedication-unlock.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.dedication-unlock-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 28rem;
  text-align: center;
}

.dedication-unlock-msg {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  color: var(--heading);
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.dedication-unlock-msg.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dedication-unlock-heart {
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  line-height: 1;
  color: #c45c6a;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.45s ease, transform 0.45s ease;
  animation: dedication-heart-pulse 1.4s ease-in-out infinite;
  filter: drop-shadow(0 6px 18px color-mix(in srgb, #c45c6a 35%, transparent));
}

.dedication-unlock-heart.is-visible {
  opacity: 1;
  transform: scale(1);
}

@keyframes dedication-heart-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.dedication-letter.is-waiting {
  opacity: 0;
  pointer-events: none;
}

body.dedication-revealing .portal-toolbar {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .dedication-unlock,
  .dedication-unlock-msg {
    transition: none;
  }
  .dedication-letter,
  .dedication-letter.is-waiting,
  .dedication-letter.is-revealed {
    opacity: 1;
    animation: none;
  }
  .dedication-mark,
  .dedication-title,
  .dedication-closing,
  .dedication-photo {
    animation: none;
  }
}

@keyframes dedication-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dedication-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
