/* WooTF — Sydney ledger. Paper, ink, eucalyptus. No purple, no glass. */
:root {
  --paper: #f6f1e8;
  --paper-2: #efe8dc;
  --ink: #1b2430;
  --muted: #3a424c;
  --rules: #c8c0b4;
  --eucalyptus: #1f6b5a;
  --eucalyptus-ink: #185548;
  --eucalyptus-deep: #154c3f;
  --stamp: #9b2c2c;
  --sheet: #fffdf8;
  --focus: #1f6b5a;
  --header-h: 3.75rem;
  --space: 1rem;
  --measure: 40rem;
  --wide: 68rem;
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.55;
  min-width: 320px;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
.doc-title,
.wordmark {
  font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.7rem, 6.4vw, 3rem);
  margin: 0 0 0.85rem;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.45rem, 4vw, 2rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 0.85rem;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

a {
  color: var(--eucalyptus-ink);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--eucalyptus-deep);
}

:focus {
  outline: none;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  font-weight: 500;
}

.skip:focus,
.skip:focus-visible {
  top: 0.6rem;
  outline-color: var(--paper);
}

.num,
.price,
.abn,
.doc-sheet td:not(:first-child):not(:nth-child(4)),
.totals td:last-child {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.wrap {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 2rem, 42rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--paper);
  border-bottom: 1px solid var(--rules);
}

.header-inner {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wordmark {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
  line-height: 1;
  padding: 0.35rem 0;
  border-bottom: 2px solid var(--eucalyptus);
}

.wordmark:hover {
  color: var(--eucalyptus-ink);
}

.header-cta {
  margin-left: auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-left: 0.15rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  border-radius: 2px;
}

.nav-toggle-bars {
  display: block;
  width: 1.05rem;
  height: 0.7rem;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 2px no-repeat;
}

.nav-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--rules);
  padding: 0.5rem 1rem 1rem;
}

.nav-panel.is-open {
  display: block;
}

.nav-panel a {
  display: block;
  padding: 0.65rem 0.25rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--paper-2);
}

.nav-panel a:hover,
.nav-panel a:focus-visible {
  color: var(--eucalyptus-ink);
}

body.nav-open {
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.7rem 1.05rem;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--eucalyptus);
  color: #f6f1e8;
  border-color: var(--eucalyptus);
}

.btn-primary:hover {
  background: var(--eucalyptus-deep);
  border-color: var(--eucalyptus-deep);
  color: #f6f1e8;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
}

/* Hero + sections */
.hero {
  padding: 2.25rem 0 2rem;
  border-bottom: 1px solid var(--rules);
}

.kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eucalyptus-ink);
  margin-bottom: 0.65rem;
}

.lede {
  font-size: 1.08rem;
  max-width: 38rem;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.35rem 0 0;
  max-width: 24rem;
}

.section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rules);
}

.section-head {
  max-width: var(--measure);
  margin-bottom: 1.4rem;
}

.muted {
  color: var(--muted);
}

.trust-strip {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rules);
  font-size: 0.88rem;
  color: var(--muted);
}

.trust-strip p {
  margin: 0;
}

.ledger-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
}

.ledger-line span:not(:last-child)::after {
  content: "·";
  margin: 0 0.55rem;
  color: var(--rules);
}

/* Is / isn't */
.split {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--sheet);
  border: 1px solid var(--rules);
  padding: 1.15rem 1.15rem 1.2rem;
}

.card h3 {
  font-size: 1.2rem;
}

.card.is h3 {
  color: var(--eucalyptus-ink);
}

.card.isnt h3 {
  color: var(--stamp);
}

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

.card li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--paper-2);
  padding-left: 1.15rem;
  position: relative;
}

.card li:first-of-type {
  border-top: 0;
}

.card.is li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.5rem;
  height: 2px;
  background: var(--eucalyptus);
}

.card.isnt li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.5rem;
  height: 2px;
  background: var(--stamp);
}

/* Documents */
.doc-block + .doc-block {
  margin-top: 2.25rem;
}

.doc-layout {
  display: grid;
  gap: 1.15rem;
}

.doc-sheet {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--ink);
  padding: 1.15rem 1rem 1.25rem;
  overflow: hidden;
}

.doc-sheet::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  pointer-events: none;
}

.stamp {
  position: absolute;
  top: 1.35rem;
  right: -0.15rem;
  transform: rotate(-14deg);
  border: 2px solid var(--stamp);
  color: var(--stamp);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  opacity: 0.88;
  pointer-events: none;
  background: color-mix(in srgb, var(--sheet) 70%, transparent);
}

.doc-title {
  font-size: 1.45rem;
  margin: 0.55rem 0 0.85rem;
}

.doc-meta {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
}

.doc-parties {
  display: grid;
  gap: 0.75rem;
  margin: 0.9rem 0 1rem;
  font-size: 0.9rem;
}

.doc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.5rem 0;
}

.doc-sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  min-width: 28rem;
}

.doc-sheet th,
.doc-sheet td {
  border-bottom: 1px solid var(--rules);
  padding: 0.38rem 0.4rem;
  text-align: left;
  vertical-align: top;
}

.doc-sheet th {
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}

.doc-sheet td.right,
.doc-sheet th.right {
  text-align: right;
}

.doc-sheet .totals {
  width: min(16rem, 100%);
  margin-left: auto;
  min-width: 0;
  margin-top: 0.65rem;
}

.doc-sheet .totals td {
  border-bottom: 1px solid var(--rules);
}

.doc-sheet .totals tr:last-child td {
  border-bottom: 2px solid var(--ink);
  font-weight: 500;
}

.doc-note {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.anno {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.25rem;
  border-radius: 50%;
  background: var(--eucalyptus);
  color: #f6f1e8;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  vertical-align: 0.12em;
  text-decoration: none;
}

.doc-notes {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: note;
}

.doc-notes li {
  counter-increment: note;
  position: relative;
  padding: 0.65rem 0 0.65rem 2rem;
  border-top: 1px solid var(--rules);
  font-size: 0.92rem;
}

.doc-notes li:first-child {
  border-top: 0;
}

.doc-notes li::before {
  content: counter(note);
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--eucalyptus);
  color: #f6f1e8;
  font-size: 0.72rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

figcaption,
.caption {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 42rem;
}

/* Steps */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--rules);
}

.steps li:first-child {
  border-top: 0;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--eucalyptus-ink);
  letter-spacing: 0.04em;
}

.aside-note {
  margin-top: 1.15rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--eucalyptus);
  background: var(--paper-2);
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1rem;
}

.price-card {
  background: var(--sheet);
  border: 1px solid var(--rules);
  padding: 1.25rem 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.price-card.featured {
  border-color: var(--ink);
  box-shadow: inset 0 4px 0 var(--eucalyptus);
}

.price-amount {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 6vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.price-period {
  font-size: 1.05rem;
  font-weight: 600;
}

.price-ex {
  color: var(--muted);
  font-size: 0.92rem;
}

.price-card .btn {
  margin-top: auto;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rules);
  background: var(--sheet);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 40rem;
}

.compare th,
.compare td {
  padding: 0.7rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rules);
  border-right: 1px solid var(--paper-2);
}

.compare th {
  font-weight: 500;
  background: var(--paper-2);
}

.compare th:first-child,
.compare td:first-child {
  font-weight: 500;
}

.compare tr:last-child th,
.compare tr:last-child td {
  border-bottom: 0;
}

.compare .col-wootf {
  background: color-mix(in srgb, var(--eucalyptus) 7%, var(--sheet));
}

.works-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.works-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--rules);
  padding-left: 0;
}

.works-list li:first-child {
  border-top: 0;
}

.works-list strong {
  display: block;
  margin-bottom: 0.2rem;
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--rules);
  padding: 0.15rem 0;
}

.faq details:first-child {
  border-top: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  padding: 0.85rem 1.6rem 0.85rem 0;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.15rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq details p {
  margin: 0 0 1rem;
  color: var(--ink);
  max-width: 40rem;
}

.cta-band {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rules);
}

.cta-band .hero-actions {
  margin-top: 1.1rem;
}

.disclaimer {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 42rem;
}

/* Footer + legal */
.site-footer {
  padding: 2rem 0 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  margin: 0.85rem 0 1rem;
}

.site-footer a {
  color: var(--ink);
}

.legal-page header.page-hero {
  padding: 2rem 0 1.25rem;
  border-bottom: 1px solid var(--rules);
}

.prose {
  padding: 2rem 0 3rem;
  max-width: 42rem;
  margin-inline: auto;
  width: min(100% - 2rem, 42rem);
}

.prose h2 {
  margin-top: 1.75rem;
}

.prose ul {
  padding-left: 1.15rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.updated {
  font-size: 0.9rem;
  color: var(--muted);
}

.error-page {
  min-height: calc(100vh - 12rem);
  display: grid;
  align-content: center;
  padding: 3rem 0;
}

.error-code {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 3rem;
  font-variant-numeric: tabular-nums;
  margin: 0 0 0.4rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    max-width: none;
    align-items: center;
  }

  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .doc-parties {
    grid-template-columns: 1fr 1fr;
  }

  .stamp {
    right: 1.1rem;
    top: 1.6rem;
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .header-cta {
    margin-left: 0;
    order: 3;
  }

  .nav-panel,
  .nav-panel.is-open {
    display: flex;
    position: static;
    border: 0;
    padding: 0;
    margin-left: auto;
    gap: 0.15rem 1.15rem;
    align-items: center;
  }

  .nav-panel a {
    display: inline;
    padding: 0.35rem 0;
    border: 0;
    font-size: 0.95rem;
  }

  body.nav-open {
    overflow: visible;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }

  .doc-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.8fr);
    gap: 1.5rem;
    align-items: start;
  }

  .section {
    padding: 3.1rem 0;
  }

  .hero {
    padding: 3.25rem 0 2.6rem;
  }
}

@media (min-width: 960px) {
  .header-inner {
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .stamp {
    transform: none;
    right: 0.75rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.compare caption:not(.visually-hidden) {
  text-align: left;
  padding: 0.7rem 0.75rem;
  font-weight: 500;
}

.wordmark,
.nav-toggle,
.header-cta {
  flex-shrink: 0;
}

.header-cta {
  white-space: nowrap;
}

.doc-sheet table.kv {
  min-width: 0;
}
