/* =============================================================================
   BakeCost public site — shared design system (cream / terracotta / rose gold)
   Used by index.html, privacy.html, terms.html and contact.php.
   ============================================================================= */

:root {
  --cream: #FFF6EB;
  --cream-deep: #F3E3D0;
  --terracotta: #B85C38;
  --terracotta-deep: #9A4A2E;
  --rose: #B76E79;
  --honey: #D9A062;
  --cocoa: #3B2B23;
  --muted: #8A7A6E;
  --white: #FFFFFF;
  --shadow: 0 10px 30px -12px rgba(59, 43, 35, 0.18);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--cocoa);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--terracotta-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

code { background: var(--cream-deep); border-radius: 6px; padding: 0.1em 0.4em; font-size: 0.9em; }

img { max-width: 100%; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- navigation */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 246, 235, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(59, 43, 35, 0.08);
}
.site-nav .inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem; font-weight: 700; color: var(--cocoa);
}
.brand:hover { text-decoration: none; }
.brand .logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--terracotta), var(--rose));
  color: #fff; font-size: 1.1rem;
}
.site-nav nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-left: auto; }
.site-nav nav a { color: var(--cocoa); font-weight: 500; font-size: 0.95rem; }
.site-nav nav a:hover { color: var(--terracotta-deep); text-decoration: none; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 14px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; cursor: pointer; transition: 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--terracotta-deep); }
.btn-ghost { border-color: rgba(59, 43, 35, 0.2); color: var(--cocoa); background: transparent; }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta-deep); }

.badge {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: rgba(184, 92, 56, 0.1); color: var(--terracotta-deep);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}

/* --------------------------------------------------------------------- hero */
.hero { padding: 72px 0 40px; }
.hero .grid {
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
}
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero .tagline { color: var(--terracotta-deep); font-weight: 600; margin-bottom: 14px; }
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.play-badge img { display: block; height: 64px; width: auto; }
.coming-soon {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px dashed rgba(138, 122, 110, 0.5); border-radius: 12px;
  padding: 10px 16px; color: var(--muted); font-size: 0.9rem; font-weight: 500;
}

/* ------------------------------------------------------------ phone mockups */
.phones { display: flex; justify-content: center; gap: 18px; }
.phone {
  width: 250px; border-radius: 34px; padding: 10px;
  background: var(--cocoa); box-shadow: var(--shadow);
}
.phone .screen {
  border-radius: 26px; overflow: hidden; background: var(--cream);
  padding: 14px 12px 18px; min-height: 420px; display: flex; flex-direction: column; gap: 10px;
}
.phone .notch { width: 84px; height: 5px; border-radius: 999px; background: rgba(59,43,35,0.25); margin: 2px auto 10px; }
.phone .app-title { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1rem; padding: 0 4px; }
.phone .app-sub { font-size: 0.68rem; color: var(--muted); padding: 0 4px; margin-top: -8px; }
.mini-card {
  background: #fff; border: 1px solid rgba(59,43,35,0.07); border-radius: 14px;
  padding: 10px 12px; box-shadow: 0 4px 12px -6px rgba(59,43,35,0.12);
}
.mini-card .row { display: flex; justify-content: space-between; gap: 8px; font-size: 0.72rem; }
.mini-card .row + .row { margin-top: 3px; }
.mini-card .name { font-weight: 700; font-size: 0.78rem; }
.mini-card .muted { color: var(--muted); }
.mini-card .strong { font-weight: 700; }
.mini-card .price { color: var(--terracotta-deep); font-weight: 800; }
.pill {
  display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px;
  background: rgba(110, 139, 90, 0.16); color: #567044;
  font-size: 0.62rem; font-weight: 700;
}
.pill.honey { background: rgba(217, 160, 98, 0.2); color: #8A5A16; }
.total-strip {
  background: rgba(184, 92, 56, 0.1); border-radius: 12px; padding: 9px 12px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; font-weight: 700; color: var(--terracotta-deep);
}
.total-strip .big { font-size: 1rem; font-weight: 800; }
.fab {
  margin-top: auto; align-self: center;
  background: var(--terracotta); color: #fff; border-radius: 999px;
  padding: 7px 16px; font-size: 0.72rem; font-weight: 700;
}

/* ----------------------------------------------------------------- sections */
.section { padding: 64px 0; }
.section.alt { background: #fff; border-top: 1px solid rgba(59,43,35,0.06); border-bottom: 1px solid rgba(59,43,35,0.06); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }

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

.feature-card {
  background: #fff; border-radius: var(--radius); padding: 26px;
  border: 1px solid rgba(59,43,35,0.07); box-shadow: 0 6px 18px -10px rgba(59,43,35,0.12);
}
.feature-card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(184,92,56,0.14), rgba(183,110,121,0.14));
  margin-bottom: 14px;
}
.feature-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.screens .phone { transform: rotate(-2deg); }
.screens .phone + .phone { transform: rotate(1.5deg); }
.screens .phone:nth-child(2) { transform: translateY(14px) rotate(0deg); }

/* ------------------------------------------------------------------ pricing */
.pricing-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.price-card {
  position: relative; background: #fff; border-radius: 22px; padding: 30px 26px;
  border: 1.5px solid rgba(59,43,35,0.08); display: flex; flex-direction: column;
}
.price-card.featured {
  border-color: var(--terracotta); box-shadow: var(--shadow);
  background: linear-gradient(180deg, #fff, #FFF9F0);
}
.price-card .flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--honey), var(--terracotta));
  color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { margin-bottom: 2px; }
.price-card .amount { font-family: "Fraunces", Georgia, serif; font-size: 2.3rem; font-weight: 700; }
.price-card .amount small { font-size: 0.95rem; color: var(--muted); font-family: "Inter", sans-serif; font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.price-card li { padding: 6px 0 6px 26px; position: relative; font-size: 0.93rem; color: var(--muted); }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; top: 6px;
  color: var(--terracotta); font-weight: 800;
}
.pricing-note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 26px; }

/* --------------------------------------------------------------- final CTA */
.final-cta {
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-deep) 60%, var(--rose));
  color: #fff; border-radius: 26px; padding: 56px 32px; text-align: center;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,0.85); max-width: 36em; margin: 0 auto 26px; }

/* ------------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid rgba(59,43,35,0.08); padding: 34px 0; margin-top: 72px; }
.site-footer .inner {
  display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center;
  justify-content: space-between; color: var(--muted); font-size: 0.9rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ------------------------------------------------- legal pages (prose) */
.page { padding: 64px 0 32px; }
.page .panel {
  background: #fff; border-radius: var(--radius); border: 1px solid rgba(59,43,35,0.07);
  padding: clamp(24px, 5vw, 52px); max-width: 820px; margin: 0 auto;
}
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose h3 { font-size: 1.05rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--cocoa); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose .meta { color: var(--muted); font-size: 0.9rem; }
.toc { background: var(--cream); border-radius: 14px; padding: 18px 22px; margin: 1.5em 0; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ul { margin: 0; }

/* ------------------------------------------------------------------- forms */
.form-panel {
  background: #fff; border-radius: 22px; border: 1px solid rgba(59,43,35,0.07);
  box-shadow: var(--shadow); padding: 34px; max-width: 560px; margin: 0 auto;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid rgba(59,43,35,0.15); background: var(--cream);
  font: inherit; color: var(--cocoa);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(184,92,56,0.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert { border-radius: 14px; padding: 14px 18px; margin-bottom: 20px; font-size: 0.95rem; }
.alert.success { background: rgba(110,139,90,0.14); color: #4C6439; }
.alert.error { background: rgba(184,92,56,0.12); color: var(--terracotta-deep); }

/* -------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .hero .grid { grid-template-columns: 1fr; }
  .hero .phones { order: -1; }
  .grid-3, .pricing-grid { grid-template-columns: 1fr; }
  .screens { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .phone { width: 230px; }
}
