:root {
  color-scheme: light;
  --ink: #1c2528;
  --muted: #66706f;
  --line: #d8ded9;
  --paper: #fffdf8;
  --surface: #f6f8f2;
  --surface-strong: #e7f1e9;
  --brand: #236b5c;
  --brand-dark: #184a42;
  --accent: #e66f55;
  --sun: #f0c857;
  --sky: #7eb6c8;
  --shadow: 0 22px 70px rgba(24, 74, 66, 0.16);
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(126, 182, 200, 0.22), transparent 34%),
    linear-gradient(315deg, rgba(230, 111, 85, 0.12), transparent 32%),
    var(--surface);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 3vw, 40px);
  border-bottom: 1px solid rgba(28, 37, 40, 0.08);
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand-dark);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price {
  color: var(--brand-dark);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
  min-height: calc(100vh - 67px);
  padding: clamp(18px, 3vw, 40px);
}

.input-pane,
.preview-pane {
  min-width: 0;
}

.pane-heading {
  max-width: 700px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.45rem, 4.6vw, 4.9rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.96;
}

h1 span {
  display: inline;
}

h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.guide-form {
  display: grid;
  gap: 14px;
}

.hero-copy {
  max-width: 610px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.value-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.value-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(35, 107, 92, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--brand-dark);
  font-size: 0.84rem;
  font-weight: 900;
}

.offer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(35, 107, 92, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(35, 107, 92, 0.1), transparent 46%),
    rgba(255, 253, 248, 0.92);
  box-shadow: 0 18px 50px rgba(24, 74, 66, 0.1);
}

.offer-preview {
  position: relative;
  display: none;
  overflow: hidden;
  min-height: 150px;
  border-radius: var(--radius);
  background: var(--brand-dark);
}

.offer-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.offer-preview span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 7px 9px;
  border-radius: 6px;
  background: rgba(24, 74, 66, 0.88);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.offer-panel h2 {
  max-width: 520px;
  color: var(--brand-dark);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.offer-panel p:not(.eyebrow) {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.assurance-copy {
  padding-top: 10px;
  color: var(--brand-dark) !important;
  font-weight: 800;
}

.assurance-copy a,
.guarantee-panel a,
.faq-list a,
.site-footer a,
.legal-body a {
  color: var(--brand-dark);
}

.form-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(28, 37, 40, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 10px 34px rgba(24, 74, 66, 0.06);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title span {
  min-width: max-content;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input,
select {
  min-height: 42px;
  padding: 9px 11px;
}

textarea {
  resize: vertical;
  padding: 11px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(35, 107, 92, 0.15);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 6px 0 0;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.primary-button {
  padding: 0 18px;
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 12px 28px rgba(24, 74, 66, 0.18);
}

.primary-button:hover {
  background: #102f2b;
}

.primary-button.small {
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.secondary-button {
  padding: 0 16px;
  border-color: rgba(28, 37, 40, 0.16);
  background: #fff;
  color: var(--brand-dark);
}

.ghost-button {
  min-height: 36px;
  padding: 0 12px;
  border-color: rgba(35, 107, 92, 0.18);
  background: rgba(255, 255, 255, 0.66);
  color: var(--brand-dark);
  white-space: nowrap;
}

.icon-button {
  width: 36px;
  min-height: 36px;
  padding: 0;
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.status {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.preview-pane {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
}

.preview-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(28, 37, 40, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
}

.preview-toolbar p:not(.eyebrow) {
  max-width: 360px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.preview-shell {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(28, 37, 40, 0.12);
  border-radius: var(--radius);
  background: #dfe4df;
  box-shadow: var(--shadow);
}

.pdf-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  min-height: 58px;
  min-width: 0;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(28, 37, 40, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 242, 0.92));
}

.pdf-file {
  display: flex;
  align-items: center;
  flex: 1 1 220px;
  min-width: 0;
  gap: 10px;
}

.pdf-file strong,
.pdf-file small {
  display: block;
}

.pdf-file strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.pdf-file small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
}

.pdf-icon {
  display: grid;
  width: 34px;
  height: 38px;
  place-items: center;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 8px 20px rgba(230, 111, 85, 0.18);
}

.conversion-ribbon {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(24, 74, 66, 0.88);
  color: #fff;
  box-shadow: 0 12px 32px rgba(24, 74, 66, 0.18);
}

.conversion-ribbon span,
.conversion-ribbon strong {
  font-size: 0.78rem;
  line-height: 1.1;
}

.conversion-ribbon strong {
  color: var(--sun);
}

.guide-preview {
  --pdf-page-width: 816px;
  --pdf-page-height: 1056px;
  --pdf-frame-width: 441px;
  --pdf-frame-height: 570px;
  --pdf-scale: 0.54;
  display: grid;
  justify-items: center;
  gap: 28px;
  min-width: 0;
  max-height: calc(100vh - 262px);
  min-height: 580px;
  overflow: auto;
  padding: 28px clamp(18px, 3vw, 34px) 34px;
  background:
    linear-gradient(90deg, rgba(28, 37, 40, 0.05) 1px, transparent 1px) center / 22px 22px,
    #dfe4df;
}

.pdf-page-frame {
  width: var(--pdf-frame-width);
  height: var(--pdf-frame-height);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(28, 37, 40, 0.24);
}

.guide-page {
  position: relative;
  min-height: 360px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(28, 37, 40, 0.14);
  border-top: 8px solid var(--guide-accent, rgba(35, 107, 92, 0.78));
  border-radius: 2px;
  background:
    linear-gradient(145deg, var(--guide-wash, rgba(126, 182, 200, 0.12)), transparent 36%),
    linear-gradient(315deg, rgba(230, 111, 85, 0.08), transparent 34%),
    var(--paper);
}

.pdf-page-frame .guide-page {
  width: var(--pdf-page-width);
  min-height: var(--pdf-page-height);
  padding: 33px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: scale(var(--pdf-scale));
  transform-origin: top left;
}

.guide-page-content {
  position: relative;
  z-index: 1;
}

.guide-theme-concierge {
  --guide-accent: #a66f3e;
  --guide-label: "Boutique concierge";
  --guide-panel: rgba(240, 200, 87, 0.14);
  --guide-wash: rgba(240, 200, 87, 0.13);
}

.guide-theme-field {
  --guide-accent: #236b5c;
  --guide-label: "Field guide";
  --guide-panel: rgba(35, 107, 92, 0.09);
  --guide-wash: rgba(126, 182, 200, 0.12);
}

.guide-theme-minimal {
  --guide-accent: #1c2528;
  --guide-label: "Minimal modern";
  --guide-panel: rgba(28, 37, 40, 0.07);
  --guide-wash: rgba(28, 37, 40, 0.05);
}

.guide-theme-family {
  --guide-accent: #3d7f91;
  --guide-label: "Family easy mode";
  --guide-panel: rgba(126, 182, 200, 0.16);
  --guide-wash: rgba(126, 182, 200, 0.15);
}

.guide-theme-local {
  --guide-accent: #e66f55;
  --guide-label: "Local insider";
  --guide-panel: rgba(230, 111, 85, 0.12);
  --guide-wash: rgba(230, 111, 85, 0.1);
}

.guide-page:not(.cover-page)::before {
  content: var(--guide-label, "Staybook field guide");
  position: absolute;
  top: 17px;
  right: 24px;
  color: rgba(24, 74, 66, 0.34);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.locked .guide-page::after {
  content: "PREVIEW";
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: rgba(28, 37, 40, 0.12);
  font-size: clamp(1.9rem, 6vw, 4rem);
  font-weight: 900;
  pointer-events: none;
}

.cover-page {
  display: grid;
  align-content: end;
  border-top: 0;
  color: #fff;
  overflow: hidden;
  background: var(--brand-dark);
}

.cover-page::before {
  content: none;
}

.cover-page-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-page .guide-kicker,
.cover-page h2,
.cover-page p {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.guide-kicker {
  margin: 0 0 10px;
  color: var(--guide-accent, var(--accent));
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cover-page .guide-kicker {
  color: var(--sun);
}

.guide-page h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
}

.guide-page h3 {
  margin: 20px 0 8px;
  color: var(--brand-dark);
  font-size: 0.95rem;
}

.guide-page p {
  margin: 0 0 12px;
}

.guide-page ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.guide-page li {
  position: relative;
  padding-left: 18px;
}

.guide-page li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--guide-accent, var(--accent));
}

.guide-footer {
  position: absolute;
  right: clamp(20px, 4vw, 34px);
  bottom: clamp(18px, 3vw, 28px);
  left: clamp(20px, 4vw, 34px);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(24, 74, 66, 0.22);
  color: rgba(24, 74, 66, 0.62);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.proof-grid div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(28, 37, 40, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.82);
}

.proof-grid strong,
.proof-grid span {
  display: block;
}

.proof-grid strong {
  color: var(--brand-dark);
  font-size: 0.88rem;
}

.proof-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.marketing-band {
  padding: clamp(34px, 6vw, 74px) clamp(18px, 4vw, 52px);
  border-top: 1px solid rgba(28, 37, 40, 0.08);
  background: var(--paper);
}

.marketing-band.alt {
  background:
    linear-gradient(135deg, rgba(126, 182, 200, 0.14), transparent 38%),
    var(--surface);
}

.marketing-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-copy {
  max-width: 720px;
}

.section-copy h2 {
  max-width: 680px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3.15rem);
  line-height: 1;
}

.section-copy p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.benefit-grid,
.style-grid,
.resource-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.style-grid,
.resource-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.benefit-grid article,
.style-grid article,
.resource-grid a,
.faq-list details {
  min-width: 0;
  border: 1px solid rgba(28, 37, 40, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 14px 38px rgba(24, 74, 66, 0.07);
}

.benefit-grid article,
.style-grid article,
.resource-grid a {
  padding: 18px;
}

.benefit-grid strong,
.benefit-grid span,
.style-grid strong,
.style-grid span,
.resource-grid strong,
.resource-grid span,
.resource-grid small {
  display: block;
}

.benefit-grid strong,
.style-grid strong,
.resource-grid strong,
.faq-list summary {
  color: var(--brand-dark);
  font-weight: 900;
}

.benefit-grid span,
.style-grid span,
.resource-grid small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-grid a {
  color: inherit;
  text-decoration: none;
}

.resource-grid a:hover,
.resource-grid a:focus-visible {
  border-color: rgba(35, 107, 92, 0.34);
  box-shadow: 0 18px 44px rgba(24, 74, 66, 0.11);
}

.resource-grid span {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sample-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: center;
}

.sample-link {
  display: grid;
  gap: 8px;
  min-height: 180px;
  align-content: end;
  padding: 22px;
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(24, 74, 66, 0.18), rgba(24, 74, 66, 0.92)),
    url("samples/staybook-studio-sample.pdf.png") center top / cover;
  box-shadow: var(--shadow);
}

.sample-link span {
  color: var(--sun);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sample-link strong {
  max-width: 260px;
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1;
}

.what-you-get {
  display: grid;
  gap: 26px;
}

.pdf-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pdf-screenshot-grid figure {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.pdf-screenshot-grid img {
  display: block;
  width: 100%;
  border: 1px solid rgba(28, 37, 40, 0.14);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 20px 50px rgba(24, 74, 66, 0.12);
}

.pdf-screenshot-grid figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.guarantee-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(35, 107, 92, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(240, 200, 87, 0.16), transparent 44%),
    rgba(255, 253, 248, 0.92);
  box-shadow: 0 18px 50px rgba(24, 74, 66, 0.1);
}

.guarantee-panel h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  line-height: 1;
}

.guarantee-panel p:not(.eyebrow) {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 52px);
  border-top: 1px solid rgba(28, 37, 40, 0.1);
  background: var(--paper);
  color: var(--muted);
}

.site-footer div,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.site-footer strong {
  color: var(--brand-dark);
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.faq-list details {
  padding: 16px 18px;
}

.faq-list summary {
  cursor: pointer;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.resource-main {
  background: var(--paper);
}

.resource-hero {
  padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 52px);
  background:
    linear-gradient(135deg, rgba(126, 182, 200, 0.18), transparent 38%),
    linear-gradient(315deg, rgba(230, 111, 85, 0.12), transparent 34%),
    var(--surface);
}

.resource-hero-inner,
.resource-content,
.resource-cta {
  width: min(920px, 100%);
  margin: 0 auto;
}

.resource-hero h1 {
  max-width: 850px;
}

.resource-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.resource-content {
  display: grid;
  gap: 28px;
  padding: clamp(34px, 6vw, 72px) 18px;
}

.resource-section {
  display: grid;
  gap: 14px;
}

.resource-section h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.05;
}

.resource-section h3 {
  margin: 10px 0 0;
  color: var(--brand-dark);
  font-size: 1.05rem;
}

.resource-section p,
.resource-section li {
  color: var(--muted);
}

.resource-section p {
  margin: 0;
}

.resource-section ul,
.resource-section ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.template-card {
  padding: 18px;
  border: 1px solid rgba(28, 37, 40, 0.1);
  border-radius: var(--radius);
  background: rgba(246, 248, 242, 0.72);
}

.template-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
}

.resource-cta-band {
  padding: clamp(34px, 6vw, 72px) 18px;
  background: var(--brand-dark);
  color: #fff;
}

.resource-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.resource-cta h2 {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
}

.resource-cta p {
  max-width: 650px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.resource-cta .primary-button {
  background: var(--sun);
  color: var(--ink);
}

.legal-main {
  background: var(--paper);
}

.legal-hero {
  padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 52px);
  background:
    linear-gradient(135deg, rgba(126, 182, 200, 0.18), transparent 38%),
    linear-gradient(315deg, rgba(230, 111, 85, 0.12), transparent 34%),
    var(--surface);
}

.legal-content {
  width: min(880px, 100%);
  margin: 0 auto;
}

.legal-hero h1 {
  max-width: 800px;
}

.legal-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.legal-body {
  display: grid;
  gap: 28px;
  padding: clamp(34px, 6vw, 72px) 18px;
}

.legal-body section {
  display: grid;
  gap: 10px;
}

.legal-body h2 {
  color: var(--brand-dark);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.05;
}

.legal-body p {
  margin: 0;
  color: var(--muted);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.meta-item {
  padding: 12px;
  border-left: 4px solid var(--guide-accent, var(--accent));
  background: var(--guide-panel, rgba(35, 107, 92, 0.08));
}

.meta-item strong {
  display: block;
  color: var(--brand-dark);
  font-size: 0.77rem;
  text-transform: uppercase;
}

.setup-dialog {
  width: min(520px, calc(100vw - 32px));
  border: 1px solid rgba(28, 37, 40, 0.14);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.setup-dialog::backdrop {
  background: rgba(28, 37, 40, 0.42);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.setup-dialog code {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(126, 182, 200, 0.22);
}

#printRoot {
  display: none;
}

@media (max-width: 1040px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .preview-pane {
    position: static;
  }

  .guide-preview {
    --pdf-frame-width: 441px;
    --pdf-frame-height: 570px;
    --pdf-scale: 0.54;
    max-height: none;
  }

  .offer-panel {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) auto;
  }

  .offer-preview {
    display: block;
  }

  .proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .benefit-grid,
  .style-grid,
  .resource-grid,
  .pdf-screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .workspace {
    display: block;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    padding: 16px;
  }

  .input-pane,
  .preview-pane,
  .pane-heading,
  .guide-form,
  .form-section,
  .offer-panel,
  .preview-shell,
  .proof-grid {
    width: 100%;
    max-width: 100%;
  }

  .pane-heading,
  .hero-copy,
  .value-row,
  .guide-form,
  .form-section,
  .offer-panel,
  .preview-pane {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .offer-panel h2,
  .offer-panel p:not(.eyebrow),
  .offer-preview {
    width: 100%;
    max-width: 100%;
  }

  .topbar,
  .topbar-actions,
  .preview-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions,
  .preview-actions {
    justify-content: start;
  }

  .field-grid.two,
  .meta-grid,
  .proof-grid,
  .offer-panel,
  .benefit-grid,
  .style-grid,
  .resource-grid,
  .resource-cta,
  .sample-band,
  .pdf-screenshot-grid,
  .guarantee-panel {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .offer-panel .primary-button {
    width: 100%;
  }

  .pane-heading {
    max-width: 100%;
  }

  h1 {
    max-width: calc(100vw - 32px);
    font-size: clamp(1.55rem, 7.6vw, 2.05rem);
    line-height: 1.05;
    text-wrap: balance;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  h1 span {
    display: block;
  }

  .hero-copy {
    max-width: calc(100vw - 32px);
    font-size: 1rem;
  }

  .value-row {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .offer-panel {
    overflow: hidden;
  }

  .offer-panel h2 {
    font-size: 1.12rem;
  }

  .guide-preview {
    --pdf-frame-width: 318px;
    --pdf-frame-height: 412px;
    --pdf-scale: 0.39;
    min-height: 440px;
    padding: 18px;
  }

  .conversion-ribbon {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

@media print {
  @page {
    size: letter;
    margin: 0;
  }

  body {
    width: 8.5in;
    margin: 0;
    background: var(--paper);
  }

  body > *:not(#printRoot) {
    display: none !important;
  }

  #printRoot {
    display: block;
    width: 8.5in;
  }

  .print-book {
    display: block;
    width: 8.5in;
    margin: 0;
    color: #1c2528;
    font-family: var(--font);
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .print-book .guide-page {
    width: 8.5in;
    height: 10.82in;
    min-height: 0;
    max-height: 10.82in;
    overflow: hidden;
    padding: 0.34in 0.34in 0.72in;
    break-after: page;
    break-inside: avoid;
    page-break-after: always;
    page-break-inside: avoid;
    border: 0;
    border-top: 0.08in solid var(--guide-accent, var(--accent));
    border-radius: 0;
    background: var(--paper) !important;
    box-shadow: none;
  }

  .print-book .cover-page {
    color: #fff;
    overflow: visible;
    border-top: 0;
    background: var(--brand-dark) !important;
  }

  .print-book .cover-page::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.18in;
    left: 0;
    height: 0.18in;
    background: var(--brand-dark);
  }

  .print-book .guide-page:not(.cover-page)::before {
    color: rgba(24, 74, 66, 0.34);
  }

  .print-book .cover-page-image {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .print-book .guide-footer {
    right: 0.34in;
    bottom: 0.3in;
    left: 0.34in;
    z-index: 2;
  }

  .print-book .meta-item,
  .print-book .proof-grid div,
  .print-book .resource-card,
  .print-book .style-card {
    background: var(--paper) !important;
  }

  .print-book .guide-page:last-child {
    page-break-after: auto;
  }
}
