/* =========================================================================
   Refero — landing page styles
   Brand: Yellow #FEE600 + high-contrast black #111111 on white.
   ========================================================================= */

:root {
  --yellow: #FEE600;
  --yellow-dark: #E6CF00;
  --ink: #111111;
  --ink-soft: #1d1d1f;
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --muted: #6B7280;
  --line: #E5E7EB;
  --white: #ffffff;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .06), 0 4px 14px rgba(17, 17, 17, .05);
  --shadow-md: 0 10px 30px rgba(17, 17, 17, .10);
  --maxw: 1140px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

/* ----------------------------- Base ----------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.eyebrow-dark { background: #f0efe9; color: var(--ink); }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  --pad-y: 14px;
  --pad-x: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { --pad-y: 10px; --pad-x: 16px; font-size: .92rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }

.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: #000; }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 10px;
  font-weight: 900;
  font-size: 1.1rem;
}
.brand-name { letter-spacing: -0.02em; }

.nav { margin-left: auto; display: flex; gap: 28px; }
.nav a { font-weight: 600; color: var(--ink-soft); position: relative; }
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 2px; background: var(--yellow); transition: right .2s ease;
}
.nav a:hover::after { right: 0; }

.header-cta { margin-left: 4px; }

/* ----------------------------- Hero ----------------------------- */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, #2a2a2a 0%, var(--ink) 55%);
  color: var(--white);
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 110px);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero .eyebrow { background: rgba(254, 230, 0, .15); color: var(--yellow); }

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  margin: 18px 0 16px;
}
.hero-title .hl { color: var(--yellow); }

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, .78);
  max-width: 44ch;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }

.hero-points {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, .82);
  font-size: .98rem;
}
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points span { color: var(--yellow); font-weight: 900; }

/* Hero visual card */
.hero-visual { display: flex; justify-content: center; }
.phone-card {
  width: 280px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  transform: rotate(-2deg);
}
.phone-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.phone-brand { font-weight: 900; font-size: 1.1rem; }
.phone-pill {
  background: var(--ink); color: var(--yellow);
  font-weight: 800; font-size: .8rem;
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.qr { display: grid; place-items: center; padding: 8px 0 14px; }
.qr svg { border-radius: 12px; }
.phone-code { text-align: center; color: var(--muted); font-size: .95rem; }
.phone-code strong { color: var(--ink); letter-spacing: .12em; }
.phone-share {
  margin-top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #25D366; color: #fff;
  font-weight: 700; font-size: .95rem;
  padding: 12px; border-radius: var(--radius-pill);
}
.wa-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; }

/* ----------------------------- Sections ----------------------------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; margin: 16px 0 12px; }
.section-lead { color: var(--muted); font-size: 1.08rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, 1fr);
  counter-reset: step;
}
.step { padding: 30px 26px; position: relative; }
.step-num {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--yellow); color: var(--ink);
  font-weight: 900; font-size: 1.2rem;
  border-radius: 12px;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* Audiences */
.audiences { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { padding: 36px 32px; }
.panel-accent { border-color: var(--ink); box-shadow: 0 16px 40px rgba(17,17,17,.12); }
.panel-tag {
  display: inline-block; font-weight: 800; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); background: var(--yellow);
  padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 16px;
}
.panel h3 { font-size: 1.45rem; margin-bottom: 10px; }
.panel > p { color: var(--muted); margin-bottom: 18px; }
.ticks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  font-weight: 900; font-size: .75rem;
  display: grid; place-items: center;
}

/* ----------------------------- Download ----------------------------- */
.download { background: var(--ink); color: var(--white); }
.download-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 28px;
}
.download h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 900; }
.download-copy p { color: rgba(255,255,255,.78); margin-top: 10px; max-width: 46ch; }
.badges { display: flex; flex-wrap: wrap; gap: 16px; }
.store-badge {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink);
  padding: 12px 20px 12px 18px;
  border-radius: 14px;
  cursor: not-allowed;
  opacity: .96;
}
.store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-text small { font-size: .68rem; color: var(--muted); }
.store-text strong { font-size: 1.05rem; }
.soon-pill {
  position: absolute; top: -10px; right: -8px;
  background: var(--yellow); color: var(--ink);
  font-size: .68rem; font-weight: 800;
  padding: 4px 9px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

/* ----------------------------- Contact ----------------------------- */
.contact { max-width: 760px; }
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(254, 230, 0, .35);
}
.field input::placeholder,
.field textarea::placeholder { color: #9ca3af; }

.form-actions { display: grid; gap: 12px; }
.form-note { font-size: .95rem; min-height: 1.2em; margin: 0; }
.form-note.is-success { color: #15803d; font-weight: 600; }
.form-note.is-error { color: #b91c1c; font-weight: 600; }

/* ----------------------------- Footer ----------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 56px 0 28px; }
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand-light { color: #fff; }
.footer-tag { margin-top: 12px; color: rgba(255,255,255,.6); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { font-weight: 600; color: rgba(255,255,255,.85); }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { padding-top: 22px; font-size: .9rem; color: rgba(255,255,255,.55); }

/* ----------------------------- Content / legal pages ----------------------------- */
.page-hero {
  background: radial-gradient(1200px 460px at 80% -20%, #2a2a2a 0%, var(--ink) 60%);
  color: var(--white);
  padding: clamp(48px, 7vw, 84px) 0;
}
.page-hero .eyebrow { background: rgba(254, 230, 0, .15); color: var(--yellow); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; margin: 16px 0 12px; }
.page-hero p { color: rgba(255, 255, 255, .78); max-width: 60ch; }
.page-meta { margin-top: 14px; font-size: .9rem; color: rgba(255, 255, 255, .6); }

.legal { padding: clamp(40px, 7vw, 80px) 0; }
.legal .container { max-width: 820px; }
.legal h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin: 40px 0 12px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.15rem; font-weight: 700; margin: 26px 0 8px; }
.legal p { color: var(--ink-soft); margin: 0 0 14px; }
.legal ul { color: var(--ink-soft); margin: 0 0 16px; padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a.inline-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 3px; }

.callout {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 22px;
}
.callout p { margin: 0; }

/* FAQ */
.faq { display: grid; gap: 14px; margin-top: 8px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 4px 4px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 900; font-size: 1.4rem; line-height: 1;
  color: var(--ink); flex: none;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--ink); }
.faq .faq-body { padding: 0 20px 20px; color: var(--ink-soft); }
.faq .faq-body p { margin: 0 0 12px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

.back-link { margin-top: 36px; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .phone-card { transform: rotate(0); }
  .steps { grid-template-columns: 1fr; }
  .audiences { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { display: none; }              /* keep header lean on phones; CTA stays */
  .header-cta { margin-left: auto; }
  .contact-form { grid-template-columns: 1fr; }
  .download-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .container { padding-inline: 16px; }
  .brand-logo { height: 34px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .badges { width: 100%; }
  .store-badge { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
