/* Loftside waitlist page. Palette and type follow the product (see agency-portal/public/css/app.css). */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #f5efe3; --paper-2: #ece4d2; --card: #fffdf8; --ink: #231f1a; --ink-2: #4a433a; --muted: #6b6254;
  --line: #e2d8c4; --line-2: #d3c7ae;
  --green: #2f6f5e; --green-d: #245a4c; --green-bg: #e3ecdf; --terra: #c2512f; --terra-d: #a8431f; --glow: #e0693f;
  --mustard: #b8801c; --mustard-bg: #f6e8c4; --sky: #3d6c8c; --sky-bg: #dde9f1; --rust: #b3341f;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 12px; --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11" 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-d); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.025em; }
h1 em, .accent { font-style: italic; font-weight: 500; color: var(--green); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 650; color: var(--muted); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.eyebrow.light { color: #cfc4ad; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 4px rgba(224,105,63,.2); flex: none; }
.sub { color: var(--ink-2); max-width: 40em; margin-top: 14px; }
.tag { display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; background: var(--mustard-bg); color: #6d4a0a; padding: 2px 9px; border-radius: 99px; margin-right: 6px; vertical-align: 1px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650; font-size: 1rem; background: var(--green); color: #fff; border: 1px solid transparent; border-radius: 11px; padding: 13px 22px; cursor: pointer; text-decoration: none; line-height: 1.2; box-shadow: 0 3px 0 var(--green-d); transition: transform .08s, box-shadow .08s, background .15s; white-space: nowrap; }
.btn:hover { background: var(--green-d); color: #fff; }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--green-d); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-sm { padding: 8px 15px; font-size: .92rem; box-shadow: 0 2px 0 var(--green-d); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(245,239,227,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.logo { width: 30px; height: 30px; flex: none; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 520; padding: 6px 2px; }
.top nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; }

/* ---------- hero ---------- */
.hero { padding: 54px 0 120px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 820px; height: 820px; right: -240px; top: -300px; background: radial-gradient(closest-side, rgba(47,111,94,.13), rgba(47,111,94,0)); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 56px; align-items: center; position: relative; }
.lead { font-size: 1.22rem; line-height: 1.55; color: var(--ink-2); max-width: 31em; margin: 22px 0 28px; }
.join { max-width: 560px; }
.planned { font-size: .9rem; color: var(--muted); margin: 18px 0 0; }

/* hero art */
.hero-art { position: relative; padding: 0 34px 56px 0; }
.win { margin: 0; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 rgba(35,31,26,.05), 0 28px 50px -26px rgba(70,45,10,.55); }
.win-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line-2); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.win figcaption { font-size: .86rem; color: var(--muted); padding: 10px 16px 12px; border-top: 1px dashed var(--line-2); background: var(--card); }
.win-hero { transform: rotate(-1.2deg); }
.win-hero img { aspect-ratio: 1070 / 700; object-fit: cover; object-position: top left; width: 100%; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.phone { position: absolute; right: -6px; bottom: -6px; width: 31%; min-width: 130px; margin: 0; border: 7px solid var(--ink); border-radius: 26px; overflow: hidden; background: var(--ink); box-shadow: 0 24px 40px -16px rgba(35,31,26,.6); transform: rotate(2.5deg); }
.phone img { border-radius: 18px; aspect-ratio: 560 / 900; object-fit: cover; object-position: top; width: 100%; }
.note-hand { position: absolute; margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.15; color: var(--terra-d); }
.note-1 { left: 14px; bottom: 6px; }
.note-1::before { content: "↖ "; font-style: normal; }
.note-2 { right: calc(31% + 24px); bottom: 14px; text-align: right; }
.note-2::after { content: " →"; font-style: normal; }
.art-cap { position: absolute; left: 14px; bottom: -22px; font-size: .78rem; color: var(--muted); margin: 0; display: none; }

/* ---------- waitlist form ---------- */
.wl-row { display: flex; gap: 12px; align-items: flex-end; }
.wl-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.wl label, .wl-field label { font-size: .88rem; font-weight: 620; color: var(--ink-2); }
.wl input[type=email], .wl select, .wl textarea { font: inherit; font-size: 1rem; color: var(--ink); background: #fffefb; border: 1.5px solid var(--line-2); border-radius: 11px; padding: 12px 14px; width: 100%; }
.wl textarea { resize: vertical; min-height: 84px; }
.wl input:focus, .wl select:focus, .wl textarea:focus { outline: 3px solid rgba(47,111,94,.35); outline-offset: 0; border-color: var(--green); }
.wl [aria-invalid=true] { border-color: var(--rust); background: #fff7f4; }
.wl-more { margin-top: 12px; }
.wl-more summary { cursor: pointer; font-size: .92rem; font-weight: 600; color: var(--green-d); list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; }
.wl-more summary::-webkit-details-marker { display: none; }
.wl-more summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green-bg); color: var(--green-d); font-weight: 700; line-height: 1; }
.wl-more[open] summary::before { content: "−"; }
.wl-more .opt { color: var(--muted); font-weight: 500; }
.wl-extra { display: grid; gap: 14px; margin-top: 10px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wl-err { color: var(--rust); font-weight: 600; font-size: .94rem; margin: 10px 0 0; min-height: 0; }
.wl-err:empty { display: none; }
.wl-priv { font-size: .82rem; line-height: 1.5; color: var(--muted); margin: 12px 0 0; }
.wl-priv strong { color: var(--ink-2); }
.wl-ok { background: var(--green-bg); border: 1px solid #c3d6bf; border-radius: 14px; padding: 22px 24px; }
.wl-ok h3 { font-size: 1.5rem; color: #1f4a3d; margin-bottom: 6px; }
.wl-ok p { margin: 0; color: #2f5139; }
.wl-ok:focus { outline: 3px solid var(--green); outline-offset: 3px; }
.join-dark .wl-ok { background: #fffdf8; }

/* ---------- problem (dark, pitched roof) ---------- */
.problem { background: var(--ink); color: var(--paper); padding: 150px 0 84px; margin-top: -78px; position: relative; clip-path: polygon(0 80px, 50% 0, 100% 80px, 100% 100%, 0 100%); }
.problem h2 { color: #fffdf8; max-width: 14em; }
.problem-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.big { font-size: 1.2rem; line-height: 1.6; color: #e6dcc6; max-width: 34em; margin-top: 20px; }
.pile { list-style: none; margin: 0; padding: 12px 0 28px; display: flex; flex-wrap: wrap; gap: 14px 12px; justify-content: center; }
.pile li { background: var(--card); color: var(--ink); font-weight: 600; font-size: 1.02rem; padding: 12px 18px; border-radius: 10px; box-shadow: 0 10px 22px -10px rgba(0,0,0,.7); border-left: 5px solid var(--green); }
.pile .p1 { transform: rotate(-4deg); } .pile .p2 { transform: rotate(3deg); border-color: var(--sky); } .pile .p3 { transform: rotate(-2deg) translateY(8px); border-color: var(--mustard); }
.pile .p4 { transform: rotate(5deg); border-color: var(--terra); } .pile .p5 { transform: rotate(-3deg) translateY(-4px); border-color: var(--sky); } .pile .p6 { transform: rotate(2deg) translateY(6px); }
.pile .p7 { transform: rotate(-6deg); background: var(--mustard-bg); border-color: var(--mustard); font-family: var(--serif); font-style: italic; font-weight: 500; }
.asks { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px dashed #5a5246; }
.asks li { padding: 26px 28px 0 0; }
.asks li + li { padding-left: 28px; border-left: 1px dashed #5a5246; }
.asks q { display: block; font-family: var(--serif); font-size: 1.6rem; font-style: italic; font-weight: 500; line-height: 1.2; color: #fffdf8; quotes: "“" "”"; margin-bottom: 10px; }
.asks span { color: #cfc4ad; font-size: .98rem; display: block; }

/* ---------- how ---------- */
.how { padding-top: 96px; padding-bottom: 40px; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; position: relative; }
.steps li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 74px 24px 26px; box-shadow: 0 1px 0 rgba(35,31,26,.04), 0 14px 26px -22px rgba(70,45,10,.5); }
.steps li:nth-child(2) { margin-top: 22px; } .steps li:nth-child(3) { margin-top: 44px; }
.num { position: absolute; top: 12px; left: 20px; font-family: var(--serif); font-weight: 700; font-size: 3.6rem; line-height: 1; color: var(--green); }
.steps li::after { content: ""; position: absolute; top: 40px; left: 66px; right: 24px; border-top: 2px dashed var(--line-2); }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); }

/* ---------- features ---------- */
.features { padding: 80px 0 40px; }
.feat { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; margin-top: 76px; }
.feat.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.feat.flip .feat-text { order: 2; }
.feat h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.feat p { color: var(--ink-2); }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 520; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--green-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4 7.6 12 13 6.2' fill='none' stroke='%232f6f5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.feat .win { transform: rotate(.6deg); }
.feat.flip .win { transform: rotate(-.6deg); }
.feat .win img { width: 100%; }

/* ---------- status board ---------- */
.status { padding-top: 70px; padding-bottom: 20px; }
.mini-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.mini-board .col { background: var(--paper-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px 16px 18px; }
.mini-board h3 { font-size: 1.1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.mini-board h3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.col-doing h3::before { background: var(--mustard); } .col-todo h3::before { background: var(--line-2); }
.mini-board ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini-board li { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 9px; padding: 9px 12px; font-size: .95rem; font-weight: 520; }
.col-doing li { border-left-color: var(--mustard); } .col-todo li { border-left-color: var(--line-2); color: var(--ink-2); }

/* ---------- pricing ---------- */
.pricing { padding-top: 70px; padding-bottom: 20px; }
.price-card { display: grid; grid-template-columns: 1.15fr .85fr; background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 0 rgba(35,31,26,.04), 0 24px 40px -30px rgba(70,45,10,.55); border-top: 6px solid var(--green); }
.price-main { padding: 36px 40px; }
.price-main h2 { margin-bottom: 14px; }
.price { color: var(--green); font-size: 1.25em; }
.per { font-size: .5em; font-weight: 500; color: var(--muted); margin-left: 4px; }
.price-main p { color: var(--ink-2); }
.price-side { background: var(--paper-2); padding: 36px 34px; border-left: 1px dashed var(--line-2); }
.price-side h3 { margin-bottom: 10px; }
.price-side p { margin: 0; color: var(--ink-2); font-size: .98rem; }

/* ---------- faq ---------- */
.faq { padding-top: 80px; padding-bottom: 80px; }
.faq h2 { margin-bottom: 28px; }
.qa { max-width: 780px; border-top: 1px solid var(--line-2); }
.qa details { border-bottom: 1px solid var(--line-2); }
.qa summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 620; font-size: 1.08rem; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--green); line-height: 1; }
.qa details[open] summary::after { content: "−"; }
.qa summary:hover { color: var(--green-d); }
.qa p { margin: 0; padding: 0 40px 20px 0; color: var(--ink-2); }

/* ---------- final CTA ---------- */
.final { background: var(--green); color: #fff; padding: 80px 0 90px; position: relative; }
.final::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 40px; background: var(--paper); clip-path: polygon(0 0, 100% 0, 100% 0%, 50% 100%, 0 0); }
.final-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.final h2 { color: #fff; margin-bottom: 14px; }
.final .lead { color: #e1efe8; margin: 0; }
.join-dark { background: var(--card); color: var(--ink); border-radius: 18px; padding: 26px; max-width: none; box-shadow: 0 26px 40px -24px rgba(0,0,0,.5); }
.join-dark .btn { background: var(--ink); box-shadow: 0 3px 0 #000; }
.join-dark .btn:hover { background: #3a342b; }
.join-dark .wl-more summary { color: var(--green-d); }
.join-dark .wl-row { flex-direction: column; align-items: stretch; }
.join-dark .wl-more { margin-top: 14px; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #cfc4ad; padding: 34px 0; font-size: .9rem; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot .brand { color: var(--paper); font-size: 1.2rem; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 18px; }
.foot a:not(.brand) { color: #e6dcc6; }
.foot a:not(.brand):hover { color: #fff; }

/* ---------- plain pages (privacy, thanks) ---------- */
.prose { max-width: 740px; padding-top: 56px; padding-bottom: 80px; min-height: 60vh; }
.prose h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 8px; }
.prose h2 { font-size: 1.5rem; margin: 34px 0 10px; }
.prose ul { padding-left: 22px; } .prose li { margin-bottom: 6px; }
.prose .meta { color: var(--muted); font-size: .92rem; }
.prose .lead { margin: 14px 0 22px; }
.prose .back { margin-top: 40px; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .problem-grid, .feat, .feat.flip, .final-in { grid-template-columns: 1fr; gap: 40px; }
  .feat.flip .feat-text { order: 0; }
  .hero { padding-bottom: 96px; }
  .hero-art { max-width: 640px; }
  .steps, .mini-board, .asks { grid-template-columns: 1fr; }
  .steps li:nth-child(n) { margin-top: 0; }
  .asks li + li { padding-left: 0; border-left: 0; border-top: 1px dashed #5a5246; margin-top: 22px; }
  .asks li { padding-right: 0; }
  .price-card { grid-template-columns: 1fr; }
  .price-side { border-left: 0; border-top: 1px dashed var(--line-2); }
  .top nav a:not(.btn) { display: none; }
  .feat { margin-top: 56px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .hero { padding-top: 34px; }
  .wl-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .btn-sm { width: auto; }
  .hero-art { padding: 0 20px 44px 0; }
  .phone { width: 36%; border-width: 5px; border-radius: 20px; }
  .phone img { border-radius: 14px; }
  .note-hand { display: none; }
  .problem { padding-top: 120px; clip-path: polygon(0 48px, 50% 0, 100% 48px, 100% 100%, 0 100%); margin-top: -50px; }
  .price-main, .price-side { padding: 26px 22px; }
  .join-dark { padding: 18px; }
  .asks q { font-size: 1.4rem; }
  .art-cap { display: block; }
}
