/* Hallmark · shape: the client's brief as a ledger, each line answered by its screen · genre: modern-minimal · theme: custom · job: sign up · idea: "the logo's four squares are the four states of an installment, and the page is the client's own brief answered line by line" · vibe: "the app's own teal, four status colours, Arabic"
 * paper: oklch(96.6% 0.008 245) · accent: oklch(62% 0.105 190) · display: Cairo 900 · body: Cairo 400/700 · hero: teal-dark field like the app header, the client's title as the headline, the real dashboard capture beside it · nav: wordmark and one quiet action on the field, no inline links · footer: one row, the wordmark beside three links · imagery: screenshots 7 (captured with Playwright at 2x; capture.mjs needs puppeteer, absent here) · signature: the four-square logo opened into the four installment states
 * axes: light/geometric-sans/chromatic-teal · posture: full palette (field teal-dark, signals orange due, pink late, green paid; each a state the app already uses) · contrast: pass · fold: pass · copy: Egyptian Arabic, the client's nouns · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a feature page by nature; the ledger makes it an argument (seven asked, seven delivered, each linked to its screen) */
/* Hallmark · dismissed 59 · the explainer video section was asked for by the owner; each of the ten sections shows a different screen of the system */
@import url("./tokens.css");
@import url("./base.css");

body { font-size: var(--text-md); line-height: 1.6; }
.container { max-width: var(--container); }

/* skip link */
.skip { position: absolute; inset-inline-start: var(--space-md); top: -100px; z-index: var(--z-tooltip); padding: var(--space-xs) var(--space-md); background: var(--color-card); color: var(--color-ink); border-radius: var(--radius-input); }
.skip:focus-visible { top: var(--space-md); }

/* ---------- the field (teal-dark, as the app header) ---------- */
.on-field { background: var(--color-field); color: var(--color-field-ink); }
.on-field :focus-visible { outline-color: var(--color-field-ink); }

/* ---------- logo: the four squares ---------- */
.mark { display: inline-flex; align-items: center; gap: var(--space-sm); text-decoration: none; color: inherit; border-radius: var(--radius-input); }
.mark__name { font-weight: 900; font-size: var(--text-lg); line-height: 1; white-space: nowrap; }
.puzzle { display: grid; grid-template-columns: repeat(2, 15px); gap: var(--space-3xs); }
.puzzle i { width: 15px; height: 15px; border-radius: 4px; }
.p-plan { background: var(--color-accent); }
.p-due { background: var(--color-due); }
.p-late { background: var(--color-late); }
.p-paid { background: var(--color-paid); }
.on-field .p-plan { background: var(--color-field-muted); }

/* ---------- nav ---------- */
.nav__row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: var(--space-md); }
.nav__end { display: flex; align-items: center; gap: var(--space-lg); }
.nav__lang { font-size: var(--text-sm); }
@media (max-width: 30rem) { .nav__end { gap: var(--space-sm); } .nav__end .btn--ghost-light { padding-inline: var(--space-sm); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); min-height: 48px; padding: 0 var(--space-lg); border: 1px solid transparent; border-radius: var(--radius-input); font: 700 var(--text-md)/1.25 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn--google { background: var(--color-card); color: var(--color-ink); border-color: var(--color-card); }
.btn--google:hover { background: var(--color-paper-2); border-color: var(--color-paper-2); }
.btn--ghost-light { min-height: 44px; padding-block: var(--space-sm); background: transparent; color: var(--color-field-ink); border-color: var(--color-field-muted); }
.btn--ghost-light:hover { background: var(--color-field-ink); color: var(--color-field); }
.on-field .btn:focus-visible { outline-color: var(--color-field-ink); }
.g { flex-shrink: 0; }
.g-y { fill: var(--color-g-yellow); } .g-r { fill: var(--color-g-red); } .g-g { fill: var(--color-g-green); } .g-b { fill: var(--color-g-blue); }
@media (prefers-reduced-motion: reduce) { .btn { transition: background-color var(--dur-short) linear; } .btn:active { transform: none; } }

.link-light { color: var(--color-field-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--color-field-muted); text-underline-offset: 0.3em; border-radius: 4px; }
.link-light:hover { text-decoration-color: var(--color-field-ink); }

/* ---------- hero ---------- */
.hero { padding-block: var(--space-xl) var(--space-2xl); }

.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); align-items: end; }
.hero h1 { grid-column: 1 / span 6; }
.hero__side { grid-column: 7 / -1; display: grid; gap: var(--space-md); justify-items: start; }
.hero h1 { font-size: var(--text-display); font-weight: 900; line-height: 1.15; letter-spacing: var(--tracking-display); max-width: 14ch; }
.hero__lede { font-size: var(--text-lead); color: var(--color-field-ink); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); }
.hero__note { font-size: var(--text-sm); color: var(--color-field-muted); max-width: 40ch; }
.shot--hero { grid-column: 1 / -1; aspect-ratio: 2400 / 1002; }

/* ---------- screenshots ---------- */
.shot { margin: 0; border-radius: var(--radius-shot); background: var(--color-card); }
.shot > img { object-fit: cover; object-position: top center; outline: 1px solid color-mix(in oklab, var(--color-ink) 9%, transparent); outline-offset: -1px; border-radius: var(--radius-shot); }
.shot--phone { aspect-ratio: 390 / 640; }
.shot--plan { aspect-ratio: 2296 / 1856; }
.shot--wide { aspect-ratio: auto; }
.shot--wide > img { position: static; height: auto; object-fit: contain; }
.caption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.caption--center { text-align: center; }

/* ---------- section heads ---------- */
h2 { font-size: var(--text-section); font-weight: 900; line-height: 1.15; letter-spacing: var(--tracking-display); max-width: 18ch; }
section p { color: var(--color-ink-2); }
.on-field p { color: var(--color-field-muted); }

/* ---------- the explainer video ---------- */
.film { padding-block: var(--space-3xl) var(--space-2xl); }
.film__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-xl); }
.film__head h2 { grid-column: 1 / span 6; }
.film__head p { grid-column: 8 / -1; font-size: var(--text-lead); max-width: 46ch; }
.film__frame { margin: 0; border-radius: var(--radius-shot); overflow: hidden; background: var(--color-ink); outline: 1px solid color-mix(in oklab, var(--color-ink) 9%, transparent); outline-offset: -1px; }
.film__frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.film__frame video:focus-visible { outline: 3px solid var(--color-focus); outline-offset: -3px; }

/* ---------- the brief (ledger) ---------- */
.brief { padding-block: var(--space-3xl) var(--section-gap); }
.brief__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-xl); }
.brief__head h2 { grid-column: 1 / span 6; }
.brief__head p { grid-column: 8 / -1; font-size: var(--text-lead); max-width: 46ch; }
.ledger { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
.ledger thead th { padding: 0 var(--space-md) var(--space-sm); font-size: var(--text-sm); font-weight: 700; color: var(--color-muted); text-align: start; border-bottom: 2px solid var(--color-ink); white-space: nowrap; }
.ledger tbody th, .ledger td { padding: var(--space-lg) var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); text-align: start; vertical-align: top; }
.ledger tbody th { font-weight: 400; color: var(--color-ink-2); width: 52%; }
.ledger tbody th b { display: block; font-size: var(--text-title); font-weight: 900; color: var(--color-ink); line-height: 1.3; margin-bottom: var(--space-2xs); }
.ledger td a { font-weight: 700; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.35em; border-radius: 4px; }
.ledger td a:hover { color: var(--color-field); }

/* ---------- plan ---------- */
.plan { padding-block: var(--section-gap); background: var(--color-card); }
.plan__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; }
.plan__text { grid-column: 1 / span 4; display: grid; gap: var(--space-lg); position: sticky; top: var(--space-2xl); }
.shot--plan { grid-column: 5 / -1; }
.caption--plan { grid-column: 5 / -1; margin-top: calc(var(--gap-columns) * -1 + var(--space-sm)); }
.facts { margin: 0; display: grid; gap: var(--space-md); }
.facts > div { padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.facts dt { font-weight: 700; color: var(--color-ink); }
.facts dd { margin: 0; color: var(--color-ink-2); max-width: 44ch; }

/* ---------- contract ---------- */
.contract { padding-block: var(--section-gap) var(--section-gap-s); }
.contract__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-xl); }
.contract__head h2 { grid-column: 1 / span 6; }
.contract__head p { grid-column: 8 / -1; font-size: var(--text-lead); max-width: 46ch; }

/* ---------- states: the four squares ---------- */
.states { padding-block: var(--section-gap) var(--section-gap); background: var(--color-card); }
.states__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; }
.states__text { grid-column: 1 / span 7; display: grid; gap: var(--space-lg); }
.states__text > p { font-size: var(--text-lead); max-width: 46ch; }
.states .shot--phone { grid-column: 9 / span 4; grid-row: 1; }
.caption--states { grid-column: 9 / span 4; grid-row: 2; margin-top: calc(var(--gap-columns) * -1 + var(--space-sm)); }
.legend { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.legend li { display: grid; align-content: end; gap: var(--space-2xs); min-height: 132px; padding: var(--space-lg); border-radius: var(--radius-card); }
.legend b { font-size: var(--text-xl); font-weight: 900; line-height: 1.2; }
.legend span { font-size: var(--text-md); }
.legend__plan { background: var(--color-field); color: var(--color-on-dark); border-start-start-radius: var(--space-2xl); }
.legend__due { background: var(--color-due); color: var(--color-on-light); border-start-end-radius: var(--space-2xl); }
.legend__late { background: var(--color-late); color: var(--color-on-dark); border-end-start-radius: var(--space-2xl); }
.legend__paid { background: var(--color-paid); color: var(--color-on-light); border-end-end-radius: var(--space-2xl); }

/* ---------- collect ---------- */
.collect { padding-block: var(--section-gap); background: var(--color-paper-2); }
.collect h2 { margin-inline: auto; text-align: center; margin-bottom: var(--space-2xl); }
.collect__phones { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: var(--space-2xl); }
.collect .shot--phone { aspect-ratio: 390 / 700; }
.facts--row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-2xl); }

/* ---------- reports ---------- */
.reports { padding-block: var(--section-gap-l) var(--section-gap-s); }
.reports__head { display: grid; gap: var(--space-md); margin-bottom: var(--space-xl); }
.reports__head p { font-size: var(--text-lead); max-width: 52ch; }
.report-list { margin: var(--space-xl) 0 0; padding: 0; list-style: none; counter-reset: r; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md) var(--gap-columns); }
.report-list li { counter-increment: r; display: flex; gap: var(--space-sm); align-items: baseline; padding-top: var(--space-sm); border-top: 2px solid var(--color-ink); font-weight: 700; color: var(--color-ink); }
.report-list li::before { content: counter(r); font-weight: 900; color: var(--color-field); font-variant-numeric: tabular-nums; }
.reports__note { margin-top: var(--space-lg); color: var(--color-muted); }

/* ---------- close ---------- */
.close { padding-block: var(--space-3xl); }
.close__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); flex-wrap: wrap; }
.close h2 { max-width: 20ch; }
.close p { margin-top: var(--space-sm); font-size: var(--text-lead); }

/* ---------- footer ---------- */
.foot { padding-block: var(--space-xl); background: var(--color-paper); }
.foot__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap; }
.mark--dark { color: var(--color-ink); }
.foot__links { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.foot__links a { color: var(--color-ink-2); text-decoration: none; white-space: nowrap; border-radius: 4px; }
.foot__links a:hover { color: var(--color-field); text-decoration: underline; }

/* ---------- smaller screens ---------- */
@media (max-width: 60rem) {
  .hero__grid, .plan__grid, .states__grid, .brief__head, .contract__head, .film__head { grid-template-columns: minmax(0, 1fr); }
  .hero h1, .hero__side, .shot--hero, .plan__text, .shot--plan, .caption--plan, .states__text, .states .shot--phone, .caption--states,
  .brief__head h2, .brief__head p, .contract__head h2, .contract__head p, .film__head h2, .film__head p { grid-column: 1 / -1; grid-row: auto; }
  .caption--plan, .caption--states { margin-top: 0; }
  .plan__text { position: static; }
  .states .shot--phone { max-width: 360px; width: 100%; justify-self: center; }
  .collect__phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
  .facts--row { grid-template-columns: minmax(0, 1fr); }
  /* wide captures stay readable: they scroll sideways instead of shrinking */
  .shot--wide { overflow-x: auto; overscroll-behavior-x: contain; }
  .shot--wide > img { width: 960px; max-width: none; }
  .shot--hero { overflow-x: auto; aspect-ratio: auto; }
  .shot--hero > img { position: static; width: 820px; max-width: none; height: auto; }
  .report-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger tbody th, .ledger td { display: block; width: auto; }
  .ledger tr { padding: var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
  .ledger tbody th, .ledger td { padding: 0; border: 0; }
  .ledger td { margin-top: var(--space-sm); }
}
@media (max-width: 40rem) {
  .legend li { min-height: 140px; padding: var(--space-md); }
  .legend b { font-size: var(--text-lg); }
  .report-list { grid-template-columns: minmax(0, 1fr); }
  .mark__name { font-size: var(--text-md); }
  .hero__actions .btn { width: 100%; }
}
