/* Magic. The street first, then one thing to do.
   Type: Erode. Colour: rose grey ground, brown-black ink, one green for the action. */

:root {
  --bg: #ebe5e3;
  --surface: #e1dad7;
  --paper: #f3efed;
  --ink: #2b2622;
  --muted: #6a615d;
  --accent: #0f7d45;
  --accent-press: #0b6336;
  --accent-ink: #ffffff;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 3.5rem);

  --font: 'Erode', Georgia, 'Times New Roman', serif;
  --margin: 20px;
  --pad: clamp(20px, 5vw, 72px);
  --measure: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, address { margin: 0; font-style: normal; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

h2 { font-size: var(--step-head); font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }

/* ----- Button: one shape, one fill ----- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 500; font-size: var(--step-body); white-space: nowrap; cursor: pointer;
  transition: background .15s, transform .15s var(--ease);
}
.button:hover { background: var(--accent-press); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button--small { height: 42px; padding: 0 20px; font-size: var(--step-small); }

/* ----- Top bar: clear over the photo, solid after ----- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  height: 64px; padding: 0 var(--pad);
  color: var(--paper);
  transition: background .25s, color .25s;
}
.bar.is-solid { background: var(--bg); color: var(--ink); }
.wordmark { font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1; }
.bar__links { display: none; gap: 24px; margin-left: 8px; }
.bar__links a { font-size: var(--step-body); padding: 6px 0; position: relative; }
.bar__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.bar__links a:hover::after { transform: scaleX(1); }
.bar .button { margin-left: auto; }
@media (min-width: 700px) { .bar__links { display: flex; } }

/* ----- Hero: the street, the name, the link ----- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: 120px var(--pad) 40px; color: var(--paper); overflow: hidden;
}
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; filter: brightness(0.6); z-index: 0; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70%; background: linear-gradient(to top, rgba(28, 22, 18, 0.72), rgba(28, 22, 18, 0)); z-index: 0; pointer-events: none; }
.hero__body { position: relative; z-index: 1; width: 100%; max-width: var(--measure); margin: 0 auto; }
.hero__title { font-size: clamp(2.75rem, 1rem + 6.5vw, 7rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.03em; max-width: 11ch; text-wrap: balance; margin-left: -0.03em; }
.hero__lead { font-size: var(--step-lead); line-height: 1.4; margin-top: 28px; max-width: 36ch; }
.hero .ask { margin-top: 28px; }
.hero .ask__note { color: var(--paper); }
.hero .ask input { background: var(--paper); }
@media (min-width: 900px) {
  .hero { padding-bottom: 56px; }
  .hero__lead { margin-top: 36px; }
}

/* ----- The link form ----- */
.ask { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.ask input {
  flex: 1; min-width: 0; height: 52px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-size: var(--step-body);
}
.ask input::placeholder { color: var(--muted); }
.ask input.is-invalid { outline: 3px solid #b23b2a; outline-offset: 0; }
.ask__note { margin-top: 14px; font-size: var(--step-body); max-width: 44ch; }
.ask__note.is-success { color: var(--accent); }
.hero .ask__note.is-success { color: #8fd9ae; }
.ask__note.is-error { color: #b23b2a; }
.hero .ask__note.is-error { color: #f3a295; }
.ask__note a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 560px) { .ask { flex-direction: row; } }

/* ----- Shared section frame ----- */
.trouble, .pains, .proof, .how, .pricing, .faq {
  max-width: var(--measure); margin: 0 auto; padding: clamp(72px, 10vh, 128px) var(--pad);
}

/* ----- Trouble: words, one owner, one text thread ----- */
.trouble { display: grid; gap: 40px; align-items: center; }
.trouble__text p { margin-top: 20px; max-width: 40ch; }
.trouble__text p:first-of-type { margin-top: 28px; font-weight: 500; }
.trouble__visual { width: 100%; max-width: 440px; }
.trouble__frame { position: relative; padding-bottom: 56px; }
.trouble__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.trouble__caption { margin-top: 16px; font-size: var(--step-small); color: var(--muted); line-height: 1.4; }
.trouble__caption strong { color: var(--ink); font-weight: 500; }
.chat {
  position: absolute; right: -8px; bottom: 0; width: min(300px, 86%);
  background: #ffffff; color: #111111; border-radius: 22px; padding: 16px 16px 18px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif; font-size: 15px; line-height: 1.3;
  box-shadow: 0 18px 50px rgba(43, 38, 34, 0.22);
}
.chat__head { display: flex; align-items: center; gap: 10px; font-weight: 600; padding-bottom: 12px; border-bottom: 1px solid #ebebeb; }
.chat__avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.chat__time { text-align: center; font-size: 11px; color: #8e8e93; margin: 12px 0 8px; }
.chat__bubble { max-width: 86%; padding: 9px 13px; border-radius: 18px; margin-top: 6px; }
.chat__bubble--out { background: #1f8aff; color: #fff; margin-left: auto; border-bottom-right-radius: 5px; }
.chat__bubble--in { background: #e9e9eb; color: #111; border-bottom-left-radius: 5px; }
@media (min-width: 800px) {
  .trouble { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(40px, 7vw, 96px); }
  .trouble__text h2 { max-width: 22ch; }
  .trouble__visual { justify-self: end; }
  .chat { right: -40px; }
}

/* ----- How: three steps, nothing else ----- */
.how { padding-top: 0; }
.steps { display: grid; gap: 36px; margin-top: 48px; counter-reset: step; }
.steps li { border-top: 2px solid var(--ink); padding-top: 20px; }
.steps__num { display: block; font-size: var(--step-lead); font-weight: 600; color: var(--accent); }
.steps h3 { font-size: var(--step-lead); font-weight: 500; line-height: 1.2; margin-top: 12px; }
.steps p { margin-top: 10px; max-width: 30ch; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ----- Sound familiar: the pain as incoming texts ----- */
.pains { padding-top: 0; }
.pains__intro p { margin-top: 20px; max-width: 46ch; color: var(--muted); }
.pains__list { margin-top: 40px; display: grid; gap: 14px; max-width: 760px; }
.pains__list .chat__bubble {
  max-width: 88%; width: fit-content; margin: 0; padding: 14px 20px; border-radius: 22px; border-bottom-left-radius: 6px;
  background: var(--paper); color: var(--ink); font-size: var(--step-body); line-height: 1.45;
  box-shadow: 0 1px 0 rgba(43, 38, 34, 0.06);
}
.pains__list .chat__bubble:nth-child(even) { margin-left: clamp(0px, 6vw, 72px); }
.pains__answer { margin-top: 36px; font-weight: 500; font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; text-wrap: balance; }

/* ----- Our work: one frame per site, hover or drag to reveal the rebuild ----- */
.proof { padding-top: 0; }
.proof__intro p { margin-top: 20px; max-width: 46ch; color: var(--muted); }
.proof__intro .proof__hint { margin-top: 10px; font-size: var(--step-small); }
.pairs { display: grid; gap: 48px; margin-top: 48px; }
.pair { display: grid; gap: 6px; align-content: start; }
.browser { position: relative; display: flex; flex-direction: column; background: #ffffff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 rgba(43, 38, 34, 0.08), 0 18px 48px rgba(43, 38, 34, 0.14); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; background: #f1ecea; border-bottom: 1px solid #e3dcd8; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d3cbc6; }
.browser__bar span { margin-left: 10px; flex: 1; height: 20px; line-height: 20px; border-radius: 6px; background: #ffffff; font-size: 12px; color: var(--muted); text-align: center; font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif; }
.compare__stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; cursor: col-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; pointer-events: none; }
.compare__after { clip-path: inset(0 0 0 var(--x)); }
.compare__edge {
  position: absolute; top: -6px; bottom: -6px; left: var(--x); width: 34px; transform: translateX(-50%);
  -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0) 100%);
  opacity: 1; transition: opacity .25s; pointer-events: none; will-change: left;
}
.compare__after { will-change: clip-path; }
.compare__stage.is-rest .compare__edge { opacity: 0; }
.tag {
  position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif; pointer-events: none;
  transition: opacity .2s;
}
.tag--after { background: var(--accent); color: #fff; }
.compare__tag--after { left: auto; right: 12px; }
.compare__stage.hide-before .compare__tag--before, .compare__stage.hide-after .compare__tag--after { opacity: 0; }
.compare__range { position: absolute; }
.compare__stage:has(.compare__range:focus-visible) { outline: 3px solid var(--accent); outline-offset: -3px; }
.pair h3 { font-size: var(--step-lead); font-weight: 500; margin-top: 20px; }
.pair p { margin-top: 6px; color: var(--muted); max-width: 52ch; display: flex; gap: 10px; align-items: baseline; }
.pair__k { flex: none; min-width: 3.4em; font-size: var(--step-small); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif; }
.pair__k--after { color: var(--accent); }
@media (min-width: 760px) {
  .pairs { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
}
@media (prefers-reduced-motion: reduce) { .tag, .compare__edge { transition: none; } }

/* ----- Pricing: one build, three plans ----- */
.pricing { padding-top: 0; }
.pricing__setup { margin-top: 24px; max-width: 54ch; color: var(--muted); }
.pricing__setup strong { color: var(--ink); font-weight: 500; }
.plans { display: grid; gap: 16px; margin-top: 40px; }
.plan { position: relative; background: var(--paper); padding: 28px 24px 32px; display: flex; flex-direction: column; }
.plan--main { background: var(--ink); color: var(--bg); }
.plan__badge { position: absolute; top: -14px; left: 24px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: var(--step-small); font-weight: 500; }
.plan__name { font-size: var(--step-lead); font-weight: 500; }
.plan__price { margin-top: 6px; font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.75rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.plan__price span { font-size: 0.4em; font-weight: 400; letter-spacing: 0; margin-left: 4px; }
.plan__for { margin-top: 12px; color: var(--muted); }
.plan--main .plan__for { color: #cfc6c2; }
.plan ul { margin-top: 22px; display: grid; gap: 10px; align-content: start; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.plan--main li::before { background: #8fd9ae; }
.pricing__foot { margin-top: 36px; font-weight: 500; }
.pricing .button { margin-top: 20px; }
@media (min-width: 760px) {
  .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
  .plan { padding: 36px 30px 40px; }
}

/* ----- FAQ ----- */
.faq { padding-top: 0; }
.qa { margin-top: 40px; max-width: 60ch; }
.qa__item { border-top: 1px solid var(--muted); }
.qa__item:last-child { border-bottom: 1px solid var(--muted); }
.qa__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: var(--step-lead); font-weight: 500; line-height: 1.3; min-height: 44px; padding: 20px 0;
}
.qa__item summary::-webkit-details-marker { display: none; }
.qa__item summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-right: 4px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease);
}
.qa__item[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.qa__item summary:hover { color: var(--accent); }
.qa__body { overflow: hidden; }
.qa__body p { padding: 0 0 24px; max-width: 52ch; }

/* ----- Close: dark, one sentence, one action ----- */
.close {
  background: var(--ink); color: var(--bg);
  padding: clamp(96px, 16vh, 180px) var(--pad);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.close__line { font-size: var(--step-head); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; max-width: 22ch; text-wrap: balance; }
.close .ask { margin-top: 36px; width: 100%; }
.close .ask__note { text-align: center; color: var(--bg); }
.close .ask__note.is-success { color: #8fd9ae; }
.close .ask__note.is-error { color: #f3a295; }

/* ----- Footer: small and plain ----- */
.foot {
  background: var(--ink); color: var(--bg);
  max-width: none; padding: 32px var(--pad) 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
  border-top: 1px solid rgba(235, 229, 227, 0.18);
}
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot__legal { font-size: var(--step-small); flex-basis: 100%; opacity: 0.8; }
@media (min-width: 900px) {
  .foot__legal { flex-basis: auto; margin-left: auto; }
}

/* ----- Motion ----- */
.rise { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .bar, .button, .bar__links a::after, .qa__item summary::after { transition: none; }
}
