/* Smart Business Cash — brand tokens (shared with partners.smartbusinesscash.app) */
:root {
  --navy-950: #071d2d;
  --navy-900: #0a2a40;
  --navy-800: #113b55;
  --blue-700: #145b82;
  --green-500: #9acb3b;
  --green-400: #afd957;
  --green-100: #edf7d9;
  --ink: #153044;
  --muted: #647785;
  --line: #d9e2e7;
  --paper: #fff;
  --canvas: #eef3f5;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { -webkit-tap-highlight-color: transparent; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
  background:
    linear-gradient(154deg, #113b5557, transparent 56%),
    var(--navy-950);
  padding: 30px 22px 104px;
  padding-top: max(30px, env(safe-area-inset-top));
}

.hero-ring {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.hero-ring-one {
  width: 300px; height: 300px;
  top: -120px; right: -150px;
  border: 42px solid #9acb3b1a;
}
.hero-ring-two {
  width: 210px; height: 210px;
  bottom: -110px; left: -120px;
  border: 32px solid #ffffff0a;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
  animation: rise .6s cubic-bezier(.2, .8, .2, 1) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  margin-bottom: 40px;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  color: var(--navy-950);
  background: var(--green-500);
  border-radius: 10px;
  transform: rotate(-2deg);
}
.brand-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  letter-spacing: .045em;
}
.brand-name strong { font-size: 11px; font-weight: 800; }
.brand-name span {
  margin-top: 4px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .11em;
  color: var(--green-400);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--green-500);
}

.hero-title {
  margin: 0;
  font-size: clamp(46px, 13vw, 92px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}

.hero-sub {
  margin: 16px auto 0;
  max-width: 520px;
  font-size: clamp(16px, 4.4vw, 21px);
  font-weight: 500;
  line-height: 1.5;
  color: #ffffffc2;
}

/* ---------- Option cards ---------- */
.options-wrap {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: -72px auto 0;
  padding: 0 18px 56px;
  position: relative;
  z-index: 1;
}

/* Auto-fit grid: add more .option-card elements and the layout reflows. */
.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.option-card {
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  background: var(--paper);
  border: 1px solid #071d2d14;
  border-radius: 18px;
  box-shadow: 0 18px 50px #0a2a401f;
  position: relative;
  overflow: hidden;
  /* "backwards" so the finished animation doesn't override the hover lift */
  animation: rise .6s cubic-bezier(.2, .8, .2, 1) backwards;
  transition: transform .18s, box-shadow .18s;
}
.option-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-800), var(--blue-700), var(--green-500));
}
.option-card:nth-child(2) { animation-delay: .08s; }
.option-card:nth-child(3) { animation-delay: .16s; }
.option-card:nth-child(n+4) { animation-delay: .24s; }

@media (hover: hover) {
  .option-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px #0a2a402e;
  }
}

.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.card-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  color: var(--navy-950);
  background: var(--green-100);
}
.card-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue-700);
}

.card-title {
  margin: 0 0 10px;
  font-size: clamp(22px, 6vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--navy-900);
}

.card-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--muted);
}
.card-tags li:not(:last-child)::after {
  content: "•";
  margin: 0 8px;
  color: var(--green-500);
}

.card-button {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: var(--navy-950);
  background: var(--green-500);
  box-shadow: 0 9px 22px #9acb3b3b;
  transition: transform .16s, background .16s, box-shadow .16s;
}
/* Space above the button that stays even when cards stretch to equal height */
.card-title + * { margin-bottom: 24px; }

.card-button svg { flex: none; transition: transform .16s; }
.card-button:hover {
  background: var(--green-400);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px #9acb3b4a;
}
.card-button:hover svg { transform: translateX(3px); }
.card-button:active { transform: translateY(0); }
.card-button:focus-visible {
  outline: 3px solid #145b823d;
  outline-offset: 3px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 30px 22px;
  padding-bottom: max(30px, env(safe-area-inset-bottom));
  text-align: center;
  color: #ffffff8a;
  background: var(--navy-950);
  font-size: 13px;
}
.footer-tagline {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--green-500);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin-bottom: 12px;
}
.footer-links a {
  color: #ffffffd9;
  font-weight: 600;
  text-decoration: none;
}
.footer-links a:hover { color: var(--green-400); }
.footer-copy { margin: 0; font-size: 12px; }

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  .hero { padding: 40px 32px 130px; }
  .brand { margin-bottom: 56px; }
  .options-wrap { margin-top: -88px; padding: 0 28px 80px; }
  .options { gap: 22px; }
  .option-card { padding: 32px 28px 28px; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
