/* =====================================================================
   Fridgy marketing site — styles.css
   Palette and language match the app exactly (see CLAUDE.md):
     Background    #0F0F0F
     Surface       #1C1C1E
     Border        #252525
     Accent (lime) #C6F135
     Score colors  #FF453A (low) / #FFD60A (mid) / #30D158 (high)
     Text primary  #FFFFFF
     Text secondary#8E8E93
     Text muted    #555
   ===================================================================== */

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

:root {
  --bg: #0F0F0F;
  --surface: #1C1C1E;
  --border: #252525;
  --accent: #C6F135;
  --score-red: #FF453A;
  --score-yellow: #FFD60A;
  --score-green: #30D158;
  --text: #FFFFFF;
  --text-secondary: #8E8E93;
  --text-muted: #555;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1100px;
}

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

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

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

/* ── Sticky header ─────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(198, 241, 53, 0.5);
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(198, 241, 53, 0.08);
  border: 1px solid rgba(198, 241, 53, 0.3);
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Section base ──────────────────────────────────────────────────── */
section {
  padding: 80px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

@media (max-width: 768px) {
  section { padding: 56px 20px; }
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 48px;
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 24px 120px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 56px 20px 80px;
  }
}

/* Higher specificity than `.hero-text p` (which sets the sub-tagline
   style). Without this, the sub-paragraph rule wins on specificity and
   collapses the eyebrow to small gray text. */
.hero-text p.hero-eyebrow {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 12px;
  max-width: none;
}

.hero-text h1 {
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
  white-space: nowrap;
}

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

.hero-text p {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
}

@media (max-width: 768px) {
  .hero-text p { font-size: 17px; }
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 16px;
  border-radius: 100px;
  transition: transform 0.15s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.cta-button .arrow {
  transition: transform 0.15s ease;
}

.cta-button:hover .arrow {
  transform: translateX(3px);
}

.cta-secondary {
  display: inline-block;
  margin-left: 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ── Score card mock (hero right side) ─────────────────────────────── */
/* Mimics the in-app share card: iPhone/Story aspect (9:16), fridge photo
   as background with light darkening overlay, score + commentary + items
   stacked vertically. The photo should be visible — overlay just tones
   it down enough that text stays readable. */
.score-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 28px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  background-image:
    linear-gradient(180deg, rgba(15, 15, 15, 0.25) 0%, rgba(15, 15, 15, 0.65) 100%),
    url('fridge-bg.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
}

/* Lime glow border accent */
.score-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(198, 241, 53, 0.35), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

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

.score-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 12px;
}

.score-big {
  font-size: 112px;
  font-weight: 800;
  color: var(--score-green);
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.score-denom {
  font-size: 32px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.score-commentary {
  font-style: italic;
  font-size: 17px;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.score-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.score-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.green { background: var(--score-green); }
.dot.red { background: var(--score-red); }

.score-label {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-name {
  color: var(--text);
  font-weight: 600;
  margin-left: auto;
}

.watermark {
  margin-top: 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ── How it works ──────────────────────────────────────────────────── */
.how-it-works {
  background: linear-gradient(180deg, transparent, rgba(28, 28, 30, 0.4), transparent);
  padding-top: 100px;
  padding-bottom: 100px;
}

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

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.step-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.step-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.step p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

/* ── Showcase section (Tonight / Week) ─────────────────────────────── */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 24px;
}

.showcase.reverse {
  grid-template-areas: "mock copy";
}

.showcase.reverse .showcase-copy { grid-area: copy; }
.showcase.reverse .showcase-mock { grid-area: mock; }

@media (max-width: 900px) {
  .showcase, .showcase.reverse {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "mock";
    gap: 40px;
  }
}

.showcase-copy h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.showcase-copy p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.showcase-copy ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-copy li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}

.showcase-copy li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Tonight mock ──────────────────────────────────────────────────── */
.tonight-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.tonight-header {
  margin-bottom: 20px;
}

.tonight-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tonight-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.meal-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
}

.meal-card:last-child { margin-bottom: 0; }

.meal-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.meal-icon.green { background: rgba(48, 209, 88, 0.15); }
.meal-icon.orange { background: rgba(255, 159, 10, 0.15); }
.meal-icon.purple { background: rgba(191, 90, 242, 0.15); }

.meal-info {
  flex: 1;
  min-width: 0;
}

.meal-name {
  font-size: 15px;
  font-weight: 600;
}

.meal-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.heart {
  font-size: 18px;
  color: var(--text-muted);
}

.heart.active { color: var(--accent); }

/* ── Week mock ─────────────────────────────────────────────────────── */
.week-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.week-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(48, 209, 88, 0.15);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--score-green);
}

.day-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.day-row:last-of-type { border-bottom: none; }

.day-label {
  width: 36px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.day-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #000;
  flex-shrink: 0;
}

.day-check.checked {
  background: var(--accent);
  border-color: var(--accent);
}

.day-meal {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-meal.done {
  color: var(--text-muted);
  text-decoration: line-through;
}

.shopping-button {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.feature p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── FAQ ───────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.faq-item:first-child { border-top: 1px solid var(--border); }

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

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

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '×';
}

.faq-item p {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  max-width: 700px;
}

/* ── Footer ────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 24px 40px;
  background: linear-gradient(180deg, transparent, rgba(28, 28, 30, 0.3));
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

.footer-brand p {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 320px;
  line-height: 1.6;
}

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

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-secondary);
  font-size: 14px;
}
.footer-col a:hover { color: var(--text); }

.legal {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Legal page (privacy / terms / support) styles ─────────────────── */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.legal-page h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-page .updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.legal-page h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-page p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-page ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-page li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-page a {
  color: var(--accent);
  text-decoration: underline;
}

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

.legal-page .contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 40px;
}

.legal-page .contact-card p { margin-bottom: 8px; }
.legal-page .contact-card p:last-child { margin-bottom: 0; }
