:root {
  --page: #8BA86A;
  --page-spot-a: #9DB97C;
  --page-spot-b: #7C9A5C;
  --bar: #E9ECDD;
  --frame: #DEE3CF;
  --card: #F2F2EA;
  --dots: #D8D9CC;
  --ink: #2B2F3A;
  --ink-soft: #4A5060;
  --rule: #C2C7B2;
  --highlight-bg: #D6E3C2;
  --highlight-ink: #4F7A2E;
  --button: #E3A63B;
  --button-edge: #B07A1E;
  --button-ink: #1E1E1E;
  --footer-ink: #1F2A14;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: Rubik, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  background-image: radial-gradient(circle at 15% 20%, var(--page-spot-a) 0, transparent 40%), radial-gradient(circle at 85% 70%, var(--page-spot-b) 0, transparent 45%);
  background-attachment: fixed;
  padding: 16px;
}
a { color: var(--ink); }
a:hover { color: var(--highlight-ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--highlight-ink); outline-offset: 3px; }
.display { font-family: Rubik, system-ui, sans-serif; letter-spacing: -0.02em; }

/* Floating nav: full-width bar at the top, shrinks into a frosted pill once you scroll */
.nav-shell { position: sticky; top: 12px; z-index: 50; }
.nav {
  position: relative; max-width: 1320px; margin: 0 auto; padding: 10px 14px 10px 20px; border-radius: 16px;
  background: var(--bar); border: 1px solid transparent;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  transition: max-width .5s cubic-bezier(.2,.8,.2,1), border-radius .5s cubic-bezier(.2,.8,.2,1),
              background-color .35s ease, box-shadow .35s ease, padding .35s ease, border-color .35s ease;
}
.is-scrolled .nav {
  max-width: 760px; border-radius: 999px; padding: 6px 8px 6px 18px;
  background: rgba(242, 242, 234, .72); border-color: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: 0 10px 30px rgba(31, 42, 20, .18), 0 1px 0 rgba(255, 255, 255, .7) inset;
}
.is-scrolled .nav .btn { border-radius: 999px; }
.nav-progress {
  position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #7E9E8E, #91ABC6, var(--button));
  transform-origin: left; transform: scaleX(var(--progress, 0)); opacity: 0; transition: opacity .3s ease;
}
.is-scrolled .nav-progress { opacity: 1; }
.nav-left { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.brand {
  font-family: Rubik, system-ui, sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand img { display: block; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.is-scrolled .brand img { transform: scale(.88) rotate(-6deg); }
.brand:hover img { transform: rotate(-10deg) scale(1.05); }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
.nav-link { text-decoration: none; font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border-radius: 9px; background: var(--button); border-bottom: 4px solid var(--button-edge);
  color: var(--button-ink); text-decoration: none; font-weight: 700; font-size: 16px; cursor: pointer;
  transition: transform .08s ease, border-bottom-width .08s ease;
}
.btn:hover { color: var(--button-ink); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); border-bottom-width: 2px; }
.btn-lg { min-height: 56px; padding: 0 30px; border-radius: 10px; border-bottom-width: 5px; font-size: 19px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

main {
  max-width: 1320px; margin: 24px auto 0; padding: 40px clamp(16px, 4vw, 56px) 56px;
  border-radius: 24px; background: var(--frame); display: flex; flex-direction: column; gap: 72px;
}
.hero {
  border-radius: 24px; background-color: var(--card);
  background-image: radial-gradient(var(--dots) 1px, transparent 1px); background-size: 18px 18px;
  padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
}
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
h1 { margin: 0; font-weight: 700; font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: 1.02; letter-spacing: -0.03em; }
.mark { background: var(--highlight-bg); color: var(--highlight-ink); padding: 0 0.12em; border-radius: 8px; }
.lead { margin: 0; font-size: 20px; line-height: 1.6; color: var(--ink-soft); max-width: 640px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.cta-note { font-size: 17px; color: var(--ink-soft); }
.hero-art { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 460px; height: auto; }

h2 { margin: 0; font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.12; }
.section { display: flex; flex-direction: column; gap: 28px; }
.sub { margin: 0; font-size: 18px; color: var(--ink-soft); }

.features { border-top: 1px solid var(--rule); padding-top: 28px; display: flex; flex-wrap: wrap; gap: 24px; }
.feature { flex: 1 1 170px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.feature strong { font-size: 18px; }
.feature span { font-size: 15px; color: var(--ink-soft); }

.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 280px; background: var(--card); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
h3 { margin: 0; font-size: 20px; font-weight: 700; }
.card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }


.about { border-radius: 24px; background: var(--card); padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.about-head { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; }
.about-kicker { font-size: 15px; font-weight: 700; color: var(--highlight-ink); }
.about-body { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; }
.about-body p { margin: 0; font-size: 18px; line-height: 1.6; }
.about-body p + p { color: var(--ink-soft); }
.about-body a { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

.closing { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.closing h2 { font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.03em; }
.closing p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink-soft); }

footer {
  max-width: 1320px; margin: 16px auto 0; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; font-size: 14px; color: var(--footer-ink);
}
footer a { color: var(--footer-ink); }

.info { position: relative; display: flex; align-items: center; }
.info-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--footer-ink); cursor: help; opacity: .7;
}
.info-btn:hover, .info-btn:focus-visible { opacity: 1; background: rgba(255,255,255,.25); }
.info-tip {
  position: absolute; right: 0; bottom: calc(100% + 8px); width: max-content; max-width: min(300px, calc(100vw - 32px));
  padding: 10px 12px; border-radius: 10px; background: var(--ink); color: var(--card);
  font-size: 13px; line-height: 1.45; box-shadow: 0 6px 20px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
  pointer-events: none;
}
.info:hover .info-tip, .info-btn:focus-visible + .info-tip, .info-btn:focus + .info-tip { opacity: 1; visibility: visible; transform: none; }
@media (prefers-reduced-motion: reduce) { .info-tip { transition: none; } }

/* Booking form modal */
.modal {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 20px;
  background: var(--card); color: var(--ink); box-shadow: 0 24px 60px rgba(20, 30, 10, .3);
}
.modal::backdrop { background: rgba(31, 42, 20, .45); backdrop-filter: blur(2px); }
.modal[open] { animation: modal-in .18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink-soft); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--frame); color: var(--ink); }
.book-form, .book-done { padding: clamp(24px, 5vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.modal-head { display: flex; flex-direction: column; gap: 6px; padding-right: 32px; }
.modal h2 { font-size: 28px; }
.modal-head p, .book-done p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 15px; font-weight: 600; }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #FBFAF4; border: 1.5px solid var(--rule);
  border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; line-height: 1.5; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--highlight-ink); box-shadow: 0 0 0 3px var(--highlight-bg); }
.field input[aria-invalid="true"] { border-color: #B83A3A; }
.field-error { font-size: 14px; color: #B83A3A; min-height: 0; }
.field-error:empty { display: none; }
.form-status { margin: 0; font-size: 14px; color: #B83A3A; }
.form-status:empty { display: none; }
.form-submit { align-self: flex-start; border: 0; border-bottom: 5px solid var(--button-edge); font-family: inherit; }
.form-submit[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Privacy page */
.legal { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.legal h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
.legal h2 { font-size: 22px; margin-top: 18px; }
.legal p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.legal strong { color: var(--ink); }

.footer-right { display: flex; align-items: center; gap: 12px; }
.form-note { margin: 0; font-size: 13px; color: var(--ink-soft); }
.form-note a { color: var(--ink-soft); }

/* ---------- Motion ---------- */

/* Hero text entrance */
.js .hero-title, .js .hero-in { opacity: 0; transform: translateY(18px); filter: blur(6px); animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

/* Highlighter sweep on the green marks */
.mark {
  background: linear-gradient(var(--highlight-bg), var(--highlight-bg)) no-repeat left / 100% 100%;
}
.js .mark { background-size: 0% 100%; transition: background-size 1s cubic-bezier(.2,.8,.2,1) .35s; }
.js .hero-title .mark { animation: sweep 1s cubic-bezier(.2,.8,.2,1) .55s forwards; }
.js .is-in .mark { background-size: 100% 100%; }
@keyframes sweep { to { background-size: 100% 100%; } }

/* Scroll reveal */
.js .reveal {
  opacity: 0; transform: translateY(28px) scale(.985); filter: blur(4px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1), filter .8s ease;
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* Feature icons pop in */
.feature-icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  background: var(--card); box-shadow: 0 1px 0 #fff inset, 0 6px 16px rgba(31, 42, 20, .08);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.feature:hover .feature-icon { transform: translateY(-4px) rotate(-4deg); }
.js .reveal:not(.is-in) .feature-icon { transform: scale(.4) rotate(-20deg); opacity: 0; }
.js .reveal.is-in .feature-icon { animation: pop .7s cubic-bezier(.3,1.6,.5,1) backwards; animation-delay: calc(var(--d, 0s) + .15s); }
@keyframes pop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }

/* Cards: lift + cursor spotlight */
.card { position: relative; overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, opacity .8s cubic-bezier(.2,.8,.2,1), filter .8s ease; }
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(227, 166, 59, .16), transparent 60%);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(31, 42, 20, .12); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

/* ---------- Term sheet illustration ---------- */
.hero-art { perspective: 900px; }
.ts-art { transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .4s cubic-bezier(.2,.8,.2,1); will-change: transform; overflow: visible; }
.ts-art [class*="ts-"] { transform-box: fill-box; }

/* Sheet slides up and settles */
.js .ts-sheet-enter { transform-origin: 50% 100%; opacity: 0; transform: translateY(40px) rotate(-8deg); animation: sheetIn 1s cubic-bezier(.2,.9,.25,1.15) .2s forwards; }
@keyframes sheetIn { to { opacity: 1; transform: none; } }
.ts-sheet-float { transform-origin: 50% 50%; animation: sheetFloat 7s ease-in-out 2.6s infinite; }
@keyframes sheetFloat { 50% { transform: translateY(-6px) rotate(-1deg); } }

.js .ts-fade { opacity: 0; animation: fadeIn .5s ease forwards; animation-delay: var(--d, 0s); }
@keyframes fadeIn { to { opacity: 1; } }
.js .ts-line { transform-origin: 0 50%; transform: scaleX(0); animation: grow .6s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes grow { to { transform: scaleX(1); } }

/* Signature writes itself */
.js .ts-sign { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.6,0,.3,1) 1.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Money bag floats, wings flap, halo glows */
.js .ts-bag-enter { transform-origin: 50% 50%; opacity: 0; transform: translateY(-30px) scale(.9); animation: bagIn .9s cubic-bezier(.2,.9,.25,1.2) .45s forwards; }
@keyframes bagIn { to { opacity: 1; transform: none; } }
.ts-bag { animation: bob 3.6s ease-in-out 1.4s infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.ts-wing { animation: flap 1.8s ease-in-out infinite; }
.ts-wing-l { transform-origin: 100% 90%; }
.ts-wing-r { transform-origin: 0% 90%; animation-name: flapR; }
@keyframes flap { 50% { transform: rotate(-10deg); } }
@keyframes flapR { 50% { transform: rotate(10deg); } }
.ts-halo { transform-origin: 50% 50%; animation: halo 3.6s ease-in-out 1.4s infinite; }
@keyframes halo { 50% { transform: translateY(-4px) scaleX(1.06); filter: drop-shadow(0 0 6px rgba(240, 190, 94, .9)); } }
.ts-shadow { transform-origin: 50% 50%; animation: shadow 3.6s ease-in-out 1.4s infinite; }
@keyframes shadow { 50% { transform: scaleX(.96); opacity: .8; } }

/* Coins drop in with a bounce */
.js .ts-coin { opacity: 0; transform: translateY(-140px); animation: coin .7s cubic-bezier(.3,1.5,.6,1) forwards; animation-delay: var(--d, 0s); }
@keyframes coin { 60% { opacity: 1; } to { opacity: 1; transform: none; } }

/* Plant sprouts */
.js .ts-stem { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s ease-out forwards; animation-delay: var(--d, 1.6s); }
.js .ts-leaf { transform: scale(0); animation: leaf .6s cubic-bezier(.3,1.6,.5,1) forwards; }
.ts-leaf-l { transform-origin: 100% 100%; animation-delay: 2.1s !important; }
.ts-leaf-r { transform-origin: 0% 100%; animation-delay: 2.3s !important; }
@keyframes leaf { to { transform: none; } }
.ts-leaf { animation: sway 4s ease-in-out 3s infinite; }
.js .ts-leaf { animation: leaf .6s cubic-bezier(.3,1.6,.5,1) forwards, sway 4s ease-in-out 3s infinite; }
@keyframes sway { 50% { transform: rotate(6deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero-title, .js .hero-in, .js .ts-sheet-enter, .js .ts-bag-enter, .js .ts-fade, .js .ts-coin,
  .js .reveal .feature-icon { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .ts-line, .js .ts-leaf { transform: none !important; }
  .js .ts-sign, .js .ts-stem { stroke-dashoffset: 0 !important; }
  .js .mark { background-size: 100% 100% !important; }
  .ts-art { transform: none !important; }
}
.js .card.reveal.is-in { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, opacity .8s ease, filter .8s ease; }
.js .card.reveal.is-in:hover { transform: translateY(-6px); }
