/* Landing page. Shared tokens live in site.css. */

.wrap {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

section[id] { scroll-margin-top: 4.5rem; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--crimson);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}
.kicker::before {
  content: "";
  width: 1.6rem;
  height: 3px;
  border-radius: 3px;
  background: var(--crimson);
}

/* the shmagh: red dashes on white, staggered rows */
.shmagh-strip {
  height: 12px;
  background-color: #fbf8f2;
  background-image:
    conic-gradient(from 270deg at 7px 3px, var(--crimson) 25%, transparent 0),
    conic-gradient(from 270deg at 7px 3px, var(--crimson) 25%, transparent 0);
  background-size: 14px 10px;
  background-position: 0 1px, 7px 6px;
}

/* —— nav —— */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 241, 232, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(211, 200, 180, 0.6);
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}
.nav .brand { margin-inline-end: auto; }
.nav-links { display: flex; gap: 0.25rem; }
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink-2);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-links a:hover { background: rgba(34, 37, 42, 0.06); color: var(--ink); }

/* —— hero —— */

.hero { padding-block: 1.25rem 3.5rem; }

.hero-panel {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding: clamp(1.5rem, 4.5vw, 4rem);
  padding-bottom: clamp(3.5rem, 6vw, 4.5rem);
  background: var(--sand);
  border-radius: var(--radius-xl);
  isolation: isolate;
}
.hero-panel::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: 46%;
  height: 70%;
  z-index: -1;
  border-start-end-radius: var(--radius-xl);
  background-color: transparent;
  background-image:
    conic-gradient(from 270deg at 7px 3px, rgba(180, 24, 45, 0.16) 25%, transparent 0),
    conic-gradient(from 270deg at 7px 3px, rgba(180, 24, 45, 0.16) 25%, transparent 0);
  background-size: 14px 10px;
  background-position: 0 1px, 7px 6px;
  -webkit-mask-image: radial-gradient(ellipse at top left, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at top left, #000 0%, transparent 70%);
}

.hero-copy { align-self: center; }
.hero-eqal { width: 5.5rem; margin-bottom: 1.75rem; }

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.7rem, 7.4vw, 5.4rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero h1 .hl { color: var(--crimson); }
.lead {
  margin-top: 1.4rem;
  max-width: 31rem;
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  color: var(--ink-2);
  line-height: 1.8;
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin-top: 2rem; }
.text-link {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline 2px var(--crimson);
  text-underline-offset: 7px;
  transition: text-underline-offset 0.2s var(--ease);
}
.text-link:hover { text-underline-offset: 4px; }

/* The clerk at his desk, and the receipt he just stamped. */
.hero-art {
  position: relative;
  align-self: end;
  margin-bottom: calc(-1 * clamp(3.5rem, 6vw, 4.5rem));
}
/* He sits on the copy's side; the receipt overlaps only his outer sleeve. */
.hero-clerk { display: block; width: min(76%, 23rem); height: auto; margin-inline-end: auto; }

.receipt-slip {
  position: absolute;
  z-index: 2;
  inset-inline-end: -0.5rem;
  top: 21%;
  width: 13.75rem;
  padding: 1rem 1.05rem 1.15rem;
  background: var(--paper);
  border-radius: 3px;
  box-shadow: 0 1px 0 var(--line), 0 20px 36px rgba(34, 37, 42, 0.16), 0 4px 10px rgba(34, 37, 42, 0.08);
  transform: rotate(-4deg);
  font-size: 0.82rem;
}
/* The tear-off edge of a printed receipt. */
.receipt-slip::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -6px;
  height: 7px;
  background: radial-gradient(circle at 5px 0, transparent 4px, var(--paper) 4.5px) 0 0 / 10px 7px repeat-x;
}
.receipt-slip header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.65rem;
  border-bottom: 1.5px dashed var(--line-2);
}
.receipt-slip header strong { font-size: 1.02rem; }
.specimen {
  color: var(--ink-3);
  border: 1.5px solid currentColor;
  border-radius: 4px;
  padding: 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
}
.receipt-slip dl { margin: 0; display: grid; gap: 0.3rem; }
.receipt-slip dl div { display: flex; justify-content: space-between; gap: 0.75rem; }
.receipt-slip dt { color: var(--ink-3); }
.receipt-slip dd { margin: 0; font-weight: 700; text-align: end; }
.said {
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1.5px dashed var(--line-2);
  color: var(--ink-2);
  font-weight: 500;
}
.said span { display: block; margin-top: 0.1rem; color: var(--ink-3); font-size: 0.78rem; font-weight: 400; }
.receipt-slip .stamp {
  position: absolute;
  inset-inline-end: 0.7rem;
  bottom: 0.55rem;
  width: 4.6rem;
  height: 4.6rem;
  font-size: 0.72rem;
  animation: stamp-slam 0.6s 1.45s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
}
/* The ink spreads once as the stamp lands. */
.receipt-slip .stamp::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--stamp);
  opacity: 0;
  animation: ink-ring 0.75s 1.75s ease-out forwards;
}

/* —— first paint: the copy arrives in reading order, the clerk settles, the receipt
   slides out, and the stamp lands last. Reduced motion skips straight to the end. —— */

.hero h1 .h-line { display: block; }
.hero-copy > :not(h1), .hero h1 .h-line { animation: hero-rise 0.85s var(--ease) both; }
.hero-copy > .hero-eqal { animation-delay: 0.05s; }
.hero h1 .h-line:first-child { animation-delay: 0.14s; }
.hero h1 .h-line + .h-line { animation-delay: 0.24s; }
.hero-copy > .lead { animation-delay: 0.36s; }
.hero-copy > .hero-cta { animation-delay: 0.46s; }
.hero-clerk { animation: clerk-in 1.1s 0.2s var(--ease) both; }
.receipt-slip { animation: slip-out 0.8s 0.75s var(--ease) both; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes clerk-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes slip-out {
  from { opacity: 0; transform: translate(-28px, 18px) rotate(-11deg); }
  to { opacity: 1; transform: rotate(-4deg); }
}
@keyframes stamp-slam {
  0% { opacity: 0; transform: scale(2.3) rotate(-30deg); filter: blur(3px); }
  60% { opacity: 1; transform: scale(0.93) rotate(-10deg); filter: blur(0); }
  100% { opacity: 0.92; transform: rotate(-12deg); }
}
@keyframes ink-ring {
  from { opacity: 0.45; transform: scale(0.92); }
  to { opacity: 0; transform: scale(1.55); }
}

/* —— sections —— */

.how, .proof, .control, .persona, .faq, .final { padding-block: clamp(4rem, 9vw, 7rem); }
.proof { background: var(--paper); border-block: 1px solid var(--line); }
.persona { padding-block: clamp(2rem, 5vw, 4rem); }

.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2, .proof-copy h2 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-head p:not(.kicker) { margin-top: 1rem; color: var(--ink-2); font-size: 1.08rem; max-width: 36rem; }

/* how: the four steps on one form, beside a photo of the office */

.how-grid { display: grid; gap: 3rem; align-items: center; }
.form-sheet {
  list-style: none;
  margin: 0;
  padding: 0.4rem clamp(1.25rem, 3vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.form-sheet li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.1rem;
  row-gap: 0.2rem;
  padding-block: 1.35rem;
}
.form-sheet li + li { border-top: 1.5px dashed var(--line-2); }
.step-n {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--crimson);
  color: var(--crimson);
  font-weight: 800;
  font-size: 1.1rem;
}
.form-sheet h3 { font-size: 1.15rem; align-self: end; }
.form-sheet p { color: var(--ink-2); }
.form-sheet li:last-child { padding-inline-end: 5rem; }
.form-sheet .stamp { position: absolute; inset-inline-end: 0; top: 1.1rem; }

.pinned {
  position: relative;
  justify-self: center;
  width: min(100%, 27rem);
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.65rem 0.85rem;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transform: rotate(2.2deg);
}
.pinned img { display: block; width: 100%; height: auto; }
.pinned figcaption { margin-top: 0.6rem; text-align: center; font-weight: 700; color: var(--ink-2); font-size: 0.92rem; }
/* a strip of tape holding it up */
.pinned::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -0.85rem;
  left: 50%;
  width: 6.5rem;
  height: 1.6rem;
  translate: -50% 0;
  rotate: -3deg;
  background: rgba(224, 211, 186, 0.82);
  box-shadow: 0 1px 2px rgba(34, 37, 42, 0.08);
}

/* proof */

.proof-grid { display: grid; gap: 3rem; align-items: center; }
.proof-copy > p:not(.kicker) { margin-top: 1rem; color: var(--ink-2); font-size: 1.08rem; max-width: 32rem; }
.ticks { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: 0.7rem; }
.ticks li {
  position: relative;
  padding-inline-start: 2.1rem;
  font-weight: 500;
}
.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.2rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--green-tint);
  box-shadow: inset 0 0 0 1.5px var(--green);
}
.ticks li::after {
  content: "";
  position: absolute;
  inset-inline-start: 0.48rem;
  top: 0.48rem;
  width: 0.45rem;
  height: 0.7rem;
  border: solid var(--green);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(40deg);
}
.proof-copy .proof-note { font-weight: 700; color: var(--ink); }
.proof-pile { display: block; width: 11rem; margin-top: 1.75rem; }
.proof-pile img { filter: drop-shadow(0 14px 18px rgba(34, 37, 42, 0.14)); }

.mock {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.1rem;
  box-shadow: var(--shadow-lg);
}
.mock-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.4rem 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.9rem;
}
.mock-head strong { display: block; font-size: 1.05rem; }
.mock-head span { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink-3); font-size: 0.85rem; }

.mock-list { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0.8rem; }
.mock-list::before {
  content: "";
  position: absolute;
  inset-block: 1rem;
  inset-inline-start: 0.62rem;
  width: 2px;
  background: linear-gradient(var(--crimson), rgba(180, 24, 45, 0.15));
  border-radius: 2px;
}
.ev { position: relative; padding-inline-start: 2.1rem; }
.ev-mark {
  position: absolute;
  inset-inline-start: 0.2rem;
  top: 1.05rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--ink-3);
}
.ev.is-applied .ev-mark { border-color: var(--green); background: var(--green); }
.ev.is-interview .ev-mark { border-color: var(--blue); }
.ev.is-waiting .ev-mark { border-color: var(--ink); background: var(--ink); }
.ev.is-blocked .ev-mark { border-color: var(--crimson); }
.ev-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.15rem;
}
.ev-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.25rem; }
.ev-top time { color: var(--ink-3); font-size: 0.8rem; }
.ev-card strong { font-size: 1.02rem; }
.ev-meta { color: var(--ink-3); font-size: 0.85rem; }
.ev-note { color: var(--ink-2); font-size: 0.9rem; margin-top: 0.25rem; }
.receipt {
  margin: 0.5rem 0 0;
  padding: 0.55rem 0.75rem;
  border: 1.5px dashed var(--line-2);
  border-radius: 10px;
  background: var(--cream);
  font-size: 0.88rem;
  color: var(--ink-2);
  max-width: 80%;
}
/* A reference number never breaks at its hyphen. */
.receipt .ltr, .said .ltr { white-space: nowrap; }
.ev-card .stamp {
  position: absolute;
  inset-inline-end: 0.9rem;
  inset-block-end: 0.6rem;
}

/* control: the clerk's own chat, and the rest as a plain list */

.control-grid { display: grid; gap: 2.5rem; align-items: start; }
.chat-demo {
  display: grid;
  gap: 0.55rem;
  max-width: 30rem;
  padding: 1rem 1.1rem 1.3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.8rem;
  margin-bottom: 0.3rem;
  border-bottom: 1px solid var(--line);
}
.chat-demo .b { padding: 0.55rem 0.9rem; border-radius: 16px; font-size: 0.95rem; line-height: 1.6; max-width: 85%; }
.chat-demo .me { justify-self: end; background: var(--ink); color: #fff; border-end-end-radius: 4px; }
.chat-demo .it { justify-self: start; background: var(--sand); border-end-start-radius: 4px; }
.chat-demo.in .b { animation: hero-rise 0.45s var(--ease) both; }
.chat-demo.in .b:nth-child(3) { animation-delay: 0.35s; }
.chat-demo.in .b:nth-child(4) { animation-delay: 0.7s; }
.chat-demo.in .b:nth-child(5) { animation-delay: 1.05s; }
.chat-demo.in .b:nth-child(6) { animation-delay: 1.4s; }
.chat-demo.in .b:nth-child(7) { animation-delay: 1.75s; }

.rules { list-style: none; margin: 0; padding: 0; }
.rules li { padding-block: 1.1rem; border-top: 1px solid var(--line-2); }
.rules li:last-child { border-bottom: 1px solid var(--line-2); }
.rules h3 { font-size: 1.12rem; margin-bottom: 0.25rem; }
.rules p { color: var(--ink-2); }

/* persona */

.persona-panel {
  display: grid;
  gap: 2rem;
  align-items: center;
  background: var(--crimson);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 5vw, 4rem);
  overflow: hidden;
  position: relative;
}
.persona-face {
  display: block;
  width: min(17rem, 70%);
  justify-self: center;
  transform: rotate(-4deg);
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.32));
}
.persona-copy .eqal { max-width: 9rem; margin-bottom: 1.5rem; }
.persona blockquote { margin: 0; }
.persona blockquote p {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.persona .sig { margin-top: 1.25rem; font-size: 1.05rem; opacity: 0.9; }

/* faq */

.faq-grid { display: grid; gap: 1.5rem; }
.faq-list { display: grid; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0.25rem;
  font-weight: 700;
  font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink) 0 0) center / 12px 2px no-repeat,
    linear-gradient(var(--ink) 0 0) center / 2px 12px no-repeat,
    var(--sand);
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--crimson-tint);
}
.faq details p { padding: 0 0.25rem 1.3rem; color: var(--ink-2); max-width: 40rem; }

/* final call */

.final-panel {
  display: grid;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.final-art {
  position: relative;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 4.75rem 1.25rem 0;
  background: radial-gradient(ellipse 70% 60% at 50% 72%, var(--sand-2), var(--sand) 70%);
  min-height: 15rem;
  overflow: hidden;
}
.final-art img { width: min(100%, 24rem); height: auto; }
/* Over his open paw, on the left. */
.bubble {
  position: absolute;
  top: 1.5rem;
  inset-inline-end: 1.5rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 1.05rem;
  border-radius: 18px;
  border-end-start-radius: 4px;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
}
.final-panel.in .bubble { animation: pop-in 0.5s 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.6) translateY(8px); }
  to { opacity: 1; transform: none; }
}
.final-copy { padding: clamp(1.75rem, 5vw, 3.5rem); display: grid; align-content: center; gap: 0.9rem; }
.final-copy .shmagh-strip { width: 5.5rem; border-radius: 4px; margin-bottom: 0.5rem; }
.final-copy h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}
.final-copy p { color: var(--ink-2); font-size: 1.1rem; }
.final-copy .hero-cta { margin-top: 0.75rem; }

/* footer */

.foot { background: var(--ink); color: var(--cream); }
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  padding-block: 2.25rem;
}
.foot .brand { color: var(--cream); }
.foot .brand img { filter: none; }
.foot p { opacity: 0.8; }
.foot-links a { color: var(--cream); opacity: 0.85; text-underline-offset: 5px; }
.foot-links a:hover { opacity: 1; }
.foot .fine { margin-inline-start: auto; opacity: 0.6; font-size: 0.88rem; }

/* pricing page: the plans as paper slips */

.price-page { padding-block: 2.5rem 5rem; }
.price-back { display: inline-block; margin-bottom: 2rem; font-size: 0.95rem; }
.price-title { font-family: var(--display); font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.price-sheet { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.price-slip {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1.35rem 1.4rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}
.price-slip h2 { font-size: 1.15rem; padding-bottom: 0.75rem; margin-bottom: 0.4rem; border-bottom: 1.5px dashed var(--line-2); }
.price-amount { font-size: 1.1rem; font-weight: 700; color: var(--ink-2); }
.price-amount b { font-size: 2.6rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.price-amount span { font-weight: 400; font-size: 0.95rem; color: var(--ink-3); }
.price-note { color: var(--ink-2); font-size: 0.95rem; }
.price-slip.is-founder { border-color: var(--line-2); box-shadow: var(--shadow); }
.price-stamp { position: absolute; inset-inline-end: 1rem; bottom: 0.9rem; transform: rotate(-6deg); }
.price-slip.is-soon { background: var(--cream); border-style: dashed; border-color: var(--line-2); box-shadow: none; }
.price-soon { justify-self: start; margin-top: 0.5rem; padding: 0.1rem 0.7rem; border: 1.5px solid var(--ink-3); border-radius: 4px; color: var(--ink-3); font-size: 0.82rem; font-weight: 800; }

/* scroll reveal: only what starts below the fold gets hidden */

.reveal.pending { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

/* —— wider screens —— */

@media (min-width: 980px) {
  .hero-panel { grid-template-columns: 1fr 1.08fr; gap: 3rem; }
  .how-grid { grid-template-columns: 1.2fr 0.8fr; gap: 4rem; }
  .proof-grid { grid-template-columns: 0.95fr 1.05fr; gap: 4.5rem; }
  .control-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .persona-panel { grid-template-columns: 0.8fr 1.2fr; gap: 3.5rem; }
  .faq-grid { grid-template-columns: 0.75fr 1.25fr; gap: 4rem; align-items: start; }
  .faq .section-head { position: sticky; top: 6rem; }
  .final-panel { grid-template-columns: 1fr 1.1fr; min-height: 26rem; }
  .final-art { min-height: 100%; }
}

@media (max-width: 859px) {
  .nav-links { display: none; }
}

/* Tablet: copy and clerk side by side so no sand is left empty beside the copy. */
@media (min-width: 640px) and (max-width: 979px) {
  .hero-panel { grid-template-columns: 0.92fr 1.08fr; gap: 0.5rem; padding-bottom: 0; }
  .hero h1 { font-size: clamp(2.4rem, 6.4vw, 3.6rem); }
  .hero-copy { padding-bottom: 3.5rem; }
  .hero-art { width: auto; margin-top: 0; margin-bottom: 0; justify-self: stretch; align-self: end; }
  .hero-clerk { width: 80%; margin-inline: 0 auto; }
  .receipt-slip { width: 10.75rem; padding: 0.75rem 0.8rem 0.9rem; font-size: 0.7rem; top: auto; bottom: 16%; inset-inline-end: -2.1rem; }
  .receipt-slip header strong { font-size: 0.9rem; white-space: nowrap; }
  .receipt-slip .stamp { width: 3.4rem; height: 3.4rem; font-size: 0.58rem; inset-inline-end: 0.4rem; bottom: 0.3rem; }
}

@media (max-width: 979px) {
  .hero-art { margin-top: 0.5rem; }
  .hero-art { width: min(100%, 36rem); justify-self: center; }
  .receipt-slip { top: auto; bottom: 10%; inset-inline-end: 0; }
}
@media (max-width: 520px) {
  .receipt-slip { width: 11.25rem; padding: 0.8rem 0.8rem 0.9rem; font-size: 0.74rem; }
  .receipt-slip header strong { font-size: 0.9rem; }
  .receipt-slip .stamp { width: 3.7rem; height: 3.7rem; font-size: 0.6rem; inset-inline-end: 0.4rem; bottom: 0.35rem; }
}

@media (max-width: 520px) {
  .receipt { max-width: 100%; margin-bottom: 3.5rem; }
  .final-art { min-height: 12rem; padding-top: 4.25rem; }
  .final-art img { width: min(100%, 17rem); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-clerk, .receipt-slip, .receipt-slip .stamp, .receipt-slip .stamp::after, .chat-demo.in .b { animation: none; }
  .reveal.pending { opacity: 1; transform: none; }
}

/* Policy pages: privacy, terms, security */
.policy-page { padding-block: 2.5rem 5rem; }
.policy { max-width: 46rem; }
.policy h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0; }
.policy-upd { color: var(--ink-3, #6e665c); font-size: .9rem; margin: .4rem 0 1.2rem; }
.policy-lede { font-size: 1.15rem; border-inline-start: 3px solid var(--crimson, #b4182d); padding-inline-start: .9rem; margin: 0 0 1rem; }
.policy section { border-top: 1px solid rgba(34,37,42,.12); padding-top: 1rem; margin-top: 1.3rem; }
.policy h2 { font-size: 1.2rem; margin: 0 0 .4rem; }
.policy p { line-height: 1.95; margin: 0 0 .6rem; }
.policy a { color: var(--crimson, #b4182d); }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
