/* TransferNI marketing site — shared styles
   Brand palette mirrors the app (src/theme/colors.ts): indigo-violet primary,
   green/orange accents. */

:root {
  --primary: #5B4CDB;
  --primary-dark: #4A3FC0;
  --primary-light: #EDEBFB;
  --grad-start: #4A3FD0;
  --grad-end: #7C5CE6;
  --header-dark: #2A2A5E;
  --green: #3FAE6E;
  --green-dark: #359760;
  --orange: #F39C3D;
  --yellow: #F6C453;

  --white: #FFFFFF;
  --off-white: #F6F7FB;
  --gray-light: #E6E8F0;
  --gray: #9398A8;
  --gray-dark: #5C6173;
  --dark: #1E1F36;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(30, 31, 54, 0.08);
  --shadow-lg: 0 20px 50px rgba(30, 31, 54, 0.14);
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-light);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 0; font-weight: 800; font-size: 1.2rem; color: var(--dark); }
.brand:hover { text-decoration: none; }
.brand .mark {
  margin-right: 10px;
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(91, 76, 219, 0.35);
}
.brand .ni { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--gray-dark); font-weight: 600; font-size: 0.98rem; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  cursor: pointer; border: 2px solid transparent; transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(91,76,219,.3); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; color: var(--primary); border-color: var(--gray-light); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.6rem; color: var(--dark); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.hero .container { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 90px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,0.92); max-width: 52ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 2.5rem; color: rgba(255,255,255,.9); font-weight: 600; font-size: .95rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }

/* page hero (smaller, for inner pages) */
.page-hero { background: linear-gradient(135deg, var(--grad-start), var(--grad-end)); color: #fff; }
.page-hero .container { padding: 64px 24px 72px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.92); max-width: 60ch; font-size: 1.1rem; margin: 0; }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6rem; }
.quick-links a {
  background: rgba(255,255,255,.15); color: #fff; padding: 8px 16px; border-radius: 999px;
  font-weight: 600; font-size: .9rem; border: 1px solid rgba(255,255,255,.25);
}
.quick-links a:hover { background: rgba(255,255,255,.28); text-decoration: none; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--off-white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { color: var(--gray-dark); font-size: 1.1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 800; color: var(--primary); margin-bottom: .6rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--gray-light); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 16px; background: var(--primary-light); color: var(--primary);
}
.card.link-card { display: block; color: inherit; }
.card.link-card:hover { text-decoration: none; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--gray-dark); margin: 0; }
.card .more { display: inline-block; margin-top: 14px; color: var(--primary); font-weight: 700; }

.icon-green { background: #E4F5EC !important; color: var(--green) !important; }
.icon-orange { background: #FDEEDB !important; color: var(--orange) !important; }
.icon-yellow { background: #FDF3D8 !important; color: #C79418 !important; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 8px; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--gray-dark); margin: 0; }

/* ---------- Timeline (key dates) ---------- */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--gray-light); }
.tl-item { position: relative; padding: 0 0 28px 26px; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 3px solid var(--primary);
}
.tl-item.done::before { background: var(--primary); }
.tl-date { font-weight: 800; color: var(--primary); font-size: .95rem; }
.tl-item h4 { margin: 2px 0 4px; }
.tl-item p { color: var(--gray-dark); margin: 0; }

/* ---------- Guidance detail blocks ---------- */
.info-block { padding: 34px 0; border-bottom: 1px solid var(--gray-light); }
.info-block:last-child { border-bottom: 0; }
.info-block h2 { margin-bottom: 10px; }
.info-block ul { color: var(--gray-dark); padding-left: 20px; }
.info-block li { margin-bottom: 8px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--gray-light); border-radius: var(--radius-sm);
  padding: 4px 20px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--primary); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--gray-dark); padding-bottom: 16px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--header-dark); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 50ch; margin: 0 auto 1.8rem; font-size: 1.1rem; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.split li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--gray-dark); }
.split li .tick { color: var(--green); font-weight: 800; flex: none; }
.mock {
  background: #fff; border: 1px solid var(--gray-light); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 22px;
}
.mock .q-meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--gray); margin-bottom: 12px; }
.mock .q { font-weight: 700; font-size: 1.1rem; margin-bottom: 16px; }
.mock .opt { border: 1px solid var(--gray-light); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; font-weight: 600; }
.mock .opt.correct { border-color: var(--green); background: #EAF7F0; color: var(--green-dark); }
.mock .bar { height: 8px; background: var(--gray-light); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.mock .bar span { display: block; height: 100%; width: 68%; background: linear-gradient(90deg, var(--grad-start), var(--grad-end)); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
.footer-note { max-width: 60ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.55); }
.disclaimer { background: rgba(255,255,255,.05); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 32px; font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .split .mock { order: -1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--gray-light);
    padding: 12px 24px 18px; box-shadow: var(--shadow);
  }
  .nav-links.open li { width: 100%; padding: 8px 0; }
  .nav > .btn-primary { display: none; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .hero .container { padding-top: 56px; padding-bottom: 64px; }
}
