/* Temple Payments public website. Uses brand/temple-tokens.css only; no raw brand hex here. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--tp-font);
  font-size: var(--tp-text-body);
  line-height: var(--tp-leading-body);
  color: var(--tp-text);
  background: var(--tp-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--tp-action); }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: none; box-shadow: var(--tp-focus-ring); border-radius: var(--tp-radius-sm); }
h1, h2, h3 { color: var(--tp-text-strong); line-height: var(--tp-leading-tight); margin: 0; font-weight: var(--tp-weight-semibold); letter-spacing: -0.01em; }
h1 { font-size: var(--tp-text-display); }
h2 { font-size: var(--tp-text-h2); }
h3 { font-size: 1.125rem; }
p { margin: 0; }

.container { width: 100%; max-width: var(--tp-container); margin: 0 auto; padding: 0 var(--tp-gutter); }
@media (min-width: 720px) { .container { padding: 0 var(--tp-space-6); } }

.skip-link { position: absolute; left: var(--tp-space-4); top: -100px; z-index: 10; background: var(--tp-white); color: var(--tp-text-strong); padding: var(--tp-space-2) var(--tp-space-4); border-radius: var(--tp-radius-sm); }
.skip-link:focus { top: var(--tp-space-4); }

.eyebrow { font-size: var(--tp-text-label); font-weight: var(--tp-weight-semibold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tp-accent-700); margin-bottom: var(--tp-space-3); }
.eyebrow--inverse { color: var(--tp-inverse-text-muted); }
.lead { font-size: var(--tp-text-lead); max-width: 36rem; }
.lead--muted { color: var(--tp-text-muted); margin-top: var(--tp-space-4); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--tp-space-2);
  min-height: 44px; padding: 10px 20px; border-radius: var(--tp-radius-button);
  font-weight: var(--tp-weight-semibold); font-size: 0.9375rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color var(--tp-duration) var(--tp-ease), color var(--tp-duration) var(--tp-ease), border-color var(--tp-duration) var(--tp-ease);
}
.btn-primary { background: var(--tp-action); color: var(--tp-action-text); }
.btn-primary:hover { background: var(--tp-action-hover); }
.btn-secondary { background: var(--tp-white); color: var(--tp-text-strong); border-color: var(--tp-border-control); }
.btn-secondary:hover { background: var(--tp-brand-50); }
.btn-light { background: var(--tp-white); color: var(--tp-brand-800); }
.btn-light:hover { background: var(--tp-brand-100); }
.btn-outline-light { color: var(--tp-inverse-text); border-color: var(--tp-inverse-border); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); }
.btn-ghost { min-height: 36px; padding: 6px 12px; color: var(--tp-text-strong); border-color: var(--tp-border-control); font-size: var(--tp-text-small); }
.btn-ghost:hover { background: var(--tp-brand-50); }
.actions { display: flex; flex-wrap: wrap; gap: var(--tp-space-3); margin-top: var(--tp-space-6); }

/* Header */
.site-header { position: relative; z-index: 5; border-bottom: 1px solid var(--tp-border); background: var(--tp-bg); }
.site-header--inverse { background: var(--tp-inverse-bg); border-bottom-color: var(--tp-inverse-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--tp-space-4); min-height: 72px; }
.brand img { height: 22px; width: auto; }
.brand .brand-dark, .site-header--inverse .brand .brand-light { display: none; }
.site-header--inverse .brand .brand-dark { display: block; }

.site-nav { display: flex; align-items: center; gap: var(--tp-space-5); font-size: var(--tp-text-small); font-weight: var(--tp-weight-medium); }
.site-nav a:not(.btn) { color: var(--tp-text-muted); text-decoration: none; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--tp-text-strong); }
.login-group { display: inline-flex; align-items: center; gap: var(--tp-space-2); padding-left: var(--tp-space-4); border-left: 1px solid var(--tp-border); }
.login-label { color: var(--tp-text-muted); }
.site-header--inverse .site-nav--desktop a:not(.btn), .site-header--inverse .site-nav--desktop .login-label { color: var(--tp-inverse-text-muted); }
.site-header--inverse .site-nav--desktop a:not(.btn):hover { color: var(--tp-inverse-text); }
.site-header--inverse .site-nav--desktop .login-group { border-left-color: var(--tp-inverse-border); }
.site-header--inverse .site-nav--desktop .btn-ghost { color: var(--tp-inverse-text); border-color: var(--tp-inverse-border); }
.site-header--inverse .site-nav--desktop .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.nav-toggle { display: none; }
.nav-toggle summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--tp-space-4); border-radius: var(--tp-radius-button); border: 1px solid var(--tp-border-control); color: var(--tp-text-strong); font-weight: var(--tp-weight-semibold); font-size: var(--tp-text-small); }
.nav-toggle summary::-webkit-details-marker { display: none; }
.site-header--inverse .nav-toggle summary { color: var(--tp-inverse-text); border-color: var(--tp-inverse-border); }

@media (max-width: 960px) {
  .site-nav--desktop { display: none; }
  .nav-toggle { display: block; }
  .site-nav--mobile {
    position: absolute; left: var(--tp-gutter); right: var(--tp-gutter); top: 64px;
    flex-direction: column; align-items: stretch; gap: 0; padding: var(--tp-space-3);
    background: var(--tp-surface); border: 1px solid var(--tp-border); border-radius: var(--tp-radius-card); box-shadow: var(--tp-shadow-3);
    font-size: var(--tp-text-body);
  }
  .site-nav--mobile a:not(.btn) { padding: var(--tp-space-3); border-radius: var(--tp-radius-sm); }
  .site-nav--mobile a:not(.btn):hover { background: var(--tp-brand-50); }
  .site-nav--mobile .login-group { flex-wrap: wrap; border-left: 0; border-top: 1px solid var(--tp-border); padding: var(--tp-space-4) var(--tp-space-3) var(--tp-space-2); margin-top: var(--tp-space-2); }
  .site-nav--mobile .login-label { width: 100%; }
  .site-nav--mobile .btn-ghost { flex: 1; min-height: 44px; }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--tp-inverse-bg) 0%, var(--tp-inverse-bg-deep) 100%); color: var(--tp-inverse-text); padding: var(--tp-space-8) 0 var(--tp-space-9); overflow: hidden; }
.hero h1 { color: var(--tp-inverse-text); max-width: 15ch; }
.hero .lead { color: var(--tp-inverse-text-muted); margin-top: var(--tp-space-5); }
.hero-grid { display: grid; gap: var(--tp-space-8); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } .hero { padding: var(--tp-space-9) 0 var(--tp-space-10); } }

.hero-visual { position: relative; margin: 0; min-height: 320px; max-width: 460px; width: 100%; justify-self: center; }
.visual-card {
  position: absolute; left: 0; top: 0; width: 78%; aspect-ratio: 1.586; padding: var(--tp-space-5);
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: var(--tp-radius-card-lg); border: 1px solid var(--tp-inverse-border);
  background: linear-gradient(135deg, var(--tp-brand-600) 0%, var(--tp-brand-900) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.visual-card img { width: 40px; height: auto; }
.visual-card-number { font-variant-numeric: var(--tp-tabular); letter-spacing: 0.08em; color: var(--tp-inverse-text); font-size: 1rem; }
.visual-card-brand { font-size: var(--tp-text-small); color: var(--tp-inverse-text-muted); font-weight: var(--tp-weight-semibold); }
.visual-panel {
  position: relative; margin: 34% 0 0 18%; padding: var(--tp-space-5);
  display: flex; flex-direction: column; gap: var(--tp-space-1);
  background: var(--tp-surface); color: var(--tp-text); border-radius: var(--tp-radius-card-lg); box-shadow: var(--tp-shadow-3);
}
.visual-tag { align-self: flex-start; font-size: 11px; font-weight: var(--tp-weight-semibold); text-transform: uppercase; letter-spacing: 0.08em; color: var(--tp-text-muted); background: var(--tp-neutral-100); padding: 2px 8px; border-radius: var(--tp-radius-pill); margin-bottom: var(--tp-space-2); }
.visual-label { font-size: var(--tp-text-small); color: var(--tp-text-muted); }
.visual-amount { font-size: 1.75rem; font-weight: var(--tp-weight-semibold); color: var(--tp-text-strong); font-variant-numeric: var(--tp-tabular); }
.visual-rows { list-style: none; margin: var(--tp-space-3) 0 0; padding: 0; }
.visual-rows li { display: flex; justify-content: space-between; align-items: center; padding: var(--tp-space-2) 0; border-top: 1px solid var(--tp-border); font-size: var(--tp-text-small); }
.badge { font-size: 12px; font-weight: var(--tp-weight-semibold); padding: 2px 10px; border-radius: var(--tp-radius-pill); background: var(--tp-success-100); color: var(--tp-success-700); }
.badge--pending { background: var(--tp-warning-100); color: var(--tp-warning-700); }

/* Sections */
.section { padding: var(--tp-space-9) 0; }
.section--subtle { background: var(--tp-bg-subtle); }
.section h2 { max-width: 24ch; }

.steps { list-style: none; padding: 0; margin: var(--tp-space-7) 0 0; display: grid; gap: var(--tp-space-5); }
@media (min-width: 840px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: var(--tp-space-5); border: 1px solid var(--tp-border); border-radius: var(--tp-radius-card); }
.step-number { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: var(--tp-radius-pill); background: var(--tp-brand-800); color: var(--tp-white); font-weight: var(--tp-weight-semibold); margin-bottom: var(--tp-space-4); }
.step p, .feature p { color: var(--tp-text-muted); margin-top: var(--tp-space-2); }

.feature-grid { list-style: none; padding: 0; margin: var(--tp-space-7) 0 0; display: grid; gap: var(--tp-space-4); }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--tp-surface); border: 1px solid var(--tp-border); border-radius: var(--tp-radius-card); padding: var(--tp-space-5); box-shadow: var(--tp-shadow-1); }
.feature-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 14px; background: var(--tp-accent-100); color: var(--tp-accent-700); margin-bottom: var(--tp-space-4); }

.security-grid { display: grid; gap: var(--tp-space-7); align-items: start; }
@media (min-width: 900px) { .security-grid { grid-template-columns: 1fr 1fr; } }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--tp-space-3); }
.check-list li { position: relative; padding: var(--tp-space-4) var(--tp-space-4) var(--tp-space-4) 52px; border: 1px solid var(--tp-border); border-radius: var(--tp-radius-card); }
.check-list li::before {
  content: ""; position: absolute; left: var(--tp-space-4); top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: var(--tp-radius-pill); background: var(--tp-accent-700);
}
.check-list li::after { content: ""; position: absolute; left: 23px; top: 50%; width: 8px; height: 4px; margin-top: -4px; border-left: 2px solid var(--tp-white); border-bottom: 2px solid var(--tp-white); transform: rotate(-45deg); }

.band { background: var(--tp-inverse-bg); color: var(--tp-inverse-text); padding: var(--tp-space-8) 0; }
.band h2 { color: var(--tp-inverse-text); }
.band p { color: var(--tp-inverse-text-muted); margin-top: var(--tp-space-2); }
.band-inner { display: flex; flex-wrap: wrap; gap: var(--tp-space-5); align-items: center; justify-content: space-between; }

/* Contact */
.page-intro { padding-top: var(--tp-space-8); }
.contact-grid { display: grid; gap: var(--tp-space-7); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.3fr 1fr; } }
.card { background: var(--tp-surface); border: 1px solid var(--tp-border); border-radius: var(--tp-radius-card-lg); padding: var(--tp-space-6); box-shadow: var(--tp-shadow-2); }
.contact-card { display: flex; flex-direction: column; gap: var(--tp-space-3); align-items: flex-start; }
.card-label { font-size: var(--tp-text-small); color: var(--tp-text-muted); }
.contact-email { font-size: 1.25rem; font-weight: var(--tp-weight-semibold); color: var(--tp-text-strong); word-break: break-all; }
.contact-missing { color: var(--tp-text-muted); }
.existing { display: flex; flex-wrap: wrap; gap: var(--tp-space-5); align-items: center; justify-content: space-between; }
.existing p { color: var(--tp-text-muted); margin-top: var(--tp-space-2); }
.existing .actions { margin-top: 0; }
.page-intro .btn { margin-top: var(--tp-space-6); }

/* Footer */
.site-footer { background: var(--tp-inverse-bg-deep); color: var(--tp-inverse-text-muted); padding: var(--tp-space-8) 0 var(--tp-space-5); font-size: var(--tp-text-small); }
.site-footer img { height: 22px; width: auto; }
.footer-grid { display: grid; gap: var(--tp-space-6); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-tagline { margin-top: var(--tp-space-4); max-width: 28ch; }
.site-footer h2 { font-size: var(--tp-text-label); text-transform: uppercase; letter-spacing: 0.08em; color: var(--tp-inverse-text); margin-bottom: var(--tp-space-3); }
.site-footer nav, .site-footer address { display: flex; flex-direction: column; gap: var(--tp-space-2); font-style: normal; }
.site-footer a { color: var(--tp-inverse-text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--tp-inverse-text); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--tp-space-4); margin-top: var(--tp-space-7); padding-top: var(--tp-space-5); border-top: 1px solid var(--tp-inverse-border); }
