:root {
  --ink: #1f3327;
  --ink-2: #294432;
  --sage: #5b7360;
  --paper: #faf6ec;
  --paper-2: #f1ead9;
  --pen: #c1443a;
  --pen-dark: #a63a31;
  --gold: #c79a3e;
  --line-light: rgba(31, 51, 39, 0.15);
  --line-dark: rgba(250, 246, 236, 0.16);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

h1,
h2,
h3 {
  font-family: "Lora", serif;
  margin: 0;
  line-height: 1.15;
}
.script {
  font-family: "Caveat", cursive;
}
.idx {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}
:focus-visible {
  outline: 2px solid var(--pen);
  outline-offset: 3px;
}

/* highlighter marker effect, used sparingly on key phrases */
.hl {
  background-image: linear-gradient(
    120deg,
    rgba(199, 154, 62, 0.38) 0%,
    rgba(199, 154, 62, 0.38) 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 42%;
  background-position: 0 78%;
  padding: 0 2px;
}

.section-tag {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

/* ---------- NAV ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 236, 0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-light);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}
.brand .name {
  font-family: "Lora", serif;
  font-weight: 700;
  font-size: 1.25rem;
}
.brand .tag {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--sage);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink-2);
}
.nav-links a:hover {
  color: var(--pen);
}
@media (max-width: 780px) {
  .nav-links {
    display: none;
  }
}

.btn {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 3px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.btn-pen {
  background: var(--pen);
  color: var(--paper);
}
.btn-pen:hover {
  background: var(--pen-dark);
  transform: translateY(-1px);
}
.btn-outline-dark {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline-dark:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-outline-light {
  border-color: rgba(250, 246, 236, 0.4);
  color: var(--paper);
}
.btn-outline-light:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ---------- HERO ---------- */
.hero {
  background: var(--paper);
  padding: 80px 0 70px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 37px,
    rgba(31, 51, 39, 0.05) 37px,
    rgba(31, 51, 39, 0.05) 38px
  );
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  font-weight: 700;
  margin-top: 14px;
}
.hero h1 em {
  font-style: italic;
  color: var(--pen);
}
.hero p.lede {
  font-size: 1.05rem;
  color: var(--sage);
  max-width: 48ch;
  margin-top: 20px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* marked-up passage panel — signature element */
.passage-panel {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 4px;
  box-shadow: 0 24px 50px -28px rgba(31, 51, 39, 0.35);
}
.passage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px dashed var(--line-light);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}
.passage-body {
  padding: 22px 22px 8px;
  position: relative;
}
.passage-body p {
  font-size: 0.98rem;
  color: var(--ink);
  margin: 0 0 14px;
}
.u {
  border-bottom: 2px solid var(--pen);
}
.circ {
  display: inline-block;
  border: 1.6px solid var(--pen);
  border-radius: 50%;
  padding: 0 6px;
}
.note {
  position: absolute;
  font-family: "Caveat", cursive;
  color: var(--pen);
  font-size: 1.05rem;
  transform: rotate(-3deg);
  line-height: 1.1;
}
.note-1 {
  top: 16px;
  right: 14px;
  width: 110px;
}
.note-2 {
  top: 98px;
  right: 0px;
  width: 130px;
}
.passage-foot {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px 16px;
  font-size: 0.78rem;
  color: var(--ink-2);
  font-weight: 600;
  border-top: 1px dashed var(--line-light);
}
.passage-foot span.tag {
  color: var(--pen);
}

/* ---------- SECTION SCAFFOLD ---------- */
section {
  padding: 80px 0;
}
.section-head {
  max-width: 660px;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
}
.section-head p {
  margin-top: 14px;
  color: var(--sage);
  font-size: 1rem;
}

/* ---------- SERVICES (marginalia-numbered) ---------- */
.services {
  background: var(--paper-2);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.note-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
@media (max-width: 760px) {
  .note-grid {
    grid-template-columns: 1fr;
  }
}
.note-card {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: 4px;
  padding: 26px 26px;
}
.note-card .circle-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--pen);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pen);
}
.note-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 14px;
}
.note-card p {
  margin-top: 8px;
  color: var(--sage);
  font-size: 0.95rem;
}

/* ---------- WHY (highlighter list) ---------- */
.why {
  background: var(--paper);
}
.why-list {
  display: grid;
  gap: 22px;
}
.why-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-row .mark {
  font-family: "Caveat", cursive;
  font-size: 1.6rem;
  color: var(--pen);
  line-height: 1;
  flex: none;
  width: 28px;
}
.why-row p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-2);
  max-width: 66ch;
}

/* ---------- APP SECTION ---------- */
.app-section {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.app-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
  .app-grid > *:first-child {
    order: 2;
  }
}

.dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--paper);
  background: var(--pen);
  padding: 7px 12px;
  border-radius: 3px;
  margin-bottom: 5px;
}
.app-section h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: var(--paper);
}
.app-section .lede {
  color: rgba(250, 246, 236, 0.72);
  margin-top: 16px;
  max-width: 50ch;
}

.feature-list {
  margin-top: 28px;
  display: grid;
  gap: 0;
}
.feature-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px dashed var(--line-dark);
}
.feature-item:last-child {
  border-bottom: 1px dashed var(--line-dark);
}
.feature-item .script-num {
  font-family: "Caveat", cursive;
  color: var(--gold);
  font-size: 1.4rem;
  flex: none;
  width: 30px;
}
.feature-item h3 {
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper);
}
.feature-item p {
  color: rgba(250, 246, 236, 0.6);
  font-size: 0.88rem;
  margin-top: 4px;
}

.safety-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.safety-badge {
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  border: 1px solid rgba(250, 246, 236, 0.28);
  color: rgba(250, 246, 236, 0.85);
  padding: 7px 11px;
  border-radius: 3px;
}

.app-cta-row {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(250, 246, 236, 0.3);
  padding: 11px 18px;
  border-radius: 3px;
  color: rgba(250, 246, 236, 0.45);
  font-size: 0.78rem;
  cursor: default;
}
.store-badge .top {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}
.store-badge .bottom {
  display: block;
  font-size: 0.9rem;
  color: rgba(250, 246, 236, 0.7);
  font-weight: 700;
}

/* phone mockup */
.phone-wrap {
  display: flex;
  justify-content: center;
}
.phone {
  width: 260px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  position: relative;
}
.phone-ribbon {
  position: absolute;
  top: 22px;
  right: -40px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 42px;
  transform: rotate(40deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.phone-screen {
  background: var(--ink);
  border-radius: 10px;
  padding: 16px 14px 18px;
  min-height: 360px;
}
.phone-title {
  font-family: "Lora", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 12px;
}
.phone-menu {
  display: grid;
  gap: 8px;
}
.phone-menu-item {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  padding: 11px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.phone-menu-item span.label {
  font-size: 0.74rem;
  color: var(--paper);
  font-weight: 500;
}
.phone-menu-item span.tag {
  font-family: "Caveat", cursive;
  font-size: 0.85rem;
  color: var(--gold);
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--paper-2);
  text-align: center;
}
.contact .wrap {
  max-width: 760px;
}
.contact h2 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 700;
}
.contact p.lede {
  color: var(--sage);
  max-width: 52ch;
  margin: 18px auto 0;
  font-size: 1.02rem;
}
.contact-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.contact-details {
  margin-top: 52px;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 34px;
  border-top: 1px solid var(--line-light);
  text-align: left;
}
.contact-details div {
  max-width: 220px;
}
.contact-details .idx {
  margin-bottom: 8px;
}
.contact-details p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  color: rgba(250, 246, 236, 0.55);
  padding: 32px 0;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
}
.footer a {
  text-decoration: none;
  color: rgba(250, 246, 236, 0.55);
}
.footer a:hover {
  color: var(--paper);
}
.footer-links {
  display: flex;
  gap: 20px;
}
