/* UnlimitedPOS public site. Tokens come from tokens.css. */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.site {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--receipt);
  -webkit-font-smoothing: antialiased;
}

.site a:not(.btn-site) { color: inherit; }
.site img, .site svg { max-width: 100%; }

.site-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--tag);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius-s);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: var(--focus);
}

/* ---------- buttons ---------- */
.btn-site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75em 1.3em;
  border: 2px solid transparent;
  border-radius: var(--radius-m);
  font: 650 1rem/1.2 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-site--lg { padding: 0.95em 1.6em; font-size: 1.05rem; }
.btn-site--tag { background: var(--tag); border-color: var(--tag); color: var(--ink); }
.btn-site--tag:hover { background: var(--tag-deep); border-color: var(--tag-deep); }
.btn-site--ink { background: var(--ink); border-color: var(--ink); color: var(--receipt); }
.btn-site--ink:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn-site--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-site--ghost:hover { background: var(--ink); color: var(--receipt); }
.btn-site--ghost-light { border-color: rgba(252, 252, 250, 0.7); color: var(--receipt); background: transparent; }
.btn-site--ghost-light:hover { background: var(--receipt); color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(238, 241, 236, 0.94);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.2) blur(6px);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 70px;
}
.site-header__home { text-decoration: none; }
.site-nav {
  display: flex;
  gap: 24px;
  margin-right: auto;
  font-weight: 550;
}
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-header__actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.site-header__signin { font-weight: 600; text-decoration: none; }
.site-header__signin:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- hero ---------- */
.hero {
  background: var(--counter);
  padding: 64px 0 88px;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 56px;
  align-items: start;
}
.hero__title {
  margin: 8px 0 0;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero__lede {
  max-width: 54ch;
  margin: 28px 0 0;
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__note { margin: 18px 0 0; font-size: 0.95rem; color: var(--slate); }

/* the printer: a slot the receipt feeds out of */
.hero__receipt {
  position: relative;
  padding-top: 14px;
  justify-self: center;
  width: min(100%, 360px);
}
.hero__receipt::before {
  content: "";
  position: absolute;
  top: 0;
  left: -18px;
  right: -18px;
  height: 22px;
  border-radius: 11px;
  background: var(--ink);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.35);
  z-index: 2;
}

/* ---------- bands ---------- */
.band { padding: 96px 0; }
.band--counter { background: var(--counter); }
.band__title {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.band__lede {
  max-width: 60ch;
  margin: 18px 0 0;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* features grouped by where the work happens */
.aisles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
  margin-top: 56px;
}
.aisle { border-top: 3px solid var(--ink); padding-top: 18px; }
.aisle h3 { margin: 0 0 14px; font-size: 1.2rem; font-weight: 700; }
.aisle ul { margin: 0; padding: 0; list-style: none; }
.aisle li {
  position: relative;
  padding: 7px 0 7px 20px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}
.aisle li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--tag);
  box-shadow: inset 0 0 0 1.5px var(--tag-deep);
}

/* business types */
.fits { margin: 48px 0 0; border-top: 1px solid var(--ink); }
.fit {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
.fit dt {
  font-weight: 750;
  font-size: 1.35rem;
  line-height: 1.25;
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
}
.fit dd { margin: 0; max-width: 60ch; font-size: 1.08rem; color: var(--ink-soft); }

/* plans: the recommended plan is the price tag */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 52px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-l);
  background: var(--receipt);
}
.plan--tag {
  background: var(--tag);
  border-color: var(--tag-deep);
}
.plan__name { margin: 0; font-size: 1.3rem; font-weight: 750; }
.plan__for { margin: 6px 0 0; color: var(--ink-soft); }
.plan__price { margin: 22px 0 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.plan__amount { font-size: 2.3rem; font-weight: 800; line-height: 1; }
.plan__amount--ask { font-size: 1.35rem; font-weight: 750; }
.plan__period { color: var(--ink-soft); }
.plan__features { margin: 16px 0 26px; padding: 0; list-style: none; flex: 1; }
.plan__features li { padding: 7px 0; border-bottom: 1px solid rgba(28, 27, 41, 0.12); }
.plan .btn-site { align-self: flex-start; }

/* questions */
.faq details { max-width: 860px; border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { margin-top: 40px; border-top: 1px solid var(--ink); }
.faq summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-size: 1.15rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 22px; max-width: 66ch; color: var(--ink-soft); }

/* closing band */
.closer { background: var(--ink); color: var(--receipt); padding: 84px 0; }
.closer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.closer__title { margin: 0; max-width: 16ch; font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; line-height: 1.05; }
.closer__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* footer */
.site-footer { background: var(--ink); color: rgba(252, 252, 250, 0.78); padding: 0 0 36px; border-top: 1px solid rgba(252, 252, 250, 0.12); }
.site-footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-top: 44px; }
.site-footer__note { margin: 12px 0 0; max-width: 40ch; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { color: var(--receipt); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__legal { margin-top: 36px; font-size: 0.9rem; color: rgba(252, 252, 250, 0.55); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .site-nav { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__receipt { justify-self: start; }
  .aisles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .fit { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  .hero { padding: 40px 0 64px; }
  .band { padding: 68px 0; }
  .aisles { grid-template-columns: 1fr; }
  .site-header__signin { display: none; }
  .site-header__actions .btn-site { padding: 0.6em 1em; font-size: 0.95rem; }
  .site-header__bar { gap: 12px; }
  .hero__receipt { width: 100%; }
}
