:root {
  --paper: #f7f4ed;
  --paper-deep: #efe9dc;
  --ink: #20201d;
  --muted: #696962;
  --line: #d9d2c4;
  --green: #285c42;
  --green-deep: #16472f;
  --green-pale: #e5ece4;
  --white: #fffdf8;
  --shadow: 0 18px 45px rgba(64, 54, 37, 0.14);
  --soft-shadow: 0 10px 30px rgba(64, 54, 37, 0.08);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 255, 255, 0.78), transparent 32rem),
    linear-gradient(110deg, rgba(255, 255, 255, 0.5), transparent 42%),
    var(--paper);
  color: var(--ink);
  font-family:
    "Avenir Next",
    "Cabinet Grotesk",
    "Satoshi",
    "Neue Montreal",
    "Helvetica Neue",
    Arial,
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) auto;
  align-items: center;
  gap: 2rem;
  min-height: 5.5rem;
  padding: 1.2rem clamp(1.2rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(92, 84, 70, 0.17);
  background: rgba(247, 244, 237, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-grid;
  width: 7.5ch;
  color: #11110f;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: clamp(1rem, 3vw, 3.4rem);
  font-size: 0.98rem;
}

.nav a {
  position: relative;
  padding: 0.8rem 0;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.3rem;
  left: 0;
  height: 2px;
  background: var(--green);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.section-shell {
  width: min(100%, 92rem);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 4vw, 4rem);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(30rem, 1.18fr);
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100dvh - 9.8rem);
  overflow: hidden;
}

.rhythm-line {
  position: absolute;
  top: 3rem;
  bottom: 5rem;
  left: clamp(1.2rem, 4vw, 4rem);
  width: 1px;
  background: rgba(40, 92, 66, 0.45);
}

.rhythm-line::before,
.rhythm-line::after {
  position: absolute;
  left: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green);
  content: "";
  transform: translateX(-50%);
}

.rhythm-line::before {
  top: 24%;
}

.rhythm-line::after {
  bottom: 13%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-left: clamp(1.8rem, 4.5vw, 5.2rem);
}

.eyebrow,
.breadcrumb,
.panel-kicker {
  margin: 0 0 1.8rem;
  color: var(--green);
  font-size: 0.83rem;
  font-weight: 720;
  letter-spacing: 0.02em;
}

.breadcrumb {
  color: #77756f;
  font-weight: 520;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 9ch;
  margin-bottom: 1.7rem;
  font-size: clamp(4.4rem, 8.4vw, 8.9rem);
  font-weight: 680;
  letter-spacing: 0;
  line-height: 0.95;
}

.hero-deck {
  max-width: 34rem;
  margin-bottom: 2.4rem;
  color: #55554f;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1.48;
}

.hero-actions,
.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
  min-height: 3.45rem;
  padding: 0 1.4rem;
  border: 1px solid rgba(32, 32, 29, 0.76);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-weight: 620;
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--soft-shadow);
}

.button.primary {
  border-color: var(--green);
  background: linear-gradient(180deg, #17633e, var(--green-deep));
  color: #fffdf7;
}

.button.secondary {
  background: rgba(255, 253, 248, 0.38);
}

.hero-actions .button {
  width: min(100%, 15.3rem);
}

.public-note {
  max-width: 18rem;
  margin: 2.8rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.hero-visual {
  position: relative;
  min-height: 41rem;
  align-self: end;
}

.generated-visual {
  display: grid;
  align-items: end;
  overflow: hidden;
  height: clamp(32rem, 42vw, 45rem);
  align-self: center;
  border: 1px solid rgba(93, 82, 63, 0.08);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.34);
  box-shadow: 0 22px 55px rgba(64, 54, 37, 0.1);
}

.generated-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 72% center;
}

.paper-sheet,
.side-panel,
.gates-card,
.selected-template,
.template-card,
.gates-panel,
.stage-row,
.use-note {
  border: 1px solid rgba(93, 82, 63, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.72);
}

.paper-sheet {
  position: absolute;
  top: 1.4rem;
  right: 13%;
  width: min(38rem, 78%);
  min-height: 20.5rem;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow);
  transform: rotate(-5deg);
}

.frame-back {
  position: absolute;
  top: 0.4rem;
  right: 2rem;
  width: 42rem;
  max-width: 78%;
  height: 30rem;
  background: #928b7e;
  opacity: 0.56;
  transform: rotate(2deg);
}

.sheet-label {
  margin-bottom: 2rem;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-process {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-process li {
  position: relative;
  color: #33332f;
  font-size: 0.58rem;
  font-weight: 760;
  text-align: center;
  text-transform: uppercase;
}

.mini-process li:not(:last-child)::after {
  position: absolute;
  top: 0.75rem;
  right: -0.55rem;
  width: 0.55rem;
  height: 1px;
  background: #888477;
  content: "";
}

.mini-process span,
.process-strip span {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0 auto 0.55rem;
  place-items: center;
  border: 1px solid rgba(40, 92, 66, 0.85);
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  font-weight: 760;
}

.sheet-rule {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  left: 2rem;
  height: 1px;
  background: rgba(32, 32, 29, 0.2);
}

.sticky-note {
  position: absolute;
  top: 15rem;
  left: 5%;
  width: 14rem;
  padding: 1.3rem;
  background: #eee4d0;
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
}

.sticky-note p {
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
  font-weight: 760;
  text-transform: uppercase;
}

.sticky-note ul,
.side-panel ul,
.gates-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sticky-note li {
  margin: 0.45rem 0;
  font-family: "Bradley Hand", "Marker Felt", cursive;
  font-size: 1.08rem;
}

.green-ledger {
  position: absolute;
  right: 24%;
  bottom: 1rem;
  display: grid;
  width: 19rem;
  height: 20rem;
  align-content: end;
  padding: 2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #1d4737, #365844);
  color: rgba(18, 22, 18, 0.68);
  font-size: 1.8rem;
  font-weight: 840;
  line-height: 0.92;
  text-transform: uppercase;
  box-shadow: var(--shadow);
  transform: rotate(-11deg);
}

.side-panel {
  position: absolute;
  top: 8.8rem;
  right: 0.7rem;
  width: 16rem;
  padding: 1.4rem;
  box-shadow: var(--soft-shadow);
  transform: rotate(2deg);
}

.side-panel h2,
.gates-card h2 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 620;
}

.side-panel li {
  padding: 0.45rem 0.65rem;
  border-radius: 5px;
  color: #55554f;
  font-size: 0.84rem;
}

.side-panel .is-active {
  background: var(--green-pale);
  color: var(--green);
}

.gates-card {
  position: absolute;
  right: 4rem;
  bottom: 2.6rem;
  width: 17rem;
  padding: 1rem;
  box-shadow: var(--soft-shadow);
}

.gates-card li {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.55rem;
  margin: 0.65rem 0;
  color: #4d4d47;
  font-size: 0.78rem;
}

.gates-card span {
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--green);
}

.small-note {
  position: absolute;
  right: 39%;
  bottom: 0.2rem;
  padding: 0.8rem;
  background: #f0e4cb;
  font-family: "Bradley Hand", "Marker Felt", cursive;
  font-size: 1rem;
  box-shadow: var(--soft-shadow);
  transform: rotate(7deg);
}

.process-strip {
  border-top: 1px solid rgba(92, 84, 70, 0.17);
  border-bottom: 1px solid rgba(92, 84, 70, 0.17);
  background: rgba(255, 253, 248, 0.42);
}

.process-inner {
  width: min(100%, 92rem);
  margin: 0 auto;
  padding: 1.7rem clamp(1.2rem, 4vw, 4rem) 2.4rem;
}

.strip-title {
  margin-bottom: 1.2rem;
  font-weight: 620;
}

.process-strip ol {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(0.7rem, 2vw, 2.8rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-strip li {
  position: relative;
}

.process-strip li:not(:last-child)::after {
  position: absolute;
  top: 0.86rem;
  right: calc(-1 * clamp(0.7rem, 2vw, 2.8rem));
  width: clamp(0.7rem, 2vw, 2.8rem);
  height: 1px;
  background: #bdb5a6;
  content: "";
}

.process-strip span {
  margin: 0 0 0.75rem;
}

.process-strip strong,
.process-strip em {
  display: block;
}

.process-strip strong {
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
}

.process-strip em {
  color: #6a675d;
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.45;
}

.below-hero {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(18rem, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.notebook-crop {
  min-height: 24rem;
  background:
    linear-gradient(90deg, rgba(35, 29, 22, 0.25) 1px, transparent 1px),
    linear-gradient(rgba(35, 29, 22, 0.25) 1px, transparent 1px),
    #d9cdb8;
  background-size: 1.5rem 1.5rem;
  box-shadow: var(--shadow);
}

.generated-crop {
  overflow: hidden;
  min-height: 0;
  border: 1px solid rgba(93, 82, 63, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.5);
}

.generated-crop img {
  display: block;
  width: 100%;
  min-height: 24rem;
  object-fit: cover;
  object-position: center;
}

.notebook-page {
  width: min(75%, 19rem);
  margin: 3rem auto;
  padding: 2rem;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--soft-shadow);
  transform: rotate(-5deg);
}

.notebook-page h2 {
  font-family: "Bradley Hand", "Marker Felt", cursive;
  font-size: 1.35rem;
  font-weight: 500;
  text-align: center;
}

.notebook-page p {
  margin: 0.7rem 0;
  font-family: "Bradley Hand", "Marker Felt", cursive;
  font-size: 1.12rem;
}

.notebook-page p::before {
  margin-right: 0.5rem;
  content: "[x]";
}

.principles-block h2 {
  max-width: 11ch;
  margin-bottom: 3.3rem;
  font-size: clamp(2.8rem, 4vw, 5rem);
  font-weight: 640;
  line-height: 0.98;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 3rem);
}

.principle-grid article {
  padding-top: 0.5rem;
}

.principle-grid span {
  display: block;
  margin-bottom: 1rem;
  color: var(--green);
  font-size: 1.6rem;
}

.principle-grid h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.principle-grid p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.page-shell {
  width: min(100%, 92rem);
  margin: 0 auto;
  padding: clamp(2.8rem, 6vw, 5.2rem) clamp(1.2rem, 4vw, 4rem);
}

.page-intro h1 {
  max-width: 13ch;
  margin-bottom: 1.2rem;
  font-size: clamp(3.3rem, 6vw, 6.2rem);
  font-weight: 660;
  line-height: 1;
}

.page-intro p:not(.breadcrumb) {
  max-width: 40rem;
  color: #55554f;
  font-size: 1.2rem;
}

.generated-page-art {
  overflow: hidden;
  margin: 2.6rem 0 0;
  border: 1px solid rgba(93, 82, 63, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.48);
  box-shadow: var(--soft-shadow);
}

.generated-page-art img {
  display: block;
  width: 100%;
  height: auto;
}

.checklist-art {
  max-height: 34rem;
}

.checklist-art img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.checklist-layout {
  display: grid;
  grid-template-columns: minmax(24rem, 1fr) minmax(19rem, 26rem);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-top: 2.8rem;
}

.stage-list {
  position: relative;
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding: 0 0 0 9rem;
  list-style: none;
}

.stage-list::before {
  position: absolute;
  top: 0;
  bottom: 2rem;
  left: 5rem;
  width: 2px;
  background: var(--green);
  content: "";
}

.stage-list li {
  position: relative;
}

.stage-list li:nth-child(even) .stage-row {
  margin-left: 2.9rem;
}

.stage-number {
  position: absolute;
  top: 50%;
  left: -5.45rem;
  z-index: 2;
  display: grid;
  width: 3.7rem;
  height: 3.7rem;
  place-items: center;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 680;
  transform: translateY(-50%);
}

.stage-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  align-items: center;
  min-height: 5.5rem;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--green);
  box-shadow: 0 5px 16px rgba(64, 54, 37, 0.04);
}

.stage-row h2 {
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
}

.stage-row p {
  margin: 0;
  color: #5c5b55;
  line-height: 1.45;
}

.public-check {
  position: relative;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
}

.public-check input {
  position: absolute;
  opacity: 0;
}

.public-check span {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--green);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.78);
}

.public-check input:checked + span {
  background:
    linear-gradient(135deg, transparent 44%, #fffdf8 45% 55%, transparent 56%),
    var(--green);
}

.gates-panel {
  position: sticky;
  top: 7rem;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  box-shadow: var(--soft-shadow);
}

.gates-panel h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 620;
}

.gates-panel > p {
  max-width: 15rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.5;
}

.gates-panel ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gates-panel li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(92, 84, 70, 0.18);
}

.gate-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green);
  font-size: 1.2rem;
  font-weight: 780;
}

.gates-panel strong,
.gates-panel small {
  display: block;
}

.gates-panel small {
  margin-top: 0.35rem;
  color: #5e5d57;
  font-size: 0.92rem;
  line-height: 1.45;
}

.templates-page {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) minmax(38rem, 1fr) minmax(22rem, 31rem);
  gap: clamp(1.4rem, 3vw, 3rem);
  width: min(100%, 96rem);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2rem);
}

.library-rail {
  position: sticky;
  top: 5.5rem;
  display: grid;
  grid-template-rows: 9rem auto 9rem 1fr;
  gap: 1.5rem;
  min-height: calc(100dvh - 7rem);
  color: var(--green);
}

.library-rail::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(40, 92, 66, 0.35);
  content: "";
}

.library-rail span {
  z-index: 1;
  align-self: end;
  justify-self: center;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green);
}

.library-rail span:nth-of-type(2),
.library-rail span:nth-of-type(3) {
  align-self: start;
}

.library-rail p {
  z-index: 1;
  align-self: center;
  margin: 0;
  padding-right: 0.8rem;
  background: var(--paper);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.55;
}

.library-main {
  min-width: 0;
}

.page-intro.compact h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.2rem, 5vw, 5.4rem);
}

.templates-art {
  max-height: 32rem;
}

.templates-art img {
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.template-controls {
  display: grid;
  grid-template-columns: repeat(4, auto) 1fr;
  gap: 0.8rem;
  align-items: center;
  margin: 2rem 0 2.2rem;
}

.filter-button {
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-weight: 620;
  cursor: pointer;
}

.filter-button.is-active {
  background: linear-gradient(180deg, #17633e, var(--green-deep));
  color: #fffdf7;
  box-shadow: var(--soft-shadow);
}

.search-box {
  justify-self: end;
  display: grid;
  grid-template-columns: auto minmax(10rem, 1fr);
  align-items: center;
  width: min(100%, 20rem);
  min-height: 3rem;
  padding: 0 1rem;
  border: 1px solid rgba(93, 82, 63, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.55);
  color: #76736b;
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.template-tiers {
  display: grid;
  gap: 1.6rem;
}

.template-tier header {
  margin-bottom: 0.8rem;
}

.template-tier h2 {
  margin-bottom: 0.2rem;
  font-size: 1.25rem;
  font-weight: 660;
}

.template-tier p {
  color: #5e5d57;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.template-grid.tier-two {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 44rem);
}

.template-card {
  display: grid;
  gap: 0.65rem;
  min-height: 11.2rem;
  padding: 0.8rem;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(64, 54, 37, 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.template-card:hover,
.template-card.is-selected {
  border-color: rgba(40, 92, 66, 0.72);
  box-shadow: var(--soft-shadow);
  transform: translateY(-1px);
}

.template-card strong {
  font-size: 0.92rem;
}

.template-card small {
  color: #66645d;
  line-height: 1.35;
}

.doc-thumb {
  display: block;
  min-height: 6.2rem;
  border: 1px solid rgba(93, 82, 63, 0.16);
  background:
    linear-gradient(#d8d1c4 0 1px, transparent 1px 1.4rem),
    linear-gradient(90deg, transparent 0 1rem, rgba(40, 92, 66, 0.22) 1rem 1.1rem, transparent 1.1rem),
    #fffdf8;
  background-size: 100% 1.4rem, 100% 100%, 100% 100%;
}

.doc-thumb.table {
  background:
    linear-gradient(#d8d1c4 0 1px, transparent 1px 1.35rem),
    linear-gradient(90deg, #d8d1c4 0 1px, transparent 1px 2.2rem),
    #fffdf8;
  background-size: 100% 1.35rem, 2.2rem 100%, 100% 100%;
}

.selected-template {
  position: sticky;
  top: 7rem;
  align-self: start;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--soft-shadow);
}

.panel-kicker {
  color: var(--ink);
  font-size: 0.78rem;
}

.selected-template h2 {
  margin-bottom: 1rem;
  font-size: 1.9rem;
  font-weight: 640;
}

.selected-template > p:not(.panel-kicker) {
  color: #575650;
  line-height: 1.5;
}

.preview-stack {
  position: relative;
  min-height: 0;
  margin: 1rem 0 1.4rem;
  padding: 1rem 1rem 1rem 1.4rem;
  border-left: 2px solid rgba(40, 92, 66, 0.55);
  background: rgba(255, 253, 248, 0.5);
}

.preview-stack::before,
.preview-stack::after {
  content: none;
}

.selected-template-art {
  overflow: hidden;
  margin: 1.8rem 0 1rem;
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.44);
}

.selected-template-art img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 18px 30px rgba(64, 54, 37, 0.13));
}

.preview-page {
  position: relative;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.preview-page h3 {
  margin-bottom: 0.7rem;
  color: var(--green);
  font-size: 1rem;
}

.preview-page ol {
  columns: 2;
  margin: 0;
  padding-left: 1.2rem;
}

.preview-page li {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 650;
}

.template-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 0 0 1.4rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(92, 84, 70, 0.18);
  border-bottom: 1px solid rgba(92, 84, 70, 0.18);
}

.template-meta dt {
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 760;
}

.template-meta dd {
  margin: 0.18rem 0 0;
  color: #5e5d57;
  font-size: 0.76rem;
}

.template-actions {
  display: grid;
  gap: 0.8rem;
}

.template-actions .button {
  width: 100%;
}

.use-note {
  margin-top: 1.5rem;
  padding: 1rem;
}

.use-note strong {
  color: var(--green);
}

.use-note p {
  margin: 0.4rem 0 0;
  color: #5f5d57;
  font-size: 0.9rem;
  line-height: 1.5;
}

.is-hidden {
  display: none;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 34rem;
  }

  .checklist-layout,
  .templates-page {
    grid-template-columns: 1fr;
  }

  .gates-panel,
  .selected-template,
  .library-rail {
    position: static;
  }

  .library-rail {
    display: none;
  }

  .template-grid,
  .template-grid.tier-two {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nav {
    justify-content: start;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero-copy {
    padding-left: 1.5rem;
  }

  .rhythm-line {
    left: 1.2rem;
  }

  .hero h1,
  .page-intro h1 {
    font-size: clamp(3.4rem, 16vw, 5rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .generated-visual {
    height: 20rem;
    min-height: 20rem;
  }

  .generated-visual img {
    object-position: 74% center;
  }

  .paper-sheet {
    right: auto;
    left: 1rem;
    width: 92%;
    min-height: 23rem;
  }

  .mini-process {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 1.4rem;
  }

  .mini-process li::after {
    display: none;
  }

  .side-panel,
  .gates-card {
    display: none;
  }

  .green-ledger {
    right: 0;
    width: 15rem;
    height: 15rem;
  }

  .sticky-note {
    left: 0;
    width: 12rem;
  }

  .process-strip ol,
  .below-hero,
  .principle-grid,
  .template-controls,
  .template-grid,
  .template-grid.tier-two {
    grid-template-columns: 1fr;
  }

  .process-strip li::after {
    display: none;
  }

  .stage-list {
    padding-left: 4.6rem;
  }

  .stage-list::before {
    left: 1.8rem;
  }

  .stage-number {
    left: -4.55rem;
  }

  .stage-list li:nth-child(even) .stage-row {
    margin-left: 0;
  }

  .stage-row {
    grid-template-columns: 1fr;
  }

  .public-check {
    justify-self: start;
  }

  .search-box {
    justify-self: stretch;
    width: 100%;
  }

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