/* FeastWell — build feastwell-web-006 */

:root {
  /* Christmas Kitchen Palette */
  --flour: #F8F3EA;
  --flour-2: #EFE5D5;
  --board: #2E2118;
  --board-soft: #4A3B2C;
  --tomato: #B64A22;
  --tomato-dark: #913817;
  --sage: #7A8367;
  --butter: #D4A14D;
  --ink: #36281E;
  --ink-muted: #75685A;
  --line: #DDD0BA;
  
  --serif: "Fraunces", Georgia, "Iowan Old Style", serif;
  --sans: "Karla", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

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

html {
  background: var(--flour);
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(232, 169, 61, 0.06), transparent 30%),
    var(--flour);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Global Depth / Page Border */
body::before {
  content: "";
  position: fixed;
  inset: 18px;
  border: 1px solid rgba(90, 70, 45, 0.08);
  pointer-events: none;
  border-radius: 18px;
  z-index: 9999;
}

::selection {
  background: var(--butter);
  color: var(--board);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  flex-wrap: wrap;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--tomato);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--flour);
  font-size: 1.1rem;
  transform: rotate(-4deg);
}

.brand-mark-img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
  box-shadow: 0 10px 40px rgba(43, 33, 24, 0.05), 0 2px 6px rgba(43, 33, 24, 0.04);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.topbar-cta {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--flour);
  background: var(--board);
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}

.topbar-cta:hover {
  background: var(--tomato-dark);
}

/* ---------- hero ---------- */
.hero {
  padding: 160px 0 80px;
  position: relative;
}

/* Animated Warmth */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(232, 169, 61, 0.06), transparent 60%);
  animation: warmGlow 16s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes warmGlow {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.75;
  }
}

.hero-values {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 32px;
  line-height: 1.8;
  opacity: 0.8;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 15ch;
  color: var(--board);
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--tomato);
}

.hero-sub {
  font-size: 1.18rem;
  color: var(--ink-muted);
  max-width: 46ch;
  margin: 26px 0 36px;
  line-height: 1.85;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 64px;
}

.btn-primary-lg {
  font-size: 1.45rem;
  padding: 28px 60px;
  white-space: nowrap;
}

.btn-primary {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--flour);
  background: linear-gradient(to bottom, #D14C13, #B33E0D);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 8px 18px rgba(193, 68, 14, 0.25);
  padding: 15px 30px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.btn-primary:hover {
  background: linear-gradient(to bottom, #B33E0D, #913817);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.15), 0 10px 22px rgba(193, 68, 14, 0.35);
}

.btn-ghost {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--board);
  padding: 15px 8px;
  text-decoration: none;
  border-bottom: 2px solid var(--board);
  white-space: nowrap;
  transition: color 0.25s, border-color 0.25s;
}

.btn-ghost:hover {
  color: var(--tomato);
  border-color: var(--tomato);
}

.hero-signature {
  font-family: var(--serif);
  font-style: italic;
  color: var(--tomato);
  font-size: clamp(56px, 6vw, 72px);
  text-align: center;
  margin: 96px 0 16px;
  font-weight: 500;
}

.hero-no-guilt {
  text-align: center;
  font-size: 1.25rem;
  color: var(--ink-muted);
  margin-bottom: 64px;
}

/* ---------- reframe signature moment ---------- */
.reframe {
  margin: 60px 0 120px;
  padding: 90px 0;
  background: rgba(243, 235, 218, 0.4);
}

.reframe-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.reframe-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 40px;
}

.reframe-line {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotate-item {
  position: absolute;
  width: 100%;
  opacity: 0;
  animation: fadeRotate 30s infinite;
  text-align: center;
}

.rotate-item:nth-child(1) { animation-delay: 0s; }
.rotate-item:nth-child(2) { animation-delay: 5s; }
.rotate-item:nth-child(3) { animation-delay: 10s; }
.rotate-item:nth-child(4) { animation-delay: 15s; }
.rotate-item:nth-child(5) { animation-delay: 20s; }
.rotate-item:nth-child(6) { animation-delay: 25s; }

@keyframes fadeRotate {
  0% { opacity: 0; transform: translateY(15px); }
  3% { opacity: 1; transform: translateY(0); }
  13.6% { opacity: 1; transform: translateY(0); }
  16.6% { opacity: 0; transform: translateY(-15px); }
  100% { opacity: 0; }
}

.reframe-line .reframe-pair {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.4;
  display: block;
}

.reframe-old {
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-color: var(--tomato);
  text-decoration-thickness: 3px;
  opacity: 0.65;
}

.reframe-new {
  color: var(--board);
  font-style: italic;
  font-weight: 500;
}

/* ---------- sections & priorities ---------- */
.section {
  margin: 160px 0;
}

.section-head {
  max-width: 56ch;
  margin-bottom: 54px;
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.76rem, 3.7vw, 2.42rem);
  color: var(--board);
}

.section-head p {
  color: var(--ink-muted);
  margin-top: 14px;
  font-size: 1.05rem;
}

.priorities {
  display: flex;
  flex-direction: column;
}

.priority-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 24px 0;
}

.priority-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-muted);
  width: 2ch;
  flex-shrink: 0;
}

.priority-text {
  font-size: 1.1rem;
}

.priority-text b {
  font-weight: 700;
  color: var(--board);
  font-family: var(--serif);
  font-size: 1.25rem;
}

/* ---------- lifestyle tags ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.tag {
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--flour-2);
}

.tag.keep {
  border-color: var(--sage);
  color: var(--sage);
  background: rgba(122, 131, 103, 0.07);
  font-weight: 600;
}

/* ---------- roadmap ---------- */
.roadmap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--line);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 10px 40px rgba(43, 33, 24, 0.05), 0 2px 6px rgba(43, 33, 24, 0.04);
}

.roadmap-phase {
  background: var(--flour);
  padding: 40px 44px;
  border-radius: 28px;
}

.roadmap-phase.current {
  background: var(--board);
  color: var(--flour);
}

.roadmap-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.roadmap-name {
  font-family: var(--serif);
  font-size: 1.45rem;
}

.roadmap-status {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid currentColor;
}

.roadmap-phase.current .roadmap-status {
  color: var(--butter);
}

.roadmap-phase:not(.current) .roadmap-status {
  color: var(--ink-muted);
}

.roadmap-desc {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 60ch;
}

/* ---------- philosophy section ---------- */
.philosophy-manifesto {
  text-align: center;
  padding: 140px 24px;
  max-width: 880px;
  margin: 0 auto;
}

.philosophy-manifesto h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  color: var(--board);
  margin-bottom: 36px;
  font-weight: 400;
}

.philosophy-manifesto p {
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  line-height: 1.8;
  color: var(--ink-muted);
}

/* ---------- not / is ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 160px 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(43, 33, 24, 0.05), 0 2px 6px rgba(43, 33, 24, 0.04);
}

@media (min-width: 760px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.split-panel {
  padding: 56px 48px;
}

.split-panel.not {
  background: var(--flour-2);
}

.split-panel.is {
  background: var(--board);
  color: var(--flour);
}

.split-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.split-panel.not .split-label {
  color: var(--ink-muted);
}

.split-panel.is .split-label {
  color: var(--butter);
}

.split-panel h3 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  margin-bottom: 24px;
}

.split-list {
  list-style: none;
}

.split-list li {
  padding: 16px 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.split-panel.is .split-list li {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.split-list li:last-child {
  border-bottom: none;
}

.split-panel.not .split-list li::before {
  content: "✕  ";
  color: var(--tomato);
  font-weight: 700;
  font-size: 1.2em;
}

.split-panel.is .split-list li::before {
  content: "→  ";
  color: var(--butter);
  font-weight: 700;
  font-size: 1.2em;
}

/* ---------- waitlist ---------- */
.waitlist {
  background: var(--board);
  color: var(--flour);
  border-radius: 32px;
  padding: 100px 44px;
  text-align: center;
  margin: 160px 0 80px;
  box-shadow: 0 10px 40px rgba(43, 33, 24, 0.05), 0 2px 6px rgba(43, 33, 24, 0.04);
}

.waitlist h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3rem);
  max-width: 20ch;
  margin: 0 auto 24px;
}

.waitlist p {
  color: rgba(251, 246, 236, 0.72);
  max-width: 44ch;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  width: 100%;
  font-size: 0.85rem;
  color: rgba(251, 246, 236, 0.72);
  cursor: pointer;
  margin-bottom: 6px;
}

.consent-row input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  accent-color: var(--tomato);
}

.waitlist-input {
  flex: 1 1 240px;
  font-family: var(--sans);
  font-size: 1.05rem;
  padding: 18px 22px;
  border-radius: 100px;
  border: 1px solid rgba(251, 246, 236, 0.25);
  background: rgba(251, 246, 236, 0.06);
  color: var(--flour);
}

.waitlist-input::placeholder {
  color: rgba(251, 246, 236, 0.45);
}

.waitlist-input:focus-visible {
  outline: 2px solid var(--butter);
  outline-offset: 2px;
}

.waitlist-submit {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--flour);
  background: linear-gradient(to bottom, #D14C13, #B33E0D);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 8px 18px rgba(193, 68, 14, 0.25);
  padding: 18px 36px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}

.waitlist-submit:hover {
  background: linear-gradient(to bottom, #B33E0D, #913817);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.15), 0 10px 22px rgba(193, 68, 14, 0.35);
}

.waitlist-note {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: rgba(251, 246, 236, 0.4);
  margin-top: 24px;
}

/* ---------- footer ---------- */
footer {
  padding: 48px 0 80px;
  text-align: center;
}

footer p {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ---------- Illustrated Text Dividers ---------- */
.ornate-divider {
  text-align: center;
  color: var(--ink-muted);
  font-size: 1rem;
  margin: 40px 0;
  opacity: 0.6;
}

.ornate-divider::before {
  content: "────── ❦ ──────";
}

/* ---------- mobile spacing & layout updates ---------- */
@media (max-width: 768px) {
  
  /* Restructure topbar for mobile - centered layout */
  .topbar {
    flex-direction: column;
    align-items: center;
  }
  
  /* Make the brand block its own stacked row, centered, with a huge logo */
  .brand {
    width: 100%;
    margin-bottom: 24px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  
  /* Make the logo as large as safely possible */
  .brand-mark-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
  }
  
  .brand-name {
    font-size: 2.4rem;
  }
  
  .brand-tag {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
  }

  /* CTA flows naturally underneath and centered */
  .topbar-cta {
    padding: 14px 28px;
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .hero {
    padding: 24px 0 60px;
  }

  .hero-values {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
  }

  .section, .split {
    margin: 100px 0;
  }
  
  .philosophy-manifesto {
    padding: 80px 0;
  }
  
  .waitlist {
    padding: 64px 24px;
    margin: 100px 0 40px;
  }
  
  .btn-primary-lg {
    padding: 22px 32px;
    font-size: 1.2rem;
  }
  
  .reframe {
    padding: 60px 0;
    margin: 40px 0 80px;
  }
}

/* ---------- accessibility / motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
