:root {
  --green: #075c46;
  --green-dark: #043d30;
  --green-light: #1fc779;
  --yellow: #ffd21c;
  --cream: #f4f0e7;
  --ink: #10251f;
  --white: #fffefa;
  --line: rgba(16, 37, 31, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
button, input { font: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: rgba(244, 240, 231, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: flex; gap: .65rem; align-items: center; font-weight: 850; text-decoration: none; letter-spacing: -.02em; }
.brand-name { white-space: nowrap; }
.beta-badge { margin-left: .15rem; padding: .22rem .42rem .18rem; border: 1px solid var(--green); color: var(--green); font-size: .62rem; font-weight: 900; letter-spacing: .1em; line-height: 1; }
.brand-mark { width: 17px; height: 17px; background: var(--yellow); transform: rotate(45deg); border: 4px solid var(--green); }
nav { display: flex; gap: 1.5rem; align-items: center; }
nav a { font-size: .86rem; font-weight: 750; text-decoration: none; }
.nav-cta { border: 1px solid var(--green); padding: .6rem .85rem; }
.nav-cta-mobile { display: none; }

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  background: var(--cream);
}
.hero-copy { padding: clamp(4rem, 9vw, 9rem) 6vw 5rem; display: flex; flex-direction: column; justify-content: center; }
.eyebrow, .section-label { text-transform: uppercase; font-weight: 900; font-size: .76rem; letter-spacing: .16em; }
.eyebrow { display: flex; align-items: center; gap: .75rem; color: var(--green); }
.eyebrow span { background: var(--yellow); color: var(--ink); padding: .2rem .45rem; font-size: 1rem; letter-spacing: 0; }
h1, h2, h3 { margin-top: 0; letter-spacing: -.045em; line-height: .96; }
h1 { max-width: 780px; margin-bottom: 1.6rem; font-size: clamp(3.4rem, 7.5vw, 7.5rem); font-weight: 930; }
h1 em { color: var(--green); font-style: normal; display: block; }
.lead { max-width: 700px; font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.hero-actions, .download-actions, .share-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-height: 50px;
  padding: .75rem 1.2rem;
  border: 2px solid var(--green);
  border-radius: 0;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--yellow); }
.button-primary { color: white; background: var(--green); }
.button-ghost { color: var(--green); background: transparent; }
.button-yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); width: 100%; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.small-note, .license-note { font-size: .8rem; opacity: .72; }
.hero-photo { position: relative; align-self: center; display: block; margin: clamp(2rem, 4vw, 4rem) 4vw clamp(2rem, 4vw, 4rem) 0; min-height: 0; background: transparent; overflow: visible; }
.hero-photo img { width: 100%; height: clamp(280px, 27vw, 390px); object-fit: cover; object-position: center top; box-shadow: 14px 14px 0 var(--yellow); }
.hero-photo figcaption { margin: 1.25rem 0 0; color: var(--ink); background: transparent; padding: 0; font-size: .82rem; line-height: 1.5; }

.manifesto { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 3rem; padding: 8rem 7vw; background: var(--yellow); align-items: start; }
.manifesto-number { font-size: 1.2rem; font-weight: 900; border-top: 5px solid; padding-top: .5rem; }
.manifesto h2, .section-heading h2, .download-copy h2, .photo-section h2, .ai-guide h2, .care-section h2, .final-call h2 { font-size: clamp(2.6rem, 5.5vw, 5.4rem); }
.manifesto p:last-child { margin: 2rem 0 0; font-size: 1.2rem; max-width: 600px; }

.steps-section, .care-section { padding: 8rem 6vw; }
.section-heading { max-width: 1000px; margin-bottom: 3rem; }
.section-label { color: var(--green); margin-bottom: 1rem; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.step-card { min-height: 390px; padding: 2rem; position: relative; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.step-card:last-child { border-right: 0; }
.step-card.featured { color: white; background: var(--green); transform: translateY(-18px); box-shadow: 10px 10px 0 var(--yellow); }
.step-number { font-weight: 900; opacity: .55; }
.step-icon { margin: 3rem 0 2rem; font-size: 2.6rem; }
.step-card h3 { font-size: 1.65rem; margin-bottom: .7rem; }
.step-card p { margin-top: 0; }
.step-card a { margin-top: auto; font-weight: 850; }

.download-section { display: grid; grid-template-columns: minmax(300px, 520px) 1fr; gap: 8vw; align-items: center; padding: 8rem 8vw; background: var(--white); }
.cover-preview { padding: 2.5rem; background: #dedbd2; box-shadow: 18px 18px 0 var(--yellow); }
.cover-preview img { width: 100%; box-shadow: 0 25px 70px rgba(0,0,0,.25); }
.download-copy { max-width: 720px; }
.download-copy > p:not(.section-label) { font-size: 1.15rem; }

.photo-section { padding: 8rem 6vw; color: white; background: var(--green-dark); }
.section-heading.light .section-label { color: var(--yellow); }
.section-heading.light > p:last-child { max-width: 720px; font-size: 1.1rem; }
.maker { display: grid; grid-template-columns: minmax(300px, 620px) minmax(260px, 420px); gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.canvas-wrap { background: #0d2a23; border: 1px solid rgba(255,255,255,.2); padding: 1rem; }
canvas { width: 100%; height: auto; display: block; background: #d8d5ca; touch-action: pan-y pinch-zoom; cursor: grab; }
canvas:active { cursor: grabbing; }
.maker-controls { display: flex; flex-direction: column; gap: 1rem; }
.maker-controls label { font-weight: 850; }
.upload-control { display: flex; flex-direction: column; gap: .7rem; }
.upload-control input { border: 1px solid rgba(255,255,255,.35); padding: 1rem; width: 100%; }
input[type="range"] { width: 100%; accent-color: var(--yellow); }
.drag-tip, .privacy { font-size: .85rem; opacity: .78; }
.processing-status { min-height: 2.7em; margin: 0; color: var(--yellow); font-size: .85rem; }

.ai-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; padding: 8rem 7vw; background: var(--green-light); }
.ai-guide > div:first-child p:last-child { max-width: 650px; }
.ai-guide > div:first-child a { color: inherit; font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prompt-box { align-self: center; background: var(--ink); color: white; padding: 2rem; box-shadow: 12px 12px 0 var(--yellow); }
.prompt-top { display: flex; justify-content: space-between; align-items: center; color: var(--yellow); text-transform: uppercase; font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.prompt-top button { color: white; border: 1px solid rgba(255,255,255,.35); background: transparent; padding: .45rem .7rem; cursor: pointer; }
.prompt-box p { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; line-height: 1.7; }

.care-section { background: var(--cream); }
.care-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 3rem 0; }
.care-grid p { border-top: 5px solid var(--green); padding-top: 1.2rem; }
.official-link { font-weight: 850; }
.final-call { padding: 8rem 6vw; text-align: center; background: var(--yellow); }
.final-call > p { font-weight: 900; text-transform: uppercase; letter-spacing: .15em; }
.final-call .share-actions { justify-content: center; }
footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 5vw; color: white; background: var(--ink); font-size: .78rem; }
footer p { margin: 0; }

@media (max-width: 860px) {
  nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 5rem 6vw; }
  .hero-photo { display: block; align-self: auto; margin: 0; min-height: 78vh; background: #d8d6ce; overflow: hidden; }
  .hero-photo img { height: 100%; object-position: center; box-shadow: none; }
  .hero-photo figcaption { position: absolute; inset: auto 1rem 1rem 1rem; display: block; margin: 0; color: white; padding: .8rem 1rem; font-size: .74rem; background: rgba(4, 61, 48, .94); }
  .manifesto { grid-template-columns: 50px 1fr; gap: 1.5rem; padding: 6rem 6vw; }
  .manifesto > p { grid-column: 2; }
  .steps-grid, .care-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 320px; border-right: 0; border-bottom: 1px solid var(--line); }
  .step-card.featured { transform: none; box-shadow: none; }
  .download-section, .maker, .ai-guide { grid-template-columns: 1fr; }
  .download-section, .photo-section, .ai-guide, .steps-section, .care-section, .final-call { padding: 5rem 6vw; }
  .cover-preview { max-width: 520px; }
  footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .site-header { min-height: 64px; padding: .6rem 1rem; gap: .65rem; }
  .brand { gap: .42rem; min-width: 0; }
  .brand-name { font-size: .82rem; }
  .brand-mark { width: 15px; height: 15px; border-width: 3px; flex: 0 0 auto; }
  .beta-badge { margin-left: 0; padding: .18rem .3rem .14rem; font-size: .52rem; }
  nav { gap: 0; }
  .nav-cta { padding: .42rem .55rem; font-size: .7rem; white-space: nowrap; }
  .nav-cta-desktop { display: none; }
  .nav-cta-mobile { display: inline; }
  h1 { font-size: clamp(2.85rem, 13.3vw, 3.3rem); }
  .hero-photo { min-height: 640px; }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto > p { grid-column: 1; }
  .manifesto-number { width: 48px; }
  .download-actions .button, .share-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

@media print {
  .site-header, .hero, .manifesto, .steps-section, .download-section, .photo-section, .ai-guide, .care-section, .final-call, footer { display: none !important; }
}
