/* Hallmark · redesign: full · brand: Saakshi · shape: field journal · hero: donor receipt, NGO field desk, Android guide */
/* Critique: the illustrations tell distinct stories; the hero, process and closing now give each story a different rhythm. */
:root {
  --paper: #f7f5ee;
  --white: #fffdfa;
  --ink: #172f29;
  --muted: #52665c;
  --dark: #123a32;
  --action: #14634f;
  --line: #d9ded2;
  --sage: #e6ede2;
  --light: #f7f5ee;
  --light-muted: #d4e5db;
  --light-rule: #648279;
  --ochre: #a86724;
  --peach: #f5e5d2;
  --focus: #91571c;
  --display: Georgia, "Times New Roman", serif;
  --sans: system-ui, sans-serif;
  --width: 74rem;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --section: clamp(3rem, 7vw, 6.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--sans); }
::selection { background: var(--peach); color: var(--dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
a { color: inherit; text-underline-offset: .25em; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { min-width: 0; overflow-wrap: break-word; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 6.35vw, 5.7rem); }
h2 { font-size: clamp(2.15rem, 4.55vw, 4rem); }
h3 { font-size: clamp(1.08rem, 2vw, 1.3rem); font-weight: 700; line-height: 1.35; text-wrap: pretty; }
.shell { width: min(var(--width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 3; padding: .7rem; background: var(--white); color: var(--ink); transform: translateY(-200%); }
.skip:focus { transform: none; }
.mast { border-bottom: 1px solid var(--line); background: var(--white); }
.mast .shell, footer .shell { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .1rem 1.5rem; padding-block: .65rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; text-decoration: none; font: 600 1.5rem/1 var(--display); }
.brand img { width: 2rem; height: 2rem; object-fit: contain; }
nav { display: flex; flex-wrap: wrap; align-items: center; column-gap: clamp(.85rem, 2.5vw, 1.8rem); }
nav a, .quiet-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; font-size: .94rem; }
nav a { text-decoration: none; }
nav a:hover, nav [aria-current="page"] { color: var(--action); text-decoration: underline; }
nav [aria-current="page"] { text-decoration-thickness: .14em; }
.hero { padding-block: clamp(2.3rem, 5vw, 4.8rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: clamp(1.8rem, 5vw, 5.25rem); }
.hero h1 { max-width: 12ch; }
.hero h1 span { display: block; }
.hero p { margin-top: 1.15rem; max-width: 43ch; font-size: clamp(1rem, 1.8vw, 1.18rem); color: var(--muted); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: .5rem; background: var(--action); color: var(--white); text-decoration: none; font-weight: 700; transition: background-color .18s ease-out, color .18s ease-out; }
.button:active { transform: translateY(1px); }
.button:hover { background: var(--dark); text-decoration: underline; }
.quiet-link:hover { text-decoration-thickness: .15em; }
.hero-image img { width: 100%; height: auto; aspect-ratio: 6 / 5; display: block; object-fit: cover; background: var(--sage); border-radius: .8rem; }
.hero-image figcaption { padding-top: .7rem; font-size: .85rem; color: var(--muted); }
.donor .hero, .closing { background: var(--dark); color: var(--light); }
.donor .hero-image { padding: .65rem; border: 1px solid var(--light-rule); border-radius: 1rem; }
.donor .hero-image img { border-radius: .5rem; }
.donor .hero-image figcaption { padding: .6rem .3rem .05rem; }
.donor .hero p, .donor .hero-image figcaption, .closing p, .closing .onboard { color: var(--light-muted); }
.donor .hero .button, .closing .button { background: var(--light); color: var(--dark); }
.donor .hero .button:hover, .closing .button:hover { background: var(--peach); }
.donor .hero :focus-visible, .closing :focus-visible { outline-color: var(--peach); }
.ngo .hero-image img { aspect-ratio: 5 / 4; object-position: center 58%; }
.section { padding-block: var(--section); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1rem 3rem; align-items: end; margin-bottom: clamp(1.6rem, 4vw, 3rem); }
.section-head p { color: var(--muted); max-width: 48ch; }
.trace { background: var(--peach); }
.trace-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 2rem clamp(2rem, 7vw, 6rem); }
.trace-intro p { margin-top: 1rem; max-width: 37ch; color: var(--ink); }
.receipt { background: var(--white); border-radius: .8rem; padding: .5rem clamp(1rem, 3vw, 1.8rem); }
.receipt-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; padding: .9rem 0; }
.receipt-meta strong { font-size: 1.04rem; }
.receipt-meta span { color: var(--muted); font-size: .85rem; }
details { border-top: 1px solid var(--line); }
summary { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 1rem; align-items: center; gap: .6rem; min-height: 55px; padding: .6rem 0; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--action); }
summary span:first-child, .steps li::before, .install-list li::before { color: var(--action); font-size: .9rem; font-variant-numeric: tabular-nums; }
summary svg { width: 1rem; height: 1rem; transition: transform .2s ease-out; }
details[open] summary svg { transform: rotate(180deg); }
details p { margin-left: 2.6rem; padding-bottom: 1rem; max-width: 59ch; color: var(--muted); }
.workflow, .download .install { background: var(--sage); }
.steps, .install-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; border-block: 1px solid var(--light-rule); }
.steps li, .install-list li { padding: 1.25rem clamp(.8rem, 2vw, 1.6rem) 1.4rem; border-inline-start: 1px solid var(--light-rule); }
.steps li:first-child, .install-list li:first-child { border-inline-start: 0; }
.steps, .install-list { counter-reset: steps; }
.steps li, .install-list li { counter-increment: steps; }
.steps li::before, .install-list li::before { content: counter(steps, decimal-leading-zero); display: block; margin-bottom: .75rem; font-weight: 750; }
.steps p, .install-list p { margin-top: .65rem; color: var(--muted); }
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 3rem); }
.feature { border-top: 1px solid var(--line); padding: 1.25rem 0 1.7rem; }
.feature p { margin-top: .65rem; max-width: 53ch; color: var(--muted); }
.closing .shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .65fr); align-items: end; gap: 1.5rem 3rem; }
.closing p { margin-top: .9rem; max-width: 49ch; }
.closing .actions { margin: 0; }
.onboard { padding-left: 1.3rem; margin: 1rem 0 0; }
.onboard li { padding-left: .3rem; margin-bottom: .35rem; }
.onboard li::marker { font-weight: 750; color: var(--peach); }
footer { border-top: 1px solid var(--line); background: var(--white); }
footer p { font-size: .9rem; }
.product-credit { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.product-credit img { width: 60px; height: 60px; object-fit: contain; }
.product-credit span { font-size: .88rem; }
.download .hero-image img { aspect-ratio: 5 / 4; object-position: center 58%; }
.download .install-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check-email .hero-grid { align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
.check-email .hero { padding-block: var(--section); }
.check-email .feature { padding: clamp(1rem, 3vw, 2.25rem); background: var(--white); border: 1px solid var(--line); border-radius: .8rem; }
.check-email .feature h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
@media (max-width: 52rem) {
  .hero-grid, .section-head, .trace-grid, .closing .shell, .check-email .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 14ch; }
  .hero-image img, .ngo .hero-image img, .download .hero-image img { aspect-ratio: 5 / 3; }
  .steps, .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { border-inline-start: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--light-rule); }
}
@media (max-width: 36rem) {
  .hero h1 { font-size: clamp(2.7rem, 10vw, 3.65rem); }
  .feature-list, .download .install-list { grid-template-columns: minmax(0, 1fr); }
  .install-list li + li { border-inline-start: 0; border-top: 1px solid var(--light-rule); }
}
@media (max-width: 24rem) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li + li { border-inline-start: 0; border-top: 1px solid var(--light-rule); }
}
@media (prefers-reduced-motion: reduce) { .button, summary svg { transition: none; } }
