/* ============================================================
   House Rules — Global Styles
   Plain CSS, no framework
   ============================================================ */

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

/* ---------- Variables ---------- */
:root {
  --green-900: #1B4332;
  --green-700: #2D6A4F;
  --green-500: #40916C;
  --green-300: #74C69D;
  --green-100: #D8F3DC;
  --green-50:  #F0FAF4;

  --gold:      #D4AC0D;
  --gold-light:#FFF3B0;

  --red:       #C0392B;
  --red-light: #FDECEA;

  --white:     #FFFFFF;
  --gray-900:  #1A1A1A;
  --gray-700:  #374151;
  --gray-500:  #6B7280;
  --gray-200:  #E5E7EB;
  --gray-50:   #F9FAFB;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(27,67,50,.10);
  --shadow-lg: 0 8px 32px rgba(27,67,50,.14);

  --max-width: 1100px;
  --section-gap: 96px;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--gray-900);
}

a {
  color: var(--green-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green-900);
  letter-spacing: -0.02em;
}

.brand-by {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 400;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 400;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--green-50) 0%, var(--white) 60%);
  padding: 100px 0 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--green-100);
  opacity: .4;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--gold-light);
  opacity: .5;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--green-900);
  max-width: 800px;
  margin: 0 auto 24px;
}

.hero-intro {
  font-size: 1.175rem;
  color: var(--gray-700);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

.badge-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-light);
  color: #6B4F00;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid #D4AC0D44;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.85); }
}

/* ---------- Section common ---------- */
section {
  padding: var(--section-gap) 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--green-900);
  margin-bottom: 16px;
}

.section-subheading {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 520px;
  line-height: 1.65;
}

/* ---------- Our Apps ---------- */
.our-apps {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.our-apps .section-subheading {
  margin-bottom: 56px;
}

.app-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.app-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow .2s, border-color .2s, transform .2s;
  text-decoration: none;
  color: inherit;
}

.app-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-300);
  transform: translateY(-2px);
  text-decoration: none;
}

.app-card-link {
  cursor: pointer;
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-icon-houserules {
  background: #F0FAF4;
}

.app-icon-pantrybuddy {
  background: #FFFBF0;
}

.app-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-900);
  margin-bottom: 6px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-soon {
  background: var(--gold-light);
  color: #6B4F00;
  border: 1px solid #D4AC0D44;
}

.badge-available {
  background: var(--green-100);
  color: var(--green-700);
  border: 1px solid var(--green-300);
}

.app-desc {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
}

.app-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-features li {
  font-size: 0.9rem;
  color: var(--gray-500);
  padding-left: 18px;
  position: relative;
}

.app-features li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--green-500);
  font-weight: 700;
}

.app-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-700);
  margin-top: 4px;
}

.app-card:hover .app-card-cta {
  color: var(--green-900);
}

.about-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 16px;
}

/* ---------- Features ---------- */
.features {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.features-intro {
  margin-bottom: 56px;
}

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-green   { background: var(--green-100); }
.icon-gold    { background: var(--gold-light); }
.icon-red     { background: var(--red-light); }
.icon-purple  { background: #EDE9FE; }
.icon-blue    { background: #DBEAFE; }
.icon-teal    { background: #CCFBF1; }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--green-900);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ---------- How It Works ---------- */
.how-it-works {
  background: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.666% + 28px);
  right: calc(16.666% + 28px);
  height: 2px;
  background: var(--green-100);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-900);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--green-900);
}

.step p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ---------- Card System ---------- */
.card-system {
  background: var(--green-900);
  color: var(--white);
}

.card-system .section-label {
  color: var(--green-300);
}

.card-system .section-heading {
  color: var(--white);
}

.card-system .section-subheading {
  color: var(--green-100);
  max-width: 560px;
}

.card-demo {
  display: flex;
  gap: 20px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.card-sample {
  flex: 1;
  min-width: 220px;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-green {
  background: #D1FAE5;
  border: 2px solid #6EE7B7;
}

.card-green .card-type {
  color: #065F46;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.card-green .card-title {
  color: #064E3B;
  font-size: 1.15rem;
  font-weight: 700;
}

.card-green .card-body {
  color: #065F46;
  font-size: 0.9rem;
  line-height: 1.55;
}

.card-red {
  background: #FEE2E2;
  border: 2px solid #FCA5A5;
}

.card-red .card-type {
  color: #991B1B;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.card-red .card-title {
  color: #7F1D1D;
  font-size: 1.15rem;
  font-weight: 700;
}

.card-red .card-body {
  color: #991B1B;
  font-size: 0.9rem;
  line-height: 1.55;
}

.card-points {
  background: var(--gold-light);
  border: 2px solid #FCD34D;
}

.card-points .card-type {
  color: #6B4F00;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.card-points .card-title {
  color: #451A03;
  font-size: 1.15rem;
  font-weight: 700;
}

.card-points .card-body {
  color: #6B4F00;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ---------- About ---------- */
.about {
  background: var(--green-50);
  border-top: 1px solid var(--green-100);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 16px;
}

.about-text p:first-of-type {
  margin-top: 24px;
}

.about-contact {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.about-contact h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 8px;
}

.about-contact p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.about-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-700);
  font-weight: 600;
  font-size: 0.9375rem;
}

.about-contact a:hover {
  color: var(--green-900);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: var(--green-100);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--green-300);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--green-300);
  text-decoration: none;
  transition: color .15s;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: none;
}

/* ---------- Legal pages ---------- */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-900);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.legal-page .legal-date {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.legal-page h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-900);
  margin: 36px 0 12px;
}

.legal-page p, .legal-page li {
  font-size: 0.975rem;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 12px;
}

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

.legal-page a {
  color: var(--green-700);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-700);
  margin-bottom: 40px;
  text-decoration: none;
}

.legal-back:hover {
  color: var(--green-900);
  text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --section-gap: 72px; }

  .app-cards {
    grid-template-columns: 1fr;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps::before { display: none; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  :root { --section-gap: 56px; }

  .app-card {
    padding: 28px 24px;
  }

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

  .card-demo {
    flex-direction: column;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .hero-headline {
    font-size: 2.4rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
