:root {
  --paper: #f4efdf;
  --paper-deep: #e7ddc6;
  --ink: #242424;
  --graphite: #505050;
  --soft: #7a7568;
  --line: rgba(36, 36, 36, 0.2);
  --green: #5f7757;
  --green-dark: #314535;
  --chalk: #fffaf0;
  --shadow: rgba(39, 33, 22, 0.18);
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.58), transparent 34%),
    linear-gradient(rgba(43, 43, 43, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 43, 43, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 26px 26px, 26px 26px, auto;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(244, 239, 223, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
nav,
.button,
.proof-strip,
.feature-grid,
.castle-grid,
.checklist,
footer {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--chalk);
  box-shadow: 3px 3px 0 rgba(36, 36, 36, 0.13);
}

svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  font-size: 0.9rem;
  color: var(--graphite);
}

nav a {
  text-decoration-color: transparent;
  text-underline-offset: 6px;
}

nav a:hover,
nav a:focus-visible {
  text-decoration-color: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  padding: 104px clamp(18px, 4vw, 56px) 56px;
  border-bottom: 1px solid var(--line);
}

.hero-art {
  position: absolute;
  inset: 0;
  opacity: 0.86;
  pointer-events: none;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244, 239, 223, 0.92) 0%, rgba(244, 239, 223, 0.56) 43%, rgba(244, 239, 223, 0.18) 100%),
    linear-gradient(180deg, rgba(244, 239, 223, 0.12) 0%, rgba(244, 239, 223, 0.78) 96%);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.18) grayscale(1);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: center;
  gap: clamp(26px, 7vw, 96px);
  width: min(1180px, 100%);
  min-height: calc(94vh - 160px);
  margin: 0 auto;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  margin: 24px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.36rem);
  line-height: 1.55;
  color: #343434;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(36, 36, 36, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button svg {
  width: 20px;
  height: 20px;
}

.button:hover,
.button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(36, 36, 36, 0.16);
}

.button.primary {
  color: var(--chalk);
  background: var(--green-dark);
}

.button.ghost {
  background: rgba(255, 250, 240, 0.72);
}

.phone {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: min(100%, 340px);
  aspect-ratio: 0.49;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 38px;
  background: #262626;
  box-shadow: 18px 22px 0 rgba(49, 69, 53, 0.18), 0 24px 60px var(--shadow);
  transform: rotate(2deg);
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  padding: 18px;
  border-radius: 28px;
  background:
    linear-gradient(rgba(36, 36, 36, 0.04) 1px, transparent 1px),
    var(--chalk);
  background-size: 18px 18px;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  font: 800 0.78rem Inter, ui-sans-serif, system-ui, sans-serif;
}

.map-sketch {
  height: 37%;
  margin: 18px 0;
  color: var(--graphite);
}

.map-sketch svg {
  stroke-width: 2;
}

.map-sketch .route {
  stroke: var(--green);
  stroke-dasharray: 8 8;
}

.app-card {
  padding: 16px;
  border: 1.5px solid rgba(36, 36, 36, 0.34);
  border-radius: 8px;
  background: rgba(244, 239, 223, 0.76);
}

.app-card h2 {
  margin: 8px 0;
  font-size: 1.6rem;
  line-height: 1.02;
}

.app-card p {
  margin: 0;
  color: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.4;
}

.tag {
  font: 800 0.72rem Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--green-dark);
  text-transform: uppercase;
}

.mini-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.mini-list span {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 750;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-strip div {
  min-height: 118px;
  padding: 26px clamp(18px, 4vw, 46px);
  background: rgba(255, 250, 240, 0.56);
}

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

.proof-strip strong {
  margin-bottom: 7px;
  color: var(--green-dark);
}

.proof-strip span {
  color: var(--soft);
  line-height: 1.45;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(68px, 9vw, 120px) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 90px);
}

.section h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section p {
  color: var(--graphite);
  font-size: 1.04rem;
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article,
.castle-grid article {
  position: relative;
  min-height: 210px;
  padding: 22px;
  border: 1.5px solid rgba(36, 36, 36, 0.28);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.68);
  box-shadow: 5px 5px 0 rgba(36, 36, 36, 0.07);
}

.feature-grid article::before,
.castle-grid article::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(36, 36, 36, 0.16);
  border-radius: 5px;
  pointer-events: none;
}

.feature-grid svg {
  width: 34px;
  height: 34px;
  color: var(--green-dark);
}

.feature-grid h3,
.castle-grid h3 {
  margin: 18px 0 10px;
  font-size: 1.2rem;
  line-height: 1.18;
}

.feature-grid p,
.castle-grid p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
}

.castles {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2 {
  max-width: 720px;
}

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

.castle-number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  color: var(--green-dark);
  font-weight: 900;
}

.more-castles {
  width: fit-content;
  margin: 26px auto 0;
  padding: 12px 18px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
  transform: rotate(-1.4deg);
}

.more-castles::after {
  content: "";
  display: block;
  width: 88%;
  height: 9px;
  margin: 6px auto 0;
  border-bottom: 2px solid rgba(49, 69, 53, 0.58);
  border-radius: 50%;
  transform: rotate(0.8deg);
}

.notebook {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 470px);
  align-items: center;
  gap: clamp(30px, 6vw, 76px);
  border-top: 1px solid var(--line);
}

.notebook-copy {
  position: relative;
}

.notebook-copy::after {
  content: "";
  display: block;
  width: min(100%, 430px);
  height: 120px;
  margin-top: 28px;
  background:
    linear-gradient(135deg, transparent 47%, rgba(36, 36, 36, 0.32) 48%, transparent 50%),
    linear-gradient(25deg, transparent 35%, rgba(36, 36, 36, 0.2) 36%, transparent 38%);
  opacity: 0.45;
}

.checklist {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1.5px solid rgba(36, 36, 36, 0.28);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.66);
}

.checklist div {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: #343434;
  font-weight: 760;
}

.checklist span {
  position: relative;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--green-dark);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.58);
}

.checklist span::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--green-dark);
  border-bottom: 2px solid var(--green-dark);
  transform: rotate(-45deg);
  transform-origin: center;
}

.download {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto 56px;
  padding: clamp(44px, 7vw, 78px);
  text-align: center;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(rgba(36, 36, 36, 0.035) 1px, transparent 1px),
    rgba(255, 250, 240, 0.72);
  background-size: 24px 24px;
  box-shadow: 8px 8px 0 rgba(36, 36, 36, 0.11);
}

.download h2 {
  margin: 0 auto 28px;
  max-width: 700px;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--soft);
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .hero-content,
  .split,
  .notebook {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    min-height: 0;
  }

  .phone {
    justify-content: start;
  }

  .proof-strip,
  .castle-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: sticky;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 40px;
  }

  h1 {
    font-size: clamp(2.8rem, 18vw, 4.4rem);
  }

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

  .section-heading {
    display: block;
  }

  .phone-shell {
    width: min(100%, 300px);
    transform: none;
  }

  footer {
    flex-direction: column;
  }
}

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