/* ScanCalorie — shared stylesheet */

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

:root {
  --bg: #0D0D0D;
  --bg-2: #111827;
  --surface: #15171C;
  --surface-2: #1C1F26;
  --border: rgba(255, 255, 255, 0.08);
  --text: #F5F7FA;
  --text-muted: #9BA3AF;
  --accent: #4DD9C0;
  --accent-2: #38BDF8;
  --accent-soft: rgba(77, 217, 192, 0.14);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  --container: 1180px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(820px 420px at -10% 10%, rgba(77, 217, 192, 0.14), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

ul {
  list-style: none;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(13, 13, 13, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #0D0D0D;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(77, 217, 192, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0D0D0D !important;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 10px 24px rgba(77, 217, 192, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(77, 217, 192, 0.38);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* Hero */
.hero {
  padding: 96px 0 72px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(77, 217, 192, 0.22);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(77, 217, 192, 0.18);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 22px 0 20px;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #fff !important;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.app-store-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.app-store-btn svg {
  width: 28px;
  height: 28px;
}

.app-store-btn .label {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.app-store-btn .label small {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.app-store-btn .label strong {
  font-size: 1.1rem;
  font-weight: 600;
}

.hero-badges {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-badges strong {
  color: var(--text);
  font-weight: 600;
}

.stars {
  color: #FFB547;
  letter-spacing: 1px;
}

/* Phone mockup */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 300px;
  height: 620px;
  background: #0A0B0F;
  border-radius: 48px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 50px 120px rgba(0, 0, 0, 0.6),
    0 0 0 10px rgba(20, 22, 28, 0.6);
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000;
  border-radius: 18px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0F1116 0%, #0D0F14 100%);
  border-radius: 36px;
  overflow: hidden;
  padding: 56px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ring {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  margin: 10px auto 4px;
  background:
    conic-gradient(var(--accent) 0 72%, rgba(255, 255, 255, 0.08) 72% 100%);
  display: grid;
  place-items: center;
  position: relative;
}

.ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #12141A;
}

.ring-value {
  position: relative;
  text-align: center;
}

.ring-value strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ring-value span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.macros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.macro {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
}

.macro small {
  color: var(--text-muted);
  font-size: 0.68rem;
  display: block;
  margin-bottom: 4px;
}

.macro strong {
  font-size: 0.92rem;
  color: var(--text);
}

.macro.c { border-color: rgba(77, 217, 192, 0.35); }
.macro.p { border-color: rgba(56, 189, 248, 0.35); }
.macro.f { border-color: rgba(251, 146, 60, 0.35); }

.meal {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.meal-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(77, 217, 192, 0.4), rgba(56, 189, 248, 0.3));
}

.meal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.meal-info strong {
  font-size: 0.88rem;
}

.meal-info small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.meal-cal {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.88rem;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: linear-gradient(180deg, rgba(28, 31, 38, 0.7), rgba(21, 23, 28, 0.7));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 217, 192, 0.35);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--accent);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.feature h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  background: rgba(21, 23, 28, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-weight: 800;
  font-size: 0.85rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.1em;
}

.step h3 {
  font-size: 1.15rem;
  margin: 10px 0;
  font-weight: 700;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA banner */
.cta-banner {
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(77, 217, 192, 0.16), transparent 60%),
    radial-gradient(600px 300px at 80% 80%, rgba(56, 189, 248, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(28, 31, 38, 0.85), rgba(17, 24, 39, 0.9));
  border: 1px solid var(--border);
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.cta-banner p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 24px;
}

/* Footer */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
  background: rgba(10, 11, 14, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 320px;
  margin-top: 12px;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Legal / article pages */
.page-head {
  padding: 80px 0 40px;
}

.page-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.page-head .lede {
  color: var(--text-muted);
  margin-top: 14px;
  font-size: 1.05rem;
  max-width: 640px;
}

.prose {
  max-width: 780px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.prose h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}

.prose h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 24px 0 10px;
}

.prose p,
.prose li {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 12px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.prose ul li,
.prose ol li {
  list-style: disc;
  margin-bottom: 8px;
}

.prose ol li {
  list-style: decimal;
}

.prose strong {
  color: var(--text);
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.meta-card {
  background: rgba(21, 23, 28, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.meta-card strong {
  color: var(--text);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(21, 23, 28, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 20px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.02rem;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.25s ease;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border-radius: 8px;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 22px 20px;
  color: var(--text-muted);
}

/* Contact card */
.contact-card {
  max-width: 620px;
  margin: 40px auto 0;
  background: linear-gradient(180deg, rgba(28, 31, 38, 0.85), rgba(17, 24, 39, 0.85));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
}

.contact-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.email-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent) !important;
  font-weight: 600;
  border: 1px solid rgba(77, 217, 192, 0.28);
}

/* Blog placeholder */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.blog-card {
  background: rgba(21, 23, 28, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.blog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(300px 160px at 80% 20%, rgba(77, 217, 192, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(20, 22, 28, 0.4), rgba(20, 22, 28, 0.9));
}

.blog-card > * {
  position: relative;
  z-index: 1;
}

.blog-card .tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 14px;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: rgba(21, 23, 28, 0.4);
  margin-top: 40px;
}

.empty-state .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--accent-soft);
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.empty-state h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 960px) {
  .hero { padding: 72px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .phone-wrap { order: -1; }
  .phone { width: 260px; height: 540px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(17, 19, 24, 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    gap: 8px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .nav-links.open a {
    padding: 10px 12px;
    border-radius: 10px;
  }
  .nav-links.open a.nav-cta {
    justify-content: center;
  }
  .menu-toggle {
    display: grid;
  }
  .section { padding: 72px 0; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 44px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
    scroll-behavior: auto;
  }
}
