/* ==========================================================================
   PLATO: Recipes & Pantry AI - Official Website Stylesheet
   Theme: Warm Terracotta & Culinary Elegance (#D9774B, Playfair & Plus Jakarta Sans)
   ========================================================================== */

:root {
  --primary: #D9774B;
  --primary-light: #f39130;
  --primary-dark: #b85b30;
  --primary-50: #FFF7ED;
  --primary-100: #FFEDD5;
  --accent: #D97706;
  --accent-light: #FDE68A;
  
  --bg-main: #FDFCF9;
  --bg-card: #FFFFFF;
  --bg-subtle: #F7F5F0;
  --bg-dark: #181513;

  --text-main: #1A1A1A;
  --text-muted: #525252;
  --text-subtle: #737373;
  --text-light: #FAFAFA;
  
  --border-light: #EFECE6;
  --border-hover: rgba(217, 119, 75, 0.35);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(217, 119, 75, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-button: 0 4px 16px rgba(217, 119, 75, 0.35);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253, 252, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
}

.navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

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

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

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   App Store Button Component
   ========================================================================== */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.app-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  background-color: #111111;
  color: #FFFFFF;
}

.app-store-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex-shrink: 0;
}

.app-store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.app-store-btn-text .btn-small {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.85;
}

.app-store-btn-text .btn-large {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.app-store-btn.btn-primary-style {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border: none;
  box-shadow: var(--shadow-button);
}

.app-store-btn.btn-primary-style:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  box-shadow: 0 8px 28px rgba(217, 119, 75, 0.45);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-50);
  border: 1px solid var(--primary-100);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  display: inline-block;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title span.highlight {
  color: var(--primary);
  font-style: italic;
  position: relative;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* Hero Device Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup-wrapper {
  position: relative;
  max-width: 340px;
  width: 100%;
}

.hero-mockup-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(217, 119, 75, 0.25) 0%, rgba(243, 145, 48, 0.08) 50%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.hero-mockup-img {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.16));
  border-radius: 40px;
  transition: transform 0.3s ease;
}

.hero-mockup-img:hover {
  transform: translateY(-6px);
}

.floating-badge {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  animation: float 4s ease-in-out infinite alternate;
}

.floating-badge.badge-top {
  top: 8%;
  left: -24px;
}

.floating-badge.badge-bottom {
  bottom: 12%;
  right: -24px;
  animation-delay: -2s;
}

.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ==========================================================================
   Section Header & Highlights
   ========================================================================== */
.section {
  padding: 88px 0;
}

.section-subtle {
  background-color: var(--bg-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 16px;
}

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

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 22px;
  font-size: 1.5rem;
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Feature In-Depth Showcase
   ========================================================================== */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  margin-bottom: 80px;
}

.showcase-row:last-child {
  margin-bottom: 0;
}

.showcase-row.reverse {
  direction: rtl;
}

.showcase-row.reverse > * {
  direction: ltr;
}

.showcase-content {
  display: flex;
  flex-direction: column;
}

.showcase-visual {
  display: flex;
  justify-content: center;
}

.showcase-img {
  max-width: 380px;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.showcase-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--text-main);
}

.showcase-list-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--primary-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   CTA Banner Section
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, #1C1816 0%, #2A1D17 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 40px auto;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(217, 119, 75, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-banner p {
  font-size: 1.1rem;
  color: #D4D4D4;
  margin-bottom: 32px;
}

.cta-banner-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  transition: all 0.2s ease;
}

.faq-card:hover {
  border-color: var(--primary-light);
}

.faq-question {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: #161413;
  color: #A3A3A3;
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .brand-title {
  color: #FFFFFF;
}

.footer-brand .brand-subtitle {
  color: var(--primary-light);
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 16px;
  color: #A3A3A3;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.92rem;
  color: #A3A3A3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-bottom-links a {
  color: #A3A3A3;
}

.footer-bottom-links a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   Plain Privacy Policy Page Styling
   "plain privacy policy page with bold headings and text"
   ========================================================================== */
.policy-page {
  background-color: var(--bg-main);
  min-height: 100vh;
}

.policy-header {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-card);
}

.policy-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.policy-back-link:hover {
  color: var(--primary-dark);
}

.policy-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 8px;
}

.policy-meta {
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.policy-body {
  padding: 48px 0 80px;
}

.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
  max-width: 860px;
  margin: 0 auto;
}

.policy-section {
  margin-bottom: 36px;
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-section-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  letter-spacing: -0.2px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.policy-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.policy-text:last-child {
  margin-bottom: 0;
}

.policy-list {
  margin: 10px 0 16px 20px;
  line-height: 1.75;
  color: var(--text-muted);
}

.policy-list li {
  margin-bottom: 8px;
}

.policy-list strong,
.policy-text strong {
  color: var(--text-main);
  font-weight: 700;
}

.policy-callout {
  background-color: var(--primary-50);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
}

.policy-callout p {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 992px) {
  .hero-content-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-mockup-wrapper {
    max-width: 290px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-row {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .showcase-row.reverse {
    direction: ltr;
  }

  .showcase-list {
    align-items: center;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 680px) {
  .hero-title {
    font-size: 2.3rem;
  }

  .section-title {
    font-size: 1.95rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 40px 20px;
  }

  .cta-banner h2 {
    font-size: 1.9rem;
  }

  .policy-card {
    padding: 28px 20px;
  }

  .policy-title {
    font-size: 2rem;
  }
}
