/* Additions to the Restock site: handwriting, the offer, supporters, the
   "any format in" section, pricing and the onboarding kit. Loaded last. */

@font-face {
  font-family: 'Nanum Pen Script';
  src: url('./assets/fonts/nanum-pen-script.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('./assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('./assets/fonts/ibm-plex-mono-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
:root {
  --hand: 'Nanum Pen Script', 'Segoe Print', 'Bradley Hand', cursive;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --pen: #1d3c8f;
}

/* Handwriting */
.pen {
  font-family: var(--hand);
  color: var(--pen);
}
.section-head h2 em,
.pricing h2 em {
  padding-bottom: 0.08em;
  background: url('./assets/scribble.svg') no-repeat 0 100% / 100% 0.16em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Supporters: a short section, not a full-height chapter. */
main > .supporters {
  min-height: 0;
}
.supporters {
  border-bottom: 1px solid var(--line);
  background: #f4f1e8;
}
.supporters-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(26px, 5vw, 72px);
  padding-block: clamp(44px, 5.5vw, 76px);
}
.supporters .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.supporters .eyebrow::before {
  content: '';
  width: 27px;
  height: 2px;
  background: #a5875d;
}
.supporters h2 {
  margin: 14px 0 0;
  font: 400 clamp(30px, 3.1vw, 46px) / 1.06 var(--serif);
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.supporters h2 em {
  padding-bottom: 0.08em;
  background: url('./assets/scribble.svg') no-repeat 0 100% / 100% 0.16em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: #487258;
  font-weight: 400;
}
.supporters ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.supporters li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 190px;
  padding: clamp(22px, 2.6vw, 34px) clamp(16px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fffdf7;
  box-shadow: 0 16px 30px -26px rgba(20, 44, 32, 0.55);
  color: var(--dim);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  transition:
    translate 0.25s ease,
    box-shadow 0.25s ease;
}
.supporters li span {
  padding-top: 14px;
  border-top: 1px dashed #cdd6c8;
}
.supporters img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 42px;
}
.supporters li:last-child img {
  height: 62px;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .supporters li:hover {
    box-shadow: 0 22px 34px -24px rgba(20, 44, 32, 0.6);
    translate: 0 -4px;
  }
}
@media (max-width: 900px) {
  .supporters-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 520px) {
  .supporters ul {
    grid-template-columns: minmax(0, 1fr);
  }
  .supporters li {
    min-height: 0;
  }
  .supporters img {
    height: 34px;
  }
  .supporters li:last-child img {
    height: 54px;
  }
}

/* Any format in, clean orders out */
.formats {
  padding-block: clamp(54px, 7vw, 100px) 0;
}

/* Pricing and the onboarding kit */
.pricing {
  padding-block: clamp(54px, 7vw, 100px);
  background: #f4f1e8;
}
.pricing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
}
.pricing h2 {
  margin: 10px 0 0;
  font: 400 clamp(39px, 4.2vw, 65px) / 1.04 var(--serif);
  letter-spacing: -0.06em;
}
.pricing h2 em {
  color: var(--green);
  font-weight: 400;
}
.promise {
  max-width: 36em;
  margin: 20px 0 22px;
  padding: 13px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 4px 10px 10px 4px;
  background: #fffdf7;
  line-height: 1.5;
}
.kit-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fffdf7;
  box-shadow: 0 18px 40px -26px rgba(20, 44, 32, 0.5);
}
.kit-copy {
  padding: clamp(20px, 2.4vw, 30px);
}
.kit-copy h3 {
  margin: 8px 0 0;
  font: 400 clamp(1.5rem, 2.2vw, 2rem) / 1.12 var(--serif);
  letter-spacing: -0.04em;
}
.kit-copy > p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--dim);
  line-height: 1.55;
}
.kit-copy ul {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}
.kit-copy li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kit-copy li::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.kitstage {
  position: relative;
  height: clamp(250px, 24vw, 310px);
  overflow: hidden;
  background: radial-gradient(
    62% 58% at 50% 56%,
    #4a7d62 0%,
    #214d36 52%,
    #12281d 100%
  );
  perspective: 1100px;
}
.kbadge {
  position: absolute;
  z-index: 4;
  right: 18px;
  top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border: 2px dashed #e3c59a;
  border-radius: 50%;
  color: #fff9ea;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  rotate: 9deg;
}
.kbox {
  --w: 210px;
  --h: 112px;
  position: absolute;
  left: 50%;
  top: 62%;
  width: var(--w);
  height: var(--h);
  margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2);
  transform-style: preserve-3d;
  transform: rotateX(-24deg) rotateY(-36deg);
}
.kf {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--w);
  height: var(--h);
  overflow: hidden;
}
.kfront {
  background: linear-gradient(170deg, #1d3a2b, #142c20);
  transform: translateZ(calc(var(--w) / 2));
}
.kside {
  background: linear-gradient(190deg, #2a4a39, #1a3125);
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2));
}
.klid {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--w);
  height: var(--h);
  transform-style: preserve-3d;
  transform: translateY(-22px);
}
.ktop {
  top: calc((var(--h) - var(--w)) / 2);
  height: var(--w);
  background: linear-gradient(135deg, #315743, #1d3a2b);
  transform: rotateX(90deg) translateZ(calc(var(--h) / 2));
}
.krimf {
  height: 26px;
  background: linear-gradient(#274635, #1a3125);
  transform: translateZ(calc(var(--w) / 2 + 3px));
}
.krims {
  height: 26px;
  background: linear-gradient(#315743, #20392b);
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2 + 3px));
}
.kband {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 38px;
  margin-left: -19px;
  background: linear-gradient(90deg, #e8e4d9, #fbfaf6 50%, #e8e4d9);
}
.kmark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  overflow: hidden;
  border-radius: 50%;
  background: #fbfaf6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.klabel {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 1px 7px;
  padding: 6px 8px;
  border-radius: 3px;
  background: #fffdf7;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.3;
  rotate: -2deg;
}
.klabel span {
  color: var(--dim);
}
.kglow {
  position: absolute;
  left: 0;
  top: -12px;
  width: var(--w);
  height: var(--w);
  margin-top: calc((var(--h) - var(--w)) / 2);
  background: #fff3d6;
  box-shadow: 0 0 60px 34px rgba(255, 233, 184, 0.75);
  transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 8px)) scale(0.92);
  animation: kglow 5s ease-in-out infinite alternate;
}
@keyframes kglow {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .pricing-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .kglow {
    animation: none;
  }
}

/* Section heads added in this pass follow the "See Restock at work" layout. */
.formats .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  align-items: end;
  gap: 12px clamp(24px, 5vw, 80px);
}
.formats .eyebrow,
.pricing-copy > .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.formats .eyebrow {
  grid-column: 1 / -1;
}
.formats .eyebrow::before,
.pricing-copy > .eyebrow::before {
  content: '';
  width: 27px;
  height: 2px;
  background: #a5875d;
}
.formats h2 em {
  color: #487258;
}
@media (max-width: 900px) {
  .formats .section-head {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Feature tiles */
.features {
  padding-block: clamp(54px, 7vw, 100px);
  background: #f8f6ed;
}
.features .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  align-items: end;
  gap: 12px clamp(24px, 5vw, 80px);
}
.features .eyebrow {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.features .eyebrow::before {
  content: '';
  width: 27px;
  height: 2px;
  background: #a5875d;
}
.features h2 em {
  color: #487258;
}
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(26px, 4vw, 44px);
}
.b3 {
  grid-column: span 3;
}
.b2 {
  grid-column: span 2;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 310px;
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: 20px;
  transition:
    translate 0.25s ease,
    box-shadow 0.25s ease;
}
.b3 {
  min-height: 430px;
}
.tile-sage {
  background: #e4ecdd;
}
.tile-card {
  border: 1px solid var(--line);
  background: #fffdf7;
}
.tile-full {
  grid-column: 1 / -1;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  min-height: 200px;
}
.tile-copy {
  flex: 1 1 320px;
  min-width: 0;
}
.tile h3 {
  margin: 0;
  font: 400 clamp(1.5rem, 2.3vw, 2rem) / 1.1 var(--serif);
  letter-spacing: -0.04em;
}
.tile > p,
.tile-copy p {
  margin: 0;
  color: var(--dim);
  font-size: 0.95rem;
  line-height: 1.55;
}
.tile-copy p {
  margin-top: 8px;
  max-width: 34em;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile:hover {
    translate: 0 -4px;
    box-shadow: 0 18px 34px -22px rgba(20, 44, 32, 0.55);
  }
}

/* Tile: handwritten list on the fridge, with a scanning line */
.fridge {
  position: relative;
  align-self: center;
  width: min(400px, 100%);
  height: 250px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(100deg, #dde0dc, #c3c8c3 60%, #d3d6d2);
}
.fridge-handle {
  position: absolute;
  right: 16px;
  top: 26px;
  width: 12px;
  height: 150px;
  border-radius: 6px;
  background: #8d938d;
}
.fridge-note {
  position: absolute;
  left: 50%;
  top: 26px;
  width: 232px;
  margin-left: -128px;
  padding: 26px 16px 8px;
  background: repeating-linear-gradient(#fffdf4 0 31px, #bcd0e4 31px 32px);
  box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.28);
  font-size: 1.75rem;
  line-height: 32px;
  rotate: -2deg;
}
.fridge-magnet {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 28px;
  height: 28px;
  margin-left: -26px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.35);
}
.fridge-scan {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 8%;
  height: 3px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 14px 4px rgba(255, 255, 255, 0.75);
  animation: scan 3.2s ease-in-out infinite alternate;
}
@keyframes scan {
  to {
    top: 90%;
  }
}

/* Tile: delivery checked in */
.checkslip {
  position: relative;
  align-self: center;
  width: min(390px, 100%);
  padding: 16px 16px 14px;
  background: #fbf9f4;
  box-shadow: 0 8px 20px rgba(20, 44, 32, 0.16);
  color: #2b4a39;
  font-family: Georgia, 'Times New Roman', serif;
  rotate: -1.4deg;
}
.checkslip-name {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.checkslip-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.75rem;
}
.checkslip-table {
  margin-top: 6px;
  border: 1px solid #6c8a76;
}
.checkslip-head,
.checkslip-row {
  display: grid;
  grid-template-columns: 1fr 70px 84px;
  align-items: center;
  padding: 0 8px;
}
.checkslip-head {
  padding-block: 3px;
  border-bottom: 1px solid #6c8a76;
  font-size: 0.72rem;
  font-weight: 700;
}
.checkslip-row {
  min-height: 36px;
  border-bottom: 1px solid #d5e0d3;
  font-size: 0.95rem;
}
.checkslip-row:last-child {
  border-bottom: 0;
}
.checkslip-row .pen {
  font-size: 1.75rem;
  line-height: 1;
}
.checkslip-ring {
  position: absolute;
  right: 22px;
  top: 82px;
  width: 78px;
  height: 40px;
  fill: none;
  stroke: #b0452f;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 260;
}
.js-reveal .checkslip-ring {
  stroke-dashoffset: 260;
}
.checkslip-flag {
  margin-top: 10px;
  text-align: right;
  font-size: 1.75rem;
  line-height: 1;
  color: #b0452f;
}
.js-reveal .in-view .checkslip-ring {
  animation: draw 1.1s ease-out 0.3s forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Tile: last price */
.lastprice {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lastprice img {
  flex: none;
  width: 84px;
  height: 84px;
  border: 1px solid var(--line);
  border-radius: 14px;
  object-fit: cover;
}
.lastprice-amount {
  display: block;
  font-size: 3.2rem;
  line-height: 0.95;
}
.lastprice small {
  color: var(--dim);
  font-size: 0.82rem;
}

/* Tile: staff limit */
.limit {
  position: relative;
  padding: 14px 16px 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8f6ed;
}
.limit-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--dim);
}
.limit-row b {
  color: var(--ink);
  font: 400 1.5rem/1 var(--serif);
}
.limit-bar {
  height: 10px;
  margin: 8px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe6d9;
}
.limit-bar i {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transform-origin: left;
}
.in-view .limit-bar i {
  animation: fill 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes fill {
  from {
    transform: scaleX(0);
  }
}
.limit-stamp {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 5px 9px 4px;
  border: 2.5px solid #b0452f;
  border-radius: 5px;
  background: #fffdf7;
  color: #b0452f;
  font: 600 0.78rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  rotate: -7deg;
}
.in-view .limit-stamp {
  animation: stamp 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) 1s both;
}
@keyframes stamp {
  from {
    opacity: 0;
    scale: 1.9;
  }
}

/* Tile: delivery van */
.van {
  flex: 1 1 340px;
  min-width: 0;
  max-width: 480px;
  height: auto;
}
.van-road {
  stroke: var(--ink);
  stroke-width: 5;
  stroke-dasharray: 22 16;
  animation: road 0.9s linear infinite;
}
@keyframes road {
  to {
    stroke-dashoffset: -38;
  }
}
.van-body-group {
  animation: bob 1.1s ease-in-out infinite alternate;
}
@keyframes bob {
  to {
    translate: 0 -2px;
  }
}
.van-body {
  fill: #214d36;
}
.van-cab {
  fill: #2f6a4b;
}
.van-glass,
.van-hub,
.van-tag {
  fill: #fffdf7;
}
.van-tyre,
.van-tag-ink {
  fill: var(--ink);
}
.van-tag-gold {
  fill: #e3c59a;
}
.van-name {
  fill: #fffdf7;
  font: 700 19px var(--sans);
  letter-spacing: 0.04em;
}
.van-tag-text {
  fill: var(--ink);
  font: 700 15px var(--sans);
}
.van-tag-text-light {
  fill: #fff;
}

/* Pricing: kopi */
.pricing-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.kopi {
  flex: none;
  width: clamp(84px, 9vw, 124px);
  height: auto;
}
.kopi-saucer {
  fill: #e8e4d9;
}
.kopi-cup {
  fill: #fffdf7;
  stroke: #d7ded2;
  stroke-width: 2;
}
.kopi-handle {
  fill: none;
  stroke: #fffdf7;
  stroke-width: 14;
}
.kopi-drink {
  fill: #6b3e1e;
}
.steam {
  fill: none;
  stroke: #a5875d;
  stroke-width: 6;
  stroke-linecap: round;
  animation: steam 3s ease-in-out infinite;
}
.steam-late {
  animation-delay: 1s;
}
@keyframes steam {
  0% {
    opacity: 0;
    translate: 0 6px;
  }
  40% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    translate: 0 -14px;
  }
}

/* Sections rise into place as they are scrolled to. */
.js-reveal .reveal {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 0.6s ease,
    translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-reveal .reveal.in-view {
  opacity: 1;
  translate: 0 0;
}

@media (max-width: 1000px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .b3,
  .b2 {
    grid-column: span 2;
  }
  .b3 {
    min-height: 0;
  }
  .tile {
    min-height: 0;
  }
}
@media (max-width: 900px) {
  .features .section-head {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 520px) {
  .fridge-note {
    width: 212px;
    margin-left: -116px;
    font-size: 1.55rem;
  }
  .checkslip-head,
  .checkslip-row {
    grid-template-columns: 1fr 58px 70px;
  }
  .checkslip-ring {
    right: 14px;
  }
  .checkslip-flag {
    font-size: 1.45rem;
  }
  .kopi {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fridge-scan,
  .van-road,
  .van-body-group,
  .steam,
  .in-view .limit-bar i,
  .in-view .limit-stamp {
    animation: none;
  }
  .checkslip-ring,
  .js-reveal .in-view .checkslip-ring {
    animation: none;
    stroke-dashoffset: 0;
  }
  .steam {
    opacity: 0.6;
  }
  .js-reveal .reveal {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }
}

/* Full-height chapters added in this pass keep their content centred. */
.features,
.pricing {
  display: grid;
  align-content: center;
}
/* The belt band closes its section, so this one is only as tall as its content. */
main > .formats {
  min-height: 0;
}

/* Five menu links do not fit beside the logo on a phone. The logo already
   leads to the top, so the first link ("Restock") is dropped there. */
@media (max-width: 560px) {
  .nav nav a[href='#restock'] {
    display: none;
  }
}

/* "Talk to us" opens WhatsApp; its round badge carries the WhatsApp mark. */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.wa-glyph {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pilot-action .wa-glyph {
  width: 20px;
  height: 20px;
}

/* Kit ribbon above the menu: the offer is the first thing on the page. */
.ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  min-height: 40px;
  padding: 7px 16px;
  background: #efd9a8;
  color: #183e2c;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.ribbon:hover {
  background: #f6e4b9;
}
.ribbon b {
  flex: none;
  padding: 4px 11px;
  border-radius: 999px;
  background: #214d36;
  color: #fbf3dc;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ribbon-go {
  font-size: 1.05rem;
  line-height: 1;
}
.kit-mini {
  flex: none;
  width: 54px;
  height: 54px;
  overflow: visible;
}
.kit-mini-top {
  fill: #ecd3a6;
}
.kit-mini-left {
  fill: #d4b27e;
}
.kit-mini-right {
  fill: #bf9a66;
}
.kit-mini-band {
  fill: #214d36;
}
.kit-mini-star {
  fill: #fffaf0;
  transform-box: fill-box;
  transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes kit-twinkle {
    50% {
      opacity: 0.25;
      scale: 0.6;
    }
  }
  @keyframes kit-nudge {
    0%,
    86%,
    100% {
      rotate: 0deg;
    }
    90% {
      rotate: -7deg;
    }
    95% {
      rotate: 6deg;
    }
  }
  .kit-mini {
    transform-origin: 50% 90%;
    animation: kit-nudge 5s ease-in-out infinite;
  }
  .kit-mini-star {
    animation: kit-twinkle 2.4s ease-in-out infinite;
  }
  .kit-mini-star-late {
    animation-delay: 1.2s;
  }
}
/* Laptops with a short screen: keep the whole offer above the fold. */
@media (min-width: 741px) and (max-height: 800px) {
  .hero h1 {
    margin-top: clamp(14px, 1.8vw, 26px);
    font-size: clamp(46px, 5vw, 72px);
  }
}
@media (max-width: 740px) {
  .ribbon {
    font-size: 0.8rem;
  }
  .ribbon-more {
    display: none;
  }
}

/* Tile: suppliers install nothing */
.supchat {
  display: grid;
  gap: 8px;
}
.supchat-in,
.supchat-out {
  max-width: 92%;
  font-size: 0.84rem;
  line-height: 1.4;
}
.supchat-in {
  justify-self: start;
  padding: 9px 12px;
  border-radius: 4px 14px 14px;
  background: #efede2;
}
.supchat-out {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 7px;
  border-radius: 14px 4px 14px 14px;
  background: #d9fdd3;
}
.supchat-out img {
  flex: none;
  border-radius: 50%;
}
.supchat-note {
  justify-self: end;
  font-size: 1.5rem;
  line-height: 1;
  rotate: -2deg;
}

/* Pricing: the offer as a timeline. Free first, then one flat fee. */
.price-line {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  max-width: 36em;
  margin: 48px 0 0;
}
.price-line p {
  display: grid;
  align-content: start;
  gap: 5px;
  margin: 0;
  padding: 16px 20px 18px;
}
.price-free {
  border-radius: 18px 0 0 18px;
  background: #efd9a8;
  color: #183e2c;
}
.price-paid {
  border-radius: 0 18px 18px 0;
  background: #214d36;
  color: #faf7eb;
}
.price-line small {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.price-line b {
  font: 400 clamp(2.1rem, 3.2vw, 2.9rem) / 1 var(--serif);
  letter-spacing: -0.045em;
}
.price-line p span {
  font-size: 0.86rem;
  line-height: 1.35;
  opacity: 0.92;
}
/* A pin where the free period ends, with a handwritten note. */
.price-line::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 40%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border: 3px solid var(--pen);
  border-radius: 50%;
  background: #fffdf7;
}
.price-mark {
  position: absolute;
  top: -34px;
  left: calc(40% + 16px);
  font-size: 1.55rem;
  line-height: 1;
  white-space: nowrap;
  rotate: -2deg;
  transform-origin: left bottom;
}
.price-includes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 24px;
  max-width: 36em;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  line-height: 1.4;
}
.price-includes li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.price-includes li::before {
  content: '✓';
  flex: none;
  color: var(--green);
  font-weight: 700;
}

/* The kit box: the lid lifts a little when you point at it. */
.klid,
.kglow {
  transition:
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.5s ease;
}
.kpeek {
  position: absolute;
  z-index: 4;
  top: 22px;
  left: 22px;
  color: #f0dcae;
  font-size: 1.7rem;
  line-height: 1;
  opacity: 0;
  rotate: -6deg;
  transition: opacity 0.3s ease;
}
@media (hover: hover) {
  .kitstage:hover .klid {
    transform: translateY(-40px);
  }
  .kitstage:hover .kglow {
    box-shadow: 0 0 80px 46px rgba(255, 233, 184, 0.95);
  }
  .kitstage:hover .kpeek {
    opacity: 1;
  }
}

/* FAQ: grouped question cards */
.faq-head {
  position: sticky;
  top: calc(var(--mast-height) + 28px);
}
.faq .faq-contact {
  margin-top: 8px;
  gap: 16px;
}
.faq-list {
  display: grid;
  gap: 10px;
  border-top: 0;
}
.faq-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 2px;
  color: #49664e;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.faq-group:first-child {
  margin-top: 0;
}
.faq-group::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #d4dccf;
}
.faq-list details {
  border: 1px solid #d5dccf;
  border-radius: 16px;
  background: #fffdf7;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.faq-list details:hover {
  border-color: #a3b7a2;
}
.faq-list details[open] {
  border-color: #2f6b4c;
  background: #fff;
  box-shadow: 0 18px 30px -24px rgba(20, 44, 32, 0.6);
}
.faq-list summary {
  padding: 14px 16px 14px 20px;
  border-radius: 15px;
}
.faq-list p {
  margin: -2px 58px 18px 20px;
}
@media (prefers-reduced-motion: no-preference) {
  /* Answers slide open where the browser can animate to their height. */
  .faq-list {
    interpolate-size: allow-keywords;
  }
  .faq-list details::details-content {
    block-size: 0;
    overflow: hidden;
    transition:
      block-size 0.3s ease,
      content-visibility 0.3s allow-discrete;
  }
  .faq-list details[open]::details-content {
    block-size: auto;
  }
}
@media (max-width: 900px) {
  .faq-head {
    position: static;
  }
}
@media (max-width: 520px) {
  .price-line p {
    padding: 14px 14px 16px;
  }
  .price-mark {
    font-size: 1.4rem;
  }
  .price-includes {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq-list p {
    margin-right: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .klid,
  .kglow,
  .kpeek {
    transition: none;
  }
}

/* Any format in: three examples beside the heading, and lane labels. */
.formats-side {
  display: grid;
  gap: 16px;
}
.formats-map {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid #d5dccf;
  list-style: none;
  font-size: 0.92rem;
  line-height: 1.35;
}
.formats-map li {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) auto minmax(0, 1.1fr);
  align-items: center;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px solid #d5dccf;
}
.formats-map li::before {
  content: '→';
  grid-column: 2;
  grid-row: 1;
  color: #a5875d;
  font-weight: 700;
}
.formats-map span {
  grid-column: 1;
  grid-row: 1;
  color: var(--pen);
  font: 400 1.4rem/1 var(--hand);
}
.formats-map b {
  grid-column: 3;
  grid-row: 1;
  font-weight: 650;
}
.belt-lanes {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1240px, 90%);
  margin: 0 auto 18px;
  color: #dfe9dc;
  font: 600 0.68rem/1.3 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.belt-lanes span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.belt-lanes span::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e3c59a;
}
.belt-lanes span:last-child {
  flex-direction: row-reverse;
  text-align: right;
}

/* About: the three people behind an order, and where Ledger is going. */
.about figure {
  position: relative;
}
.about-note {
  position: absolute;
  right: -18px;
  bottom: 26px;
  padding: 16px 16px 8px;
  background: repeating-linear-gradient(#fbf9f4 0 25px, #cfe3d4 25px 26px);
  box-shadow: 0 14px 26px -12px rgba(23, 38, 29, 0.6);
  font-size: 1.5rem;
  line-height: 26px;
  rotate: 4deg;
}
.about-note::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  width: 64px;
  height: 19px;
  margin-left: -32px;
  background: rgba(228, 237, 228, 0.82);
  rotate: -3deg;
}
.about-people {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.about-people li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  border: 1px solid #cbd6c6;
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.72);
}
.about-people p {
  margin: 0;
  color: #435647;
  font-size: 0.98rem;
  line-height: 1.45;
}
.about-people b {
  color: var(--ink);
}
.about-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #214d36;
}
.about-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #f5e9cb;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 1100px) {
  .about-note {
    right: -8px;
  }
}
@media (max-width: 740px) {
  .about-note {
    right: 10px;
    bottom: 14px;
    font-size: 1.3rem;
    line-height: 23px;
    background: repeating-linear-gradient(#fbf9f4 0 22px, #cfe3d4 22px 23px);
  }
  .belt-lanes {
    font-size: 0.6rem;
  }
}
@media (max-width: 520px) {
  .formats-map li {
    gap: 8px;
  }
  .formats-map span {
    font-size: 1.25rem;
  }
}

/* The examples sit level with the heading, not below it. */
.formats .section-head {
  align-items: start;
}
.formats-side {
  padding-top: 8px;
}
.about {
  padding-block: clamp(44px, 5vw, 76px);
}
.about h2 {
  margin-bottom: 4px;
}
.about-copy > p.about-line {
  margin: 16px 0 0;
  color: var(--ink);
  font: 400 1.25rem/1.4 var(--serif);
  letter-spacing: -0.02em;
}
@media (max-width: 900px) {
  .about-note {
    padding: 13px 12px 6px;
    background: repeating-linear-gradient(#fbf9f4 0 19px, #cfe3d4 19px 20px);
    font-size: 1.2rem;
    line-height: 20px;
  }
}

/* A handwritten hint in the top corner of the questions. Its arrow points
   down at the first question's open/close button, and the group label's rule
   stops short to leave it room. */
.faq-list {
  position: relative;
}
.faq-list > .faq-group:first-child {
  padding-right: 11.6rem;
}
.faq-pen {
  position: absolute;
  top: -15px;
  right: 17px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 1.6rem;
  line-height: 1;
  pointer-events: none;
}
.faq-pen span {
  rotate: -3deg;
}
.faq-pen svg {
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: 5px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 520px) {
  .faq-list > .faq-group:first-child {
    padding-right: 10rem;
  }
  .faq-pen {
    right: 15px;
    font-size: 1.4rem;
  }
}
@media (max-width: 360px) {
  .faq-list > .faq-group:first-child {
    padding-right: 8.4rem;
  }
  .faq-pen {
    font-size: 1.25rem;
  }
}

/* Hero title: "to" stays in the serif italic, then the Restock mark itself,
   sized so its capitals match the heading's. */
.hero-mark {
  display: inline-block;
  width: auto;
  height: 1.06em;
  margin-left: 0.08em;
  vertical-align: -0.346em;
}

/* Under the button: the three ways a list arrives, as objects on the table.
   The one the phone is playing lifts. Decoration only. */
.hero-ways {
  position: relative;
  display: flex;
  align-items: flex-start;
  max-width: 560px;
  margin-top: clamp(30px, 5.5svh, 56px);
}
.way {
  position: relative;
  flex: none;
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.6);
  transition:
    translate 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    scale 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.45s ease,
    box-shadow 0.45s ease;
}
.hero-ways:has(.is-on) .way:not(.is-on) {
  opacity: 0.66;
}
.way.is-on {
  z-index: 1;
  translate: 0 -8px;
  scale: 1.06;
  box-shadow:
    0 0 0 2px #e3c59a,
    0 24px 38px -14px rgba(0, 0, 0, 0.75);
}
.way-photo {
  width: 31%;
  padding: 6px 6px 20px;
  border-radius: 3px;
  background: #fbf9f4;
  rotate: -5deg;
}
.way-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.way-voice,
.way-text {
  border-radius: 10px 2px 10px 10px;
  background: #dbf5d0;
  color: #111b21;
}
.way-voice {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 36%;
  margin: 40px 0 0 -2%;
  padding: 9px 12px 17px 10px;
  rotate: 3deg;
}
.way-play {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #128262;
}
.way-play::before {
  content: '';
  margin-left: 3px;
  border-block: 6px solid transparent;
  border-left: 10px solid #fff;
}
.way small {
  position: absolute;
  bottom: 4px;
  font-size: 10px;
  line-height: 1;
  color: #5b7466;
}
.way-voice small {
  left: 50px;
}
.way-text {
  width: 38%;
  margin: 4px 0 0 -3%;
  padding: 8px 10px 19px;
  font-size: 0.84rem;
  line-height: 1.35;
  rotate: -2deg;
}
.way-text small {
  right: 9px;
}
.way .ticks {
  color: #3aa7dc;
}
@media (max-width: 900px) {
  .hero-ways {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .way {
    transition: none;
  }
}
