/* ═══════════════════════════════════════════════════
   Ayben — Brand Styles
   Palette: Graphite (#1A1A1A), Coral (#D45C3E), Mint (#5BBF9E)
   ═══════════════════════════════════════════════════ */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --graphite: #1A1A1A;
  --graphite-soft: #2E2E2E;
  --coral: #D45C3E;
  --coral-hover: #BF4F33;
  --mint: #5BBF9E;
  --mint-hover: #4DA889;
  --bg: #FAF8F6;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #6B6560;
  --text-inverse: #FFFFFF;
  --border: #E8E4E0;
  --border-light: #F0EDEA;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, monospace;
}

/* ═══ Entrance animation ═══ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══ Base ═══ */
html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: fadeSlideUp 0.5s ease-out;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}

/* ═══ Focus ═══ */
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ═══ Utility: visually hidden ═══ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ═══ Skip link ═══ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--graphite);
  color: var(--text-inverse);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* ═══ Layout ═══ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ═══ Header ═══ */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-height: 44px;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--coral);
}

/* ═══ Navigation ═══ */
nav {
  display: flex;
  gap: 4px;
}

nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  min-height: 44px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

nav a:hover { color: var(--graphite); background: var(--border-light); }

nav a[aria-current="page"] {
  color: var(--coral);
  background: rgba(212, 92, 62, 0.08);
  font-weight: 600;
}

/* ═══ Main ═══ */
main { flex: 1; padding: 48px 0 64px; }

/* ═══ Cards ═══ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.card:last-child { margin-bottom: 0; }

/* ═══ Hero (landing) ═══ */
.hero {
  text-align: center;
  padding: 24px 0 8px;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero .highlight {
  color: var(--coral);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

.not-banking {
  display: inline-block;
  background: rgba(212, 92, 62, 0.08);
  color: var(--coral);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 40px;
  letter-spacing: 0.01em;
}

/* ═══ Link grid ═══ */
.link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.link-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 16px;
  min-height: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.link-grid a:hover {
  border-color: var(--coral);
  box-shadow: 0 2px 12px rgba(212, 92, 62, 0.10);
}

.link-grid .icon {
  font-size: 1.6rem;
}

.link-grid .sub {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ═══ Content pages (legal/support) ═══ */
.content h1 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.content .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.content h2 {
  font-size: 1.2rem;
  font-weight: 650;
  margin-top: 32px;
  margin-bottom: 10px;
  color: var(--graphite);
}

.content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.content p,
.content li {
  color: var(--text);
  margin-bottom: 12px;
}

.content ul, .content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content li {
  margin-bottom: 6px;
}

.content a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.content a:hover { color: var(--coral-hover); }

.content strong {
  font-weight: 650;
}

.content .disclaimer-note {
  background: rgba(212, 92, 62, 0.06);
  border-left: 3px solid var(--coral);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-size: 0.92rem;
}

/* ═══ Contact block ═══ */
.contact-block {
  background: var(--border-light);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-top: 28px;
}

.contact-block p {
  margin-bottom: 4px;
}

.contact-block a {
  font-weight: 600;
}

/* ═══ FAQ (support) ═══ */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}

.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: 0; padding-bottom: 0; }

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--graphite);
}

.faq-item p, .faq-item ul {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ═══ Footer ═══ */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 10px;
}

footer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

footer a:hover { color: var(--graphite); }

/* ═══ Responsive ═══ */
@media (max-width: 600px) {
  main { padding: 32px 0 48px; }

  .hero h1 { font-size: 1.6rem; }

  .hero p { font-size: 1rem; }

  .link-grid { grid-template-columns: 1fr; }

  .card { padding: 24px 20px; }

  .header-inner { flex-wrap: wrap; }

  nav { width: 100%; justify-content: center; }

  nav a { font-size: 0.85rem; padding: 8px 10px; }

  .content h1 { font-size: 1.4rem; }

  .logo-img { width: 30px; height: 30px; }

  .logo-text { font-size: 1rem; }
}

/* ═══ Print ═══ */
@media print {
  header, footer, .skip-link { display: none; }
  body { animation: none; background: #fff; }
  .card { border: 1px solid #ddd; break-inside: avoid; }
}
