:root {
  --site-bg: #fffaf5;
  --site-card: #ffffff;
  --site-text: #241c16;
  --site-muted: #6f6258;
  --site-border: #eadfd5;
  --site-accent: #ef6c18;
  --site-accent-dark: #c84f08;
  --site-accent-soft: #fff0e2;
  --site-green: #276749;
  --site-shadow: 0 24px 70px rgba(87, 55, 31, 0.10);
}

.public-body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.site-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(234, 223, 213, 0.78);
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--site-text);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.site-brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #ff944d, var(--site-accent));
  color: #fff;
  box-shadow: 0 8px 22px rgba(239, 108, 24, 0.24);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--site-muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.site-footer-links a:hover,
.text-link:hover {
  color: var(--site-accent-dark);
}

.site-header-cta,
.public-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 850;
  text-decoration: none;
}

.site-header-cta {
  min-height: 44px;
  padding: 0 18px;
  background: var(--site-text);
  color: #fff;
  font-size: 14px;
}

.site-main {
  min-height: 60vh;
}

.public-hero {
  padding: 76px 0 66px;
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 181, 127, 0.34), transparent 360px),
    radial-gradient(circle at 90% 15%, rgba(255, 220, 166, 0.38), transparent 420px);
}

.public-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
  gap: 72px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  border: 1px solid #f1d5bd;
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  color: var(--site-accent-dark);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.public-hero h1 {
  max-width: 760px;
  margin: 18px 0 20px;
  color: var(--site-text);
  font-size: clamp(46px, 5.4vw, 76px);
  font-weight: 950;
  line-height: .98;
  letter-spacing: -0.055em;
}

.public-lead {
  max-width: 680px;
  margin: 0;
  color: var(--site-muted);
  font-size: 20px;
  line-height: 1.55;
}

.public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.public-btn {
  min-height: 54px;
  padding: 0 22px;
  font-size: 16px;
}

.public-btn-primary {
  background: linear-gradient(135deg, var(--site-accent), var(--site-accent-dark));
  color: #fff;
  box-shadow: 0 14px 30px rgba(239, 108, 24, .24);
}

.public-btn-secondary {
  border: 1px solid var(--site-border);
  background: rgba(255,255,255,.78);
  color: var(--site-text);
}

.public-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.public-trust-row span {
  border: 1px solid var(--site-border);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  color: var(--site-muted);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 750;
}

.plan-demo {
  border: 1px solid rgba(226, 208, 193, .84);
  border-radius: 30px;
  background: rgba(255,255,255,.91);
  box-shadow: var(--site-shadow);
  padding: 24px;
  transform: rotate(1.2deg);
}

.plan-demo-head,
.demo-macros,
.demo-days article,
.public-cta-box {
  display: flex;
  align-items: center;
}

.plan-demo-head {
  justify-content: space-between;
  gap: 20px;
}

.plan-demo-head strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.demo-kicker {
  color: var(--site-muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.demo-status {
  border-radius: 999px;
  background: #edf8f1;
  color: var(--site-green);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 850;
}

.demo-macros {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.demo-macros div {
  border-radius: 16px;
  background: #fff7f0;
  padding: 13px 10px;
  text-align: center;
}

.demo-macros b,
.demo-macros span {
  display: block;
}

.demo-macros b {
  font-size: 15px;
}

.demo-macros span {
  margin-top: 3px;
  color: var(--site-muted);
  font-size: 11px;
}

.demo-days {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.demo-days article {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  border-top: 1px solid #f0e8e1;
  padding-top: 12px;
}

.demo-days article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #f9f2ec;
  color: var(--site-muted);
  font-size: 11px;
  font-weight: 900;
}

.demo-days strong,
.demo-days small {
  display: block;
}

.demo-days strong {
  font-size: 14px;
}

.demo-days small {
  margin-top: 2px;
  color: var(--site-muted);
  font-size: 11px;
}

.demo-days article > b {
  color: var(--site-muted);
  font-size: 13px;
  font-weight: 800;
}

.demo-shopping {
  margin-top: 18px;
  border-radius: 16px;
  background: #fff0e2;
  color: #8c4718;
  padding: 13px 14px;
  font-size: 13px;
  font-weight: 800;
}

.public-section {
  padding: 82px 0;
}

.public-section-soft {
  border-top: 1px solid var(--site-border);
  border-bottom: 1px solid var(--site-border);
  background: #fff;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.public-feature-layout h2,
.public-cta-box h2 {
  margin: 14px 0 12px;
  color: var(--site-text);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 930;
  line-height: 1.04;
  letter-spacing: -.04em;
}

.section-heading p,
.section-copy,
.public-cta-box p {
  color: var(--site-muted);
  font-size: 17px;
  line-height: 1.62;
}

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

.step-card,
.value-grid article {
  border: 1px solid var(--site-border);
  border-radius: 22px;
  background: #fff;
  padding: 24px;
}

.step-number {
  color: var(--site-accent);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
}

.step-card h3,
.value-grid strong {
  display: block;
  margin: 18px 0 8px;
  color: var(--site-text);
  font-size: 20px;
}

.step-card p,
.value-grid p {
  margin: 0;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.55;
}

.public-feature-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--site-accent-dark);
  font-weight: 850;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.value-grid article > span {
  font-size: 26px;
}

.public-cta-section {
  padding-top: 18px;
}

.public-cta-box {
  justify-content: space-between;
  gap: 32px;
  border: 1px solid #f0cfb5;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff 0%, #fff0e2 100%);
  box-shadow: var(--site-shadow);
  padding: 38px;
}

.public-cta-box h2 {
  margin-bottom: 6px;
}

.public-cta-box p {
  margin: 0;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--site-border);
  background: #fff;
  padding: 42px 0;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: start;
}

.site-brand-footer {
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 500px;
  margin: 0;
  color: var(--site-muted);
  font-size: 13px;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  color: var(--site-muted);
  font-size: 13px;
  font-weight: 700;
}

/* Existing public recipe and legal templates can reuse app.css components,
   but are no longer trapped in the 460px app shell. */
.site-main > .recipe-page-shell,
.site-main > .result-hero,
.site-main > .form-card,
.site-main > .note-card,
.site-main > .recipe-group,
.site-main > .bottom-actions,
.site-main > section:not(.public-hero):not(.public-section) {
  width: min(920px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.site-main > .result-hero,
.site-main > .form-card,
.site-main > .note-card,
.site-main > .recipe-group:first-of-type,
.site-main > .recipe-page-shell {
  margin-top: 42px;
}

.site-main .recipe-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-main .recipe-page-shell {
  max-width: 980px;
  padding-bottom: 20px;
}

.site-main .recipe-page-shell .bottom-actions {
  position: static;
  border: 0;
  background: transparent;
  padding: 0;
  backdrop-filter: none;
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-header-inner { grid-template-columns: 1fr auto; }
  .public-hero { padding: 54px 0; }
  .public-hero-grid,
  .public-feature-layout { grid-template-columns: 1fr; gap: 40px; }
  .plan-demo { transform: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .site-main .recipe-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .site-container { width: min(100% - 28px, 1180px); }
  .site-header-inner { min-height: 64px; }
  .site-header-cta { min-height: 40px; padding: 0 13px; font-size: 12px; }
  .site-brand { font-size: 18px; }
  .site-brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .public-hero { padding: 42px 0 46px; }
  .public-hero h1 { font-size: 43px; }
  .public-lead { font-size: 17px; }
  .public-actions { display: grid; }
  .public-btn { width: 100%; }
  .demo-macros { grid-template-columns: repeat(2, 1fr); }
  .public-section { padding: 58px 0; }
  .value-grid { grid-template-columns: 1fr; }
  .public-cta-box { display: grid; padding: 26px; }
  .site-footer-grid { grid-template-columns: 1fr; }
  .site-footer-links { justify-content: flex-start; }
  .site-main .recipe-card-grid { grid-template-columns: 1fr; }
  .site-main > .recipe-page-shell,
  .site-main > .result-hero,
  .site-main > .form-card,
  .site-main > .note-card,
  .site-main > .recipe-group,
  .site-main > .bottom-actions,
  .site-main > section:not(.public-hero):not(.public-section) {
    width: min(100% - 28px, 920px);
  }
}
