/* ClearLevy: the parts only the marketing pages use (front page, LSL returns page, guides, privacy notice and the
   Victorian construction pages). The shared look (fonts, tokens, header, footer, buttons, cards, the first-screen
   box and the price line) is in base.css, which every page loads first. Plain CSS, no build step. */

/* ---------- Front page (index.html): the slogan, then the three tabs as compact rows ---------- */
.home-hero { padding-block: clamp(14px, 3.5vw, 44px) clamp(12px, 2vw, 22px); }
.home-hero .eyebrow { margin-bottom: .5rem; }
.home-hero__title { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); line-height: 1.02; letter-spacing: -.04em; max-width: 14em; }
.home-hero .lede { margin-top: 12px; max-width: 46em; }
@media (max-width: 759px) { .home-hero { padding-bottom: 8px; } .home-hero .lede { margin-top: 8px; } }

/* Highlighter pen, kept for the slogan only */
.hl {
  --hl-h: .42em;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-size: 100% var(--hl-h);
  background-position: 0 90%;
  padding-inline: .06em;
  margin-inline: -.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media (prefers-reduced-motion: no-preference) {
  /* Nothing at the top of a page fades in; only the stroke under the slogan draws in (first-time buyer review, 28 Oct 2026). */
  .hl--draw { animation: marker 1s .4s cubic-bezier(.6, 0, .2, 1) both; }
}
@keyframes marker { from { background-size: 0% var(--hl-h); } }

.home-services { padding-block: 0 clamp(32px, 5vw, 64px); }
.svc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.svc-card {
  display: grid; gap: 10px 32px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 16px 16px;
}
@media (min-width: 760px) { .svc-card { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding: 18px 24px; } }
.svc-card h3 { font-size: 1.25rem; margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.svc-card__who, .svc-card__what { margin: 0; font-size: .95rem; line-height: 1.45; color: var(--ink-2); }
.svc-card__what { color: var(--muted); }
.svc-card__side { display: grid; gap: 10px; }
.svc-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.svc-card__actions .btn { min-height: 44px; padding-block: .45em; }
@media (max-width: 759px) {
  .svc-card { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px 14px 12px; }
  .svc-card__main, .svc-card__side { display: contents; }
  .svc-card h3 { order: 1; margin: 0; }
  .svc-card .price-line { order: 2; }
  .svc-card__who { order: 3; }
  .svc-card__what { order: 4; font-size: .9rem; line-height: 1.4; }
  /* All three names and prices fit on a 390 x 844 phone: the LSL row's "what it does" line is the one that goes
     (its name and who-it's-for line say it); DEX's and Vic's stay. */
  .svc-card--lsl .svc-card__what { display: none; }
  .svc-list { gap: 8px; }
  .svc-card .price-line { line-height: 1.35; }
  .svc-card__actions { order: 5; margin-top: 2px; }
  .svc-card__who { font-size: .92rem; line-height: 1.4; }
  .svc-card h3 { font-size: 1.1rem; }
  .svc-card .price-line { font-size: .95rem; }
  .svc-card__actions { gap: 4px 14px; }
  .svc-card__actions .btn { padding-inline: 1.05em; }
}
.svc-card__more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.tag {
  display: inline-block; border: 1px solid var(--control); border-radius: 999px; padding: 1px 9px;
  font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: 0; line-height: 1.5; color: var(--ink-2);
  white-space: nowrap;
}
.home-help { margin: 16px 0 0; font-size: .95rem; color: var(--ink-2); }

.why-grid { display: grid; gap: 12px; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; }
@media (min-width: 760px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- LSL page (lsl-returns.html) ---------- */
.deadlines { margin-top: 2px; }
.deadlines__label { font-size: .85rem; font-weight: 700; margin: 0 0 8px; }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-block;
  border: 1px solid var(--control); border-radius: 999px; background: var(--paper);
  padding: 5px 13px 5px 11px; font-size: .9rem; line-height: 1.35;
}
.pill::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: 1px; border-radius: 50%; background: var(--orange); }
.pill strong { font-weight: 700; white-space: nowrap; }
/* A due date that has passed (app.js): "was due 14 Oct (late? you can still check it)".
   The longer words wrap as one line of text, not as squeezed columns. */
.pill:has(.is-past) { display: block; border-style: dashed; border-radius: 16px; }
.pill:has(.is-past) strong { white-space: normal; }

/* The worked example: the check's own "How … figures were worked out" table, for one made-up worker */
.example { padding-top: 18px; }
.example__flag {
  display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: var(--radius-sm);
  background: var(--warn-bg); border: 1px solid #e5c98a; font-size: .93rem; line-height: 1.45;
}
.example__title { font-size: 1.1rem; margin: 6px 0 10px; }
.example__scroll { overflow-x: auto; }
.example__table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.example__table th, .example__table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.example__table th { font-size: .8rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.example__table .amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.example__table td.rule { color: var(--muted); min-width: 240px; }
.example__figures { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.example__figures div { min-width: 140px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream); }
.example__figures dt { font-size: .82rem; font-weight: 700; color: var(--muted); }
.example__figures dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.example__change { margin: 16px 0 0; font-weight: 600; max-width: 46em; }
/* Phones: each pay line becomes a small card, labels on the left */
@media (max-width: 720px) {
  .example__table, .example__table tbody, .example__table tr, .example__table td { display: block; width: 100%; }
  .example__table thead { display: none; }
  .example__table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .example__table td { border: 0; padding: 1px 0; text-align: left !important; white-space: normal; font-size: .88rem; }
  .example__table td::before { content: attr(data-label); display: block; font-size: .74rem; font-weight: 700; color: var(--muted); }
  .example__table td[data-label="Kind"], .example__table td.rule { grid-column: 1 / -1; }
  .example__table td[data-label="Pay item"] { font-weight: 700; }
  .example__table td.rule { min-width: 0; }
}

.split { display: grid; gap: 20px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.prose p { max-width: 38em; }
.prose h3 { margin: 1.6rem 0 .5rem; }
.scheme-list { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 0; }
.scheme-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px;
  border-top: 1px solid var(--line); padding: 10px 0;
}
.scheme-list li:last-child { border-bottom: 1px solid var(--line); }
.scheme-list strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.02em; min-width: 5.2em; }

/* How it works: four numbered cards */
.step-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .step-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .step-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step-cards .card { display: flex; flex-direction: column; gap: 8px; }
.step-cards .card > h3, .step-cards .card > p { margin: 0; }
.step-cards .card a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; margin-top: auto; }
.num {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; margin-bottom: 4px;
}

/* Your export: the state picker, the steps and the side card */
.seg { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.seg legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.seg__opts {
  position: relative; display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px;
  border: 1px solid var(--control); border-radius: 999px; background: var(--paper);
}
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.seg label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 18px;
  border-radius: 999px; font-weight: 700; cursor: pointer; user-select: none;
}
.seg label:hover { background: rgba(13, 13, 13, .07); }
.seg input:checked + label { background: var(--ink); color: var(--cream); }
.seg input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 3px; }
/* Show only the selected state's text (falls back to showing every variant) */
@supports selector(:has(*)) {
  .export:has(#x-nsw:checked) [data-show]:not([data-show~="nsw"]),
  .export:has(#x-sa:checked) [data-show]:not([data-show~="sa"]),
  .export:has(#x-vic:checked) [data-show]:not([data-show~="vic"]) { display: none; }
}

.export-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .export-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; } }
.xsteps { list-style: none; padding: 0; margin: 0; counter-reset: x; }
.xsteps > li { counter-increment: x; position: relative; padding: 0 0 24px 52px; }
.xsteps > li::before {
  content: counter(x); position: absolute; left: 0; top: -4px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
}
.xsteps > li::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }
.xsteps > li:last-child { padding-bottom: 0; }
.xsteps > li:last-child::after { display: none; }
.xsteps h3 { margin: 2px 0 6px; font-size: 1.12rem; }
.xsteps p { margin: 0 0 .6em; max-width: 40em; }
.date-range { font-weight: 700; }
.cols { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 8px 0 10px; }
.cols li { border: 1px solid var(--control); border-radius: 8px; padding: 2px 9px; font-size: .9rem; background: var(--paper); }

.note-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px;
}
@media (min-width: 960px) { .note-card { position: sticky; top: calc(var(--header-h) + 20px); } }
.note-card h3 { margin-bottom: 12px; }
.callout { margin: 16px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--cream-2); font-weight: 700; }

ul.tick { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.tick li { position: relative; padding-left: 30px; }
ul.tick li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 19px; height: 19px; border-radius: 50%; background: var(--ink);
}
ul.tick li::after {
  content: ""; position: absolute; left: 7px; top: calc(.2em + 4px); width: 4.5px; height: 8.5px;
  border-right: 2px solid var(--cream); border-bottom: 2px solid var(--cream); transform: rotate(45deg);
}
.d-block { display: block; }
.d-block + .d-block { margin-top: 4px; }

.software-fold { margin-top: clamp(24px, 3vw, 36px); max-width: 820px; }
.software__list { padding-left: 1.2em; margin: 0 0 .8rem; display: grid; gap: 8px; }

/* What you get */
.get-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .get-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.handled { margin-top: clamp(28px, 4vw, 48px); align-items: start; }
.h-sub { font-size: 1.35rem; letter-spacing: -.02em; }
.handled .h-sub { max-width: 12em; }

/* Prices */
.price-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr; max-width: 880px; }
@media (min-width: 640px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.price-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px;
}
.price-card--feature { border: 2px solid var(--ink); }
.price-card h3 { font-size: 1.15rem; }
.price-card p { margin: 0; color: var(--ink-2); }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.price-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.price { font-family: var(--font-display); font-weight: 800; letter-spacing: -.035em; line-height: 1; font-size: clamp(2.2rem, 1.9rem + 1.2vw, 2.9rem); color: var(--ink) !important; }
.price-terms { margin-top: 24px; font-size: 1.05rem; max-width: 42em; }
.price-terms + p { margin-top: 8px; }

/* Questions */
.faq-aside .lede { margin-top: 1rem; }
.faq-list .answer p { margin: 0; }

/* Closing band */
.band { background: var(--cream-2); border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 72px); }
.band__inner { display: grid; gap: 18px; align-items: end; }
@media (min-width: 900px) { .band__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } }
.band .lede { color: var(--ink); margin-bottom: 16px; }

/* ---------- Guides, privacy notice and the Victorian construction pages ---------- */
.flow-hero { padding-block: clamp(18px, 3.5vw, 44px) clamp(14px, 2.5vw, 28px); }
.flow-hero .lede { margin-top: 12px; max-width: 40em; }
.page-title { font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.8rem); line-height: 1.08; letter-spacing: -.03em; }
.guide-due { margin: 12px 0 0; padding-left: 12px; border-left: 4px solid var(--orange); font-size: 1rem; }

.policy { padding-bottom: clamp(48px, 7vw, 96px); }
.policy__body { max-width: 760px; }
.policy__short { margin-bottom: 8px; }
.policy__body > h2 { margin: 2.2rem 0 .7rem; }
.policy__body > ul:not(.tick) { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: 8px; }
.policy__body p, .policy__body li { max-width: 40em; }
.policy__body a { overflow-wrap: anywhere; }
.policy__updated { margin-top: 2.2rem; }

.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 20px; }
@media (min-width: 600px) { .aside-card { padding: 22px 24px; } }
.aside-card + .aside-card { margin-top: 16px; }
.aside-card .h-sub { font-size: 1.2rem; margin-bottom: 10px; }

/* Form fields (the Victorian construction sign-up) */
.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field > label { display: block; font-weight: 700; margin-bottom: 6px; line-height: 1.35; }
.optional { font-weight: 400; color: var(--muted); }
.hint { display: block; color: var(--muted); font-size: .95rem; line-height: 1.45; margin: -2px 0 8px; }
.two-up { display: grid; gap: 0 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
input[type="text"], input[type="email"], select, textarea {
  display: block; width: 100%; min-height: 50px; padding: 11px 14px;
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--control); border-radius: var(--radius-sm);
  transition: border-color .15s ease;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--ink); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card { margin-top: 12px; }

/* ---------- Gentle fade-in further down a page (only when the script runs and motion is OK) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal {
    transition: opacity .5s cubic-bezier(.2, .7, .2, 1), transform .5s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--d, 0) * 70ms);
  }
  .reveal-ready .reveal:not(.is-in) { opacity: 0; transform: translateY(14px); }
}

@media print {
  .band { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
