/* The public pages on Public.master: the home page, Learn More (Schedule a Demo) and its
   thank-you page, Contact Us, the two legal pages, the QuickBooks-disconnected notice, and
   the product pages (QuickBooks, NetSuite, Card Fee Savings - the "landing" block at the
   end). Light only.

   The shapes are Sail Rewards' public pages (its Default.aspx / About.aspx and the
   "bubbles" block of its style.css): a brand-gradient band with a faint grid and two soft
   circles, clean white cards, Inter, the brand.css palette. Colours come from brand.css
   tokens; the only literals are the rgba whites over the band, which is dark in every
   theme.

   Everything is under .ipay-public (or a page id), so nothing here reaches the shells. */

.ipay-public {
  color: var(--text-dark);
}

.ipay-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------- the band */

.ipay-band {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  color: var(--white);
  background-color: var(--brand-primary);
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 55%, var(--brand-primary-darker) 100%);
  background-size: 40px 40px, 40px 40px, auto;
}

/* Two soft circles, the Rewards bands' texture: one large low on the right, one small
   high on the left. Behind the content, and gone for anyone who asked for less motion. */
.ipay-band::before,
.ipay-band::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  animation: ipay-drift 18s ease-in-out infinite alternate;
}

.ipay-band::before {
  width: 520px;
  height: 520px;
  right: -140px;
  bottom: -260px;
}

.ipay-band::after {
  width: 260px;
  height: 260px;
  left: -80px;
  top: -120px;
  animation-delay: -9s;
}

@keyframes ipay-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-30px, 20px); }
}

@media (prefers-reduced-motion: reduce) {
  .ipay-band::before,
  .ipay-band::after {
    animation: none;
  }
}

.ipay-band > * {
  position: relative;
  z-index: 1;
}

.ipay-band--short {
  padding: 48px 0 44px;
}

.ipay-band__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

.ipay-band h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--white);
}

.ipay-band__lede {
  margin: 12px 0 0;
  max-width: 60ch;
  font-size: 1.15rem;
  line-height: 1.5;
  color: rgba(255,255,255,.9);
}

/* ---------------------------------------------------------------- cards */

.ipay-card {
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.ipay-section {
  padding: 40px 0 56px;
}

/* A card lifted into the band above it. */
.ipay-section--lifted {
  margin-top: -28px;
  padding-top: 0;
  position: relative;
  z-index: 2;
}

/* ---------------------------------------------------------------- the home page

   The home page's content is App_Data/Default.html, which the Ingage back office edits in
   production (iPay/IngageBackOffice/ContentEditor.aspx). The file carries classes, not
   inline styles, so an edit keeps the look as long as the sections keep their class:
   home-hero, home-intro, home-steps, threecolumns, home-pillars, home-cta, home-contact.
   Icons are drawn here from the Bootstrap Icons font, so the editor has nothing to strip. */

#ipayHome .ipay-home {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

#ipayHome .ipay-home > section + section,
#ipayHome .ipay-home > section + div,
#ipayHome .ipay-home > div + section {
  margin-top: 64px;
}

#ipayHome .ipay-home h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--brand-primary-darker);
}

/* The hero: the photo stays, under the brand gradient and grid, so the text reads white
   on navy whatever the image. */
#ipayHome .home-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  background: var(--brand-primary-darker);
}

#ipayHome .home-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#ipayHome .home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(110deg, rgba(10,56,84,.96) 0%, rgba(13,74,110,.88) 50%, rgba(16,93,137,.6) 100%);
}

#ipayHome .home-hero__text {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 72px);
}

#ipayHome .home-eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.92);
}

#ipayHome .home-hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
  color: var(--white);
}

#ipayHome .home-lede {
  margin: 18px 0 0;
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255,255,255,.9);
}

#ipayHome .home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}

/* Buttons only ever sit on the dark hero and call-to-action bands. */
#ipayHome .home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}

#ipayHome .home-btn:hover {
  transform: translateY(-2px);
}

#ipayHome .home-btn--primary {
  background: var(--white);
  color: var(--brand-primary-darker);
  box-shadow: var(--shadow-md);
}

#ipayHome .home-btn--primary::after {
  content: '\f138';
  font-family: 'bootstrap-icons';
  font-weight: 400;
}

#ipayHome .home-btn--ghost {
  border: 1px solid rgba(255,255,255,.45);
  color: var(--white);
}

#ipayHome .home-btn--ghost:hover {
  background: rgba(255,255,255,.1);
}

/* Imagine... */
#ipayHome .home-intro {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#ipayHome .home-intro p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* How it works: four numbered cards, each with its icon. */
#ipayHome .home-steps h2 {
  margin-bottom: 28px;
  text-align: center;
}

#ipayHome .home-steps ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: home-step;
}

#ipayHome .home-step {
  position: relative;
  padding: 26px 24px 24px;
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  counter-increment: home-step;
}

#ipayHome .home-step::before {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  font-family: 'bootstrap-icons';
  font-size: 1.4rem;
}

#ipayHome .home-step--connect::before { content: '\f4f7'; }
#ipayHome .home-step--send::before { content: '\f73d'; }
#ipayHome .home-step--pay::before { content: '\f2da'; }
#ipayHome .home-step--track::before { content: '\f673'; }

#ipayHome .home-step::after {
  content: counter(home-step, decimal-leading-zero);
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-primary-mid);
}

#ipayHome .home-step h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

#ipayHome .home-step p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (max-width: 1000px) {
  #ipayHome .home-steps ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  #ipayHome .home-steps ol {
    grid-template-columns: 1fr;
  }
}

/* The three feature columns, as cards. */
#ipayHome .threecolumnscontainer > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

#ipayHome .threecolumns {
  min-width: 0;
  overflow: hidden;
  padding-bottom: 8px;
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}

#ipayHome .threecolumns:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

#ipayHome .threecolumns > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

#ipayHome .threecolumns h5 {
  margin: 22px 24px 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-primary-darker);
}

#ipayHome .threecolumns p,
#ipayHome .threecolumns ul {
  margin: 0 24px 14px;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

#ipayHome .threecolumns .home-listhead {
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-dark);
}

#ipayHome .threecolumns ul {
  padding: 0;
  list-style: none;
}

#ipayHome .threecolumns li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 26px;
}

#ipayHome .threecolumns li::before {
  content: '\f272';
  position: absolute;
  left: 0;
  top: 1px;
  font-family: 'bootstrap-icons';
  font-weight: 700;
  color: var(--brand-primary);
}

@media (max-width: 900px) {
  #ipayHome .threecolumnscontainer > div {
    grid-template-columns: 1fr;
  }
}

/* Understand / Evaluate / Consider: three cards with a brand spine. */
#ipayHome .home-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

#ipayHome .home-pillars blockquote {
  margin: 0;
  padding: 24px 26px;
  background: var(--card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand-primary);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

#ipayHome .home-pillars h4 {
  margin: 0 0 8px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

#ipayHome .home-pillars p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  #ipayHome .home-pillars {
    grid-template-columns: 1fr;
  }
}

/* The closing call to action, in the brand band. */
#ipayHome .home-cta {
  padding: clamp(40px, 6vw, 64px) 24px;
  text-align: center;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  background-color: var(--brand-primary);
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 55%, var(--brand-primary-darker) 100%);
  background-size: 40px 40px, 40px 40px, auto;
}

#ipayHome .home-cta h2 {
  color: var(--white);
}

#ipayHome .home-cta p {
  max-width: 56ch;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255,255,255,.9);
}

#ipayHome .home-cta .home-actions {
  justify-content: center;
  margin-top: 28px;
}

/* Address, email, phone. */
#ipayHome .home-contact {
  text-align: center;
}

#ipayHome .home-contact h2 {
  font-size: 1.1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

#ipayHome .home-contact ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
}

#ipayHome .home-contact li::before {
  margin-right: 8px;
  font-family: 'bootstrap-icons';
  color: var(--brand-primary);
  vertical-align: -2px;
}

#ipayHome .home-contact__address::before { content: '\f3e8'; }
#ipayHome .home-contact__email::before { content: '\f32f'; }
#ipayHome .home-contact__phone::before { content: '\f5c1'; }

#ipayHome .home-contact a {
  color: inherit;
  text-decoration: none;
}

#ipayHome .home-contact a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

/* ---------------------------------------------------------------- Contact Us
   App_Data/ContactUs.html as the Content Editor leaves it: a map, then h3 + p pairs. */

#ipayContact .contact-prose {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 40px 36px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
}

@media (max-width: 767px) {
  #ipayContact .contact-prose {
    padding: 22px 20px;
  }
}

#ipayContact .contact-prose iframe {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px solid var(--border-color) !important;
}

#ipayContact .contact-prose h3 {
  margin: 24px 0 6px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-primary-darker);
}

#ipayContact .contact-prose p {
  margin: 0;
  color: var(--text-muted);
}

#ipayContact .contact-prose a {
  font-weight: 600;
  text-decoration: none;
}

#ipayContact .contact-prose a:hover {
  text-decoration: underline;
}

/* The file's old Glyphicons, drawn from Bootstrap Icons. */
#ipayContact .contact-prose .glyphicon {
  margin-right: 6px;
  font-style: normal;
  color: var(--brand-primary);
}

#ipayContact .contact-prose .glyphicon::before {
  font-family: 'bootstrap-icons';
  vertical-align: -2px;
}

#ipayContact .contact-prose .glyphicon-phone-alt::before { content: '\f5c1'; }
#ipayContact .contact-prose .glyphicon-envelope::before { content: '\f32f'; }

/* ---------------------------------------------------------------- Learn More */

.ipay-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .ipay-split {
    grid-template-columns: 1fr;
  }
}

.ipay-split__media {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.ipay-split__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* The form card is itself the .sail element, so the SailUI field shapes resolve inside
   it; these take back .sail's page-column width and padding. */
.sail.ipay-form {
  max-width: none;
  margin: 0;
  padding: 28px 30px 30px;
}

.ipay-form .sail-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 560px) {
  .ipay-form .sail-fields {
    grid-template-columns: 1fr;
  }

  .sail.ipay-form {
    padding: 22px 18px;
  }
}

.ipay-form textarea.sail-input {
  min-height: 110px;
  resize: vertical;
}

/* "How would you like us to connect with you?" - the three choices in a row. */
.ipay-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.ipay-choice li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ipay-choice input {
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.ipay-choice label {
  margin: 0;
  font-size: 15px;
  cursor: pointer;
}

.ipay-form__fine {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: var(--text-muted);
}

.ipay-form__submit {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.ipay-form__submit .sail-btn {
  min-width: 200px;
  padding: 12px 28px;
  font-size: 15px;
}

/* Learn More Done, and the QuickBooks notice: one centred card of prose. */
.ipay-notice {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 36px;
  text-align: center;
}

.ipay-notice h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary-darker);
}

.ipay-notice p {
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.ipay-notice a {
  white-space: nowrap;
  font-weight: 600;
}

.ipay-notice__actions {
  margin-top: 22px;
}

.ipay-notice__actions .sail-btn,
.ipay-notice__actions .btn {
  padding: 12px 28px;
  font-size: 15px;
}

.ipay-notice__media {
  max-width: 760px;
  margin: 24px auto 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.ipay-notice__media img {
  display: block;
  width: 100%;
}

/* ---------------------------------------------------------------- the legal pages

   Privacy and Terms are App_Data/Privacy.html and Terms.html, verbatim. Each file carries
   its own <style> block written for a standalone page (it styles body and .container), so
   the code-behind leaves that block out and these rules style the document instead. The
   document's own <h1> is moved into the band by the code-behind, so it is still stated
   exactly once. The prose fills the container: these are documents scanned for a clause,
   not read through. */

#ipayLegal .legal-prose {
  padding: 36px 44px 44px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
}

@media (max-width: 640px) {
  #ipayLegal .legal-prose {
    padding: 24px 20px;
  }
}

/* The file's wrapper is class="container", which bootstrap also styles. */
#ipayLegal .legal-prose .container {
  max-width: none;
  padding: 0;
}

/* The logo is already in the bar above. */
#ipayLegal .legal-prose .logo-container {
  display: none;
}

#ipayLegal .legal-prose h2 {
  margin: 36px 0 12px;
  padding-bottom: 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-primary-darker);
  border-bottom: 1px solid var(--border-color);
}

#ipayLegal .legal-prose h3 {
  margin: 24px 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

#ipayLegal .legal-prose p,
#ipayLegal .legal-prose li {
  color: var(--text-dark);
}

#ipayLegal .legal-prose ul,
#ipayLegal .legal-prose ol {
  padding-left: 1.4rem;
}

#ipayLegal .legal-prose li {
  margin-bottom: 8px;
}

#ipayLegal .legal-prose li::marker {
  color: var(--brand-primary);
}

#ipayLegal .legal-prose .intro-text {
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--text-muted);
}

#ipayLegal .legal-prose .highlight-box,
#ipayLegal .legal-prose .important-notice,
#ipayLegal .legal-prose .contact-info {
  margin: 18px 0;
  padding: 16px 20px;
  border-radius: 10px;
  border-left: 4px solid var(--brand-primary);
  background: var(--tint-info);
}

#ipayLegal .legal-prose .important-notice {
  border-left-color: var(--warning);
  background: var(--tint-warning);
}

#ipayLegal .legal-prose .highlight-box > :last-child,
#ipayLegal .legal-prose .important-notice > :last-child,
#ipayLegal .legal-prose .contact-info > :last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- product pages
   QuickBooks.aspx, NetSuite.aspx and CardFeeSavings.aspx: a full band with two buttons,
   then alternating plain and soft sections of feature cards, steps, a two-column split,
   an FAQ of <details>, and a closing call-to-action card. */

.ipay-landing .ipay-section {
  padding: 56px 0;
}

.landing-band-soft {
  background: var(--tint-gray);
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.landing-btn,
.landing-btn:link,
.landing-btn:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}

.landing-btn:hover {
  transform: translateY(-2px);
}

.landing-btn--primary,
.landing-btn--primary:link,
.landing-btn--primary:visited,
.landing-btn--primary:hover {
  background: var(--white);
  color: var(--brand-primary-darker);
  box-shadow: var(--shadow-md);
}

.landing-btn--ghost,
.landing-btn--ghost:link,
.landing-btn--ghost:visited,
.landing-btn--ghost:hover {
  border: 1px solid rgba(255,255,255,.45);
  color: var(--white);
}

.landing-btn--ghost:hover {
  background: rgba(255,255,255,.1);
}

.landing-h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--brand-primary-darker);
}

.landing-intro {
  max-width: 70ch;
  margin: 0 0 28px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Four cards: one row of four on a wide screen, two by two below it. */
.landing-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1000px) {
  .landing-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .landing-grid--4 {
    grid-template-columns: 1fr;
  }
}

.landing-feature {
  padding: 24px;
}

.landing-feature > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--tint-info);
  color: var(--brand-primary);
  font-size: 22px;
}

.landing-feature h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.landing-feature p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-muted);
}

.landing-feature--wide {
  padding: 28px;
}

.landing-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
}

@media (max-width: 800px) {
  .landing-split {
    grid-template-columns: 1fr;
  }
}

.landing-split p {
  line-height: 1.65;
  color: var(--text-muted);
}

.landing-link {
  font-weight: 700;
  text-decoration: none;
}

.landing-link:hover {
  text-decoration: underline;
}

/* Numbered steps, the number drawn in a brand circle. */
.landing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: landing-step;
}

.landing-steps li {
  counter-increment: landing-step;
}

.landing-steps li::before {
  content: counter(landing-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--white);
  font-weight: 800;
}

.landing-steps h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

.landing-steps p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-muted);
}

.landing-checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-checks li {
  position: relative;
  padding: 8px 0 8px 30px;
  line-height: 1.5;
}

.landing-checks li::before {
  content: '\f26b';
  position: absolute;
  left: 0;
  top: 8px;
  font-family: 'bootstrap-icons';
  color: var(--success);
}

/* The FAQ: one bordered stack of <details>. */
.landing-faq {
  max-width: 860px;
  margin-top: 20px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}

.landing-faq details + details {
  border-top: 1px solid var(--border-color);
}

.landing-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.landing-faq summary::-webkit-details-marker {
  display: none;
}

.landing-faq summary::after {
  content: '\f282';
  font-family: 'bootstrap-icons';
  color: var(--brand-primary);
  transition: transform .2s ease;
}

.landing-faq details[open] summary::after {
  transform: rotate(180deg);
}

.landing-faq details p {
  margin: 0;
  padding: 0 22px 18px;
  line-height: 1.65;
  color: var(--text-muted);
}

.landing-cta {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
}

.landing-cta h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-primary-darker);
}

.landing-cta p {
  margin: 0 auto 22px;
  max-width: 60ch;
  line-height: 1.6;
  color: var(--text-muted);
}

.landing-btn--solid,
.landing-btn--solid:link,
.landing-btn--solid:visited,
.landing-btn--solid:hover {
  background: var(--brand-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.landing-btn--solid:hover {
  background: var(--brand-primary-dark);
}

/* The card-fee calculator: inputs on the left, the answer on the right. */
.landing-calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 20px;
  overflow: hidden;
}

@media (max-width: 800px) {
  .landing-calc {
    grid-template-columns: 1fr;
  }
}

.landing-calc__inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
}

.landing-calc__inputs label {
  margin-top: 8px;
  font-weight: 600;
}

.landing-calc__field {
  position: relative;
}

.landing-calc__field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--card);
  color: var(--text-dark);
  font-size: 1.15rem;
  font-weight: 600;
}

.landing-calc__field input:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 1px;
}

.landing-calc__field--money input {
  padding-left: 30px;
}

.landing-calc__field--pct input {
  padding-right: 34px;
}

.landing-calc__field--money::before,
.landing-calc__field--pct::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}

.landing-calc__field--money::before {
  content: '$';
  left: 14px;
}

.landing-calc__field--pct::after {
  content: '%';
  right: 14px;
}

.landing-calc__result {
  padding: 28px;
  background: var(--brand-primary);
  color: var(--white);
}

.landing-calc__label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

.landing-calc__value {
  margin: 6px 0 14px;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--white);
}

.landing-calc__note {
  margin: 0;
  line-height: 1.6;
  color: rgba(255,255,255,.9);
}

.landing-fine {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* The home page's links to the product pages (Default.aspx.cs puts them in). */
#ipayHome .home-explore h2 {
  text-align: center;
}

#ipayHome .home-explore__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

#ipayHome .home-explore__card {
  display: block;
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-md);
  color: var(--text-dark);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}

#ipayHome .home-explore__card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-primary);
}

#ipayHome .home-explore__card > i {
  font-size: 28px;
  color: var(--brand-primary);
}

#ipayHome .home-explore__card h3 {
  margin: 10px 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
}

#ipayHome .home-explore__card p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-muted);
}
