/* Good Plans: Lectella-style dark page (serif headlines, copper pills, profile cards), set in Halifax */
:root {
  --bg: #0b0b0c;
  --band: #141416;
  --card: #1c1c1f;
  --line: #2a2a2e;
  --ink: #f2efe9;
  --muted: #a8a39a;
  --copper: #c79262;
  --copper-hi: #d6a273;
  --green: #7fc4a0;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: -apple-system, "SF Pro Display", Inter, Roboto, system-ui, sans-serif;
  --step-head: clamp(2.2rem, 1.4rem + 3vw, 3.8rem);
  --margin: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.55 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: .01em; line-height: 1.04; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--copper); color: var(--bg); padding: 10px 14px; z-index: 60; }
.skip:focus { left: 8px; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  border: 0; border-radius: 999px; background: var(--copper); color: var(--bg);
  font: 600 .9375rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.pill:hover { background: var(--copper-hi); transform: translateY(-1px); }
.pill:active { transform: translateY(1px); }
.pill-ghost { background: var(--card); color: var(--ink); }
.pill-ghost:hover { background: #26262a; }
.pill-sm { min-height: 38px; padding: 0 18px; font-size: .875rem; }
.pill-wide { width: 100%; }
.pill[disabled] { opacity: .6; cursor: progress; transform: none; }

.kicker { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.lead { color: #d3cec5; font-size: 1.0625rem; max-width: 44ch; }
.micro { color: var(--muted); font-size: .875rem; margin-top: 14px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--margin); background: rgba(11,11,12,.95); border-bottom: 1px solid rgba(42,42,46,.6);
}
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; letter-spacing: .32em; font-size: .9rem; }
.logo-mark { width: 14px; height: 22px; border: 1.5px solid var(--ink); border-radius: 7px 7px 2px 2px; position: relative; }
.logo-mark::after { content: ""; position: absolute; left: 50%; top: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--copper); } /* a small lighthouse lamp */
.top-nav { display: flex; align-items: center; gap: 26px; font-size: .875rem; }
.top-nav a:not(.pill) { text-decoration: none; color: #d3cec5; }
.top-nav a:not(.pill):hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px) var(--margin); overflow: hidden; }
.hero h1 { font-size: clamp(2.8rem, 1.4rem + 4.4vw, 5.2rem); margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: var(--copper); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-center { justify-content: center; }

.wall { position: relative; display: grid; gap: 14px; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.wall-row { overflow: hidden; }
.track { display: flex; gap: 14px; width: max-content; animation: slide 40s linear infinite; }
.wall-row[data-dir="right"] .track { animation-direction: reverse; animation-duration: 46s; }
.wall:hover .track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
.wall-note { justify-self: end; margin-right: var(--margin); color: var(--muted); font-size: .8125rem; }

.pcard { position: relative; flex: none; width: clamp(170px, 16vw, 230px); aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--card); }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.pcard .pname, .pcard .pmeta { position: absolute; left: 14px; right: 10px; z-index: 1; }
.pcard .pname { bottom: 32px; }
.pcard .pmeta { bottom: 13px; }
.pname { font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: 6px; }
.pname.big { font-family: var(--serif); font-weight: 500; font-size: 2rem; }
.pmeta { color: #cfc9bf; font-size: .8125rem; }
.tick { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--copper); position: relative; flex: none; }
.tick::after { content: ""; position: absolute; left: 4.5px; top: 2.5px; width: 4px; height: 7px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tag { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 5px 10px; border-radius: 999px; background: rgba(11,11,12,.72); color: var(--ink); font-size: .8125rem; font-weight: 500; }
.tag::before { content: "✦ "; color: var(--copper); }
.tag-inline { position: static; display: inline-block; align-self: flex-start; margin: 10px 0 4px; background: #26221d; }

/* Bands and splits */
.band { padding: clamp(64px, 9vw, 128px) var(--margin); border-top: 1px solid rgba(42,42,46,.5); }
.band-alt { background: var(--band); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1180px; margin: 0 auto; }
.split-rev .split-copy { order: 2; }
.split h2, .center-head h2 { font-size: var(--step-head); margin-bottom: 20px; }

.profile { position: relative; display: grid; grid-template-columns: 44% 1fr; background: var(--card); border-radius: 22px; max-width: 560px; justify-self: center; width: 100%; }
.profile > img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; border-radius: 22px 0 0 22px; }
.profile-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.chips-static { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: 8px; }
.chips-static li { padding: 6px 12px; border-radius: 999px; background: #2a2622; color: var(--ink); font-size: .8rem; }
.chips-soft li { background: transparent; border: 1px solid var(--line); color: #d3cec5; }
.bio { font-size: .9rem; color: #d3cec5; margin: 10px 0 4px; }
.profile .pill { margin-top: 12px; }
.example-label { position: absolute; right: 14px; bottom: -26px; font-size: .8125rem; color: var(--muted); }

.invite { background: var(--card); border-radius: 22px; padding: 24px; max-width: 460px; width: 100%; justify-self: center; }
.invite-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.invite-head img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.invite-label { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.invite-q { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 14px; }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.pick-grid button { min-height: 48px; border-radius: 14px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 .9rem var(--sans); cursor: pointer; transition: border-color .2s, background-color .2s; }
.pick-grid button:hover { border-color: var(--copper); }
.pick-grid button[aria-checked="true"] { background: #2a2219; border-color: var(--copper); color: var(--copper-hi); }

.plan { background: var(--card); border-radius: 22px; overflow: hidden; max-width: 460px; width: 100%; justify-self: center; }
.plan img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 35%; }
.plan-body { padding: 22px 24px 26px; }
.plan-yes { color: var(--green); font-size: .9rem; }
.plan-what { font-family: var(--serif); font-size: 2rem; margin-top: 4px; }
.plan-row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.ok { color: var(--green); }
.plan.flash { animation: flash 1s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(199,146,98,.6); } 100% { box-shadow: 0 0 0 18px rgba(199,146,98,0); } }

.center-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.center-head .lead { margin: 0 auto; }
.places { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1180px; margin: 0 auto; }
.places figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; }
.places img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s var(--ease); }
.places figure:hover img { transform: scale(1.04); }
.places figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.8)); font-weight: 500; font-size: .95rem; }
.chips-row { justify-content: center; max-width: 900px; margin: 36px auto 0; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1080px; margin: 0 auto; }
.steps li { background: var(--card); border-radius: 20px; padding: 28px 26px; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #2a2219; color: var(--copper); font-weight: 600; margin-bottom: 16px; }
.steps h3 { font-size: 1.6rem; margin-bottom: 8px; }
.steps p { color: #d3cec5; font-size: .95rem; }

/* Form */
.build-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); max-width: 1180px; margin: 0 auto; align-items: start; }
.build-left h2 { font-size: var(--step-head); margin-bottom: 18px; }
.pcard-preview { margin-top: 28px; width: min(280px, 100%); }
.preview-photo { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .85rem; background: #232326; }
.preview-photo img { width: 100%; height: 100%; object-fit: cover; }
.pcard-preview .pname { bottom: 78px; }
.pcard-preview .pmeta { bottom: 58px; }
.pv-tags { display: none; }
.pv-sat { position: absolute; left: 14px; right: 12px; bottom: 12px; z-index: 1; font-size: .8125rem; font-style: italic; color: #cfc9bf; line-height: 1.35; }

.build-right { background: var(--card); border-radius: 22px; padding: clamp(22px, 3vw, 36px); }
.progress { height: 6px; border-radius: 6px; background: #2a2a2e; overflow: hidden; }
.progress span { display: block; height: 100%; width: 33%; background: var(--copper); transition: width .4s var(--ease); }
.progress-label { margin: 10px 0 8px; color: var(--muted); font-size: .875rem; }
.step { border: 0; margin: 0; padding: 0; display: none; }
.step.is-on { display: block; animation: rise .35s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
form label, .field-title { display: block; font-weight: 500; margin: 16px 0 8px; font-size: .95rem; }
form input:not([type=checkbox]):not([type=file]), form select {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px;
  background: #141416; color: var(--ink); font: 400 1rem var(--sans);
}
form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M0 0h12L6 7z' fill='%23a8a39a'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: calc(100% - 18px) 50%; }
form input::placeholder { color: #6f6b64; }
form input:focus, form select:focus { outline: none; border-color: var(--copper); }
form input[aria-invalid=true], form select[aria-invalid=true] { border-color: #e07a6a; }
form input[type=file] { width: 100%; padding: 14px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font: inherit; font-size: .9rem; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.err { color: #f0a493; font-weight: 500; margin-top: 12px; min-height: 1.2em; font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; cursor: pointer; transition: border-color .15s, background-color .15s; }
.chips span:hover { border-color: var(--copper); }
.chips input:checked + span { background: #2a2219; border-color: var(--copper); color: var(--copper-hi); }
.chips input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.consent { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: .85rem !important; line-height: 1.45; color: #d3cec5; margin-top: 20px !important; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--copper); }
.hp { position: absolute; left: -9999px; }
.step-nav { display: flex; gap: 12px; margin-top: 22px; }
.step-nav .pill { flex: 1; }
.step .pill-wide { margin-top: 22px; }
.back { min-height: 48px; padding: 0 18px; background: transparent; color: var(--muted); border: 0; font: 500 .95rem var(--sans); cursor: pointer; }
.back:hover { color: var(--ink); }
.thanks h3 { font-size: 2.4rem; margin-bottom: 12px; }
.thanks p { color: #d3cec5; }
.thanks-sub { margin-top: 18px; color: var(--ink) !important; font-weight: 500; }
.ten { margin: 10px 0 0; padding-left: 1.3em; display: grid; gap: 4px; color: #d3cec5; font-size: .95rem; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 16px; padding: 0 22px; }
.faq summary { min-height: 60px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--copper); font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: #d3cec5; max-width: 60ch; }

/* Close + footer */
.close { text-align: center; }
.close h2 { font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4rem); max-width: 22ch; margin: 0 auto; }
.foot { padding: 32px var(--margin) 40px; border-top: 1px solid rgba(42,42,46,.5); color: var(--muted); font-size: .85rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-bottom: 18px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot-label { color: #d3cec5; margin-bottom: 10px; }
.credits { max-width: 110ch; margin-bottom: 10px; }
.credits a { color: #d3cec5; }

/* Entrances (content stays visible without script) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Phone */
@media (max-width: 900px) {
  .top-nav a:not(.pill) { display: none; }
  .hero { grid-template-columns: 1fr; padding-right: var(--margin); }
  .wall { margin: 0 calc(var(--margin) * -1); }
  .pcard { width: 150px; }
  .split, .build-grid { grid-template-columns: 1fr; }
  .split-rev .split-copy { order: 0; }
  .profile { grid-template-columns: 1fr; }
  .profile > img { aspect-ratio: 4 / 3; border-radius: 22px 22px 0 0; }
  .places { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero .pill { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .step.is-on, .plan.flash { animation: none; }
}

/* fixes after the 390px check */
.pcard .pmeta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-photo { place-items: start center; padding-top: 38%; }
.preview-photo:has(img) { padding-top: 0; }
@media (max-width: 900px) { .pcard { width: 168px; } }
