/* Hallmark · shape: Index-First (draw dealt Letter; swapped, a top-up guide is transactional and the steps are the reason to come) · genre: editorial · theme: Editorial (deal 1/3, seed official-top-guide-pgtoto-b01f·dd66a2d4·2026-11-26·r0) · brand: PGTOTO (spec 2026-11-27) · job: buy · draw: 11b854
 * hero: Index · nav: edge-aligned, on the ink band because the logo's PG is white · footer: letter close on the ink band · imagery: none, the steps are the picture · signature: the five top-up steps set as a contents page, violet condensed numerals, the whole guide on the first screen
 * axes: dark/display-condensed/chromatic-toto (navy from favicon, TOTO letter gradient for accents; recoloured 2026-11-29) · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V5 · weakest: P, a deposit guide invites hurry; the second section after the routes is the four checks against fake account numbers, and the footer names the 18+ rule */
/* Hallmark · dismissed 58 · the window from y 2800 counts the four closed FAQ answers inside details; painted, it holds the four-row table and four questions, about 70 words */
/* Hallmark · dismissed 23 · five single-digit step numerals in violet beside the contents list, under 2% of the hero, the only display type in accent */
/* Hallmark · answered F4 ·the ink-filled tab is the selected state of the method switcher, not a second primary action */
@import url("./tokens.css");
@import url("./base.css");

/* Type voice */
body { color: var(--color-ink-2); font-size: 1.125rem; font-optical-sizing: auto; font-variant-numeric: oldstyle-nums; }
h1, h2, h3 { font-weight: var(--display-weight); font-variation-settings: "wdth" 75, "opsz" 96; color: var(--color-ink); font-variant-numeric: lining-nums tabular-nums; }
h1 { line-height: 0.92; }
.label, th, dt, summary, .btn, .tabs button, .nav__links a, .foot__links a { font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 12; }
.opens, .contents, .faq__list { border-top: var(--rule-heavy) solid var(--toto-2); border-image: var(--gradient-toto) 1; }
.opens { padding-top: var(--space-lg); }
a { text-decoration-color: var(--color-rule-2); text-underline-offset: 0.2em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
a:hover { text-decoration-color: var(--color-accent-2); }

/* Skip link */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--toto-4); color: var(--color-accent-ink); }
.skip:focus-visible { top: var(--space-md); }

/* Buttons, all states */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: 0; font-size: var(--text-md); line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), 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:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--primary { border-color: transparent; background: var(--gradient-toto); background-size: 160% 100%; background-position: 0 0; color: var(--color-accent-ink); font-weight: 700; transition: background-position var(--dur-long) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn--primary:hover { background-position: 100% 0; box-shadow: 0 10px 32px -10px var(--glow-violet); }
.btn--secondary { background: transparent; color: var(--color-ink); border-color: var(--color-rule-2); }
.btn--secondary:hover { border-color: var(--toto-3); }
.btn--secondary:hover { background: var(--color-paper-2); }
.btn--on-ink { min-height: 44px; padding: 0 var(--space-md); background: transparent; color: var(--color-ink); border-color: var(--color-rule-2); }
.btn--on-ink:hover { background: var(--color-paper-2); border-color: var(--toto-2); }
.btn--on-ink:focus-visible { outline-color: var(--color-focus-on-ink); }

/* Nav: edge-aligned on the ink band */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: rgb(6 11 38 / 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--color-ink); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 72px; }
.nav__brand { display: inline-flex; flex-shrink: 0; }
.nav__brand img { width: 160px; }
.nav__brand:focus-visible { outline: 2px solid var(--color-focus-on-ink); outline-offset: 6px; }
.nav__links { display: flex; align-items: center; gap: var(--space-lg); }
.nav__links a:not(.btn) { color: var(--color-ink-2); font-size: var(--text-sm); text-decoration: underline; text-decoration-color: transparent; white-space: nowrap; }
.nav__links a:not(.btn):hover { color: var(--color-ink); text-decoration-color: var(--color-focus-on-ink); }
.nav__links a:not(.btn):focus-visible { outline: 2px solid var(--color-focus-on-ink); outline-offset: 4px; }
@media (max-width: 40rem) { .nav__links a:not(.btn) { display: none; } .nav__brand img { width: 128px; } }

/* Hero: Index posture, the five steps as a contents page */
.hero { display: grid; align-items: center; min-height: calc(100svh - 72px); padding-block: var(--space-2xl); background: radial-gradient(48% 42% at 0% 58%, var(--glow-violet), transparent 75%), radial-gradient(42% 50% at 100% 0%, var(--glow-cyan), transparent 70%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.hero__text { display: grid; gap: var(--space-lg); }
.hero h1 { max-width: 11ch; font-size: clamp(3rem, 5vw + 1.75rem, 6.5rem); }
.hero .lead { color: var(--color-ink); max-width: 32ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }

.contents { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.contents li { counter-increment: step; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); column-gap: var(--space-lg); padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); align-items: baseline; }
.contents li::before { content: counter(step); font-family: var(--font-display); font-weight: var(--display-weight); font-variation-settings: "wdth" 75, "opsz" 96; font-size: var(--text-section); line-height: 1; color: var(--color-accent); font-variant-numeric: lining-nums tabular-nums; }
/* each numeral takes one TOTO letter colour, left to right across the logo */
.contents li:nth-child(1)::before { color: var(--toto-1); }
.contents li:nth-child(2)::before { color: var(--toto-2); }
.contents li:nth-child(3)::before { color: var(--toto-mid); }
.contents li:nth-child(4)::before { color: var(--toto-3); }
.contents li:nth-child(5)::before { color: var(--toto-4); }
.contents__title { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-variation-settings: "wdth" 75, "opsz" 96; font-size: var(--text-section); line-height: 1.05; letter-spacing: var(--tracking-display); color: var(--color-ink); }

/* Section heads */
.head { display: grid; gap: var(--space-md); }
.head .lead { color: var(--color-ink-2); }
.head--split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--gap-columns); align-items: end; }

/* Methods: the switcher */
.methods { padding-block: var(--section-gap-s) var(--section-gap); }
.switch { margin-top: var(--space-2xl); }
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-xl); }
.tabs button { min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-rule-2); border-radius: 0; background: transparent; color: var(--color-ink); font-size: var(--text-md); white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.tabs button:hover { background: var(--color-paper-2); }
.tabs button:active { transform: translateY(1px); }
.tabs button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.tabs button[aria-selected="true"] { background: var(--toto-2); border-color: var(--toto-2); color: var(--color-accent-ink); font-weight: 700; }
html:not(.js) .tabs { display: none; }

.panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap-columns); row-gap: var(--space-xl); }
.panel + .panel { margin-top: var(--space-2xl); }
.panel:focus-visible { outline: 2px solid var(--color-focus); outline-offset: var(--space-xs); }
.panel__name { grid-row: 1 / span 2; font-size: var(--text-display-s); line-height: 1; }
.panel__steps { margin: 0; padding: 0; list-style: none; counter-reset: pstep; border-top: var(--rule-hair) solid var(--color-rule-2); }
.panel__steps li { counter-increment: pstep; display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: baseline; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-lg); color: var(--color-ink); }
.panel__steps li::before { content: counter(pstep); font-family: var(--font-display); font-weight: var(--display-weight); font-variation-settings: "wdth" 75, "opsz" 96; font-size: var(--text-xl); color: var(--toto-3); font-variant-numeric: lining-nums tabular-nums; }
.panel__spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; }
.panel__spec dt { font-size: var(--text-sm); color: var(--color-muted); }
.panel__spec dd { margin: var(--space-2xs) 0 0; color: var(--color-ink); }

/* Checks: the one well */
.checks { padding-block: var(--section-gap-s); background: radial-gradient(40% 80% at 100% 100%, var(--glow-violet), transparent 70%), var(--color-paper-2); border-block: var(--rule-hair) solid var(--color-rule); }
.checks__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap-columns); row-gap: var(--space-2xl); align-items: start; }
.checks h2 { max-width: 12ch; }
.checks__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); margin: 0; padding: 0; list-style: none; }
.checks__list li { display: grid; gap: var(--space-sm); align-content: start; padding-top: var(--space-md); border-top: 2px solid var(--toto-2); }
.checks__list li:nth-child(1) { border-top-color: var(--toto-1); }
.checks__list li:nth-child(3) { border-top-color: var(--toto-3); }
.checks__list li:nth-child(4) { border-top-color: var(--toto-4); }
.checks__list p { max-width: 45ch; }

/* Trouble: the table */
.trouble { padding-block: var(--section-gap) var(--section-gap-s); }
.table { width: 100%; margin-top: var(--space-2xl); border-collapse: collapse; border-top: var(--rule-hair) solid var(--color-rule-2); }
.table thead th { padding: var(--space-sm) var(--space-md) var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule-2); font-size: var(--text-sm); color: var(--color-muted); text-align: left; white-space: nowrap; }
.table tbody th, .table td { padding: var(--space-lg) var(--space-md) var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: top; }
.table tbody th { width: 32%; font-weight: var(--display-weight); font-variation-settings: "wdth" 75, "opsz" 96; font-size: var(--text-title); line-height: 1.15; color: var(--color-ink); }
.table td:last-child { color: var(--color-ink); }

/* FAQ */
.faq { padding-block: var(--section-gap-l) var(--section-gap); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap-columns); row-gap: var(--space-xl); align-items: start; }
.faq h2 { max-width: 10ch; }
.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); min-height: 72px; padding-block: var(--space-md); font-size: var(--text-xl); font-weight: var(--display-weight); font-variation-settings: "wdth" 75, "opsz" 96; line-height: 1.15; color: var(--color-ink); cursor: pointer; list-style: none; transition: color var(--dur-short) var(--ease-out); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; font-size: var(--text-2xl); line-height: 1; transition: transform var(--dur-short) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--toto-2); }
.faq details[open] summary::after { color: var(--toto-4); }
.faq summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.faq details p { padding-bottom: var(--space-lg); max-width: 56ch; }

/* Footer: letter close on the ink band */
.foot { padding-block: var(--space-3xl); background: radial-gradient(50% 90% at 0% 100%, var(--glow-violet), transparent 70%), radial-gradient(40% 70% at 100% 0%, var(--glow-cyan), transparent 70%), var(--color-band); color: var(--color-ink-muted); border-top: var(--rule-hair) solid var(--color-rule); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gap-columns); row-gap: var(--space-2xl); }
.foot__close { display: grid; gap: var(--space-lg); align-content: start; }
.foot__close img { width: 200px; }
.foot__sign { font-size: var(--text-display-s); line-height: 1.15; color: var(--color-ink); max-width: 18ch; }
.foot__date { font-size: var(--text-sm); }
.foot__side { display: grid; gap: var(--space-lg); align-content: start; }
.foot__links { display: grid; gap: var(--space-sm); margin: 0; padding: 0; list-style: none; }
.foot__links a { color: var(--color-ink); font-size: var(--text-md); text-decoration: underline; text-decoration-color: var(--color-ink-rule); }
.foot__links a:hover { text-decoration-color: var(--color-focus-on-ink); }
.foot__links a:focus-visible { outline: 2px solid var(--color-focus-on-ink); outline-offset: 3px; }
.foot__legal { font-size: var(--text-sm); max-width: 44ch; }
.foot__legal:first-of-type { padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-ink-rule); }

/* Under 60rem everything stacks in reading order */
@media (max-width: 60rem) {
  .hero { min-height: 0; }
  .hero__grid, .checks__grid, .faq__grid, .foot__grid, .head--split { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { gap: var(--space-xl); }
  .panel { grid-template-columns: minmax(0, 1fr); }
  .panel__name { grid-row: auto; }
}
@media (max-width: 40rem) {
  .checks__list, .panel__spec { grid-template-columns: minmax(0, 1fr); }
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contents li { grid-template-columns: 3rem minmax(0, 1fr); column-gap: var(--space-md); }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table tr, .table tbody th, .table td { display: block; width: auto; }
  .table tr { padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .table tbody th, .table td { padding: var(--space-2xs) 0; border-bottom: 0; }
  .table td::before { content: attr(data-label); display: block; font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 12; font-size: var(--text-sm); color: var(--color-muted); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn--primary, .tabs button, .faq summary::after { transition: none; }
  .btn:active, .tabs button:active { transform: none; }
}
