/* Kitdex — kitdex.neveroverfit.com
   Palette mirrors the app. No web fonts, no third-party requests. */

:root {
  --cream: #f7f2e8;
  --cream-2: #f1e8d6;
  --apricot: #fabd66;
  --orange: #e38c38;
  --orange-2: #d97a24;
  --ink: #211f1c;
  --muted: #857d73;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-line: rgba(255, 255, 255, 0.85);
  --line: rgba(33, 31, 28, 0.08);
  --shadow: 0 18px 40px -18px rgba(120, 82, 30, 0.35);
  --shadow-lg: 0 30px 60px -24px rgba(120, 82, 30, 0.45);
  --r-lg: 32px;
  --r-md: 24px;
  --gutter: 20px;
  --max: 1100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* warm light blobs behind everything */
body::before {
  content: ""; position: fixed; inset: -20vh -20vw auto auto; z-index: -1;
  width: 70vw; height: 70vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 189, 102, 0.42), rgba(250, 189, 102, 0) 65%);
  pointer-events: none;
}
body::after {
  content: ""; position: fixed; left: -25vw; bottom: -30vh; z-index: -1;
  width: 70vw; height: 70vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 140, 56, 0.16), rgba(227, 140, 56, 0) 65%);
  pointer-events: none;
}

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; padding: 12px 0; transition: background .3s, box-shadow .3s; }
.nav.stuck { background: rgba(247, 242, 232, 0.8); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 6px 14px -6px rgba(30, 110, 230, 0.6); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 12px 24px -10px rgba(227, 140, 56, 0.8); }
.btn-primary:hover { background: var(--orange-2); transform: translateY(-2px); }
.btn-glass { background: var(--glass); color: var(--ink); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-glass:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.8); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }

/* App Store badge (placeholder until launch) */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 22px 8px 18px; border-radius: 14px;
  background: var(--ink); color: #fff; text-decoration: none;
  box-shadow: 0 14px 26px -12px rgba(33, 31, 28, 0.7);
  transition: transform .25s var(--ease);
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 11.5px; font-weight: 500; opacity: .78; line-height: 1.2; }
.store-badge strong { display: block; font-size: 19px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
a.store-badge:hover { transform: translateY(-2px); }
.store-badge[aria-disabled="true"] { cursor: default; }

/* ---------- glass card ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* ---------- iPhone 16 Pro frame ---------- */
.iphone {
  position: relative; width: 100%; max-width: 300px; margin: 0 auto;
  padding: 9px; border-radius: 54px;
  background: linear-gradient(150deg, #5a554e 0%, #26231f 30%, #1a1816 70%, #4a4540 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}
.iphone::before, .iphone::after {   /* side buttons */
  content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2c2925;
}
.iphone::before { left: -3px; top: 22%; height: 9%; box-shadow: 0 -38px 0 0 #2c2925; }
.iphone::after { right: -3px; top: 27%; height: 13%; }
.iphone img, .iphone picture { display: block; width: 100%; height: auto; aspect-ratio: 1206 / 2622; border-radius: 45px; background: var(--cream-2); }

/* ---------- hero ---------- */
.hero { padding: 28px 0 56px; }
.hero .wrap { display: grid; gap: 44px; align-items: center; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 18px 34px -14px rgba(30, 110, 230, 0.6); }
.hero h1 { font-size: clamp(48px, 13vw, 88px); margin-top: 18px; }
.hero .pitch { margin-top: 12px; font-size: clamp(21px, 5.2vw, 30px); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; max-width: 18ch; }
.hero .pitch em { font-style: normal; color: var(--orange); }
.hero .sub { margin-top: 16px; color: var(--muted); max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.hero-phone { position: relative; }
.hero-phone .iphone { max-width: 290px; animation: float 7s ease-in-out infinite; }
.hero-phone .sticker {
  position: absolute; z-index: 2; padding: 10px 14px; border-radius: 18px; font-size: 13.5px; font-weight: 700;
}
.hero-phone .sticker.s1 { left: 0; top: 18%; }
.hero-phone .sticker.s2 { right: 0; bottom: 20%; }
.hero-phone .sticker span { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); }
@keyframes float { 0%, 100% { transform: translateY(-6px) rotate(-1deg); } 50% { transform: translateY(6px) rotate(1deg); } }

/* ---------- features ---------- */
section { padding: 56px 0; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(30px, 7vw, 46px); margin-top: 10px; }
.section-head p { margin-top: 12px; color: var(--muted); }

.feature { display: grid; gap: 30px; align-items: center; padding: 30px 22px; margin-bottom: 26px; }
.feature .num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 13px;
  background: var(--apricot); color: var(--ink); font-weight: 800; font-size: 16px;
}
.feature h3 { font-size: clamp(27px, 6.4vw, 38px); margin-top: 16px; }
.feature p { margin-top: 12px; color: var(--muted); font-size: 17px; max-width: 40ch; }
.feature ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.feature li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15.5px; }
.feature li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--orange); }
.feature .iphone { max-width: 270px; }

.also { display: grid; gap: 20px; }
.also .glass { padding: 26px 22px 30px; text-align: center; }
.also h3 { font-size: 23px; }
.also p { margin: 8px auto 22px; color: var(--muted); font-size: 15.5px; max-width: 30ch; }
.also .iphone { max-width: 220px; }

/* ---------- cta band ---------- */
.band { text-align: center; padding: 44px 24px; background: linear-gradient(140deg, rgba(250, 189, 102, 0.55), rgba(255, 255, 255, 0.6)); }
.band img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 14px 26px -12px rgba(30, 110, 230, 0.6); }
.band h2 { font-size: clamp(28px, 6.6vw, 42px); margin-top: 18px; }
.band p { margin: 10px auto 0; color: var(--muted); max-width: 40ch; }
.band .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
footer { padding: 34px 0 46px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 26px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
footer a:hover { color: var(--orange); }
.copy { font-size: 13.5px; color: var(--muted); letter-spacing: .02em; }

/* ---------- prose (privacy / support) ---------- */
.page-head { padding: 26px 0 8px; }
.page-head .wrap, .prose-wrap { max-width: 760px; }
.page-head h1 { font-size: clamp(36px, 9vw, 54px); margin-top: 10px; }
.page-head .updated { margin-top: 10px; color: var(--muted); font-size: 15px; }
.prose { padding: 28px 24px 34px; margin: 22px 0 40px; }
.prose h2 { font-size: 22px; margin: 30px 0 0; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 12px; color: #4a453f; }
.prose strong { color: var(--ink); }
.prose a { color: var(--orange-2); font-weight: 700; text-underline-offset: 3px; }

.faq { display: grid; gap: 14px; margin: 22px 0; }
.faq details { padding: 4px 22px; border-radius: var(--r-md); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 800; font-size: 18px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--apricot); font-size: 20px; font-weight: 700; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: #4a453f; }
.faq details p + p { margin-top: -8px; }
.contact-card { padding: 26px 24px; margin-bottom: 44px; text-align: center; }
.contact-card h2 { font-size: 24px; }
.contact-card p { margin: 8px 0 18px; color: var(--muted); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- larger screens ---------- */
@media (min-width: 760px) {
  :root { --gutter: 28px; }
  .hero { padding: 48px 0 80px; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; }
  .hero-phone .iphone { max-width: 320px; }
  section { padding: 80px 0; }
  .feature { grid-template-columns: 1fr 1fr; padding: 44px 56px; gap: 40px; }
  .feature:nth-of-type(even) .feature-copy { order: 2; }
  .feature .iphone { max-width: 290px; }
  .also { grid-template-columns: 1fr 1fr; }
  .band { padding: 64px 32px; }
  .prose { padding: 40px 48px 46px; }
}
@media (max-width: 520px) {
  .nav-links a:not(.btn) { display: none; }
  .hero-phone .sticker { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
