:root {
  --ink: #153835;
  --ink-2: #28524c;
  --paper: #fffaf1;
  --paper-2: #f5ecdf;
  --mist: #dfeee8;
  --line: rgba(21, 56, 53, 0.18);
  --accent: #d6543f;
  --accent-dark: #a63b2d;
  --accent-light: #f0b4a9;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(17, 47, 43, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: rgba(255, 250, 241, 0.88);
  border-bottom: 1px solid rgba(21, 56, 53, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(21, 56, 53, 0.12);
  border-radius: 12px;
  background: var(--paper) url("./safehouse-icon.png") center / cover no-repeat;
  color: transparent;
  font-size: 0;
  box-shadow: 0 8px 18px rgba(21, 56, 53, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  min-width: 0;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent-dark);
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(214, 84, 63, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
button:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  box-shadow: 0 16px 36px rgba(166, 59, 45, 0.28);
}

button:disabled {
  cursor: progress;
  opacity: 0.68;
  transform: none;
}

.button.is-loading {
  pointer-events: none;
  opacity: 0.82;
}

.nav-links a.button,
.nav-links a.button:hover,
.nav-links a.button:focus-visible {
  color: var(--white);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button.secondary:hover {
  background: rgba(21, 56, 53, 0.06);
}

.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(28px, 5vw, 74px);
  padding: clamp(36px, 6vw, 78px) clamp(20px, 5vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.95) 0%, rgba(255, 250, 241, 0.82) 44%, rgba(223, 238, 232, 0.92) 100%),
    radial-gradient(circle at 88% 20%, rgba(214, 84, 63, 0.22), transparent 32%),
    var(--mist);
}

.hero-copy {
  min-width: 0;
  max-width: 720px;
  animation: rise 620ms ease both;
}

.kicker {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  max-width: 100%;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 8.7rem);
  max-width: 860px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 5rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.hero-subtitle {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--ink-2);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-price {
  margin: 18px 0 0;
  color: var(--ink);
  font-weight: 900;
}

.hero-price span {
  color: var(--ink-2);
  font-weight: 700;
}

.trust-line {
  margin-top: 24px;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 500px;
  display: grid;
  place-items: center;
  perspective: 1200px;
  animation: fadeScale 900ms ease 120ms both;
}

.book-wrap {
  position: relative;
  width: min(430px, 82vw);
  transform: rotateY(-11deg) rotateX(4deg);
  filter: drop-shadow(0 34px 50px rgba(21, 56, 53, 0.26));
  transition: transform 500ms ease;
}

.book-wrap img {
  position: relative;
  z-index: 1;
  border-radius: clamp(18px, 2.8vw, 32px);
}

.hero:hover .book-wrap {
  transform: rotateY(-5deg) rotateX(2deg) translateY(-5px);
}

.book-wrap::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 2% -6% 2% auto;
  width: 12%;
  background: linear-gradient(90deg, rgba(21, 56, 53, 0.08), rgba(21, 56, 53, 0.34));
  border-radius: 0 24px 24px 0;
  transform: translateX(42%);
}

section {
  padding: clamp(64px, 9vw, 124px) clamp(20px, 5vw, 72px);
}

section[id] {
  scroll-margin-top: 88px;
}

.section-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.section-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: clamp(1.06rem, 1.5vw, 1.25rem);
}

.proof {
  background: var(--ink);
  color: var(--paper);
}

.proof .kicker,
.lead-magnet .kicker {
  color: var(--accent-light);
}

.proof .section-lead,
.lead-magnet .section-lead {
  color: rgba(255, 250, 241, 0.9);
}

.audience-promise {
  background: var(--white);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.quick-item {
  border-top: 2px solid var(--accent);
  padding-top: 18px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
}

.quick-item p {
  color: var(--ink-2);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  background: rgba(255, 250, 241, 0.24);
}

.proof-item {
  padding: clamp(24px, 4vw, 42px);
  background: var(--ink);
}

.proof-number {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
}

.proof-item p {
  margin: 14px 0 0;
  color: rgba(255, 250, 241, 0.78);
}

.promise-grid,
.inside-grid,
.audience-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.promise-item,
.inside-item,
.audience-item,
.article-card {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}

.promise-item p,
.inside-item p,
.audience-item p,
.article-card p {
  color: var(--ink-2);
}

.flow {
  background: var(--paper-2);
}

.flow-list {
  display: grid;
  gap: 1px;
  margin-top: 48px;
  background: var(--line);
}

.flow-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: start;
  padding: clamp(24px, 4vw, 40px);
  background: var(--paper-2);
}

.flow-step strong {
  color: var(--accent-dark);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sample {
  background: var(--white);
}

.worksheet-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  margin-top: 48px;
}

.paper-preview {
  padding: clamp(24px, 4vw, 42px);
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid rgba(21, 56, 53, 0.12);
}

.paper-preview h3 {
  margin-bottom: 20px;
}

.check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid rgba(21, 56, 53, 0.12);
}

.box {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid var(--ink);
}

.lead-magnet {
  background: var(--ink);
  color: var(--paper);
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.signup-form {
  display: grid;
  gap: 12px;
  padding: 28px;
  background: rgba(255, 250, 241, 0.08);
  border: 1px solid rgba(255, 250, 241, 0.2);
}

label {
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(21, 56, 53, 0.18);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.lead-magnet input {
  border-color: transparent;
}

.fine-print {
  margin: 4px 0 0;
  color: rgba(255, 250, 241, 0.7);
  font-size: 0.88rem;
}

.checkout-section {
  background: var(--mist);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.58fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.checkout-layout > *,
.worksheet-preview > *,
.lead-layout > *,
.hero > * {
  min-width: 0;
}

.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin: 30px 0 0;
  color: var(--ink-2);
  font-weight: 800;
}

.price-line span {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
}

.checkout-panel {
  display: grid;
  gap: 22px;
  padding: clamp(26px, 4vw, 42px);
  background: var(--paper);
  box-shadow: var(--shadow);
  border-top: 6px solid var(--accent);
}

.checkout-panel h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
}

.checkout-panel h3::before {
  content: "";
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(21, 56, 53, 0.12);
  border-radius: 14px;
  background: var(--paper) url("./safehouse-icon.png") center / cover no-repeat;
  box-shadow: 0 10px 22px rgba(21, 56, 53, 0.12);
}

.offer-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-2);
}

.checkout-button {
  width: 100%;
}

.checkout-note {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.checkout-note a {
  color: var(--ink);
  font-weight: 800;
}

.access-page {
  min-height: calc(100svh - 154px);
  display: grid;
  align-items: center;
  background: var(--mist);
}

.access-panel {
  max-width: 780px;
  padding: clamp(34px, 6vw, 58px);
  background: var(--paper);
  box-shadow: var(--shadow);
  border-top: 6px solid var(--accent);
}

.access-panel h1 {
  font-size: clamp(3rem, 7vw, 6rem);
}

.access-panel .lead {
  margin: 24px 0 0;
  color: var(--ink-2);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.access-panel .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.access-panel .note {
  margin: 24px 0 0;
  color: var(--ink-2);
}

.access-request-form {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin: 32px 0 0;
}

.access-request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.form-message {
  min-height: 1.4em;
  margin: 0;
  color: var(--ink-2);
  font-size: 0.94rem;
}

.form-message.is-error {
  color: var(--accent-dark);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255, 250, 241, 0.72);
  background: var(--ink);
  font-size: 0.92rem;
}

.footer-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer-links a {
  color: rgba(255, 250, 241, 0.86);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--paper);
}

.policy-page {
  background: var(--paper);
}

.policy-page .section-inner {
  max-width: 820px;
}

.policy-page h1 {
  max-width: 760px;
}

.policy-page h2 {
  margin: 42px 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.policy-page p {
  max-width: 760px;
}

.blog-hero {
  padding: clamp(56px, 8vw, 116px) clamp(20px, 5vw, 72px);
  background: var(--mist);
}

.blog-hero .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  gap: 40px;
  align-items: end;
}

.blog-note {
  padding: 24px;
  background: var(--paper);
  border-left: 6px solid var(--accent);
}

.article-card {
  text-decoration: none;
  transition: transform 180ms ease, color 180ms ease;
}

.article-card:hover {
  transform: translateY(-4px);
  color: var(--accent-dark);
}

.article-meta {
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 86px) 20px;
}

.post h1 {
  font-size: clamp(2.7rem, 6vw, 5.8rem);
}

.post h2 {
  margin-top: 44px;
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.post p,
.post li {
  font-size: 1.08rem;
}

.post-cta {
  display: grid;
  gap: 14px;
  margin-top: 42px;
  padding: 28px;
  background: var(--mist);
  border-top: 6px solid var(--accent);
}

.post-cta strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.5vw, 2.3rem);
  line-height: 1.05;
}

.post-cta p {
  margin: 0;
}

.post-cta .button {
  width: fit-content;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.reveal {
  transition: opacity 620ms ease, transform 620ms ease;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }

  h1,
  h2,
  h3 {
    overflow-wrap: break-word;
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 16px;
    overflow-x: visible;
    padding-bottom: 4px;
    line-height: 1.2;
  }

  .nav-links .button {
    min-height: 44px;
    padding-inline: 18px;
  }

	  .hero,
	  .blog-hero .section-inner,
	  .worksheet-preview,
	  .lead-layout,
	  .checkout-layout {
	    grid-template-columns: 1fr;
	  }

  .hero {
    display: block;
    min-height: auto;
    width: 100%;
    max-width: 100vw;
  }

  .hero-copy,
  .hero-subtitle,
  .trust-line {
    width: 100%;
    max-width: 100%;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-visual {
    margin-top: 36px;
    min-height: 360px;
  }

  .checkout-panel {
    min-width: 0;
  }

  .checkout-button {
    min-height: 56px;
    padding: 12px 18px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .proof-grid,
  .promise-grid,
  .quick-grid,
  .inside-grid,
  .audience-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .flow-step {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 520px) {
  section {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1,
  h2 {
    font-size: clamp(2.45rem, 13vw, 3.3rem);
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 2.85rem);
  }

  .hero-copy,
  .hero-actions,
  .hero-subtitle,
  .trust-line {
    width: min(100%, calc(100vw - 56px));
    max-width: calc(100vw - 56px);
  }

  .hero .kicker {
    max-width: calc(100vw - 56px);
    overflow-wrap: break-word;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

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

  .post {
    max-width: 100%;
    overflow: hidden;
  }

  .post h1 {
    font-size: clamp(2.2rem, 10vw, 2.8rem);
    overflow-wrap: anywhere;
  }

  .checkout-panel {
    padding: 24px;
  }

  .nav-links a[href$="#proof"],
  .nav-links a[href$="#method"] {
    display: none;
  }

  .post-cta .button {
    width: 100%;
  }

  .price-line span {
    font-size: clamp(3.4rem, 18vw, 4.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
