/* ==========================================================================
   Kwiksend marketing page.

   Strategy: DRENCHED. The first viewport is the brand red at full bleed —
   the stamp at poster scale — then pure white paper below it. Reference
   point is Klim's orange drench / Mailchimp's yellow, not the purple-gradient
   SaaS hero and not the editorial serif-and-rules lane.

   No webfonts on purpose: the first customer works from China, where the
   Google Fonts CDN is blocked and a font <link> stalls the render. Voice is
   carried by weight, scale and colour commitment instead of a downloaded face.
   ========================================================================== */

.site { --gutter: clamp(20px, 5vw, 64px); }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }

/* ── Drenched hero ──────────────────────────────────────────────────────── */
/* --brand lightens to oklch(0.68 …) under prefers-color-scheme: dark, which
   dropped white-on-red in this hero to a measured 3.15:1. The drench is a
   fixed brand surface, not a theme-reactive one — it is pinned to the light
   crimson in both themes so the white type keeps 5.4:1. */
.hero, .closer { --hero-bg: oklch(0.550 0.200 26); }
.hero {
  background: var(--hero-bg);
  color: #fff;
  padding-block: clamp(24px, 5vw, 40px) clamp(64px, 11vw, 128px);
}
.hero-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); margin-bottom: clamp(56px, 12vw, 128px);
}
.hero-nav .brand-mark { color: #fff; font-size: var(--t-lg); }
.hero-nav .brand-mark .dot { background: #fff; }
.hero-nav nav { display: flex; align-items: center; gap: var(--s-2); }
/* One label per intent means the nav CTA is now "Create a free account", which
   overflows a 360px viewport. The hero's own primary CTA is a screen-inch below,
   so the nav simply drops its duplicate on phones rather than shortening it. */
@media (max-width: 559px) { .hero-nav nav .btn { display: none; } }
.hero-nav a.lnk {
  color: #fff; text-decoration: none; font-weight: 600; padding: 10px var(--s-3);
  border-radius: var(--radius); opacity: 0.9;
  transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease);
}
.hero-nav a.lnk:hover { opacity: 1; background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn-invert { background: #fff; color: var(--hero-bg); border-color: #fff; }
.btn-invert:hover:not(:disabled) { background: rgba(255, 255, 255, 0.88); color: var(--hero-bg); border-color: transparent; }
.btn-onred { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-onred:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: #fff; }

.hero h1 {
  font-size: clamp(2.6rem, 8.5vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;          /* floor is -0.04em */
  font-weight: 800;
  max-width: 15ch;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.hero p.lede {
  font-size: clamp(1.0625rem, 2.2vw, 1.375rem);
  line-height: 1.5;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: clamp(28px, 4vw, 40px);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.hero-cta .btn { min-height: 48px; padding-inline: var(--s-6); font-size: var(--t-md); }
.hero-note { margin-top: var(--s-5); font-size: var(--t-sm); color: rgba(255, 255, 255, 0.85); }

/* ── The honest product rendering ───────────────────────────────────────── */
/* Not a screenshot: the real markup, so it can never go stale against the app. */
.showcase { background: var(--bg); padding-block: clamp(48px, 8vw, 96px); }
.showcase-copy { margin-bottom: clamp(32px, 5vw, 56px); }
.showcase-copy h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.35rem); letter-spacing: -0.025em;
  margin-bottom: var(--s-4); max-width: 22ch;
}
.showcase-copy p { color: var(--ink-2); font-size: var(--t-md); max-width: 62ch; }

/* The composer mock is the subject of this section, so it gets the wider
   column; the handset is supporting evidence, not a co-star. */
.showcase-inner {
  display: grid; gap: clamp(28px, 5vw, 64px); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .showcase-inner { grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.75fr); } }

/* Lift the composer mock off the page so it reads as the subject, not a card
   in a grid of cards. It is the only elevated object on the page. */
.mock {
  border: 1px solid var(--rule); border-radius: 12px; background: var(--bg);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -8px rgba(0,0,0,.10);
  overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-4); background: var(--surface); border-bottom: 1px solid var(--rule);
  font-size: var(--t-sm); font-weight: 600; color: var(--ink-2);
}
.mock-body { padding: var(--s-4); }
.mock-msg {
  border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s-3);
  font-size: var(--t-sm); color: var(--ink); line-height: 1.5; background: var(--bg);
}
.mock-meta { display: flex; gap: var(--s-4); font-size: var(--t-xs); color: var(--ink-2); margin-top: var(--s-2); }
.mock-meta b { font-family: var(--font-mono); color: var(--ink); }

/* Handset showing the delivered message — the other half of the transaction. */
.phone {
  max-width: 290px; margin-inline: auto; justify-self: start;
  border: 8px solid var(--ink); border-radius: 30px; background: var(--surface);
  padding: var(--s-5) var(--s-3) var(--s-6);
  box-shadow: 0 20px 48px -12px rgba(0,0,0,.22);
}
.phone .bar {
  display: flex; justify-content: space-between; font-size: 11px; font-family: var(--font-mono);
  color: var(--ink-2); padding: 0 var(--s-2) var(--s-3);
}
.phone .from { font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); padding: 0 var(--s-2) 6px; letter-spacing: 0.02em; }
.phone .sms {
  background: var(--bg); border: 1px solid var(--rule); border-radius: 14px 14px 14px 4px;
  padding: var(--s-3); font-size: var(--t-sm); line-height: 1.5; color: var(--ink);
}
.phone .stamp { font-size: 11px; color: var(--ink-3); padding: 6px var(--s-2) 0; font-family: var(--font-mono); }

/* ── How it works — a real sequence, so numbers are earned here ─────────── */
.steps { background: var(--surface); padding-block: clamp(48px, 8vw, 96px); border-block: 1px solid var(--rule); }
.steps-grid { display: grid; gap: var(--s-6); margin-top: var(--s-8); grid-template-columns: 1fr; }
/* Explicit 2 then 4 columns: auto-fit orphaned the fourth step on its own row. */
@media (min-width: 620px)  { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.step { border-top: 2px solid var(--ink); padding-top: var(--s-4); }
.step h3 { margin-bottom: var(--s-2); }
.step p { color: var(--ink-2); font-size: var(--t-base); }

/* ── Pricing — one number, stated plainly ───────────────────────────────── */
.pricing { padding-block: clamp(48px, 8vw, 96px); }
.price-lead {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-3);
  margin-block: var(--s-6) var(--s-4);
}
/* UI font, not mono: monospace advance widths make a poster-scale figure read
   as "GH ¢ 0 . 5 0". Tabular alignment earns nothing on a single number. */
.price-lead .fig {
  font-family: var(--font-ui); font-variant-numeric: tabular-nums;
  font-size: clamp(2.5rem, 6.5vw, 4rem); font-weight: 800;
  letter-spacing: -0.015em; line-height: 1;
}
.price-lead .per { font-size: var(--t-lg); color: var(--ink-2); }

.price-table { width: 100%; border-collapse: collapse; margin-top: var(--s-6); }
.price-table th, .price-table td { padding: var(--s-3) 0; text-align: left; border-bottom: 1px solid var(--rule); }
.price-table th { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); }
.price-table td.r, .price-table th.r { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Two columns, not four: the steps section directly above is a 4-across text
   grid, and repeating that shape makes two different ideas read as one
   template. The wider measure also suits these longer explanations. */
.truths { display: grid; gap: var(--s-6) var(--s-10); margin-top: var(--s-10); grid-template-columns: 1fr; }
@media (min-width: 700px) { .truths { grid-template-columns: repeat(2, 1fr); } }
.truth h3 { font-size: var(--t-md); }
.truth h3 { font-size: var(--t-base); margin-bottom: var(--s-2); }
.truth p { color: var(--ink-2); font-size: var(--t-sm); }

/* ── Closing band — red again, bookending the drench ────────────────────── */
.closer { background: var(--hero-bg); color: #fff; padding-block: clamp(56px, 9vw, 104px); text-align: center; }
.closer h2 { font-size: clamp(1.85rem, 5vw, 3rem); letter-spacing: -0.03em; font-weight: 800; margin-bottom: var(--s-4); }
.closer p { color: rgba(255,255,255,.92); max-width: 46ch; margin: 0 auto var(--s-6); font-size: var(--t-md); }

.site-foot { background: var(--bg); padding-block: var(--s-8); border-top: 1px solid var(--rule); }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }

/* Entrance: one restrained reveal on the hero only. Content is visible by
   default and the animation lifts it — a headless renderer or a background
   tab still shows a complete page. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero p.lede, .hero-cta, .hero-note {
    animation: rise 620ms var(--ease) both;
  }
  .hero p.lede { animation-delay: 70ms; }
  .hero-cta    { animation-delay: 140ms; }
  .hero-note   { animation-delay: 200ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── Who it's for ──────────────────────────────────────────────────────────
   A bento with real photography, not another text grid. Four items, exactly
   four cells, deliberately unequal: the shop is the anchor, the meeting runs
   full width beneath. Captions sit BELOW each frame rather than overlaid, so
   nothing is stamped on top of a photograph. */
.sectors { padding-block: clamp(48px, 8vw, 96px); }
.sectors-head { max-width: 46ch; margin-bottom: clamp(28px, 4vw, 44px); }
.sectors-head h2 { font-size: clamp(1.6rem, 3.8vw, 2.35rem); letter-spacing: -0.025em; margin-bottom: var(--s-3); }
.sectors-head p { color: var(--ink-2); font-size: var(--t-md); }

.sector-grid { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: 1fr; }
@media (min-width: 820px) {
  .sector-grid { grid-template-columns: 1.35fr 1fr; }
  .sector--anchor { grid-row: span 2; }
  .sector--wide   { grid-column: 1 / -1; }
}

.sector figure { margin: 0; }
.sector img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: var(--radius); background: var(--surface-2);
  /* The photography is monochrome by intent: red stays the only colour on
     the page. The filter is belt-and-braces if a colour frame is ever swapped in. */
  filter: grayscale(1) contrast(1.04);
}
.sector--anchor img { aspect-ratio: 3 / 4; }
.sector--wide img   { aspect-ratio: 21 / 9; }
.sector figcaption { margin-top: var(--s-3); }
@media (max-width: 819px) {
  .sector img, .sector--anchor img, .sector--wide img { aspect-ratio: 3 / 2; }
}

.sector .who { font-weight: 650; font-size: var(--t-base); }
.sector .said {
  color: var(--ink-2); font-size: var(--t-sm); margin-top: 3px;
  border-left: 2px solid var(--rule-strong); padding-left: var(--s-3);
}

/* ── Document pages (legal, policy, contact) ───────────────────────────────
   Policy pages are read, not scanned, so they get a single measured column
   and no drench. A payment processor's reviewer has to find these fast and
   read them without friction. */
.doc-nav { border-bottom: 1px solid var(--rule); padding-block: var(--s-4); background: var(--bg); }
.doc-nav .lnk { color: var(--ink-2); text-decoration: none; font-weight: 600; padding: 8px var(--s-3); border-radius: var(--radius); }
.doc-nav .lnk:hover { background: var(--surface-2); color: var(--ink); }

.doc { padding-block: clamp(40px, 6vw, 72px) clamp(48px, 8vw, 96px); }
.doc h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); letter-spacing: -0.03em; max-width: 20ch; }
.doc-lede { font-size: var(--t-lg); color: var(--ink-2); margin-top: var(--s-3); max-width: 62ch; }
.doc-updated { font-size: var(--t-sm); color: var(--ink-3); margin-top: var(--s-3); font-family: var(--font-mono); }

.prose { max-width: 68ch; margin-top: clamp(28px, 4vw, 44px); }
.prose h2 {
  font-size: var(--t-xl); letter-spacing: -0.015em; margin-top: var(--s-10); margin-bottom: var(--s-3);
  padding-top: var(--s-5); border-top: 1px solid var(--rule);
}
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: var(--t-md); margin-top: var(--s-6); margin-bottom: var(--s-2); }
.prose p { margin-bottom: var(--s-4); line-height: 1.65; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 var(--s-4) 0; padding-left: var(--s-5); }
.prose li { margin-bottom: var(--s-2); line-height: 1.6; }
.prose a { color: var(--brand-ink); font-weight: 550; }
.prose strong { font-weight: 650; }
.prose .callout {
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface);
  padding: var(--s-4); margin-bottom: var(--s-5);
}
.prose .callout p:last-child { margin-bottom: 0; }
.prose dl { margin: 0 0 var(--s-5); }
.prose dt { font-weight: 650; margin-top: var(--s-4); }
.prose dd { margin: 2px 0 0; color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--s-5); }
.prose th, .prose td { text-align: left; padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); }

/* Unfilled business details are an operator problem, not a customer one:
   visible to admins only, so a reviewer never sees a placeholder. */
.doc-warn {
  border: 1px solid var(--brand); background: var(--brand-wash); color: var(--brand-ink);
  border-radius: var(--radius); padding: var(--s-4); margin-bottom: var(--s-6); font-size: var(--t-sm);
}


/* ── Site footer ───────────────────────────────────────────────────────────
   A real grid, not space-between on two blocks. The old version put the brand
   hard left and jammed all three link columns against the right edge with a
   dead gap between them; the columns now share the width evenly and the brand
   simply gets a wider first column. */
.foot-grid {
  display: grid;
  gap: clamp(28px, 4vw, 40px) clamp(20px, 3vw, 40px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 560px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: minmax(190px, 1.5fr) repeat(3, minmax(0, 1fr)); }
}
.foot-brand p { max-width: 30ch; }
@media (min-width: 560px) and (max-width: 899px) { .foot-brand { grid-column: 1 / -1; } }

.foot-col { display: flex; flex-direction: column; gap: 7px; font-size: var(--t-sm); align-items: flex-start; }
.foot-head {
  font-size: var(--t-xs); font-weight: 650; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px;
}
.foot-legal { margin-top: clamp(28px, 4vw, 44px); padding-top: var(--s-5); border-top: 1px solid var(--rule); }
