/* CornerIQ holding page. One bold element (the till receipt); everything else quiet. */
:root {
  color-scheme: light;
  --bg: #e9f0ec;      /* pale shop-floor mint */
  --ink: #10241c;     /* deep green-black */
  --muted: #4b5b54;
  --green: #0d6b4f;   /* CornerIQ green, as on the fascia */
  --awning: #f7c948;  /* the awning in the icon */
  --paper: #ffffff;
  --rule: #c9d6cf;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--green); }
:focus-visible { outline: 3px solid var(--awning); outline-offset: 3px; border-radius: 4px; }

.masthead { max-width: 1080px; margin: 0 auto; padding: 22px 24px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { border-radius: 9px; }

main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.hero { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; padding: 48px 0 56px; }
h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.04; letter-spacing: -0.025em; font-weight: 800; margin: 0 0 22px; max-width: 14ch; }
.lede { font-size: 1.1875rem; color: var(--muted); max-width: 34rem; margin: 0 0 12px; }

/* The till receipt */
.receipt { margin: 0; justify-self: center; width: min(100%, 340px); }
.paper {
  --edge: 10px;
  position: relative; background: var(--paper); color: #1d1d1b; font-family: var(--mono); font-size: 0.9375rem; line-height: 1.5;
  padding: 26px 24px 30px; transform: rotate(-1.6deg);
  filter: drop-shadow(0 10px 18px rgba(16, 36, 28, .16));
  /* torn thermal-paper edges, top and bottom */
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--edge) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--edge) 51% repeat-x;
          mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--edge) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--edge) 51% repeat-x;
}
.r-head { text-align: center; font-weight: 700; font-size: 1.25rem; letter-spacing: 0.18em; text-transform: uppercase; margin: 6px 0 0; }
.r-sub { text-align: center; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px dashed #b9b9b2; }
.paper table { width: 100%; border-collapse: collapse; }
.paper th { text-align: left; font-weight: 400; padding: 3px 0; }
.paper td { text-align: right; padding: 3px 0; font-weight: 700; white-space: nowrap; }
.paper tr.gap th, .paper tr.gap td { padding-top: 14px; border-top: 2px dashed #b9b9b2; }
.r-foot { text-align: center; margin: 16px 0 4px; padding-top: 12px; border-top: 2px dashed #b9b9b2; font-size: 0.8125rem; }
.receipt figcaption { font-size: 0.875rem; color: var(--muted); text-align: center; margin-top: 18px; }

@media (prefers-reduced-motion: no-preference) {
  .paper { animation: print 1.1s cubic-bezier(.2, .7, .2, 1) .15s both; }
  @keyframes print {
    from { clip-path: inset(0 0 100% 0); transform: rotate(-1.6deg) translateY(-18px); }
    to { clip-path: inset(0 0 0 0); transform: rotate(-1.6deg) translateY(0); }
  }
}

/* Sections */
.block { border-top: 2px solid var(--rule); padding: 40px 0 44px; display: grid; grid-template-columns: 1fr; gap: 6px 48px; }
.block h2 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 8px; }
.block > p { margin: 0 0 12px; max-width: 40rem; }
.jobs { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px 40px; max-width: 64rem; }
.jobs li { position: relative; padding-left: 26px; }
.jobs li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 12px; border-radius: 3px; background: var(--green); box-shadow: 3px 3px 0 var(--awning); }
.promises dl { margin: 6px 0 0; display: grid; gap: 18px 40px; max-width: 64rem; }
.promises dt { font-weight: 700; }
.promises dd { margin: 2px 0 0; color: var(--muted); }

.foot { max-width: 1080px; margin: 0 auto; padding: 28px 24px 44px; border-top: 2px solid var(--rule); font-size: 0.875rem; color: var(--muted); }
.foot p { margin: 4px 0; max-width: 60rem; }

@media (min-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; padding: 72px 0 80px; }
  .receipt { justify-self: end; margin-top: 8px; }
  .block { grid-template-columns: 15rem minmax(0, 1fr); }
  .block h2 { grid-row: span 2; }
  .jobs { grid-template-columns: 1fr 1fr; }
  .promises dl { grid-template-columns: 1fr 1fr; }
}
