/* Hallmark · shape: the Board, the app's card columns laid across the first screen · genre: playful · theme: custom · redesign: full · job: buy · idea: "The page is the app's own board of colored category cards, and the open one really converts." · vibe: "tactile, saturated, card-stacked, playful but exact"
 * paper: oklch(21.8% 0.004 286) · accent: oklch(78.5% 0.17 66) · display: system (SF Pro Display) 800, the app's own face · body: system (SF Pro Text) · hero: a head over a row of live category cards, one open with a working converter · nav: wordmark and one action · footer: one line, copyright, privacy, support · imagery: the product, real simulator screenshots · signature: the open card converts what you type
 * axes: dark/grotesk-heavy/chromatic-multi · posture: saturated cards on a dark ground · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, the lower sections stay calm by request (bold hero, quiet page), so their rhythm leans on the card colours */
/* Hallmark · brand · the app's palette, its #1C1C1E ground and the system face are kept from FancyUnits-iOS (CardColor.swift, Theme.swift) */
/* Hallmark · reworded "Tap a card. It opens." to "Tap a card. It fills the screen." · the head now states what happens */
/* Hallmark · reworded the crypto ticker row to coin names · 67 names capitals at body size */
/* Hallmark · dropped the hero arcs · 2a reads the icon's rainbow as a purple-to-blue gradient; the live cards carry the colour now */
@import url("./tokens.css");
@import url("./base.css");

body { font-size: var(--text-md); }
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3 { font-weight: 800; letter-spacing: var(--tracking-display); line-height: 1.02; }
.ic { width: 1.25em; height: 1.25em; flex: none; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: var(--space-md); }
.brand { display: flex; align-items: center; gap: var(--space-sm); font-weight: 700; font-size: var(--text-lg); text-decoration: none; border-radius: var(--space-xs); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: var(--space-xs) var(--space-lg); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-accent); font-weight: 600; text-decoration: none; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.pill:hover { background: var(--color-paper-3); }
.pill:active { transform: scale(0.97); }

/* Hero: head, then the board */
.hero { padding-block: var(--space-xl) var(--space-2xl); }
.hero-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xl); align-items: end; }
.hero h1 { font-size: var(--text-display); max-width: 11ch; }
.hero-side { display: grid; gap: var(--space-md); justify-items: start; max-width: 30ch; padding-bottom: var(--space-xs); }
.lead { font-size: var(--text-lead); color: var(--color-ink-2); }
.badge { display: inline-block; border-radius: var(--space-xs); transition: transform var(--dur-micro) var(--ease-out); }
.badge:active { transform: scale(0.97); }
.badge img { height: 52px; width: auto; }
.note { color: var(--color-muted); font-size: var(--text-sm); }

/* The board: one row of card columns; the open one converts */
.board { margin-top: var(--space-xl); display: flex; gap: var(--space-sm); height: 440px; }
.col { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--radius-card); background: var(--c); color: var(--color-on-card); overflow: hidden; }
.col[data-open] { flex: 5 1 0; box-shadow: var(--shadow-card); }
.col-tab { all: unset; box-sizing: border-box; position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: var(--space-lg); cursor: pointer; font-size: var(--text-card); font-weight: 800; letter-spacing: -0.02em; transition: transform var(--dur-short) var(--ease-out); }
.col-tab span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.col-tab:hover { transform: translateY(-4px); }
.col-tab:active { transform: scale(0.98); }
.col-tab:focus-visible { outline: 3px solid var(--color-on-card); outline-offset: -6px; border-radius: var(--radius-card); }
.col[data-open] .col-tab { display: none; }
.col-body { display: none; height: 100%; flex-direction: column; padding: var(--space-lg); }
.col[data-open] .col-body { display: flex; animation: open var(--dur-long) var(--ease-out); }
.col-body h2 { display: flex; align-items: center; gap: var(--space-sm); font-size: var(--text-2xl); }
.rows { margin-top: var(--space-md); display: grid; overflow-y: auto; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: var(--space-md); padding-block: var(--space-sm); border-top: var(--rule-hair) solid var(--color-card-ink); }
.row label { display: grid; font-weight: 700; font-size: var(--text-lg); line-height: 1.2; }
.row label small { font-weight: 500; font-size: var(--text-sm); color: var(--color-on-card-2); }
.row input { width: 100%; min-width: 0; text-align: right; background: transparent; border: 0; border-radius: var(--space-xs); color: var(--color-on-card); font-size: var(--text-2xl); font-weight: 600; font-variant-numeric: tabular-nums; padding: var(--space-2xs) var(--space-xs); transition: background-color var(--dur-short) var(--ease-out); }
.row input:hover { background: var(--color-card-ink); }
.row input:focus-visible { outline: 3px solid var(--color-on-card); outline-offset: 0; background: var(--color-card-ink); }
.board-note { margin-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); }
@keyframes open { from { opacity: 0; transform: translateY(12px); } }

/* Facts */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap-columns); }
.facts li { border-top: 4px solid var(--c); padding-top: var(--space-sm); color: var(--color-ink-2); font-weight: 600; }
.facts b { display: block; font-size: var(--text-section); font-weight: 800; letter-spacing: var(--tracking-display); line-height: 1; color: var(--color-ink); margin-bottom: var(--space-xs); }

/* Sections */
.section { padding-block: var(--space-3xl); }
.section h2 { font-size: var(--text-section); max-width: 16ch; }
.sub { margin-top: var(--space-md); color: var(--color-muted); font-size: var(--text-lead); max-width: 44ch; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: center; }

/* Phone frames around the real screenshots */
.phone { width: 100%; max-width: 300px; justify-self: center; border-radius: var(--radius-phone); padding: var(--space-xs); background: var(--color-black); box-shadow: 0 0 0 2px var(--color-paper-3), var(--shadow-card); }
.phone img { width: 100%; border-radius: 36px; aspect-ratio: 1206 / 2622; object-fit: cover; transition: opacity var(--dur-short) var(--ease-out); }
.phone img.swap { opacity: 0; }

/* Screen switcher */
.cards { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; gap: var(--space-sm); }
.cards button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: var(--space-sm); min-height: 64px; padding: var(--space-md) var(--space-lg); border-radius: var(--radius-card); background: var(--c); color: var(--color-on-card); font-size: var(--text-xl); font-weight: 800; letter-spacing: -0.02em; cursor: pointer; transition: transform var(--dur-short) var(--ease-out), filter var(--dur-short) var(--ease-out); }
.cards button[aria-pressed="false"] { filter: saturate(0.45) brightness(0.82); }
.cards button[aria-pressed="false"]:hover { filter: saturate(0.8) brightness(0.95); }
.cards button[aria-pressed="true"] { transform: translateX(var(--space-sm)); }
.cards button:active { transform: scale(0.98); }
.cards button:focus-visible { outline: 3px solid var(--color-on-card); outline-offset: 3px; }

.tips { list-style: none; margin: var(--space-xl) 0 0; padding: 0; }
.tips li { padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-lg); }
.tips li:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }

/* Currency card contents */
.money { margin-top: var(--space-xl); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); }
.money > div { border-radius: var(--radius-card); padding: var(--space-lg); background: var(--card-green-deep); color: var(--color-on-card); }
.money > .hist { background: var(--color-paper-2); color: var(--color-ink); }
.money h3 { font-size: var(--text-xl); }
.money p { margin-top: var(--space-xs); color: var(--color-on-card-2); }
.money .hist p { color: var(--color-muted); }

/* All categories */
.cat-cloud { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.cat-cloud li { padding: var(--space-xs) var(--space-md); border-radius: var(--radius-chip); background: var(--c); color: var(--color-on-card); font-weight: 700; }

/* Free and full */
.plans { margin-top: var(--space-xl); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); }
.plan { border-radius: var(--radius-card); padding: var(--space-xl); background: var(--color-paper-2); }
.plan.full { background: var(--card-indigo-deep); color: var(--color-on-card); }
.plan h3 { font-size: var(--text-2xl); }
.plan ul { margin: var(--space-md) 0 0; padding-left: var(--space-lg); display: grid; gap: var(--space-xs); font-size: var(--text-lg); }
.plan p { margin-top: var(--space-md); color: var(--color-muted); font-size: var(--text-sm); }
.plan.full p { color: var(--color-on-card-2); }

/* More from Carry Apps */
.family { margin-top: var(--space-xl); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.family > * { display: grid; gap: var(--space-2xs); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.family a:hover { background: var(--color-paper-3); }
.family a:active { transform: scale(0.99); }
.family strong { font-size: var(--text-lg); }
.family span { color: var(--color-muted); font-size: var(--text-sm); }

/* Footer */
.foot { border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-muted); font-size: var(--text-sm); }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm); }
.foot span { padding-block: var(--space-sm); }
.foot nav { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.foot a { display: inline-block; padding-block: var(--space-sm); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.foot a:hover { color: var(--color-ink); }

/* Card colours by name */
.c-red { --c: var(--card-red); } .c-coral { --c: var(--card-coral); } .c-pink { --c: var(--card-pink); } .c-green { --c: var(--card-green); }
.c-blue { --c: var(--card-blue); } .c-indigo { --c: var(--card-indigo); } .c-violet { --c: var(--card-violet); } .c-graphite { --c: var(--card-graphite); } .c-teal { --c: var(--card-teal); }

/* Privacy page */
.doc { max-width: 720px; margin-inline: auto; padding: var(--space-2xl) var(--gutter) var(--space-3xl); }
.doc h1 { font-size: var(--text-section); margin-bottom: var(--space-lg); }
.doc p { color: var(--color-ink-2); margin-bottom: var(--space-md); }
.doc .back { display: inline-block; margin-bottom: var(--space-xl); color: var(--color-accent); text-decoration: none; }

@media (max-width: 900px) {
  .hero-head, .split { grid-template-columns: minmax(0, 1fr); }
  .board { flex-direction: column; height: auto; }
  .col { flex: none; min-height: 72px; }
  .col[data-open] { flex: none; }
  .col-tab { flex-direction: row; justify-content: flex-start; align-items: center; gap: var(--space-sm); padding: var(--space-md) var(--space-lg); }
  .col-tab span { writing-mode: horizontal-tb; transform: none; }
  .col-tab:hover { transform: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .money, .plans, .family { grid-template-columns: minmax(0, 1fr); }
  .cards button[aria-pressed="true"] { transform: none; }
  .section { padding-block: var(--space-2xl); }
}
@media (max-width: 600px) {
  .row input { font-size: var(--text-xl); }
  .phone { max-width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .col[data-open] .col-body { animation: none; }
  .col-tab, .cards button, .phone img, .pill, .badge, .family > * { transition: none; }
}
.facts-band { padding-top: 0; }
.row input:disabled { background: var(--color-paper-3); color: var(--color-muted); cursor: not-allowed; }

/* Review fixes */
h1, h2, h3 { font-weight: 800; letter-spacing: var(--tracking-display); }
.hint { margin-top: var(--space-2xs); color: var(--color-on-card-2); font-size: var(--text-sm); font-weight: 600; }
.row input { background: var(--color-card-ink); }
.row input:hover { background: var(--color-card-ink-2); }
.pill { background: transparent; box-shadow: inset 0 0 0 1.5px var(--color-paper-3); }
.pill:hover { background: var(--color-paper-2); }
.board-note { color: var(--color-ink-2); }
.hero .facts { margin-top: var(--space-xl); }
.money-split { margin-top: var(--space-xl); display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--space-2xl); align-items: center; }
.money-split .money { margin-top: 0; }
.family-band h2 { font-size: var(--text-2xl); }
.family-band { padding-block: var(--space-2xl); }
@media (max-width: 900px) {
  .hero-head { display: contents; }
  .hero .wrap { display: flex; flex-direction: column; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.5rem); order: 1; }
  .board { order: 2; margin-top: var(--space-lg); }
  .board-note { order: 3; }
  .hero-side { order: 4; margin-top: var(--space-lg); }
  .hero .facts { order: 5; }
  .nav { order: 0; }
  .money-split { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 901px) {
  .hero h1 { max-width: 15ch; font-size: clamp(3rem, 5.4vw + 0.5rem, 5.75rem); }
  .board { height: 448px; }
}
.col-tab, .cards button, .facts b { font-family: var(--font-display); font-weight: 800; }
