/* ==========================================================================
   V Tax Filing — redesign mockup stylesheet
   One file, no framework. Maps 1:1 onto the eventual wwwroot/css/site.css.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --ink:        #12161f;   /* page ground for dark bands, body text        */
  --ink-line:   #262d3d;   /* hairline on ink                              */
  --ink-mute:   #8b93a3;   /* muted text on ink                            */
  --ink-soft:   #b9bfcc;   /* body text on ink                             */
  --ink-bright: #dfe3ea;   /* emphasised text on ink                       */

  --paper:      #ffffff;
  --sand:       #f6f4f0;   /* warm neutral band, biased toward the accent  */
  --line:       #e4e1db;   /* hairline on paper                            */
  --line-2:     #d5d1c9;   /* form borders                                 */

  --body:       #414856;   /* body copy on paper                           */
  --muted:      #5b6270;   /* secondary copy on paper — 6.4:1 on white     */

  --brand:      #d93e12;   /* fills with white text — 4.6:1                */
  --brand-ink:  #b23208;   /* brand as small text on paper — 5.6:1         */
  --brand-lift: #ff8e6b;   /* brand on ink                                 */
  --brand-pale: #ffb59c;

  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --sans:  "Public Sans", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --gutter: 120px;
  --measure: 68ch;
}

@media (max-width: 1100px) { :root { --gutter: 48px; } }
@media (max-width: 720px)  { :root { --gutter: 20px; } }

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--brand-ink); text-decoration: none; }
a:hover { color: #8c2705; text-decoration: underline; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- Layout primitives --------------------------------------------------- */
.wrap { padding-inline: var(--gutter); }

.band { padding-block: 72px; }
.band--tight { padding-block: 48px; }
.band--sand  { background: var(--sand); }
.band--ink   { background: var(--ink); color: #fff; }

@media (max-width: 720px) {
  .band { padding-block: 44px; }
  .band--tight { padding-block: 36px; }
}

.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap, 20px); }

.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* --- Type --------------------------------------------------------------- */
.display  { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
.h1       { font-size: clamp(38px, 5.2vw, 66px); }
.h2       { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; }
.h3       { font-size: clamp(24px, 2.4vw, 29px); line-height: 1.18; letter-spacing: -0.014em; }

.lede     { font-family: var(--serif); font-size: clamp(19px, 1.8vw, 25px); line-height: 1.5; max-width: var(--measure); }
.prose p  { font-size: clamp(15.5px, 1.2vw, 16.5px); line-height: 1.7; color: var(--body); max-width: var(--measure); }
.prose p + p { margin-top: 14px; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand-ink);
}
.eyebrow--mute { color: var(--ink-mute); }
.eyebrow--lift { color: var(--brand-lift); }

.small { font-size: 14px; line-height: 1.55; color: var(--muted); }
.on-ink .small { color: var(--ink-mute); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border: 1px solid transparent; border-radius: 3px;
  font-size: 15.5px; font-weight: 600; cursor: pointer; text-decoration: none;
  min-height: 48px;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: #bf3610; color: #fff; }
.btn--ghost   { background: transparent; color: #fff; border-color: #3b4254; }
.btn--ghost:hover { background: rgba(255,255,255,0.06); color: #fff; }
.btn--sm { padding: 11px 20px; min-height: 42px; font-size: 15px; }

/* --- Chips & badges ------------------------------------------------------ */
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(217,62,18,0.14); border: 1px solid rgba(217,62,18,0.45);
  color: var(--brand-pale); border-radius: 999px; padding: 7px 16px 7px 12px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.price-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.price-tag--free { color: var(--brand-ink); }
.price-tag--amt  { font-size: 13px; font-weight: 600; color: var(--ink); }

/* --- Utility bar --------------------------------------------------------- */
.utility {
  background: var(--ink); color: var(--ink-mute);
  font-size: 13px; min-height: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; padding-block: 6px;
}
.utility a { color: var(--ink-mute); }
.utility a:hover { color: #fff; }
.utility .strong { color: #fff; font-weight: 600; }
.utility__left  { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.utility__right { display: flex; align-items: center; gap: 16px; }
.utility .pair  { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 860px) { .utility .hide-sm { display: none; } }

/* --- Masthead ------------------------------------------------------------ */
.masthead {
  background: var(--paper); border-bottom: 1px solid var(--line);
  min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
/* Logo lockup.
   The mark is an open triangle with the orange chevron over it; the triangle
   takes the surrounding ink colour so it stays visible on both grounds, while
   the chevron and the word "V Tax" keep brand orange everywhere. */
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand__name { font-family: var(--serif); font-size: 25px; font-weight: 600; letter-spacing: -0.012em; white-space: nowrap; }
.brand__vtax { color: var(--brand); }
.logo-mark { display: block; }

/* On the ink footer, lift the orange so the wordmark stays legible against
   #12161F, where the paper-ground #D93E12 would sit at about 2.5:1. */
.brand--on-ink { color: #fff; }
.brand--on-ink .brand__vtax { color: #ff6b3d; }

.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav a { color: #444b5a; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--brand); padding-bottom: 3px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: none; cursor: pointer; align-items: center; justify-content: center;
}

@media (max-width: 1040px) {
  .masthead { min-height: 64px; }
  .brand__name { font-size: 20px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .masthead-wrap { position: relative; }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom: 1px solid var(--line); color: var(--brand-ink); }
  .nav .btn { margin-top: 16px; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; padding-block: 76px 0; }
.hero__ghost {
  position: absolute; right: -40px; top: 30px; pointer-events: none; user-select: none;
  font-family: var(--serif); font-size: clamp(220px, 32vw, 460px); line-height: 0.8;
  font-weight: 600; color: #fff; opacity: 0.035; letter-spacing: -0.03em;
}
.hero__body { position: relative; max-width: 760px; }
.hero h1 { margin-block: 26px 0; }
.hero__sub { margin-top: 24px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: var(--ink-soft); max-width: 640px; }
.hero__cta { margin-top: 28px; }

.ledger { position: relative; margin-top: 60px; border-top: 1px solid var(--ink-line); display: flex; flex-wrap: wrap; }
.ledger__cell { flex: 1 1 180px; padding: 26px 32px; border-right: 1px solid var(--ink-line); min-width: 0; }
.ledger__cell:first-child { padding-left: 0; }
.ledger__cell:last-child  { border-right: 0; padding-right: 0; flex-grow: 1.4; }
.ledger__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #737b8c; }
.ledger__value { display: block; margin-top: 6px; font-family: var(--serif); font-size: 34px; font-weight: 600; color: #fff; }
.ledger__note  { display: block; margin-top: 7px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

@media (max-width: 720px) {
  .hero { padding-block: 34px 0; }
  .ledger__cell { flex-basis: 33%; padding: 18px 12px; }
  .ledger__cell:last-child { flex-basis: 100%; border-top: 1px solid var(--ink-line); padding-left: 0; }
  .ledger__value { font-size: 27px; }
  .hero__cta .btn { width: 100%; }
}

/* --- Page header (inner pages) ------------------------------------------- */
.pagehead { background: var(--ink); color: #fff; position: relative; overflow: hidden; padding-block: 44px; }
.pagehead__ghost {
  position: absolute; right: -20px; top: -70px; pointer-events: none; user-select: none;
  font-family: var(--serif); font-size: clamp(150px, 20vw, 260px); line-height: 0.8;
  font-weight: 600; color: #fff; opacity: 0.035; letter-spacing: -0.03em;
}
.pagehead__body { position: relative; }
.pagehead h1 { font-size: clamp(32px, 4vw, 48px); }
.crumbs { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-mute); flex-wrap: wrap; }
.crumbs a { color: var(--ink-mute); }
.crumbs .current { color: var(--ink-bright); }
.pagehead__title { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; }

/* --- Section heads -------------------------------------------------------- */
.sectionhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.sectionhead__main { max-width: 620px; }
.sectionhead__main .h2 { margin-top: 12px; }
.sectionhead__aside { max-width: 380px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.sectionhead--ruled { border-bottom: 1px solid var(--line); padding-bottom: 26px; }

.rule-label { display: flex; align-items: center; gap: 24px; }
.rule-label .line { flex-grow: 1; height: 1px; background: var(--line); }

/* --- Hairline grid (services, stats) -------------------------------------- */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid > * { background: var(--paper); padding: 26px 28px; min-width: 0; }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1040px) {
  .grid--3, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .grid--3, .grid--2, .cards, .cards--2 { grid-template-columns: minmax(0, 1fr); }
  .grid > * { padding: 18px 20px; }
}

.item__name { display: block; font-size: 17px; font-weight: 600; }
.item__desc { display: block; margin-top: 9px; font-size: 14px; line-height: 1.55; color: var(--muted); }

.card {
  background: var(--paper); border: 1px solid var(--line); padding: 22px 24px;
  display: flex; flex-direction: column; gap: 9px; color: var(--ink); min-width: 0;
}
.card:hover { text-decoration: none; color: var(--ink); border-color: var(--line-2); }

.priced {
  background: var(--sand); padding: 24px 26px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; min-width: 0;
}
.priced__amt { font-family: var(--serif); font-size: 26px; font-weight: 600; }

.stat__num  { display: block; font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; color: var(--brand-ink); }
.stat__label{ display: block; margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* --- Price list ----------------------------------------------------------- */
.pricelist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.pricelist__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.band--ink .pricelist__row { border-bottom-color: var(--ink-line); }
.pricelist__row dt { font-size: 15px; color: var(--body); min-width: 0; }
.band--ink .pricelist__row dt { color: var(--ink-bright); }
.pricelist__row dd { font-size: 16px; font-weight: 600; white-space: nowrap; }
.pricelist__note { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.band--ink .pricelist__note { color: var(--ink-mute); }
.pricelist__free { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; color: var(--brand-ink); }
.band--ink .pricelist__free { color: var(--brand-lift); }

@media (max-width: 860px) { .pricelist { grid-template-columns: minmax(0, 1fr); } }

/* --- Sidebar page (service & about templates) ----------------------------- */
.sidebar-page { display: flex; gap: 72px; align-items: flex-start; }
.sidebar { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 36px; position: sticky; top: 24px; }
.sidebar-page__content { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 38px; }

@media (max-width: 1040px) {
  .sidebar-page { flex-direction: column; gap: 44px; }
  .sidebar { width: 100%; position: static; }
}

.sidenav { border-top: 1px solid var(--line); }
.sidenav a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 14px; border-bottom: 1px solid var(--line);
  color: var(--body); font-size: 14.5px; min-height: 48px;
}
.sidenav a:hover { background: var(--sand); text-decoration: none; }
.sidenav a[aria-current="page"] { background: var(--ink); color: #fff; font-weight: 600; }
.sidenav a[aria-current="page"] .price-tag--free { color: var(--brand-lift); }
.sidenav a[aria-current="page"]:hover { background: var(--ink); }

.download {
  display: flex; align-items: center; gap: 13px; padding: 18px;
  border: 1px solid var(--line); background: var(--sand); color: var(--ink);
}
.download:hover { text-decoration: none; color: var(--ink); border-color: var(--line-2); }

.officecard { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--ink); color: var(--ink-soft); }
.officecard span { font-size: 14px; line-height: 1.6; color: var(--ink-bright); }
.officecard .eyebrow { color: #fff; }

/* --- Checklists & numbered method lists ----------------------------------- */
.checks { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checks li { background: var(--paper); padding: 18px 20px; display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.checks li span { font-size: 15px; line-height: 1.55; min-width: 0; }
.checks--1 { grid-template-columns: minmax(0, 1fr); }
.checks .span-2 { grid-column: span 2; }

@media (max-width: 720px) {
  .checks { grid-template-columns: minmax(0, 1fr); }
  .checks .span-2 { grid-column: auto; }
}

.methods { display: flex; flex-direction: column; gap: 14px; }
.methods li { display: flex; gap: 16px; align-items: flex-start; }
.methods .n { flex-shrink: 0; width: 28px; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--brand-ink); padding-top: 1px; }
.methods p { font-size: 16px; line-height: 1.65; color: var(--body); min-width: 0; }
.methods strong { font-weight: 600; color: var(--ink); }

.pull { padding: 26px 30px; background: var(--sand); border-left: 3px solid var(--brand); }
.pull p { font-family: var(--serif); font-size: clamp(18px, 1.8vw, 20px); line-height: 1.55; color: var(--ink); }

/* --- Inline CTA ----------------------------------------------------------- */
.cta-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 28px 32px; background: var(--ink); color: #fff;
}
.cta-strip__title { font-family: var(--serif); font-size: clamp(20px, 2vw, 24px); font-weight: 600; }
.cta-strip__note  { display: block; margin-top: 7px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

@media (max-width: 720px) { .cta-strip { padding: 24px 22px; } .cta-strip .btn { width: 100%; } }

/* --- Steps ---------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 2px solid var(--line-2); }
.steps li:first-child { border-top-color: var(--brand); }
.steps li:first-child .steps__n { color: var(--brand-ink); }
.steps__n { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.steps__t { font-size: 17px; font-weight: 600; line-height: 1.35; }
.steps__d { font-size: 14px; line-height: 1.55; color: var(--muted); }

@media (max-width: 1040px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .steps { grid-template-columns: minmax(0, 1fr); } }

/* --- Forms ---------------------------------------------------------------- */
.form { background: var(--paper); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--body); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 2px;
  font-size: 15px; background: var(--paper); min-height: 48px;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #9aa0ac; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.form__foot .small { min-width: 0; flex: 1 1 220px; }

@media (max-width: 720px) {
  .form { padding: 22px 20px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .form__foot .btn { width: 100%; }
}

.split { display: flex; gap: 72px; align-items: flex-start; }
.split__aside { width: 440px; flex-shrink: 0; min-width: 0; }
.split__aside--narrow { width: 330px; }
.split__aside--mid    { width: 520px; }
.split__aside--wide   { width: 600px; }
.split__main { flex-grow: 1; min-width: 0; }

/* Collapse every aside variant together — a width set on one of the modifiers
   must not survive the breakpoint, or the column pushes the page sideways. */
@media (max-width: 1040px) {
  .split { flex-direction: column; gap: 36px; }
  .split__aside { width: 100%; }
}

.contactline { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--ink); }
.contactline + .contactline { margin-top: 12px; }

/* --- Data table (refund status) ------------------------------------------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
table.data th, table.data td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); }
table.data thead th {
  background: var(--sand); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  position: sticky; top: 0;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--sand); }
table.data td.state { font-weight: 600; width: 34%; }
table.data td a { word-break: break-word; }
.taxfree { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.taxfree::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }

.filter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter input { flex: 1 1 260px; max-width: 360px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 2px; min-height: 48px; }
.filter__count { font-size: 14px; color: var(--muted); }

.linkout { display: inline-flex; align-items: center; gap: 8px; }

/* --- Footer --------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--ink-soft); padding-block: 60px 0; display: flex; gap: 72px; flex-wrap: wrap; }
.footer__brand { width: 330px; flex-shrink: 0; display: flex; flex-direction: column; gap: 22px; }
.footer__brand .brand, .footer__brand .brand__name { color: #fff; }
.footer__brand p { font-size: 14px; line-height: 1.65; color: var(--ink-mute); }
.footer__brand .addr { display: flex; flex-direction: column; gap: 14px; font-size: 14px; line-height: 1.55; color: var(--ink-bright); }
.footer__cols { flex-grow: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 15px; min-width: 0; }
.footer__col .eyebrow { color: #fff; }
.footer__col a { font-size: 14px; color: var(--ink-mute); }
.footer__col a:hover { color: #fff; }
.footer__col a[aria-current="page"] { color: #fff; }

.social { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.social a { width: 40px; height: 40px; border: 1px solid #333b4d; border-radius: 3px; display: flex; align-items: center; justify-content: center; }
.social a:hover { border-color: #55607a; background: rgba(255,255,255,0.04); }

@media (max-width: 1040px) {
  .footer { gap: 40px; padding-block: 44px 0; }
  .footer__brand { width: 100%; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
}
@media (max-width: 560px) { .footer__cols { grid-template-columns: minmax(0, 1fr); } }

.legal {
  background: var(--ink); border-top: 1px solid var(--ink-line);
  padding-block: 22px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px 40px; flex-wrap: wrap;
}
.legal__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.legal__text span { font-size: 13px; color: var(--ink-mute); }
.legal__text .disclaimer { color: #737b8c; }
.trust { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-mute); }

/* ==========================================================================
   CLIENT AREA
   Everything below is the signed-in client portal. Maps onto
   _ClientLayout.cshtml and the Views/Client/* views.
   ========================================================================== */

/* --- Shell --------------------------------------------------------------- */
.app { display: flex; align-items: flex-start; min-height: 70vh; }

.appbar {
  background: var(--ink); color: var(--ink-soft);
  min-height: 64px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding-block: 10px;
}
.appbar .brand, .appbar .brand__name { color: #fff; }
.appbar .brand__vtax { color: #ff6b3d; }
.appbar__right { display: flex; align-items: center; gap: 14px; }

.who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-bright); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: #2a3243; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em; flex-shrink: 0;
}

.appnav {
  width: 252px; flex-shrink: 0; border-right: 1px solid var(--line);
  padding: 28px 0 40px; position: sticky; top: 0; align-self: stretch;
}
.appnav a {
  display: flex; align-items: center; gap: 11px; padding: 11px 24px;
  font-size: 14.5px; color: var(--body); min-height: 46px; border-left: 2px solid transparent;
}
.appnav a:hover { background: var(--sand); text-decoration: none; }
.appnav a[aria-current="page"] {
  color: var(--ink); font-weight: 600; background: var(--sand); border-left-color: var(--brand);
}
.appnav__group { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); padding: 0 24px 10px; }
.appnav__sep { height: 1px; background: var(--line); margin: 18px 24px; }

.appmain { flex-grow: 1; min-width: 0; padding: 32px 0 64px 40px; }

@media (max-width: 1040px) {
  .app { flex-direction: column; }
  .appnav {
    width: 100%; position: static; border-right: 0; border-bottom: 1px solid var(--line);
    padding: 12px 0; display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .appnav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; padding: 10px 14px; }
  .appnav a[aria-current="page"] { border-left: 0; border-bottom-color: var(--brand); }
  .appnav__group, .appnav__sep { display: none; }
  .appmain { padding: 24px 0 48px; width: 100%; }
}

/* --- Page head ----------------------------------------------------------- */
.apphead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.apphead h1 { font-family: var(--serif); font-size: clamp(27px, 3vw, 34px); font-weight: 600; letter-spacing: -0.018em; }
.apphead .small { margin-top: 6px; }

.yearpick { display: flex; align-items: center; gap: 10px; }
.yearpick label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.yearpick select { padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 2px; background: var(--paper); font-size: 14px; font-weight: 600; min-height: 42px; }

/* --- Panels -------------------------------------------------------------- */
.panel { border: 1px solid var(--line); background: var(--paper); }
.panel + .panel { margin-top: 22px; }
.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.panel__title { font-size: 16px; font-weight: 600; }
.panel__body { padding: 24px; }
.panel__body--flush { padding: 0; }

/* --- Status pipeline ----------------------------------------------------- */
.pipeline { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; }
.pipeline li { position: relative; padding-top: 30px; min-width: 0; padding-right: 10px; }
.pipeline li::before {                      /* connector */
  content: ""; position: absolute; left: 11px; right: 0; top: 10px; height: 2px; background: var(--line);
}
.pipeline li:last-child::before { display: none; }
.pipeline li::after {                       /* dot */
  content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--line-2); box-sizing: border-box;
}
.pipeline .done::before { background: var(--brand); }
.pipeline .done::after  { background: var(--brand); border-color: var(--brand); }
.pipeline .now::after   { background: var(--paper); border-color: var(--brand); border-width: 4px; }
.pipeline__label { display: block; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.pipeline .done .pipeline__label { color: var(--body); }
.pipeline .now  .pipeline__label { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .pipeline { grid-template-columns: minmax(0, 1fr); }
  .pipeline li { padding: 0 0 18px 28px; }
  .pipeline li::before { left: 6px; top: 14px; bottom: -4px; right: auto; width: 2px; height: auto; }
  .pipeline li:last-child::before { display: none; }
  .pipeline li::after { top: 0; }
  .pipeline__label { font-size: 14px; }
}

.nowcard {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 22px 24px; background: var(--ink); color: #fff;
}
.nowcard__t { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.nowcard__d { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

/* --- Status pills -------------------------------------------------------- */
.pill-s {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
}
.pill-s::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok   { background: #e4f3eb; color: #0b5c3d; }
.pill-wait { background: #fdeae4; color: #9c3008; }
.pill-info { background: #e7effb; color: #0f3b78; }
.pill-idle { background: #edf1f6; color: #4a5563; }

/* --- Quick actions ------------------------------------------------------- */
.actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.action {
  display: flex; align-items: flex-start; gap: 13px; padding: 20px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); min-width: 0;
}
.action:hover { text-decoration: none; color: var(--ink); border-color: var(--line-2); background: var(--sand); }
.action__t { display: block; font-size: 15.5px; font-weight: 600; }
.action__d { display: block; margin-top: 5px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 900px) { .actions { grid-template-columns: minmax(0, 1fr); } }

/* --- Empty states -------------------------------------------------------- */
.empty { padding: 56px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty__t { font-size: 16px; font-weight: 600; }
.empty__d { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 42ch; }

/* --- Upload -------------------------------------------------------------- */
.drop {
  border: 1.5px dashed var(--line-2); background: var(--sand); padding: 32px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.drop__t { font-size: 15.5px; font-weight: 600; }

/* --- Organizer sections -------------------------------------------------- */
.seclist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.seclist a {
  background: var(--paper); padding: 16px 22px; display: flex; align-items: center;
  justify-content: space-between; gap: 14px; color: var(--ink); min-width: 0; min-height: 64px;
}
.seclist a:hover { background: var(--sand); text-decoration: none; }
.seclist__n { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--ink-mute); width: 26px; flex-shrink: 0; }
.seclist__t { font-size: 15px; font-weight: 500; min-width: 0; }
.seclist__c { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) { .seclist { grid-template-columns: minmax(0, 1fr); } }

.meter { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; min-width: 120px; flex: 1 1 160px; max-width: 280px; }
.meter > span { display: block; height: 100%; background: var(--brand); }

/* --- Invoice ------------------------------------------------------------- */
.inv { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.inv__main { flex: 1 1 420px; min-width: 0; }
.inv__side { width: 320px; flex-shrink: 0; }
@media (max-width: 1040px) { .inv__side { width: 100%; } }

.totals { display: flex; flex-direction: column; }
.totals__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.totals__row:last-child { border-bottom: 0; }
.totals__grand { padding-top: 14px; border-top: 2px solid var(--ink); font-size: 16px; font-weight: 700; }
.totals__grand .amt { font-family: var(--serif); font-size: 26px; }

.refund { padding: 18px 20px; background: #e4f3eb; border: 1px solid #b6dfc8; }
.refund__n { font-family: var(--serif); font-size: 30px; font-weight: 600; color: #0b5c3d; }
.owe { background: #fdeae4; border-color: #f8c6b3; }
.owe .refund__n { color: #9c3008; }

table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }
table.data tfoot td { font-weight: 700; border-top: 2px solid var(--ink); }

/* --- Long-form prose (About, policy pages) -------------------------------- */
.prose > h2, .prose > h3, .prose > h4 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.014em;
  line-height: 1.22; color: var(--ink); margin-top: 34px;
}
.prose > h2 { font-size: clamp(24px, 2.4vw, 29px); }
.prose > h3 { font-size: clamp(20px, 2vw, 23px); }
.prose > h4 { font-size: 18px; }
.prose > h2:first-child, .prose > h3:first-child, .prose > h4:first-child { margin-top: 0; }

.prose ul, .prose ol { margin: 14px 0; padding-left: 0; display: flex; flex-direction: column; gap: 9px; }
.prose ul > li, .prose ol > li {
  position: relative; padding-left: 24px; font-size: 16px; line-height: 1.65;
  color: var(--body); max-width: var(--measure);
}
.prose ul > li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.prose ol { counter-reset: n; }
.prose ol > li::before {
  counter-increment: n; content: counter(n) "."; position: absolute; left: 0; top: 0;
  font-weight: 600; color: var(--brand-ink);
}
.prose strong, .prose b { font-weight: 600; color: var(--ink); }
.prose a { font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.prose table td, .prose table th { padding: 11px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose img { margin: 18px 0; }

/* --- Auth pages (sign in, register, password reset) ----------------------- */
.auth { display: flex; justify-content: center; padding-block: 56px; background: var(--sand); }
.auth__card { width: 100%; max-width: 460px; background: var(--paper); border: 1px solid var(--line); padding: 36px 34px; }
.auth__card--wide { max-width: 720px; }
.auth__head { text-align: center; margin-bottom: 26px; }
.auth__head h1 { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: -0.018em; }
.auth__head p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.auth__foot { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; font-size: 14.5px; color: var(--muted); }
.auth .field + .field { margin-top: 16px; }
.auth .btn { width: 100%; margin-top: 22px; }
.auth__mark { display: flex; justify-content: center; margin-bottom: 18px; }
.checkrow { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: 14px; line-height: 1.55; color: var(--body); }
.checkrow input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
@media (max-width: 560px) { .auth__card { padding: 26px 20px; } .auth { padding-block: 32px; } }

/* ==========================================================================
   CLIENT AREA — compatibility shims
   The client views drive these elements with jQuery that predates this theme.
   The markup and class names are kept exactly as the scripts expect; only the
   presentation is new, so no JavaScript had to change.
   ========================================================================== */

/* The nav JS adds .active; aria-current is set server-side. Style both. */
.appnav a.active {
  color: var(--ink); font-weight: 600; background: var(--sand); border-left-color: var(--brand);
}
@media (max-width: 1040px) {
  .appnav a.active { border-left: 0; border-bottom-color: var(--brand); }
}

/* LoadClientTaxDetails() writes the width onto `.progress .progress-bar`. */
.progress {
  height: 8px; background: var(--line); border-radius: 999px; overflow: hidden;
  position: relative; margin: 0;
}
.progress-bar {
  height: 100%; background: var(--brand); width: 0;
  transition: width 0.4s ease; display: block;
}
@media (prefers-reduced-motion: reduce) { .progress-bar { transition: none; } }
.progress-bar .skill { position: absolute; left: -9999px; }  /* readout lives outside the bar now */

.statusline { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.statusline__now { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); }
.statusline__pct { font-size: 14px; font-weight: 600; color: var(--brand-ink); }

/* Bootstrap 3 modal markup, restyled. bootstrap.min.js still toggles .in. */
.modal {
  display: none; position: fixed; inset: 0; z-index: 1050; overflow-y: auto;
  -webkit-overflow-scrolling: touch; padding: 24px 16px;
}
.modal.in { display: block; }
.modal-backdrop { position: fixed; inset: 0; z-index: 1040; background: #12161f; }
.modal-backdrop.in { opacity: 0.55; }
.modal-dialog { max-width: 560px; margin: 40px auto; width: 100%; }
.modal-content {
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
  box-shadow: 0 24px 60px rgba(18, 22, 31, 0.22); padding: 0;
}
.modal-header {
  padding: 20px 24px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.modal-header .modal-title, .modal-header h4 { font-size: 17px; font-weight: 600; margin: 0; }
.modal-header .close {
  background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted);
  cursor: pointer; padding: 0 4px; min-height: 44px; min-width: 44px;
}
.modal-header .close:hover { color: var(--ink); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
}
body.modal-open { overflow: hidden; }

/* The legacy views still emit a few Bootstrap 3 form/button classes. */
.form-control {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 2px;
  font-size: 15px; background: var(--paper); min-height: 48px; font-family: inherit;
}
.theme-btn, .btn-style-one, .thm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border: 1px solid transparent; border-radius: 3px;
  background: var(--brand); color: #fff; font-size: 15.5px; font-weight: 600;
  cursor: pointer; min-height: 48px; text-decoration: none;
}
.theme-btn:hover, .btn-style-one:hover, .thm-btn:hover { background: #bf3610; color: #fff; text-decoration: none; }

/* Legacy Bootstrap 3 grid/table markup still used by the invoice view.
   Scoped to .legacy so it cannot leak into the redesigned pages. */
.legacy .row { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; }
.legacy [class*="col-md-"], .legacy [class*="col-sm-"], .legacy [class*="col-lg-"],
.legacy [class*="col-xs-"] { flex: 1 1 220px; min-width: 0; padding: 0; }
.legacy .col-md-12, .legacy .col-lg-12, .legacy .col-sm-12 { flex-basis: 100%; }
.legacy .clearfix::after { content: ""; display: block; clear: both; }

.legacy table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legacy table th, .legacy table td {
  padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle;
}
.legacy table thead th {
  background: var(--sand); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.legacy table input { max-width: 120px; }
.legacy .text-right, .legacy td.text-right { text-align: right; }
.legacy h3, .legacy h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.014em; margin: 18px 0 10px; }
.legacy label { font-size: 13px; font-weight: 600; color: var(--body); display: block; margin-bottom: 6px; }
.legacy .hide, .legacy [style*="display: none"] { display: none !important; }

/* --- Invoice line-item table --------------------------------------------- */
.inv-table .inv-line { font-size: 15px; color: var(--body); }
.inv-table .inv-line .pricelist__note { margin-top: 2px; }
.inv-table tr.is-empty { display: none; }

/* Read-only figures the invoice script fills in. They stay <input> elements
   because the script writes to them by id, but they should read as text. */
.cell {
  border: 0; background: transparent; padding: 0; margin: 0;
  font: inherit; color: var(--ink); text-align: right;
  width: 72px; max-width: 72px; font-variant-numeric: tabular-nums;
}
.cell--qty { width: 44px; max-width: 44px; }
.cell--notes {
  text-align: left; width: 100%; max-width: 320px;
  font-size: 13px; color: var(--muted);
}
.cell:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.money { display: inline-flex; align-items: baseline; gap: 1px; justify-content: flex-end; color: var(--ink); }
.money--total { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.money--total .cell { font: inherit; width: 96px; max-width: 96px; }

.inv-table tfoot td { background: var(--sand); }

@media (max-width: 720px) {
  .cell { width: 60px; max-width: 60px; }
  .money--total .cell { width: 78px; max-width: 78px; }
}

/* The refund / owed figures are inputs because the invoice script fills them
   with .val(); they need to read as large display numbers. */
.cell--big {
  font: inherit; width: 150px; max-width: 150px; text-align: left; color: inherit;
}
.refund__n { display: flex; align-items: baseline; }

/* ==========================================================================
   IMAGERY, SLIDER AND MOTION
   Replaces Revolution Slider (and its ~20 dependencies) with CSS transitions
   plus a small script. Everything here degrades to a readable static page when
   JavaScript is off, and all motion is disabled under prefers-reduced-motion.
   ========================================================================== */

/* --- Hero slider ---------------------------------------------------------- */
.slider { position: relative; background: var(--ink); overflow: hidden; isolation: isolate; }
.slider__track { position: relative; min-height: 620px; display: grid; }
.slide {
  grid-area: 1 / 1; position: relative;
  opacity: 0; visibility: hidden;
  transition: opacity 900ms ease, visibility 900ms;
}
.slide[data-active="true"] { opacity: 1; visibility: visible; }
/* No JS: the first slide still shows. */
.no-js .slide:first-child, .slider:not([data-ready]) .slide:first-child { opacity: 1; visibility: visible; }

.slide__media { position: absolute; inset: 0; overflow: hidden; }
.slide__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.06);
  transition: transform 9s ease-out;
}
.slide[data-active="true"] .slide__media img { transform: scale(1); }
.slide__media::after {                       /* legibility scrim */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,13,19,0.92) 0%, rgba(10,13,19,0.74) 42%, rgba(10,13,19,0.34) 100%);
}

.slide__body {
  position: relative; max-width: 700px; min-height: 620px;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  padding-block: 80px;
}
.slide__body > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.slide[data-active="true"] .slide__body > * { opacity: 1; transform: none; }
.slide[data-active="true"] .slide__body > *:nth-child(1) { transition-delay: 180ms; }
.slide[data-active="true"] .slide__body > *:nth-child(2) { transition-delay: 300ms; }
.slide[data-active="true"] .slide__body > *:nth-child(3) { transition-delay: 420ms; }
.slide[data-active="true"] .slide__body > *:nth-child(4) { transition-delay: 540ms; }
.slider:not([data-ready]) .slide__body > * { opacity: 1; transform: none; }

.slide__title { margin: 0; font-family: var(--serif); font-size: clamp(36px, 5vw, 62px); font-weight: 600; letter-spacing: -0.022em; line-height: 1.05; color: #fff; text-wrap: balance; }
.slide__text { margin: 0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: #c6ccd8; max-width: 580px; }

/* Controls */
.slider__controls {
  position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.slider__dots { display: flex; gap: 9px; }
.slider__dot {
  width: 34px; height: 4px; border: 0; padding: 0; border-radius: 99px; cursor: pointer;
  background: rgba(255,255,255,0.3); position: relative; overflow: hidden;
}
.slider__dot[aria-current="true"] { background: rgba(255,255,255,0.45); }
.slider__dot[aria-current="true"]::after {
  content: ""; position: absolute; inset: 0; background: var(--brand);
  transform-origin: left; animation: slide-progress var(--slide-ms, 7000ms) linear forwards;
}
@keyframes slide-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.slider__btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.06); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.slider__btn:hover { background: rgba(255,255,255,0.14); }

@media (max-width: 860px) {
  .slider__track, .slide__body { min-height: 540px; }
  .slide__body { padding-block: 64px 96px; }
  .slide__media::after { background: linear-gradient(180deg, rgba(10,13,19,0.72) 0%, rgba(10,13,19,0.88) 100%); }
}

/* --- Image cards ---------------------------------------------------------- */
.item--media { padding: 0; display: flex; flex-direction: column; }
.item__img { position: relative; aspect-ratio: 870 / 358; overflow: hidden; background: var(--sand); }
.item__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms ease; }
.item--media:hover .item__img img { transform: scale(1.05); }
.item__pad { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.item__tag {
  position: absolute; left: 12px; top: 12px; z-index: 1;
  background: rgba(18,22,31,0.82); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; padding: 5px 10px; border-radius: 3px;
}
.item__tag--paid { background: var(--brand); }

.figure { position: relative; overflow: hidden; }
.figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 870 / 358; }
.figure--about { aspect-ratio: 862 / 230; }

/* Page headers get the photo back behind the title. */
.pagehead--photo .pagehead__bg { position: absolute; inset: 0; z-index: 0; }
.pagehead--photo .pagehead__bg img { width: 100%; height: 100%; object-fit: cover; }
.pagehead--photo .pagehead__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18,22,31,0.94) 10%, rgba(18,22,31,0.62) 100%);
}

/* --- Scroll reveal -------------------------------------------------------- */
/* The class is only added by script, so content is visible without JS. */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 760ms cubic-bezier(.22,.61,.36,1), transform 760ms cubic-bezier(.22,.61,.36,1);
}
.reveal-d1.is-in { transition-delay: 90ms; }
.reveal-d2.is-in { transition-delay: 180ms; }
.reveal-d3.is-in { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  .slide, .slide__media img, .slide__body > *, .item__img img { transition: none !important; }
  .slide__media img { transform: none; }
  .slider__dot[aria-current="true"]::after { animation: none; transform: scaleX(1); }
  .reveal, .reveal.is-in { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* --- Tagline, app section and store buttons -------------------------------- */
.tagline {
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  color: #fff; letter-spacing: -0.012em; margin-bottom: 4px;
}

.applist { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 6px; }
.applist li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.applist li::before {
  content: ""; position: absolute; left: 2px; top: 7px; width: 9px; height: 9px;
  border-radius: 50%; border: 2px solid var(--brand); box-sizing: border-box;
}

.storerow { gap: 12px; margin-top: 6px; }
.store {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 18px; border: 1px solid #3b4254; border-radius: 6px;
  background: rgba(255,255,255,0.04); color: #fff; min-height: 56px;
}
.store:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; border-color: #55607a; }
.store__pre  { display: block; font-size: 11px; letter-spacing: 0.04em; color: var(--ink-mute); text-transform: uppercase; }
.store__name { display: block; font-size: 16px; font-weight: 600; margin-top: 1px; }

/* A drawn phone, so the section needs no screenshot asset. */
.phone {
  margin: 0 auto; width: 290px; max-width: 100%; aspect-ratio: 290 / 580;
  border-radius: 38px; padding: 12px; background: #0a0d13;
  border: 1px solid #2a3243; box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
.phone__screen {
  display: flex; flex-direction: column; gap: 14px; height: 100%;
  border-radius: 28px; background: var(--sand); padding: 26px 20px;
}
.phone__bar { width: 92px; height: 5px; border-radius: 99px; background: #cfd4dc; align-self: center; }
.phone__title { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.phone__meter { height: 7px; border-radius: 99px; background: #e0e3e8; overflow: hidden; }
.phone__meter > span { display: block; width: 22%; height: 100%; background: var(--brand); }
.phone__caption { font-size: 12.5px; color: var(--muted); }
.phone__rows { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.phone__row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; font-size: 13.5px; color: var(--muted);
}
.phone__row strong { color: var(--ink); font-size: 14.5px; }

@media (max-width: 720px) { .phone { width: 250px; } }
