/* RightBack - getrightback.com.au
   Brand: Ink #0F1C26, Porcelain #F2F4F1, Reply Green #2FC96B, Deep Green #157A42,
          Slate #5A6B74, Missed Red #E0454A (missed moments ONLY).
   Type:  Helvetica Neue, system-safe on purpose. No webfonts, no external requests. */

:root {
  --ink: #0F1C26;
  --ink-soft: #23323C;
  --porcelain: #F2F4F1;
  --reply-green: #2FC96B;
  --deep-green: #157A42;
  --green-dark: #07230F;
  --slate: #5A6B74;
  --slate-light: #8FA0AA;
  --missed-red: #E0454A;
  --rule: #DDE2DD;
  --surface: #E4E8E4;

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 34rem;
  --wrap: 46rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--porcelain);
  overflow-x: hidden;
}

/* Grain. Inline SVG data URI, no network request. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { margin: 0 0 0.6em; line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.4rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
a { color: var(--deep-green); text-underline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.35rem; }

.section { padding: 3.75rem 0; border-top: 1px solid var(--rule); }
.section--dark {
  background: var(--ink);
  color: var(--porcelain);
  border-top: 0;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #D5DDE0; }
.section--dark a { color: var(--reply-green); }

.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1rem;
}
.section--dark .eyebrow { color: var(--reply-green); }

.lede { font-size: 1.12rem; color: var(--ink-soft); }
/* Anything on an Ink background needs the light lede. .hero is a dark surface but
   does NOT carry .section--dark, so it must be named explicitly here. Missing it
   put #23323C on #0F1C26 (about 1.3:1) in the hero. */
.section--dark .lede,
.hero .lede { color: #C9D4D8; }

/* ---------- Wordmark ---------- */

.wordmark {
  display: inline-block;
  background: var(--reply-green);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  padding: 0.42rem 0.85rem;
  border-radius: 1.1rem;
  border-bottom-right-radius: 0.28rem;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: var(--porcelain);
  padding: 2.25rem 0 3.75rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 34rem; height: 34rem;
  right: -16rem; top: -14rem;
  background: radial-gradient(circle, rgba(47,201,107,0.16), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-top: 1.9rem; }
.hero h1 .accent { color: var(--reply-green); }
.hero .lede { max-width: 32rem; }
.hero-note { font-size: 0.95rem; color: var(--slate-light); margin-top: 1.5rem; }

.hero--page { padding-bottom: 2.5rem; }
.page-title { font-size: clamp(1.8rem, 6vw, 2.6rem); margin-top: 1.6rem; }

/* ---------- SMS thread ---------- */

.thread {
  max-width: 27rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.thread li { margin: 0 0 0.55rem; }

.bubble {
  display: block;
  position: relative;
  padding: 0.72rem 1rem;
  border-radius: 1.15rem;
  max-width: 85%;
  font-size: 1rem;
  line-height: 1.45;
}
.bubble--them {
  background: var(--surface);
  color: var(--ink-soft);
  border-bottom-left-radius: 0.3rem;
}
.bubble--us {
  background: var(--reply-green);
  color: var(--green-dark);
  margin-left: auto;
  border-bottom-right-radius: 0.3rem;
  font-weight: 500;
}
.section--dark .bubble--them { background: #1D2B35; color: #C9D4D8; }

.stamp {
  display: block;
  font-size: 0.72rem;
  color: var(--slate);
  margin: 0.15rem 0 0 0.6rem;
  letter-spacing: 0.02em;
}
.stamp--right { text-align: right; margin: 0.15rem 0.6rem 0 0; }
.section--dark .stamp { color: var(--slate-light); }

/* Missed marker. Missed Red lives here and nowhere else. */
.missed {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.9rem 0 1.1rem;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--missed-red);
}
.missed::before, .missed::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 0.6rem;
  background: var(--reply-green);
  color: var(--green-dark);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:hover { background: #37DA77; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--porcelain);
  border: 1px solid rgba(242,244,241,0.28);
}
.btn--ghost:hover { background: rgba(242,244,241,0.08); color: #fff; }

/* ---------- Feature list ---------- */

.feats { list-style: none; margin: 0 0 1.4rem; padding: 0; max-width: var(--measure); }
.feats li {
  position: relative;
  padding: 0 0 0 1.6rem;
  margin-bottom: 0.85rem;
}
.feats li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 0.6rem; height: 0.6rem;
  border-radius: 50%;
  background: var(--reply-green);
}

/* ---------- Maths callout ---------- */

.sums {
  display: grid;
  gap: 1px;
  background: rgba(242,244,241,0.16);
  border: 1px solid rgba(242,244,241,0.16);
  border-radius: 0.7rem;
  overflow: hidden;
  margin: 0 0 1.75rem;
  max-width: var(--measure);
}
.sums div { background: var(--ink); padding: 1.1rem 1.25rem; }
.sums dt { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-light); margin-bottom: 0.3rem; }
.sums dd { margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.sums dd .unit { font-size: 0.9rem; font-weight: 400; color: var(--slate-light); letter-spacing: 0; }

@media (min-width: 34rem) { .sums { grid-template-columns: 1fr 1fr; } }

/* ---------- Pricing ---------- */

.tiers { display: grid; gap: 1.1rem; margin: 0 0 1.75rem; }
@media (min-width: 46rem) { .tiers { grid-template-columns: 1fr 1fr; } }

.tier {
  border: 1px solid var(--rule);
  border-radius: 0.8rem;
  padding: 1.5rem;
  background: #fff;
}
.tier--hero { border-color: var(--ink); border-width: 2px; }
.tier--soon { background: transparent; border-style: dashed; color: var(--slate); }
.tier--soon h3 { color: var(--slate); }

.tier-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 0.3rem;
  background: var(--ink);
  color: var(--porcelain);
  margin-bottom: 0.85rem;
}
.tier--soon .tier-tag { background: var(--porcelain); color: var(--ink-soft); }

.price { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 0 0 0.15rem; }
.price .per { font-size: 0.95rem; font-weight: 400; letter-spacing: 0; color: var(--slate); }
.gst { font-size: 0.85rem; color: var(--slate); margin-bottom: 1.1rem; }

.tier .feats li { margin-bottom: 0.6rem; font-size: 0.95rem; }
.tier .feats li::before { width: 0.42rem; height: 0.42rem; top: 0.6em; }
.tier--soon .feats li::before { background: var(--slate-light); }

.conditions {
  margin: 1.1rem 0 0;
  padding: 1rem 1.15rem;
  background: var(--porcelain);
  border-radius: 0.5rem;
  font-size: 0.9rem;
}
.conditions p { margin-bottom: 0.5rem; }
.conditions ul { margin: 0; padding-left: 1.1rem; }
.conditions li { margin-bottom: 0.3rem; }
.conditions .tight { margin-top: 0.7rem; margin-bottom: 0; }

.tier-note { margin-top: 1.1rem; font-size: 0.95rem; }
.fine { margin-top: 1rem; font-size: 0.95rem; color: var(--slate); }

/* ---------- Q&A ---------- */

.qa { border-top: 1px solid var(--rule); padding: 1.35rem 0; max-width: var(--measure); }
.qa:last-of-type { border-bottom: 1px solid var(--rule); }
.qa h3 { margin-bottom: 0.45rem; }

/* ---------- Contact ---------- */

.contact-lines { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.contact-lines li { margin-bottom: 0.7rem; }
.contact-lines a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- PS ---------- */

.ps {
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  border-left: 3px solid var(--reply-green);
  background: #fff;
  border-radius: 0 0.5rem 0.5rem 0;
}
.ps p { margin: 0; }

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: var(--slate-light);
  padding: 2.75rem 0;
  font-size: 0.9rem;
}
.footer p { max-width: none; margin-bottom: 0.6rem; }
.footer a { color: var(--porcelain); }
.footer .legal { color: #7F929C; }

/* ---------- Reveal (enabled by JS, visible by default) ---------- */

.js-on .reveal { opacity: 0; transform: translateY(10px); }
.js-on .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js-on .thread .reveal:nth-child(2).is-in { transition-delay: 0.28s; }
.js-on .thread .reveal:nth-child(3).is-in { transition-delay: 0.56s; }
.js-on .thread .reveal:nth-child(4).is-in { transition-delay: 0.84s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-on .reveal { opacity: 1; transform: none; }
  .js-on .reveal.is-in { transition: none; }
  .btn { transition: none; }
}

@media (min-width: 40rem) {
  body { font-size: 18px; }
  .section { padding: 5rem 0; }
  .hero { padding: 2.5rem 0 5rem; }
}
