/* ================================================================
   RinsePay sales landing page
   Brand palette: teal #245f73 · brown #733e24 · surface #F2F0EF
   ================================================================ */

:root {
  --teal: #245f73;
  --teal-light: #347d96;
  --teal-bg: #dceef4;
  --brown: #733e24;
  --brown-light: #8b5236;
  --brown-bg: #f0e4db;
  --surface: #f2f0ef;
  --surface-2: #e8e6e4;
  --ink: #1a1a1a;
  --ink-2: #4a4a4a;
  --ink-3: #666666;
  --border: #c8c8c8;
  --border-soft: #dddcda;
  --white: #ffffff;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --font: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --container: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-weight: 800; color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1em; color: var(--ink-2); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 1em;
}

.accent { color: var(--brown); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.05s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-light); color: var(--white); }

.btn--ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal-bg); color: var(--teal); }

.btn--inverse { background: var(--white); color: var(--teal); }
.btn--inverse:hover { background: var(--teal-bg); color: var(--teal); }

.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn--sm { padding: 8px 16px; font-size: 0.9rem; }
.btn--block { display: block; width: 100%; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.nav__logo img { display: block; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--ink-2); font-weight: 600; font-size: 0.95rem; }
.nav__links a:hover { color: var(--teal); text-decoration: none; }
.nav__links .btn { color: var(--white); }
@media (max-width: 640px) {
  .nav__links a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
  padding: 72px 0 80px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.lede {
  font-size: 1.125rem;
  color: var(--ink-2);
  max-width: 560px;
  margin-bottom: 28px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero__stores {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px;
  margin-bottom: 16px;
}
.hero__stores-label {
  flex-basis: 100%;
  font-size: 0.8rem; color: var(--ink-3); font-weight: 600;
  margin: 0 0 2px;
}
.hero__meta { font-size: 0.9rem; color: var(--ink-3); margin: 0; }
.hero__visual { display: flex; justify-content: center; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero { padding: 48px 0 56px; }
}

/* ---------- Phone frame ---------- */

.phone {
  width: 100%;
  max-width: 320px;
  padding: 10px;
  border-radius: 40px;
  background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(36,95,115,0.35), 0 10px 20px -10px rgba(0,0,0,0.15);
}
.phone img {
  border-radius: 30px;
  display: block;
  width: 100%;
}

/* ---------- Proof ---------- */

.proof { padding: 48px 0; background: var(--white); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.proof[data-empty] { display: none; }
.proof__caption { text-align: center; color: var(--ink-3); font-size: 0.95rem; margin-bottom: 24px; }
.proof__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.proof__stat { text-align: center; }
.proof__stat-number { font-size: 2rem; font-weight: 800; color: var(--teal); }
.proof__stat-label { font-size: 0.9rem; color: var(--ink-3); letter-spacing: 0.5px; }
.proof__logos { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: center; }
.proof__logos img { height: 40px; opacity: 0.7; filter: grayscale(1); }
.proof__quote {
  max-width: 640px; margin: 32px auto 0; padding: 24px;
  background: var(--surface); border-radius: var(--r-lg);
  border-left: 4px solid var(--teal);
  font-size: 1.1rem; color: var(--ink);
}
.proof__quote cite { display: block; margin-top: 12px; font-size: 0.9rem; color: var(--ink-3); font-style: normal; }

/* ---------- Pain ---------- */

.pain { padding: 72px 0; background: var(--brown-bg); }
.pain h2 { max-width: 720px; }
.pain__list {
  list-style: none; padding: 0; margin: 24px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px;
}
.pain__list li {
  background: var(--white); padding: 16px 20px; border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
  color: var(--ink); font-weight: 500;
  position: relative; padding-left: 44px;
}
.pain__list li::before {
  content: "✕"; position: absolute; left: 16px; top: 14px;
  color: var(--brown); font-weight: 800;
}
.pain__punch {
  margin-top: 24px;
  font-size: 1.15rem; font-weight: 700; color: var(--teal);
}

/* ---------- Features ---------- */

.features { padding: 80px 0; }
.features__title { text-align: center; max-width: 700px; margin: 0 auto 56px; }

.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center;
  padding: 48px 0;
}
.feature + .feature { border-top: 1px solid var(--border-soft); }
.feature--flip .feature__copy { order: 2; }
.feature__copy h3 { margin-bottom: 14px; }
.feature__bullets { list-style: none; padding: 0; margin: 16px 0 0; }
.feature__bullets li {
  padding: 6px 0 6px 28px; position: relative; color: var(--ink-2);
}
.feature__bullets li::before {
  content: "✓"; position: absolute; left: 0; top: 6px;
  color: var(--teal); font-weight: 800;
}
.feature__visual { display: flex; justify-content: center; }

@media (max-width: 860px) {
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .feature--flip .feature__copy { order: 1; }
}

.sticker {
  max-width: 320px; width: 100%;
  background: var(--white);
  padding: 16px; border-radius: var(--r-lg);
  border: 1px solid var(--border-soft);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.15);
}
.sticker img { width: 100%; height: auto; }

.hardware-card {
  background: var(--ink); color: var(--white);
  padding: 20px; border-radius: var(--r-lg);
  max-width: 360px; width: 100%;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.25);
}
.hardware-card__badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--teal); color: var(--white);
  padding: 4px 10px; border-radius: 9999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
}
.hardware-card__img {
  width: 100%; height: 240px; object-fit: cover; display: block;
  border-radius: var(--r-md);
  margin: 32px 0 14px;
  background: #f5f5f5;
}
.hardware-card__title { font-size: 1.4rem; font-weight: 800; margin: 4px 0 6px; }
.hardware-card__specs { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin: 0; }

/* ---------- How it works ---------- */

.how { background: var(--teal-bg); padding: 72px 0; }
.how h2 { text-align: center; margin-bottom: 40px; }
.how__steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.how__step {
  background: var(--white); padding: 28px; border-radius: var(--r-lg);
  text-align: center; border: 1px solid var(--border-soft);
}
.how__num {
  width: 48px; height: 48px; border-radius: 9999px;
  background: var(--teal); color: var(--white);
  font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.how__step h3 { margin-bottom: 8px; }

@media (max-width: 720px) { .how__steps { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */

.pricing { padding: 80px 0; background: var(--surface); }
.pricing h2 { text-align: center; margin-bottom: 40px; }
.pricing__card {
  max-width: 480px; margin: 0 auto;
  background: var(--white); padding: 40px;
  border-radius: var(--r-xl);
  border: 2px solid var(--teal);
  box-shadow: 0 40px 80px -20px rgba(36,95,115,0.25);
  text-align: center;
}
.pricing__price { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 4px; }
.pricing__amount { font-size: 4rem; font-weight: 800; color: var(--teal); letter-spacing: -0.03em; line-height: 1; }
.pricing__period { color: var(--ink-3); font-weight: 600; }
.pricing__plus { color: var(--brown); font-weight: 700; font-size: 1.1rem; margin: 0 0 8px; }
.pricing__tagline { color: var(--ink-3); margin-bottom: 24px; }
.pricing__list {
  list-style: none; padding: 0; margin: 0 0 28px;
  text-align: left;
}
.pricing__list li {
  padding: 10px 0 10px 28px; position: relative; color: var(--ink);
  border-bottom: 1px solid var(--border-soft);
}
.pricing__list li:last-child { border-bottom: 0; }
.pricing__list li::before {
  content: "✓"; position: absolute; left: 0; top: 10px;
  color: var(--teal); font-weight: 800;
}
.pricing__fine { margin-top: 16px; font-size: 0.85rem; color: var(--ink-3); }

/* ---------- FAQ ---------- */

.faq { padding: 80px 0; }
.faq h2 { text-align: center; margin-bottom: 40px; }
.faq__item {
  border-bottom: 1px solid var(--border-soft);
  padding: 18px 0;
}
.faq__item summary {
  font-weight: 700; font-size: 1.1rem;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--teal); font-weight: 400;
  margin-left: 16px;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin: 14px 0 6px; color: var(--ink-2); }

/* ---------- Signup ---------- */

.signup { background: var(--surface); padding: 80px 0; }
.signup h2 { text-align: center; margin-bottom: 8px; }
.signup__lede { text-align: center; color: var(--ink-3); margin-bottom: 40px; }
.signup__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 960px) { .signup__grid { grid-template-columns: 1fr; } }

.signup__card {
  background: var(--white); padding: 32px; border-radius: var(--r-lg);
  border: 1px solid var(--border-soft);
  display: flex; flex-direction: column;
}
.signup__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.signup__icon--teal  { background: var(--teal-bg);  color: var(--teal); }
.signup__icon--brown { background: var(--brown-bg); color: var(--brown); }
.signup__card h3 { margin-bottom: 8px; }
.signup__card p { color: var(--ink-3); font-size: 0.95rem; margin-bottom: 0; }
.signup__card > .btn { margin-top: 16px; }
.signup__stores { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 16px; }

/* Grid layout so icon is always at fixed distance from the left edge of the
   border, and the text always starts at a fixed distance from the icon.
   Two badges on the same row get the same icon+gap geometry regardless of
   label length. */
.store-badge {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--ink); color: var(--white);
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background 0.15s ease, transform 0.05s ease;
  min-height: 36px;
  max-width: 170px;
}
.store-badge:hover { background: #222; text-decoration: none; color: var(--white); transform: translateY(-1px); }
.store-badge svg { width: 18px; height: 18px; color: var(--white); }
.store-badge__text { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.store-badge__small { font-size: 0.55rem; font-weight: 500; opacity: 0.85; letter-spacing: 0.3px; }
.store-badge__big { font-size: 0.88rem; font-weight: 700; margin-top: 2px; }

.store-badge--fill {
  max-width: none;
  width: 100%;
}

.lead-form { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.lead-form__field { display: flex; flex-direction: column; gap: 4px; }
.lead-form__field span { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.lead-form__field input,
.lead-form__field select,
.lead-form__field textarea {
  font: inherit; color: var(--ink);
  padding: 10px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--white);
  transition: border-color 0.15s ease;
}
.lead-form__field input:focus,
.lead-form__field select:focus,
.lead-form__field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-bg);
}
.lead-form__field textarea { resize: vertical; font-family: var(--font); }
.lead-form__status { min-height: 1.2em; font-size: 0.9rem; margin: 4px 0 0; }
.lead-form__status[data-state="ok"] { color: #166534; }
.lead-form__status[data-state="err"] { color: #b91c1c; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--teal); color: var(--white); padding: 56px 0; }
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin: 0; max-width: 720px; }

@media (max-width: 720px) {
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Footer ---------- */

.footer { padding: 32px 0; border-top: 1px solid var(--border-soft); background: var(--white); }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--ink-2); font-size: 0.9rem; }
.footer__legal { font-size: 0.85rem; color: var(--ink-3); }

@media (max-width: 640px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
