/* ============================================================
   Appfront — kit styles
   You shouldn't need to touch this file. Colors come from your
   accentColor in config.js; everything else adapts automatically.
   ============================================================ */

:root {
  /* --accent and friends are set from config.js at runtime */
  --accent: #0e7f8a;
  --accent-contrast: #ffffff;

  --bg: #fafafa;
  --bg-raised: #ffffff;
  --bg-inset: #f0f0f2;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #9a9aa0;
  --border: rgba(0, 0, 0, 0.09);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 2px 8px rgba(0,0,0,.06), 0 24px 64px rgba(0,0,0,.12);
  --nav-bg: rgba(250, 250, 250, .72);

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1080px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0f;
    --bg-raised: #17171a;
    --bg-inset: #202024;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #6e6e73;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg: 0 2px 8px rgba(0,0,0,.4), 0 24px 64px rgba(0,0,0,.5);
    --nav-bg: rgba(13, 13, 15, .72);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 16px;
  color: var(--text);
  margin-right: auto;
}
.nav-brand:hover { text-decoration: none; }

.nav-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav a.nav-link {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.nav a.nav-link:hover { color: var(--text); text-decoration: none; }

@media (max-width: 600px) {
  .nav-inner { gap: 16px; }
  .nav a.nav-link:nth-last-child(n+3) { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  /* soft accent wash behind the hero */
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(600px 320px at 50% 0%,
      color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
  pointer-events: none;
}

.hero > * { position: relative; }

.hero .app-icon {
  width: clamp(88px, 12vw, 120px);
  height: clamp(88px, 12vw, 120px);
  border-radius: 22.5%;
  margin: 0 auto 28px;
  box-shadow: var(--shadow-lg);
}

.hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", inherit;
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 12px;
}

.hero .tagline {
  font-size: clamp(19px, 3vw, 26px);
  font-weight: 550;
  color: var(--text);
  margin: 0 auto 14px;
  max-width: 560px;
  letter-spacing: -0.01em;
}

.hero .description {
  font-size: 17px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero .price-note {
  font-size: 14px;
  color: var(--text-3);
  margin-top: 14px;
}

/* App Store badge */

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--bg);
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow);
}
.store-badge:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.store-badge svg { width: 22px; height: 22px; }
.store-badge.coming-soon {
  background: var(--bg-inset);
  color: var(--text-2);
  cursor: default;
  box-shadow: none;
}
.store-badge.coming-soon:hover { transform: none; box-shadow: none; }

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

.screens {
  padding: clamp(32px, 6vw, 72px) 0;
}

.screens-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
}

.phone {
  width: clamp(220px, 26vw, 280px);
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(160deg, #3a3a3e, #131315);
  box-shadow: var(--shadow-lg);
  position: relative;
  flex-shrink: 0;
}

.phone::after {
  /* dynamic island */
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 26%;
  height: 22px;
  border-radius: 999px;
  background: #060607;
}

.phone .screen-img {
  border-radius: 33px;
  aspect-ratio: 590 / 1278;
  object-fit: cover;
  width: 100%;
  background: var(--bg-inset);
}

.screens-row .phone:nth-child(2) { margin-top: 40px; }
.screens-row .phone:nth-child(3) { margin-top: 80px; }

@media (max-width: 720px) {
  .screens-row .phone { margin-top: 0 !important; }
}

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

.features {
  padding: clamp(40px, 7vw, 96px) 0;
}

.features h2, .section-title {
  text-align: center;
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(32px, 5vw, 56px);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

.feature-card .feature-icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 650;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-2);
}

/* ---------- CTA band ---------- */

.cta-band {
  margin: clamp(24px, 5vw, 64px) 0 0;
  padding: clamp(48px, 8vw, 88px) 24px;
  text-align: center;
  background:
    radial-gradient(500px 260px at 50% 120%,
      color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
  border-top: 1px solid var(--border);
}

.cta-band h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

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

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  font-size: 13px;
  color: var(--text-3);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}

.footer-inner .copyright { margin-right: auto; }

footer.site-footer a { color: var(--text-2); }

/* ---------- Inner pages (support / legal / press) ---------- */

.page {
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px);
  max-width: 720px;
  margin: 0 auto;
}

.page-header { text-align: left; margin-bottom: 36px; }

.page h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.page .page-lede {
  font-size: 17px;
  color: var(--text-2);
  margin: 0;
}

.page h2 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}

.page p, .page li { font-size: 16px; color: var(--text); }
.page .muted { color: var(--text-2); }
.page .small { font-size: 13.5px; color: var(--text-3); }

/* FAQ accordion */

.faq details {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 20px;
  color: var(--text-3);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }

.faq .faq-answer {
  padding: 0 20px 18px;
  color: var(--text-2);
  font-size: 15px;
}

/* Contact card */

.contact-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
  margin-top: 40px;
}

.contact-card h2 { margin-top: 0; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  font-size: 16px;
  padding: 12px 26px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.06); }

/* Legal pages */

.legal .effective-date {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 32px;
}

.legal h2 { font-size: 19px; }
.legal p, .legal li { font-size: 15.5px; color: var(--text-2); }
.legal strong { color: var(--text); }

.badge-yes, .badge-no {
  display: inline-block;
  font-size: 12px;
  font-weight: 650;
  padding: 2px 10px;
  border-radius: 999px;
  vertical-align: 2px;
  margin-left: 8px;
}
.badge-no { background: color-mix(in srgb, #30a14e 15%, transparent); color: #2f9e4f; }
.badge-yes { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }

/* Press kit */

.press-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.press-fact {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.press-fact .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  margin-bottom: 4px;
}
.press-fact .value { font-weight: 600; font-size: 15px; }

.asset-list { list-style: none; padding: 0; margin: 20px 0; }
.asset-list li { margin-bottom: 10px; }
.asset-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-weight: 550;
  color: var(--text);
  box-shadow: var(--shadow);
}
.asset-list a:hover { text-decoration: none; border-color: var(--accent); }
.asset-list a::before { content: "↓"; color: var(--accent); font-weight: 700; }

/* ---------- Reveal-on-scroll (progressive enhancement) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s ease;
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}
