/* CrewMemo website and paperwork pages. Calm palette: cream, sage, forest, a touch of gold. */
@font-face {
  font-family: Fraunces;
  src: url(/fonts/fraunces-latin-400-normal.woff2) format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url(/fonts/fraunces-latin-600-normal.woff2) format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url(/fonts/fraunces-latin-400-italic.woff2) format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Fraunces;
  src: url(/fonts/fraunces-latin-600-italic.woff2) format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url(/fonts/dm-sans-latin-400-normal.woff2) format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url(/fonts/dm-sans-latin-500-normal.woff2) format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url(/fonts/dm-sans-latin-600-normal.woff2) format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --cream: #f4f1e8;
  --cream2: #ebe6d7;
  --paper: #fbfaf5;
  --sage: #a9bca3;
  --sage2: #cfdac8;
  --moss: #6f8d6e;
  --moss-ink: #476546;
  --forest: #1f3d33;
  --forest2: #163028;
  --ink: #1d2a25;
  --muted: #5b6a62;
  --gold: #c9a45c;
  --gold2: #efdfb8;
  --line: rgba(31, 61, 51, 0.12);
  --line2: rgba(31, 61, 51, 0.2);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 28px;
  --shadow: 0 1px 2px rgba(22, 48, 40, 0.06), 0 18px 50px -18px rgba(22, 48, 40, 0.28);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font:
    400 17px/1.6 'DM Sans',
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
  color: var(--forest);
}
h1 em,
h2 em {
  font-style: italic;
  color: var(--moss);
}
p {
  text-wrap: pretty;
}
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* buttons and small parts */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  background: var(--forest);
  color: #f7f4ea;
  font:
    600 16px/1 'DM Sans',
    sans-serif;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 1px 2px rgba(22, 48, 40, 0.2),
    0 10px 24px -10px rgba(22, 48, 40, 0.55);
  transition:
    transform 0.16s var(--ease),
    background 0.2s;
}
.btn:hover {
  background: var(--forest2);
}
.btn:active {
  transform: scale(0.97);
}
.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.btn-sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}
.btn-wide {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-ink);
}
.eyebrow.light {
  color: var(--gold2);
}
.small {
  font-size: 14px;
  color: var(--muted);
}
.link-soft {
  color: var(--forest);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line2);
  padding-bottom: 2px;
}
.link-soft:hover {
  border-color: var(--forest);
}
.glass {
  background: rgba(251, 250, 245, 0.74);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

/* header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(244, 241, 232, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.top.scrolled {
  border-color: var(--line);
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font:
    600 21px/1 Fraunces,
    serif;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.mark-dot {
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 4px;
  background: radial-gradient(circle at 35% 30%, #d9e6d0, var(--moss) 70%);
}
.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover {
  color: var(--forest);
}

/* hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 64px) clamp(60px, 8vw, 110px);
  max-width: 1280px;
  margin: 0 auto;
}
.hero-light {
  position: absolute;
  inset: -10% -20% auto auto;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(239, 223, 184, 0.75),
    rgba(207, 218, 200, 0.35) 45%,
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(42px, 5.6vw, 82px);
  line-height: 1;
  margin-bottom: 24px;
}
.hero h1 em {
  white-space: nowrap;
}
.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--muted);
  max-width: 33em;
  margin: 0 0 32px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
}
.facts li {
  font-size: 14px;
  color: var(--forest);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}
.hero-art {
  position: relative;
  min-height: 560px;
}
.arch {
  position: absolute;
  right: 0;
  top: 0;
  width: min(400px, 86%);
  height: 520px;
  border-radius: 200px 200px 32px 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.arch-scene {
  width: 100%;
  height: 100%;
}
.sun {
  transform-origin: 200px 200px;
  animation: breathe 12s ease-in-out infinite;
}
.mist {
  animation: drift 26s ease-in-out infinite alternate;
}
.m2 {
  animation-duration: 34s;
  animation-direction: alternate-reverse;
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}
@keyframes drift {
  from {
    transform: translateX(-22px);
  }
  to {
    transform: translateX(26px);
  }
}
.memo {
  position: absolute;
  left: 0;
  bottom: 40px;
  width: min(340px, 82%);
  padding: 22px 22px 18px;
  border-radius: var(--r);
}
.memo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--forest);
  background: var(--sage2);
  padding: 5px 11px;
  border-radius: 999px;
}
.memo-time {
  font-size: 12px;
  color: var(--muted);
}
.memo-title {
  font:
    400 22px/1.2 Fraunces,
    serif;
  color: var(--forest);
  margin: 0 0 6px;
}
.memo-body {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}
.memo-progress {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}
.bar {
  height: 8px;
  border-radius: 99px;
  background: var(--cream2);
  overflow: hidden;
}
.fill {
  display: block;
  height: 100%;
  width: 66%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--moss), var(--sage));
  transform-origin: left;
  animation: grow 2.4s var(--ease) 0.6s both;
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.memo-count {
  font-size: 12px;
  color: var(--muted);
}
.memo-people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.memo-people li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink);
}
.av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: none;
}
.a1 {
  background: linear-gradient(135deg, #e6c9a6, #c79c76);
}
.a2 {
  background: linear-gradient(135deg, #b9cdb4, #7f9c7c);
}
.a3 {
  background: linear-gradient(135deg, #d6d0e4, #a29bbd);
}
.tick {
  margin-left: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--moss);
  position: relative;
}
.tick::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.dot-wait {
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 4px;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(201, 164, 92, 0.45);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(201, 164, 92, 0);
  }
}
.sig {
  position: absolute;
  right: -6px;
  bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
}
.sig svg {
  width: 34px;
  height: 34px;
}
.sig-ring {
  fill: var(--sage2);
  stroke: none;
}
.sig-line {
  fill: none;
  stroke: var(--forest);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 2.6s var(--ease) 1.4s forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* sections */
section {
  scroll-margin-top: 80px;
}
.section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2,
.demo-copy h2,
.signup-copy h2,
.price-card h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.04;
}
.how,
.doors,
.faq {
  padding: clamp(60px, 9vw, 120px) clamp(20px, 5vw, 64px);
  max-width: 1200px;
  margin: 0 auto;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: s;
}
.step {
  position: relative;
  padding: 34px 30px 30px;
  border-radius: var(--r);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(22, 48, 40, 0.04);
}
.step:nth-child(2) {
  transform: translateY(28px);
}
.step-n {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50% 50% 50% 10px;
  background: var(--sage2);
  font:
    600 19px/1 Fraunces,
    serif;
  color: var(--forest);
  margin-bottom: 22px;
}
.step h3 {
  font-size: 25px;
  margin-bottom: 10px;
}
.step p,
.door p {
  margin: 0;
  color: var(--muted);
}

.demo {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px);
  max-width: 1280px;
  margin: 0 auto;
}
.demo-frame {
  border-radius: var(--r);
  padding: 12px;
  background: linear-gradient(160deg, #fff, var(--cream2));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.demo-frame video {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: calc(var(--r) - 12px);
  background: var(--forest);
}
.demo-copy p:not(.eyebrow) {
  color: var(--muted);
  margin: 18px 0 0;
}

.door-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.door {
  padding: 40px 30px 34px;
  border-radius: 160px 160px var(--r) var(--r);
  background: linear-gradient(180deg, var(--paper), #f6f3ea);
  border: 1px solid var(--line);
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.door h3 {
  font-size: 30px;
  margin-bottom: 12px;
}
.door-gold {
  background: linear-gradient(180deg, #fbf3df, var(--gold2));
  border-color: rgba(201, 164, 92, 0.4);
}

.trust {
  padding: clamp(20px, 3vw, 40px) clamp(12px, 3vw, 40px);
}
.trust-inner {
  background: radial-gradient(120% 90% at 85% 0%, #2c5446 0%, var(--forest) 45%, var(--forest2) 100%);
  color: #e8efe6;
  border-radius: clamp(28px, 4vw, 48px);
  padding: clamp(56px, 8vw, 110px) clamp(22px, 5vw, 72px);
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.trust-inner::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  right: -140px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 223, 184, 0.22), transparent 65%);
  animation: breathe 14s ease-in-out infinite;
}
.trust h2 {
  color: #f4f1e8;
}
.trust h2 em {
  color: var(--gold2);
}
.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  position: relative;
}
.trust-list li {
  padding: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.trust-list h3 {
  color: #f4f1e8;
  font-size: 22px;
  margin-bottom: 8px;
}
.trust-list p {
  margin: 0;
  color: #c3d2c4;
}
.trust-links {
  text-align: center;
  margin: 36px 0 0;
  color: #c3d2c4;
  position: relative;
}
.trust-links a {
  color: #f4f1e8;
}

.pricing {
  padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 64px) 20px;
}
.price-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(40px, 5vw, 58px) clamp(24px, 4vw, 52px);
  border-radius: 240px 240px var(--r) var(--r);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.price {
  margin: 6px 0 10px;
  font-variant-numeric: tabular-nums;
}
.price-amt {
  font-size: clamp(54px, 7vw, 76px);
  color: var(--forest);
}
.price-per {
  display: block;
  font:
    500 16px/1.4 'DM Sans',
    sans-serif;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 6px;
}
.price-note {
  color: var(--muted);
  margin: 0 0 26px;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px;
  text-align: left;
  max-width: 380px;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 32px;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sage2);
}
.ticks li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 7px;
  width: 5px;
  height: 9px;
  border: solid var(--forest);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
details {
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0 24px;
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 30px 20px 0;
  font-weight: 600;
  color: var(--forest);
  position: relative;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border: solid var(--moss);
  border-width: 0 2px 2px 0;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}
details p {
  margin: 0 0 20px;
  color: var(--muted);
}

.signup {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
  padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 64px);
  max-width: 1200px;
  margin: 0 auto;
}
.signup-copy {
  position: sticky;
  top: 110px;
}
.signup-copy p:not(.eyebrow) {
  color: var(--muted);
}
.form {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r);
  display: grid;
  gap: 16px;
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: end;
}
.form label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--forest);
}
.opt {
  font-weight: 400;
  color: var(--muted);
}
input,
textarea {
  width: 100%;
  font:
    400 16px/1.4 'DM Sans',
    sans-serif;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line2);
  border-radius: 14px;
  padding: 13px 14px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 4px rgba(111, 141, 110, 0.16);
}
textarea {
  resize: vertical;
  min-height: 90px;
}
.addr {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line2);
  border-radius: 14px;
  overflow: hidden;
}
.addr input {
  border: 0;
  border-radius: 0;
  min-width: 0;
  padding-left: 2px;
  padding-right: 2px;
}
.addr input:focus {
  box-shadow: none;
}
.addr:focus-within {
  border-color: var(--moss);
  box-shadow: 0 0 0 4px rgba(111, 141, 110, 0.16);
}
.addr-end {
  padding: 0 12px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.addr-end:first-child {
  padding-right: 0;
}
.check {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  font-weight: 400 !important;
  color: var(--ink) !important;
  line-height: 1.5;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--forest);
}
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-msg {
  margin: 0;
  min-height: 1.4em;
  font-size: 15px;
  color: var(--forest);
}
.form-msg.err {
  color: #a3402f;
}
.form-done {
  text-align: center;
  padding: 30px 10px;
}
.form-done h3 {
  font-size: 30px;
  margin: 14px 0 10px;
}
.form-done p {
  color: var(--muted);
  margin: 0;
}
.done-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--sage2);
  position: relative;
  animation: pop 0.5s var(--ease);
}
.done-mark::after {
  content: '';
  position: absolute;
  left: 24px;
  top: 15px;
  width: 12px;
  height: 24px;
  border: solid var(--forest);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
@keyframes pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 30px;
  padding: 40px clamp(20px, 5vw, 64px) 60px;
  border-top: 1px solid var(--line);
  max-width: 1280px;
  margin: 0 auto;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
}
.foot nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}
.foot nav a:hover {
  color: var(--forest);
}
.foot .small {
  width: 100%;
  margin: 0;
}
.mobile-cta {
  display: none;
}

/* off the clock + records */
.cal {
  padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 64px);
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  gap: clamp(60px, 8vw, 100px);
}
.cal-lede {
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 19px);
  margin: 18px auto 0;
  max-width: 42em;
}
.cal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.cal-card {
  position: relative;
  padding: 30px 28px 28px;
  border-radius: var(--r);
  background: linear-gradient(170deg, #f6f9f2, var(--paper) 60%);
  border: 1px solid var(--line);
  overflow: hidden;
}
.cal-card::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207, 218, 200, 0.6), transparent 70%);
}
.cal-n {
  font:
    400 15px/1 Fraunces,
    serif;
  color: var(--moss-ink);
  letter-spacing: 0.06em;
}
.cal-card h3 {
  font-size: 24px;
  margin: 14px 0 10px;
}
.cal-card p {
  margin: 0;
  color: var(--muted);
}
.cal-records .section-head {
  margin-bottom: 34px;
}
.law-list {
  display: grid;
  gap: 12px;
}
.law {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1.25fr;
  gap: 24px;
  align-items: start;
  padding: 24px 26px;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.law-name b {
  display: block;
  font:
    400 20px/1.25 Fraunces,
    serif;
  color: var(--forest);
}
.law-name span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--moss-ink);
  font-weight: 500;
}
.law p {
  margin: 0;
  font-size: 15px;
}
.law-need {
  color: var(--muted);
}
.law-have {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
}
.law-have::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sage2);
}
.law-have::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  width: 5px;
  height: 9px;
  border: solid var(--forest);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cal-note {
  max-width: 760px;
  margin: 30px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.cal-sources {
  max-width: 760px;
  margin: 16px auto 0;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: center;
}
.cal-sources summary {
  display: inline-block;
  padding: 8px 26px 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--forest);
}
.cal-sources ul {
  text-align: left;
  margin: 10px 0 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}
.cal-sources a {
  color: var(--forest);
}

/* reveal on scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(4px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* paperwork pages */
.doc {
  background: var(--cream);
}
.doc-top {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.doc-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}
.doc-top nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}
.doc-body {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) 22px 40px;
}
.doc-body h1 {
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.05;
  margin-bottom: 24px;
}
.doc-body h2 {
  font-size: 28px;
  margin: 46px 0 12px;
}
.doc-body h3 {
  font-size: 21px;
  margin: 30px 0 8px;
}
.doc-body p,
.doc-body li {
  color: #33433c;
}
.doc-body li {
  margin: 6px 0;
}
.doc-body a {
  color: var(--forest);
}
.doc-body .btn {
  color: #f7f4ea;
  margin-top: 10px;
}
.draft-note {
  background: var(--gold2);
  border: 1px solid rgba(201, 164, 92, 0.5);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 15px;
}
.table {
  overflow-x: auto;
  margin: 18px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-weight: 600;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.5);
}
.doc-foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 22px 60px;
}
.doc-foot a {
  color: var(--forest);
}
.nf .doc-body {
  text-align: center;
  padding-top: 120px;
  min-height: 60vh;
}

/* ----- theme toggle ----- */
.theme-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  flex: none;
  transition:
    background 0.2s,
    transform 0.16s var(--ease);
}
.theme-btn:hover {
  background: rgba(127, 156, 124, 0.14);
}
.theme-btn:active {
  transform: scale(0.94);
}
.theme-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-btn .i-moon {
  fill: currentColor;
  stroke: none;
}
.theme-btn .i-sun {
  display: none;
}
html[data-theme='dark'] .theme-btn .i-sun {
  display: block;
}
html[data-theme='dark'] .theme-btn .i-moon {
  display: none;
}
.doc-top .theme-btn {
  margin-left: 4px;
}
html.theme-fade body,
html.theme-fade .top,
html.theme-fade .glass,
html.theme-fade .law,
html.theme-fade .cal-card,
html.theme-fade .step,
html.theme-fade .door,
html.theme-fade details,
html.theme-fade .price-card {
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease;
}

/* ----- dark mode: a calm night version of the same palette ----- */
html[data-theme='dark'] {
  color-scheme: dark;
  --cream: #111915;
  --cream2: #1c2621;
  --paper: #18221d;
  --sage: #5f7d60;
  --sage2: #2a3b31;
  --moss: #8fb08b;
  --moss-ink: #a8c6a2;
  --forest: #e4ede1;
  --forest2: #f3f7f1;
  --ink: #e6ece6;
  --muted: #a9b7ae;
  --gold: #d8b66c;
  --gold2: #3b3322;
  --line: rgba(214, 232, 214, 0.12);
  --line2: rgba(214, 232, 214, 0.22);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 50px -18px rgba(0, 0, 0, 0.7);
}
html[data-theme='dark'] .grain {
  opacity: 0.035;
}
html[data-theme='dark'] .btn {
  background: #d6e6ce;
  color: #102019;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 10px 24px -12px rgba(0, 0, 0, 0.8);
}
html[data-theme='dark'] .btn:hover {
  background: #e7f1e1;
}
html[data-theme='dark'] .top {
  background: rgba(17, 25, 21, 0.84);
}
html[data-theme='dark'] .glass {
  background: rgba(26, 37, 31, 0.78);
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme='dark'] .hero-light {
  background: radial-gradient(
    circle,
    rgba(216, 182, 108, 0.16),
    rgba(95, 125, 96, 0.14) 45%,
    transparent 70%
  );
}
html[data-theme='dark'] .facts li {
  background: rgba(255, 255, 255, 0.04);
}
html[data-theme='dark'] .arch {
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme='dark'] .arch-scene > rect {
  fill: #18271f;
}
html[data-theme='dark'] #sun stop:nth-child(1) {
  stop-color: #f6ecd0;
}
html[data-theme='dark'] #sun stop:nth-child(2) {
  stop-color: #8f8a6a;
  stop-opacity: 0.55;
}
html[data-theme='dark'] #sun stop:nth-child(3) {
  stop-color: #18271f;
}
html[data-theme='dark'] .arch-scene .sun {
  r: 150px;
}
html[data-theme='dark'] .mist {
  fill: #3a4d42;
}
html[data-theme='dark'] #hill1 stop:nth-child(1) {
  stop-color: #4b6a52;
}
html[data-theme='dark'] #hill1 stop:nth-child(2) {
  stop-color: #3a5541;
}
html[data-theme='dark'] #hill2 stop:nth-child(1) {
  stop-color: #2f4a38;
}
html[data-theme='dark'] #hill2 stop:nth-child(2) {
  stop-color: #1f3328;
}
html[data-theme='dark'] .tick {
  background: #6f9a6c;
}
html[data-theme='dark'] .trust h2 em,
html[data-theme='dark'] .eyebrow.light {
  color: #ecd9a8;
}
html[data-theme='dark'] .sig-ring {
  fill: #3d5a45;
}
html[data-theme='dark'] .demo-frame {
  background: linear-gradient(160deg, #22302a, #141d18);
  border-color: rgba(255, 255, 255, 0.06);
}
html[data-theme='dark'] .door {
  background: linear-gradient(180deg, var(--paper), #141d18);
}
html[data-theme='dark'] .door-gold {
  background: linear-gradient(180deg, #2b2719, #3b3322);
  border-color: rgba(216, 182, 108, 0.3);
}
html[data-theme='dark'] .trust-inner {
  background: radial-gradient(120% 90% at 85% 0%, #24453a 0%, #183229 45%, #0f1f19 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
html[data-theme='dark'] .cal-card {
  background: linear-gradient(170deg, #1d2a23, var(--paper) 60%);
}
html[data-theme='dark'] .cal-card::after {
  background: radial-gradient(circle, rgba(95, 125, 96, 0.35), transparent 70%);
}
html[data-theme='dark'] input,
html[data-theme='dark'] textarea,
html[data-theme='dark'] .addr {
  background: #0f1713;
  color: var(--ink);
  border-color: var(--line2);
}
html[data-theme='dark'] .addr input {
  background: transparent;
}
html[data-theme='dark'] input::placeholder,
html[data-theme='dark'] textarea::placeholder {
  color: #8c9a91;
}
html[data-theme='dark'] .form-msg.err {
  color: #f2a493;
}
html[data-theme='dark'] .link-soft {
  border-color: var(--line2);
}
html[data-theme='dark'] .doc-body p,
html[data-theme='dark'] .doc-body li {
  color: #d3dcd5;
}
html[data-theme='dark'] .draft-note {
  color: var(--ink);
  border-color: rgba(216, 182, 108, 0.4);
}
html[data-theme='dark'] th {
  background: rgba(255, 255, 255, 0.04);
}
html[data-theme='dark'] .doc-body .btn {
  color: #102019;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-art {
    min-height: 500px;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
  }
  .arch {
    width: 78%;
    height: 460px;
  }
  .demo,
  .signup {
    grid-template-columns: 1fr;
  }
  .signup-copy {
    position: static;
  }
  .steps,
  .door-row,
  .cal-cards {
    grid-template-columns: 1fr;
  }
  .law {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .step:nth-child(2) {
    transform: none;
  }
  .door {
    min-height: 0;
    border-radius: var(--r);
    padding: 30px;
  }
}
@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .nav,
  .top .btn {
    display: none;
  }
  .top .theme-btn {
    margin-left: auto;
  }
  .trust-list,
  .row2 {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 28px;
  }
  .hero-art {
    min-height: 450px;
  }
  .arch {
    height: 400px;
    width: 80%;
  }
  .memo {
    bottom: 26px;
    width: 88%;
  }
  .sig {
    display: none;
  }
  .mobile-cta {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    transition:
      transform 0.3s var(--ease),
      opacity 0.3s;
  }
  .mobile-cta.hide {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
  }
  .foot {
    padding-bottom: 100px;
  }
  .foot nav {
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .sig-line {
    stroke-dashoffset: 0;
  }
}
