/* ================================================================
   RinsePay setup guide
   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--sm { padding: 8px 16px; font-size: 0.9rem; }

/* ---------- 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 (setup variant) ---------- */

.hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
  padding: 56px 0 24px;
}
.hero h1 { margin-bottom: 12px; }
.hero .lede { font-size: 1.125rem; color: var(--ink-2); margin-bottom: 0; }

/* ---------- Tabs ---------- */

.tabs-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  position: sticky; top: 60px; z-index: 9;
}
.tabs {
  display: flex;
  gap: 8px;
  padding: 16px 0;
  flex-wrap: wrap;
}
.tab {
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 9999px;
  background: var(--surface);
  color: var(--ink-2);
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tab:hover { background: var(--teal-bg); color: var(--teal); }
.tab[aria-selected="true"] {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

/* ---------- Sub-tabs (owner area) ---------- */

.subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 32px;
  padding: 8px;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-soft);
}
.subtab {
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-2);
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.subtab:hover { background: var(--white); color: var(--teal); }
.subtab[aria-selected="true"] {
  background: var(--white);
  color: var(--brown);
  border-color: var(--brown);
  box-shadow: 0 2px 8px -4px rgba(115,62,36,0.3);
}

/* ---------- Panels & sub-panels ---------- */

.panel { padding: 48px 0 80px; }
.panel__title { margin-bottom: 8px; }
.panel__lede { font-size: 1.1rem; color: var(--ink-2); max-width: 720px; margin-bottom: 24px; }

.subpanel { padding-top: 8px; }
.subpanel__title { margin-bottom: 8px; color: var(--brown); }
.subpanel__lede { font-size: 1.05rem; color: var(--ink-2); max-width: 720px; margin-bottom: 24px; }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--border-soft);
}
.step:first-child { border-top: 0; padding-top: 24px; }
.step--flip .step__copy { order: 2; }
.step--flip .step__visual { order: 1; }

.step__num {
  width: 44px; height: 44px; border-radius: 9999px;
  background: var(--teal); color: var(--white);
  font-size: 1.2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step__copy h3 { margin-bottom: 10px; }
.step__note {
  font-size: 0.85rem;
  color: var(--brown);
  background: var(--brown-bg);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  display: inline-block;
  margin-top: 8px;
}
.step__stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.feature__bullets { list-style: none; padding: 0; margin: 8px 0 0; }
.feature__bullets li {
  padding: 4px 0 4px 24px; position: relative; color: var(--ink-2);
}
.feature__bullets li::before {
  content: "✓"; position: absolute; left: 0; top: 4px;
  color: var(--teal); font-weight: 800;
}
.step__visual { display: flex; justify-content: center; align-items: center; }

@media (max-width: 860px) {
  .step, .step--flip { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .step--flip .step__copy { order: 1; }
  .step--flip .step__visual { order: 2; }
}

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

.phone {
  width: 100%;
  max-width: 280px;
  padding: 10px;
  border-radius: 36px;
  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: 26px;
  display: block;
  width: 100%;
}

.phone--placeholder {
  background: var(--surface);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 9 / 19.5;
  box-shadow: none;
}
.phone__placeholder {
  color: var(--ink-3);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

/* ---------- Store badges ---------- */

.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; }

/* ---------- 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; }
}
