/* ============================================================
   Debt Australia — Google Ads landing page
   Same design system as the main site, tuned for conversion.
   ============================================================ */

:root {
  --pine-950: #07231C;
  --pine-900: #0C332A;
  --pine-800: #114237;
  --pine-700: #1A5245;
  --leaf: #94C663;
  --leaf-soft: #B7DA92;
  --paper: #FAF9F5;
  --sand: #ECE7DC;
  --ink: #16281F;
  --ink-soft: #4C5E52;
  --ink-faint: #7C8A7E;
  --line: rgba(22, 40, 31, 0.12);
  --line-light: rgba(250, 249, 245, 0.16);

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1140px;
  --gutter: clamp(20px, 4vw, 44px);
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

::selection { background: var(--leaf); color: var(--pine-950); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h1 em, h2 em { font-style: italic; font-weight: 400; }

.eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5.5vw, 60px); }
.section-head-light h2 { color: var(--paper); }
.section-head-light .eyebrow { color: var(--leaf); }
.section-head-light h2 em { color: var(--leaf-soft); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
              background-color 0.35s var(--ease-soft), color 0.35s var(--ease-soft),
              border-color 0.35s var(--ease-soft);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 0.1s; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

.btn-accent { background: var(--leaf); color: var(--pine-950); }
.btn-accent:hover {
  background: var(--leaf-soft);
  box-shadow: 0 14px 30px -12px rgba(148, 198, 99, 0.55);
}

.btn-dark { background: var(--pine-900); color: var(--paper); }
.btn-dark:hover {
  background: var(--pine-800);
  box-shadow: 0 14px 30px -14px rgba(12, 51, 42, 0.5);
}

.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line-light); }
.btn-ghost:hover { border-color: rgba(250, 249, 245, 0.5); background: rgba(250, 249, 245, 0.06); }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft);
}
.header.scrolled {
  background: rgba(7, 35, 28, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(250, 249, 245, 0.08);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo { height: 32px; width: auto; }
.header-cta { padding: 10px 20px; font-size: 0.88rem; }

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

.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 22% 8%, var(--pine-800) 0%, transparent 55%),
    var(--pine-900);
  color: var(--paper);
  overflow: hidden;
  padding: clamp(120px, 16vh, 170px) 0 clamp(64px, 8vw, 100px);
}

.hero-chart { position: absolute; inset: 0; pointer-events: none; }
.hero-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.descent-grid line { stroke: rgba(250, 249, 245, 0.05); stroke-width: 1; }

.descent-line {
  fill: none;
  stroke: rgba(148, 198, 99, 0.5);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawLine 2.4s var(--ease-out) 0.4s forwards;
}
.descent-dot {
  fill: var(--leaf);
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-soft) 2.4s forwards;
}

@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 6.2fr) minmax(0, 4.8fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.hero .eyebrow { color: var(--leaf); }

.hero-title {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  color: var(--paper);
}
.hero-title em { color: var(--leaf-soft); }

.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.line {
  display: block;
  transform: translateY(110%);
  animation: lineUp 1.1s var(--ease-out) var(--d, 0s) forwards;
}
@keyframes lineUp { to { transform: translateY(0); } }

.hero-sub {
  margin-top: 24px;
  max-width: 48ch;
  font-size: 1.05rem;
  color: rgba(250, 249, 245, 0.78);
}

.hero-points {
  list-style: none;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-points li {
  position: relative;
  padding-left: 30px;
  font-size: 0.98rem;
  color: rgba(250, 249, 245, 0.85);
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--leaf);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / 12px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / 12px no-repeat, linear-gradient(#000 0 0);
          mask-composite: exclude;
}

.hero-proof {
  margin-top: clamp(32px, 4.5vw, 48px);
  padding-top: 26px;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 52px);
}
.proof { display: flex; flex-direction: column; gap: 2px; }
.proof-num {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 500;
  color: var(--paper);
}
.proof-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(250, 249, 245, 0.55);
}

/* ---------- Form card ---------- */

.form-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 24px;
  padding: clamp(28px, 3.4vw, 40px);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.55);
  position: relative;
}

.form-title {
  font-size: 1.65rem;
  line-height: 1.15;
  margin-bottom: 10px;
}
.form-sub {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field .optional {
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--ink-faint);
}

.field input,
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
  appearance: none;
}
.field select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%234C5E52" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.field input::placeholder { color: var(--ink-faint); }

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(148, 198, 99, 0.25);
}

.field input.invalid { border-color: #C25B4E; box-shadow: 0 0 0 3px rgba(194, 91, 78, 0.15); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.field-error {
  font-size: 0.85rem;
  color: #A84437;
  margin: -6px 0 14px;
}

.btn-submit { width: 100%; padding: 16px 24px; font-size: 1rem; }

.form-fine {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.form-alt {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.form-alt a {
  font-weight: 600;
  color: var(--pine-700);
  border-bottom: 1px solid rgba(26, 82, 69, 0.3);
  transition: border-color 0.3s;
}
.form-alt a:hover { border-color: var(--pine-700); }

/* success state */
.form-success { text-align: center; padding: 10px 0; }
.success-ring {
  display: grid;
  place-items: center;
  width: 74px; height: 74px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--leaf);
  color: var(--pine-950);
  animation: popIn 0.6s var(--ease-out);
}
@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.form-success .form-sub { margin-bottom: 18px; }
.form-success .form-fine { margin-bottom: 14px; }

/* ---------- Strip ---------- */

.strip { background: var(--paper); padding: clamp(56px, 8vw, 96px) 0; }
.strip-inner p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  text-align: center;
  max-width: 34ch;
  margin: 0 auto;
}
.strip-inner em { font-style: italic; color: var(--pine-700); }

/* ---------- Help ---------- */

.help { background: var(--sand); padding: clamp(64px, 9vw, 110px) 0; }

.help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.help-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px 24px 30px;
  border: 1px solid rgba(22, 40, 31, 0.05);
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out);
}
.help-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -24px rgba(12, 51, 42, 0.28);
}

.help-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--pine-900);
  color: var(--leaf);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.help-icon svg { width: 24px; height: 24px; }

.help-card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.help-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }

.mid-cta {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.mid-cta-or { color: var(--ink-faint); font-size: 0.9rem; }
.mid-cta-tel {
  font-weight: 600;
  color: var(--pine-700);
  border-bottom: 1px solid rgba(26, 82, 69, 0.3);
  transition: border-color 0.3s;
}
.mid-cta-tel:hover { border-color: var(--pine-700); }

/* ---------- Process ---------- */

.process {
  background: var(--pine-900);
  color: var(--paper);
  padding: clamp(64px, 9vw, 110px) 0;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--leaf);
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  margin-bottom: 18px;
}

.step h3 { font-size: 1.35rem; color: var(--paper); margin-bottom: 8px; }
.step p { font-size: 0.94rem; color: rgba(250, 249, 245, 0.68); }

/* ---------- Mark ---------- */

.mark { background: var(--paper); padding: clamp(64px, 9vw, 110px) 0; }

.mark-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.mark-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 36px 72px -36px rgba(12, 51, 42, 0.4);
}
.mark-photo img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; }

.mark-copy blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.35;
  color: var(--pine-800);
  margin-bottom: 20px;
}
.mark-byline {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 26px;
  max-width: 46ch;
}

/* ---------- Results ---------- */

.results { background: var(--sand); padding: clamp(64px, 9vw, 110px) 0; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.result-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 30px 28px 28px;
  border: 1px solid rgba(22, 40, 31, 0.05);
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out);
}
.result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -24px rgba(12, 51, 42, 0.28);
}

.result-type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
}
.result-before { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 2px; }
.result-before s { text-decoration-thickness: 1.5px; text-decoration-color: rgba(22, 40, 31, 0.45); }
.result-after {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--pine-800);
  line-height: 1.1;
  margin-bottom: 14px;
}
.result-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.results-fine {
  margin-top: 26px;
  font-size: 0.82rem;
  color: var(--ink-faint);
  max-width: 62ch;
}

/* ---------- Quote ---------- */

.quote { background: var(--paper); padding: clamp(64px, 9vw, 110px) 0; }
.quote-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.quote-inner blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.9vw, 2.1rem);
  line-height: 1.4;
}
.quote-inner blockquote em { font-style: italic; color: var(--pine-700); }
.quote-inner figcaption { margin-top: 22px; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- CTA ---------- */

.cta {
  background:
    radial-gradient(110% 100% at 50% 0%, var(--pine-800) 0%, transparent 60%),
    var(--pine-950);
  color: var(--paper);
  text-align: center;
  padding: clamp(72px, 10vw, 130px) 0;
}
.cta .eyebrow { color: var(--leaf); }
.cta h2 { color: var(--paper); font-size: clamp(2.1rem, 4.8vw, 3.4rem); }
.cta h2 em { color: var(--leaf-soft); }

.cta-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.cta-hours {
  margin-top: 26px;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  color: rgba(250, 249, 245, 0.5);
}

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

.footer {
  background: var(--pine-950);
  color: rgba(250, 249, 245, 0.6);
  padding: 56px 0 110px; /* room for sticky bar */
  border-top: 1px solid rgba(250, 249, 245, 0.07);
  font-size: 0.85rem;
}
.footer-logo { height: 28px; width: auto; margin-bottom: 20px; }
.footer-legal { margin-bottom: 14px; color: rgba(250, 249, 245, 0.75); }
.footer-disclaimer { max-width: 78ch; line-height: 1.7; color: rgba(250, 249, 245, 0.45); margin-bottom: 18px; }
.footer-copy { color: rgba(250, 249, 245, 0.4); }

/* ---------- Sticky mobile bar ---------- */

.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(0);
  transition: transform 0.5s var(--ease-out);
}
.sticky-bar.hidden { transform: translateY(110%); }
.sticky-bar .btn { flex: 1; padding: 13px 10px; font-size: 0.9rem; }

/* ---------- Animations ---------- */

.load-item {
  opacity: 0;
  transform: translateY(22px);
  animation: loadItem 1s var(--ease-out) var(--d, 0s) forwards;
}
@keyframes loadItem { to { opacity: 1; transform: none; } }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out) var(--d, 0s),
              transform 0.9s var(--ease-out) var(--d, 0s);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .form-card { max-width: 560px; }
  .help-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .mark-grid { grid-template-columns: 1fr; gap: 40px; }
  .mark-photo { max-width: 380px; }
  .results-grid { grid-template-columns: 1fr; max-width: 500px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-cta span { display: none; }
  .header-cta { padding: 10px 13px; }
  .header-inner { height: 62px; }
  .hero { padding-top: 100px; }
  .line-mask { display: inline; overflow: visible; padding-bottom: 0; margin-bottom: 0; }
  .line { display: inline; transform: none; animation: none; }
  .hero-title {
    opacity: 0;
    transform: translateY(22px);
    animation: loadItem 1s var(--ease-out) 0.25s forwards;
  }
  html.still .hero-title { animation: none; opacity: 1; transform: none; }
  .help-grid { grid-template-columns: 1fr; }
  .sticky-bar { display: flex; }
  .cta-actions .btn { width: 100%; max-width: 340px; }
}

/* ---------- Still mode (screenshots) ---------- */

html.still .load-item, html.still .hero-title { animation: none; opacity: 1; transform: none; }
html.still .line { animation: none; transform: none; }
html.still .reveal { opacity: 1; transform: none; transition: none; }
html.still .descent-line { animation: none; stroke-dashoffset: 0; }
html.still .descent-dot { animation: none; opacity: 1; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal, .load-item, .line, .hero-title { opacity: 1; transform: none; }
  .descent-line { stroke-dashoffset: 0; }
  .descent-dot { opacity: 1; }
}
