:root {
  --ink: #121212;
  --muted: #5c5c5a;
  --line: #dcdcd9;
  --paper: #f5f5f4;
  --accent: #d6006f;
  --page: 84rem;
  --top-x: 1.4rem;
  --sans: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding: 1.25rem var(--top-x) 0.85rem;
}

/* With JS the header is fixed: the brand is always there,
   the nav fades in once you scroll (see the script in index.html). */
.js .top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  max-width: none;
  /* Full-width bar, content lined up with the centered page column */
  padding-top: calc(env(safe-area-inset-top, 0px) + 0.9rem);
  padding-bottom: 0.9rem;
  padding-inline: max(var(--top-x), calc((100% - var(--page)) / 2 + var(--top-x)));
  border-bottom: 1px solid transparent;
  background: rgba(245, 245, 244, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease;
}

.js .top.is-shown { border-bottom-color: var(--line); }

.js .nav,
.js .cta-head { transition: opacity 0.25s ease; }

.js .top:not(.is-shown) .nav,
.js .top:not(.is-shown) .cta-head {
  position: absolute;
  visibility: hidden;
  opacity: 0;
}

.js main { padding-top: calc(env(safe-area-inset-top, 0px) + 3.6rem); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .top,
  .js .nav { transition: none; }
}

h1,
.brand {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

h1 a,
.brand a { text-decoration: none; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.4rem 1rem 2.5rem;
}

.panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  width: 100%;
  min-height: min(72dvh, 680px);
  margin: 0;
  padding: 2rem 2rem 1.8rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at 16% 18%, #ffe14a 0%, transparent 36%),
    radial-gradient(circle at 86% 12%, #3d74ff 0%, transparent 42%),
    radial-gradient(circle at 80% 86%, #ff5a36 0%, transparent 40%),
    radial-gradient(circle at 14% 84%, #2fe0c0 0%, transparent 36%),
    #efe9ff;
}

.lead {
  max-width: 20ch;
  margin: 0 0 1.1rem;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.sub {
  max-width: 34ch;
  margin: 0 0 1.5rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.proof {
  margin: 1.4rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cta {
  display: inline-block;
  appearance: none;
  align-self: flex-start;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.cta:hover { background: #2c2c2c; }

/* Header CTA: replaces the nav links on small screens */
.cta-head {
  display: none;
  padding: 0.55rem 1rem;
  background: var(--accent);
  font-size: 0.88rem;
}

.cta-head:hover { background: #b8005f; }

.cta-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.cta-ghost:hover { background: rgba(18, 18, 18, 0.06); }

/* Sections */

.section {
  width: min(60rem, 100%);
  min-width: 0;
  padding: 3.5rem 2rem 0;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.intro,
.section > p,
.steps li {
  max-width: 40rem;
  margin: 0 0 1.05rem;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.6;
}

.note {
  font-weight: 700 !important;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
  gap: 1.5rem 2rem;
  margin: 1.75rem 0 0;
}

.grid div {
  padding-top: 0.9rem;
  border-top: 2px solid var(--ink);
}

.grid dt {
  margin-bottom: 0.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.grid dd {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}

.steps {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}

.steps li { margin-bottom: 0.6rem; }
.steps li::marker { font-weight: 700; }

/* Examples */

.examples {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.example {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 1.4rem 1.5rem;
  border-radius: 20px;
  background: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

a.example:hover { box-shadow: inset 0 0 0 2px var(--ink); }

.example-count {
  color: var(--accent);
  font-weight: 700;
}

.example-empty {
  border: 2px dashed var(--line);
  background: transparent;
  color: var(--muted);
}

/* Example pages */

.kicker {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; }

.example-title {
  max-width: 20ch;
  margin: 0 0 1.1rem;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.example-head { padding-top: 2rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
  gap: 1rem 2rem;
  max-width: 52rem;
  margin: 1.5rem 0 0;
}

.facts div {
  padding-top: 0.7rem;
  border-top: 2px solid var(--ink);
}

.facts dt {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.facts dd {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 52rem;
}

.shots figure { margin: 0; }

.shots img {
  display: block;
  width: 100%;
  height: auto;
}

/* Captions sit above the screenshot. The negative margin pulls them down over
   the image's transparent margin, closer to the phone. */
.shots figcaption {
  position: relative;
  margin-bottom: -11%;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
}

.check .shots {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.shots .cap-after {
  color: var(--accent);
  font-weight: 700;
}

.check-num {
  margin: 0 0 0.35rem !important;
  color: var(--accent);
  font-size: 0.92rem !important;
  font-weight: 700 !important;
}

.rewrites {
  display: grid;
  gap: 0.75rem;
  max-width: 40rem;
  margin: 1.25rem 0 1.5rem;
}

.rewrite {
  padding: 1.1rem 1.25rem;
  border-radius: 20px;
  background: #fff;
}

.rewrite p { margin: 0; }

.rewrite-who {
  margin-bottom: 0.5rem !important;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.ad-text {
  font-weight: 700;
  letter-spacing: -0.015em;
}

.ad-note {
  margin-top: 0.3rem !important;
  color: var(--muted);
  font-weight: 500;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: #e8e8e5;
  font-size: 0.9em;
}

/* Pricing */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 1.8rem;
  border-radius: 24px;
  background: #fff;
}

.price {
  margin: 0 0 0.45rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}

.per,
.from {
  font-size: 0.42em;
  letter-spacing: -0.03em;
}

.from { margin-right: 0.3em; }

.card-name {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.card-desc {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-weight: 500;
}

.card ul {
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}

.card li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-weight: 500;
}

.card .cta { margin-top: auto; }

/* Letter, about */

.letter p,
.about p { max-width: 40rem; }

.sign {
  margin-top: 0.4rem;
  font-weight: 700 !important;
}

/* Closing */

.closing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 4rem;
  padding: 2.5rem 2rem;
  border-radius: 32px;
  background: var(--ink);
  color: #fff;
}

.closing .sub { color: #d6d6d3; font-weight: 500; }

.closing .cta {
  background: #fff;
  color: var(--ink);
}

.closing .cta:hover { background: #e8e8e6; }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: min(40rem, 100%);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.field-wide { grid-column: 1 / -1; }

.offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.offers legend {
  margin-bottom: 0.4rem;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.offer { position: relative; }

.offer input {
  position: absolute;
  opacity: 0;
}

.offer span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  height: 100%;
  padding: 0.8rem 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  color: #d6d6d3;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.offer b {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.offer input:checked + span {
  border-color: var(--accent);
  background: rgba(214, 0, 111, 0.22);
  color: #fff;
}

.offer input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.field label {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.field textarea { resize: vertical; }

.field input::placeholder { color: #9a9a97; }

.form .cta { justify-self: start; }

.hp {
  position: absolute;
  left: -9999px;
}

.form-status {
  display: none;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #2fe0c0;
  color: var(--ink);
  font-weight: 700;
}

.form-status:target { display: block; }

#error { background: #ff5a36; }

.closing .address {
  margin: 1.25rem 0 0;
  color: #d6d6d3;
  font-size: 0.92rem;
  font-weight: 500;
}

.foot {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding: 0 3rem 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.foot p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.closing :focus-visible { outline-color: #fff; }

@media (max-width: 800px) {
  :root { --top-x: 1rem; }
  .top {
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 0.65rem;
  }
  .nav { display: none; }
  .cta-head { display: inline-block; }
  main { padding: 0 0.85rem 0.85rem; }
  .js .top {
    padding-top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
    padding-bottom: 0.75rem;
  }
  .js main { padding-top: calc(env(safe-area-inset-top, 0px) + 3.1rem); }
  .panel {
    min-height: 0;
    justify-content: flex-start;
    padding: 2.25rem 1.2rem 1.6rem;
    border-radius: 24px;
  }
  .lead { font-size: 2.05rem; }
  .section { padding: 2.75rem 1.2rem 0; }
  .intro,
  .section > p,
  .steps li { font-size: 1.02rem; }
  .card { padding: 1.4rem; }
  .closing {
    margin-top: 3rem;
    padding: 2rem 1.2rem;
    border-radius: 24px;
  }
  .foot { padding: 0 2.05rem 1.5rem; }
}

@media (max-width: 560px) {
  .form,
  .offers { grid-template-columns: 1fr; }
  .shots { grid-template-columns: minmax(0, 20rem); }
}
