/* ============================================================
   Weighing — Shared Stylesheet
   Hosted at: beta8c.com/weighing/
   ============================================================ */

:root {
  --lavender: #8B7CF8;
  --lavender-light: #EDE9FE;
  --lavender-pale: #F5F3FF;
  --mint: #34D399;
  --blue: #3B82F6;
  --blue-dark: #1D4ED8;
  --text: #111827;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --bg: #FAFAF9;
  --white: #FFFFFF;
  --dark: #0F172A;
  --dark-card: #1E293B;
  --border: #E5E7EB;

  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 72px rgba(0, 0, 0, 0.16);

  --container: 1100px;
  --section-v: 96px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---- App Store Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  border-radius: 12px;
  padding: 10px 20px;
  font-family: var(--font-sans);
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
}
.badge:hover { opacity: 0.85; transform: translateY(-1px); }
.badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.badge-small { font-size: 11px; opacity: 0.85; letter-spacing: 0.02em; }
.badge-large { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.badge-coming { opacity: 0.5; cursor: not-allowed; }
.badge-coming:hover { opacity: 0.5; transform: none; }

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-block;
  background: var(--lavender);
  color: #fff;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* ---- HERO ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 0;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    #E8E2FF 0%,
    #FFE4F0 35%,
    #E0EEFF 65%,
    #D9F5EE 100%
  );
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-end;
}
.hero-content {
  padding-bottom: 80px;
}
.hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1A1040;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: #4B4468;
  max-width: 420px;
  margin-bottom: 36px;
}
.hero-meta {
  font-size: 13px;
  color: #7C6EAA;
  margin-top: 14px;
  letter-spacing: 0.01em;
}
.hero-device {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-screenshot {
  width: 280px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.25));
  border-radius: 36px;
}

/* ---- SCREENSHOTS ---- */
.screenshots {
  padding: var(--section-v) 0;
  background: var(--white);
  overflow: hidden;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}
.screenshot-scroll {
  display: flex;
  gap: 20px;
  padding: 8px 40px 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screenshot-scroll::-webkit-scrollbar { display: none; }
.screenshot-img {
  width: 220px;
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: 28px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s;
}
.screenshot-img:hover { transform: translateY(-4px); }

/* ---- FEATURES ---- */
.features {
  padding: var(--section-v) 0;
  background: var(--lavender-pale);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(139, 124, 248, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  line-height: 1;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- PHILOSOPHY ---- */
.philosophy {
  padding: var(--section-v) 0;
  background: var(--dark);
  color: #fff;
}
.philosophy-inner {
  max-width: 700px;
  text-align: center;
}
.philosophy blockquote {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.5vw, 32px);
  font-style: italic;
  line-height: 1.45;
  color: #E2DFFE;
  margin-bottom: 32px;
  quotes: none;
}
.philosophy-body {
  font-size: 16px;
  color: #94A3B8;
  line-height: 1.75;
  margin-bottom: 28px;
}
.philosophy-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: #C7D2FE;
  font-size: 17px;
}

/* ---- PRICING ---- */
.pricing {
  padding: var(--section-v) 0;
  background: var(--white);
}
.pricing-inner {
  text-align: center;
}
.pricing-inner > h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.pricing-inner > p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 48px;
}
.pricing-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  background: var(--lavender-pale);
  border: 1px solid rgba(139, 124, 248, 0.2);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  min-width: 340px;
}
.pricing-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.pricing-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.pricing-check {
  width: 22px;
  height: 22px;
  background: var(--lavender);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- DOWNLOAD CTA ---- */
.download-cta {
  padding: var(--section-v) 0;
  background: linear-gradient(135deg, #E8E2FF 0%, #FFE4F0 50%, #E0EEFF 100%);
  text-align: center;
}
.download-cta-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  margin: 0 auto 28px;
}
.download-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1A1040;
  margin-bottom: 12px;
}
.download-cta p {
  color: #4B4468;
  font-size: 17px;
  margin-bottom: 32px;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  color: #94A3B8;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}
.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  font-size: 13px;
  width: 100%;
}

/* ============================================================
   SUPPORT PAGE
   ============================================================ */
.support-hero {
  padding: 64px 0 48px;
  background: var(--lavender-pale);
  border-bottom: 1px solid var(--border);
}
.support-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.support-hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
}
.support-body {
  padding: 64px 0;
}
.support-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.faq { display: flex; flex-direction: column; gap: 40px; }
.faq-section h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 20px;
}
.faq-item { margin-bottom: 24px; }
.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.faq-item p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item p a {
  color: var(--lavender);
  text-decoration: underline;
}
.support-contact-card {
  background: var(--lavender-pale);
  border: 1px solid rgba(139, 124, 248, 0.2);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 80px;
}
.support-contact-card h3 {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
}
.support-contact-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.65;
}
.contact-link {
  display: inline-block;
  background: var(--lavender);
  color: #fff;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.contact-link:hover { opacity: 0.85; }
.privacy-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.privacy-section h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.privacy-section p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 680px;
  line-height: 1.75;
}
.privacy-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
}

/* ============================================================
   BLOG PAGE
   ============================================================ */
.blog-hero {
  padding: 64px 0 48px;
  background: var(--lavender-pale);
  border-bottom: 1px solid var(--border);
}
.blog-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.blog-hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
}
.blog-body { padding: 64px 0; }
.blog-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}
.blog-empty h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
}
.blog-empty p { font-size: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --section-v: 72px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { padding-bottom: 0; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-device { padding-bottom: 0; margin-top: -24px; }
  .hero-screenshot { width: 220px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .support-grid { grid-template-columns: 1fr; }
  .support-contact-card { position: static; }
  .footer-copy { text-align: center; }
}

@media (max-width: 600px) {
  :root { --section-v: 56px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-card { min-width: unset; width: 100%; padding: 28px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero-icon { width: 64px; height: 64px; }
}
