/* The till's own colours: warm paper, bottle green, one amber for the tally marks. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/bricolage.a97804dc9f.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/assets/figtree.4ba7d3d096.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --paper: #f4efe8;
  --panel: #fffdf9;
  --sunken: #ebe3d7;
  --ink: #211b17;
  --muted: #5f554d;
  --line: #e0d6c8;
  --accent: #1e6b52;
  --accent-deep: #123f31;
  --accent-soft: #e3f0ea;
  --amber: #e0a030;
  --radius: 20px;
  --shadow: 0 1px 2px rgb(33 27 23 / 0.08), 0 24px 60px -24px rgb(33 27 23 / 0.35);
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: 'Figtree', ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: var(--accent);
}
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}
.narrow {
  width: min(760px, 100% - 40px);
}
.small {
  font-size: 0.9rem;
  color: var(--muted);
}
.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}
.tally {
  width: 1.6em;
  height: 1.6em;
  flex: none;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus {
  top: 12px;
}

/* ---------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 2px solid var(--accent);
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}
.button:hover {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  transform: translateY(-1px);
}
.button-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
}
.button-ghost {
  background: transparent;
  color: var(--accent);
}
.button-ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.button-light {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--accent-deep);
}
.button-light:hover {
  border-color: #fff;
  background: #fff;
}

/* ---------------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(244 239 232 / 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
  transition: border-color 160ms ease;
}
.top.scrolled {
  border-color: var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font: 700 1.2rem/1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand .tally {
  color: var(--accent);
}
.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.nav a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------------------------------------------------------------- hero */

.hero {
  overflow: hidden;
  padding: 56px 0 96px;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 56px;
}
.eyebrow,
.kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hero h1 {
  margin-top: 14px;
  font-size: clamp(3rem, 6.4vw, 5.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.lead {
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.55;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.checks {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.checks li {
  display: flex;
  gap: 10px;
}
.checks .icon {
  margin-top: 0.28em;
  color: var(--accent);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.97rem;
  font-weight: 600;
}
.hero-visual {
  position: relative;
  padding-bottom: 8%;
}
.tablet,
.phone {
  margin: 0;
  border: 10px solid var(--ink);
  background: var(--ink);
  box-shadow: var(--shadow);
}
.tablet {
  overflow: hidden;
  border-radius: 26px;
}
.tablet img {
  border-radius: 14px;
}
.phone {
  overflow: hidden;
  width: 100%;
  border-width: 7px;
  border-radius: 34px;
}
.phone img {
  border-radius: 25px;
}
.hero-tablet {
  width: 104%;
  transform: rotate(-1.2deg);
}
.hero-phone {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: 25%;
  aspect-ratio: 9 / 18;
}
.hero-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
/* A beer mat on the bar: round, printed, a little askew. */
.coaster {
  position: absolute;
  left: -5%;
  bottom: -4%;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 176px;
  aspect-ratio: 1;
  padding: 18px;
  border: 4px double var(--paper);
  border-radius: 50%;
  outline: 6px solid var(--accent);
  background: var(--accent);
  color: var(--paper);
  font-size: 0.84rem;
  line-height: 1.25;
  text-align: center;
  transform: rotate(-8deg);
  box-shadow: var(--shadow);
}
.coaster .tally {
  color: var(--amber);
}
.coaster strong {
  margin-top: 2px;
  font: 700 1rem/1.1 var(--display);
}

.strip {
  background: var(--accent-deep);
  color: var(--paper);
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-block: 34px;
}
.strip li {
  display: grid;
  gap: 4px;
}
.strip strong {
  font: 700 1.6rem/1.1 var(--display);
}
.strip span {
  font-size: 0.97rem;
  opacity: 0.86;
}

/* ---------------------------------------------------------------- sections */

.section {
  padding-block: 104px;
}
.section-sunken {
  background: var(--sunken);
}
.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.section h2,
.cta h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
}
.section-head h2 {
  margin-top: 10px;
}

.pains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.pain {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.pain h3 {
  font-size: 1.32rem;
  line-height: 1.16;
}
.pain p {
  margin-top: 12px;
  color: var(--muted);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  align-items: center;
  gap: 64px;
}
.feature + .feature {
  margin-top: 104px;
}
.feature-flip .feature-text {
  order: 2;
}
.feature h3 {
  margin: 10px 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.feature-phone .phone {
  width: min(290px, 100%);
  margin-inline: auto;
}

.section-dark {
  background: var(--accent-deep);
  color: var(--paper);
}
.section-dark .kicker {
  color: var(--amber);
}
.privacy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
}
.privacy li {
  padding-top: 16px;
  border-top: 1px solid rgb(244 239 232 / 0.28);
}
.privacy h3 {
  font-size: 1.3rem;
}
.privacy p {
  margin-top: 8px;
  opacity: 0.88;
}

.price {
  padding: 40px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--panel);
}
.price h3 {
  font-size: 1.3rem;
}
.amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
}
.amount strong {
  color: var(--ink);
  font: 800 3.4rem/1 var(--display);
  letter-spacing: -0.03em;
}
.price .button {
  margin-block: 26px 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font: 800 3rem/1 var(--display);
}
.steps h3 {
  font-size: 1.35rem;
}
.steps p {
  margin-top: 8px;
  color: var(--muted);
}
.needs {
  margin-top: 56px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--panel);
}
.needs h3 {
  font-size: 1.3rem;
}

.faq {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  min-height: 44px;
  padding-block: 18px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}
.faq summary:hover {
  color: var(--accent);
}
.faq summary::marker {
  color: var(--accent);
}
.faq p {
  padding-bottom: 20px;
  color: var(--muted);
}

.cta {
  background: var(--accent);
  color: var(--paper);
}
.cta-inner {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding-block: 88px;
  text-align: center;
}
.cta .tally {
  width: 56px;
  height: 56px;
  color: var(--amber);
}
.cta p {
  font-size: 1.2rem;
}
.cta .button {
  margin-top: 8px;
}

.footer {
  padding-block: 44px;
  color: var(--muted);
  font-size: 0.97rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.footer .brand {
  margin-bottom: 8px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- smaller screens */

@media (max-width: 980px) {
  .hero {
    padding-top: 36px;
  }
  .hero-inner,
  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .hero-visual {
    margin-top: 12px;
  }
  .hero-tablet {
    width: 100%;
  }
  .coaster {
    left: 0;
    width: 148px;
    font-size: 0.76rem;
  }
  .feature-flip .feature-text {
    order: 0;
  }
  .feature + .feature {
    margin-top: 72px;
  }
  .pains,
  .privacy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav {
    display: none;
  }
  .top-inner {
    justify-content: space-between;
  }
}
@media (max-width: 640px) {
  .section {
    padding-block: 68px;
  }
  .section-head {
    margin-bottom: 36px;
  }
  .pains,
  .privacy,
  .steps,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .tablet {
    border-width: 6px;
    border-radius: 18px;
  }
  .tablet img {
    border-radius: 10px;
  }
  .hero-phone {
    width: 30%;
  }
  .coaster {
    bottom: -8%;
    width: 128px;
    padding: 12px;
    outline-width: 4px;
    font-size: 0.68rem;
  }
  .coaster strong {
    font-size: 0.82rem;
  }
  .actions .button {
    width: 100%;
  }
  .price {
    padding: 26px;
  }
  .brand span {
    font-size: 1.05rem;
  }
  .button-small {
    padding: 0 14px;
    font-size: 0.88rem;
  }
}
