/* nekoya apps support — plain HTML/CSS (Apple-inspired minimal) */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --background: #ffffff;
  --foreground: #1b1b1d;
  --card: #ffffff;
  --muted: #f5f5f7;
  --muted-fg: #717786;
  --border: #e5e5e7;
  --primary: #0058bc;
  --primary-fg: #ffffff;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

html.dark {
  --background: #111113;
  --foreground: #f5f5f7;
  --card: #1c1c1e;
  --muted: #2c2c2e;
  --muted-fg: #8e8e93;
  --border: rgba(255, 255, 255, 0.1);
  --primary: #adc6ff;
  --primary-fg: #001a41;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  transition: background 0.2s, border-color 0.2s, backdrop-filter 0.2s;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.site-logo {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.nav-main {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .nav-main {
    display: flex;
  }
}

.nav-main a {
  padding: 0.375rem 0.75rem;
  font-size: 14px;
  font-weight: 500;
  border-radius: 9999px;
  color: var(--muted-fg);
}

.nav-main a:hover {
  color: var(--foreground);
  background: var(--muted);
}

.nav-main a.is-active {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: var(--muted-fg);
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--foreground);
  background: var(--muted);
}

/* Main */
main {
  flex: 1;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 30%, var(--background));
  padding: 2.5rem 0;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.site-footer a {
  font-size: 13px;
  color: var(--muted-fg);
}

.site-footer a:hover {
  color: var(--foreground);
}

.site-footer .copyright {
  font-size: 12px;
  color: var(--muted-fg);
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 0 3.5rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    ellipse 80% 60% at 50% -10%,
    rgba(0, 88, 188, 0.08),
    transparent 70%
  );
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-badge span.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero p.lead {
  margin: 0 auto 2rem;
  max-width: 22rem;
  font-size: 16px;
  color: var(--muted-fg);
  line-height: 1.65;
}

@media (min-width: 640px) {
  .hero p.lead {
    max-width: 28rem;
    font-size: 17px;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  max-width: 20rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.75rem 1.5rem;
  font-size: 15px;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn--primary:hover {
  opacity: 0.92;
}

.btn--secondary {
  background: var(--muted);
  color: var(--foreground);
}

.btn--secondary:hover {
  opacity: 0.9;
}

.btn--dark {
  background: var(--foreground);
  color: var(--background);
}

.btn--dark:hover {
  opacity: 0.85;
}

/* Section titles */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.link-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.link-more:hover {
  text-decoration: underline;
}

/* App cards */
.app-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 4rem;
}

.app-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, border-color 0.2s;
}

a.app-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--border);
}

.app-card--locked {
  cursor: not-allowed;
  opacity: 0.97;
}

.app-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.app-card__body {
  flex: 1;
  min-width: 0;
}

.badge-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  margin-bottom: 0.25rem;
}

.badge-cat--blue {
  background: #eff6ff;
  color: #1d4ed8;
}

html.dark .badge-cat--blue {
  background: #172554;
  color: #93c5fd;
}

.badge-cat--green {
  background: #f0fdf4;
  color: #15803d;
}

html.dark .badge-cat--green {
  background: #14532d;
  color: #86efac;
}

.badge-cat--orange {
  background: #fff7ed;
  color: #c2410c;
}

html.dark .badge-cat--orange {
  background: #7c2d12;
  color: #fdba74;
}

.app-card__body h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.app-card__body p {
  margin: 0.125rem 0 0;
  font-size: 13px;
  color: var(--muted-fg);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card__chevron {
  flex-shrink: 0;
  color: var(--muted-fg);
}

a.app-card:hover .app-card__chevron {
  color: var(--primary);
}

/* Coming soon overlay on cards */
.cs-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  border-radius: inherit;
}

.cs-overlay__text {
  position: absolute;
  font-weight: 800;
  color: color-mix(in srgb, var(--muted-fg) 14%, transparent);
  user-select: none;
  white-space: nowrap;
}

.cs-overlay__text--1 {
  left: -8%;
  top: 18%;
  transform: rotate(-22deg);
  font-size: clamp(2.5rem, 14vw, 4rem);
}

.cs-overlay__text--2 {
  left: 28%;
  top: 42%;
  transform: rotate(-14deg);
  font-size: clamp(1.75rem, 10vw, 2.75rem);
  opacity: 0.85;
}

.cs-overlay__text--3 {
  right: -5%;
  bottom: 12%;
  transform: rotate(-18deg);
  font-size: clamp(2rem, 11vw, 3.25rem);
}

.cs-overlay__scrim {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--background) 55%, transparent);
  backdrop-filter: blur(2px);
}

html.dark .cs-overlay__scrim {
  background: color-mix(in srgb, var(--background) 60%, transparent);
}

.cs-overlay__pill {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-fg);
  background: color-mix(in srgb, var(--muted) 95%, transparent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

/* Support CTA block */
.support-block {
  max-width: 64rem;
  margin: 0 auto 4rem;
  padding: 0 1.25rem;
}

.support-block__inner {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--muted);
}

.support-block h2 {
  margin: 0 0 0.5rem;
  font-size: 20px;
  font-weight: 700;
}

.support-block p {
  margin: 0 auto 1.5rem;
  max-width: 20rem;
  font-size: 14px;
  color: var(--muted-fg);
  line-height: 1.6;
}

.support-block .icon-wrap {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

/* Page content narrow */
.page-narrow {
  max-width: 36rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.page-wide {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.page-medium {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

h1.page-title {
  margin: 0 0 0.5rem;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p.page-sub {
  margin: 0;
  font-size: 15px;
  color: var(--muted-fg);
  line-height: 1.65;
}

/* Cards generic */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}

/* App detail hero */
.app-hero {
  text-align: center;
  padding: 2.5rem 1.25rem 2rem;
}

.app-hero__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.app-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  font-weight: 700;
}

.app-hero .tagline {
  margin: 0 0 1.5rem;
  color: var(--muted-fg);
  font-size: 15px;
}

/* About */
.about-card {
  margin-bottom: 3rem;
}

.about-card h2 {
  margin: 0 0 0.75rem;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.about-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

/* Screenshots */
.shots {
  margin-bottom: 3rem;
}

.shots h2 {
  margin: 0 0 1rem;
  font-size: 20px;
  font-weight: 700;
}

.shots__grid {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin: 0 -1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .shots__grid {
    margin: 0;
    padding: 0;
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .shots__grid.shots__grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.shot-frame {
  position: relative;
  flex: 0 0 160px;
  aspect-ratio: 9 / 19.5;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  overflow: hidden;
  background: var(--muted);
}

@media (min-width: 640px) {
  .shot-frame {
    flex: none;
    width: 100%;
  }
}

.shot-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Features */
.features h2 {
  margin: 0 0 1rem;
  font-size: 20px;
  font-weight: 700;
}

.features__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.feature-item .fi-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-item h3 {
  margin: 0 0 0.25rem;
  font-size: 15px;
  font-weight: 600;
}

.feature-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted-fg);
  line-height: 1.5;
}

/* FAQ */
.faq-block {
  margin-bottom: 3rem;
}

.faq-block h2 {
  margin: 0 0 1rem;
  font-size: 20px;
  font-weight: 700;
}

details.faq-item {
  border-bottom: 1px solid var(--border);
}

details.faq-item:last-child {
  border-bottom: none;
}

summary.faq-q {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

summary.faq-q::-webkit-details-marker {
  display: none;
}

summary.faq-q::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--muted-fg);
  border-bottom: 2px solid var(--muted-fg);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-top: 0.35rem;
  transition: transform 0.2s;
}

details.faq-item[open] summary.faq-q::after {
  transform: rotate(-135deg);
  margin-top: 0.5rem;
}

summary.faq-q:hover {
  background: color-mix(in srgb, var(--muted) 50%, transparent);
}

.faq-a {
  padding: 0 1.25rem 1rem;
  font-size: 14px;
  color: var(--muted-fg);
  line-height: 1.6;
}

.faq-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  background: var(--card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* Changelog */
.changelog {
  margin-bottom: 3rem;
}

.changelog h2 {
  margin: 0 0 1rem;
  font-size: 20px;
  font-weight: 700;
}

.changelog__list {
  position: relative;
  padding-left: 0;
}

.changelog__line {
  position: absolute;
  left: 22px;
  top: 1rem;
  bottom: 1rem;
  width: 1px;
  background: var(--border);
}

.cl-entry {
  position: relative;
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.cl-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--background);
  flex-shrink: 0;
  margin-top: 0.35rem;
  margin-left: 17px;
  z-index: 1;
}

.cl-dot--new {
  background: var(--primary);
  border-color: var(--primary);
}

.cl-body h3 {
  margin: 0 0 0.5rem;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.cl-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

.cl-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cl-body li {
  font-size: 13px;
  color: var(--muted-fg);
  padding-left: 0.75rem;
  position: relative;
}

.cl-body li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--border);
}

/* Contact rows */
.contact-app-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  overflow: hidden;
}

a.contact-app-row:hover {
  background: var(--muted);
}

.contact-app-row--locked {
  cursor: not-allowed;
  opacity: 0.97;
}

.contact-app-row .ca-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.cs-overlay--compact .cs-overlay__text--1 {
  left: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(-20deg);
  font-size: 1.65rem;
}

.cs-overlay--compact .cs-overlay__text--2 {
  display: none;
}

.cs-overlay--compact .cs-overlay__text--3 {
  left: auto;
  right: 1.5rem;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) rotate(14deg);
  font-size: 1.25rem;
}

.cs-overlay--compact .cs-overlay__pill {
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  padding: 0.125rem 0.5rem;
}

/* Privacy */
.policy-card h2 {
  margin: 0 0 0.75rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.policy-card .body {
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
}

.mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  background: var(--muted);
  color: var(--foreground);
  font-size: 13px;
  font-weight: 500;
}

.mail-btn:hover {
  opacity: 0.9;
}

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

html:not(.dark) .theme-toggle .icon-sun {
  display: none;
}

html.dark .theme-toggle .icon-moon {
  display: none;
}
