/* GoalForge — frontend.css | Swiss-minimal | Syne + DM Sans */

/* ── TOKENS ── */
:root {
  --bg:          #ffffff;
  --bg-2:        #f9fafb;
  --bg-accent:   #f0fdf4;
  --text:        #111111;
  --text-2:      #6b7280;
  --text-3:      #9ca3af;
  --accent:      #16a34a;
  --accent-dark: #15803d;
  --accent-lt:   #dcfce7;
  --border:      #e5e7eb;
  --border-2:    #d1d5db;
  --radius:      6px;
  --container:   1200px;
  --nav-h:       72px;
  --font-head:   'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; border-radius: var(--radius); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── LAYOUT ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 96px 0; }
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; color: var(--text); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  padding: 14px 28px; border-radius: var(--radius);
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--text);
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  padding: 14px 28px; border-radius: var(--radius);
  border: 1.5px solid var(--border-2);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── IMAGE PLACEHOLDER ── */
.img-placeholder {
  background: var(--bg-2); border: 2px dashed var(--border-2);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 10px; padding: 32px;
  min-height: 320px; color: var(--text-3); font-size: 0.8rem; line-height: 1.6;
}
.img-placeholder svg { width: 28px; height: 28px; stroke: var(--border-2); flex-shrink: 0; }
.img-placeholder em { font-style: normal; font-size: 0.72rem; color: var(--border-2); }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 16px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
#cookie-banner.hidden { display: none; }
.cookie-text { flex: 1; font-size: 0.875rem; color: var(--text-2); min-width: 200px; }
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-btns button {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  padding: 8px 18px; border-radius: var(--radius);
  border: 1.5px solid var(--border-2); background: var(--bg); color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}
.cookie-btns button:hover { border-color: var(--accent); color: var(--accent); }
#btn-accept { background: var(--accent); border-color: var(--accent); color: #fff; }
#btn-accept:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); background: rgba(255,255,255,0.95);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(8px);
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.nav-logo { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; color: var(--text); flex-shrink: 0; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── MOBILE MENU ── */
.mob-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mob-menu.open { transform: none; }
.mob-menu a { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; color: var(--text); transition: color 0.2s; }
.mob-menu a:hover, .mob-menu a.btn-primary { color: var(--accent); }
.mob-menu a.btn-primary { background: var(--accent); color: #fff; font-size: 1.1rem; padding: 14px 36px; border-radius: var(--radius); }
.mob-close { position: absolute; top: 20px; right: 24px; font-size: 1.5rem; color: var(--text-2); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }

/* ── HERO ── */
#hero { min-height: calc(100vh - var(--nav-h)); margin-top: var(--nav-h); border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.hero-inner {
  max-width: var(--container); margin: 0 auto; padding: 80px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  width: 100%;
}
.h1-line { display: block; font-family: var(--font-head); font-size: clamp(3rem, 6.5vw, 6rem); font-weight: 800; line-height: 1.0; color: var(--text); }
.h1-accent { display: block; font-family: var(--font-head); font-size: clamp(3rem, 6.5vw, 6rem); font-weight: 800; line-height: 1.05; color: var(--accent); }
.hero-sub { margin-top: 28px; font-size: 1.1rem; color: var(--text-2); max-width: 460px; line-height: 1.8; }
.hero-btns { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-img .img-placeholder { min-height: 480px; }
.hero-img img { width: 100%; min-height: 480px; object-fit: cover; border-radius: var(--radius); display: block; }

/* ── PILLARS ── */
#pillars { padding: 0; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.pillars-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--border); gap: 1px;
}
.pillar { background: var(--bg-2); padding: 36px 28px; transition: background 0.2s; }
.pillar:hover { background: var(--bg-accent); }
.pillar-key { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.pillar-label { font-size: 0.875rem; color: var(--text-2); line-height: 1.5; }

/* ── HOW IT WORKS ── */
#how { padding: 96px 0; border-bottom: 1px solid var(--border); }
.how-header { margin-bottom: 72px; }
.how-header h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-top: 6px; }

.how-step {
  display: grid; grid-template-columns: 60px 1fr; gap: 0 40px;
}
.step-marker { display: flex; flex-direction: column; align-items: center; padding-top: 6px; }
.step-dot {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--border-2); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 800; color: var(--text-3);
  flex-shrink: 0; z-index: 2; position: relative;
  transition: background 0.45s, border-color 0.45s, color 0.45s;
}
.how-step.active .step-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-line { width: 2px; flex: 1; min-height: 32px; background: var(--border); margin: 0 auto; transition: background 0.45s; }
.how-step.active .step-line { background: var(--accent-lt); }
.how-step:last-child .step-line { display: none; }

.step-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; padding-bottom: 72px;
}
.step-text h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.step-text p { color: var(--text-2); line-height: 1.8; font-size: 1rem; }
.step-body .img-placeholder { min-height: 260px; }
.step-body img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); display: block; }

/* ── CTA FORM ── */
#cta-sec { padding: 96px 0; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.cta-left h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 800; margin-top: 8px; margin-bottom: 16px; }
.cta-left p { color: var(--text-2); line-height: 1.8; margin-bottom: 28px; font-size: 1rem; }
.cta-bullets { display: flex; flex-direction: column; gap: 10px; }
.cta-bullets li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-2); }
.cta-bullets li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.form-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.form-title { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.form-sub { font-size: 0.875rem; color: var(--text-2); margin-bottom: 28px; line-height: 1.5; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.9rem; color: var(--text);
  background: var(--bg); outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group.has-error input, .form-group.has-error select { border-color: #ef4444; }
.form-error { font-size: 0.78rem; color: #ef4444; margin-top: 4px; min-height: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; }
.form-check input { margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.form-check label { font-size: 0.8rem; color: var(--text-2); line-height: 1.5; }
.form-check a { color: var(--accent); text-decoration: underline; }
.check-error { font-size: 0.78rem; color: #ef4444; margin-top: -12px; margin-bottom: 14px; display: none; }
.form-submit {
  width: 100%; padding: 14px; background: var(--accent); color: #fff;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  border-radius: var(--radius); transition: background 0.2s;
}
.form-submit:hover { background: var(--accent-dark); }

/* ── FAQ ── */
#faq { padding: 96px 0; }
.faq-header { margin-bottom: 56px; }
.faq-header h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-top: 6px; }
.faq-list { max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  color: var(--text); text-align: left; transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-icon { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-item.open .faq-q { color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding-bottom: 20px; font-size: 0.95rem; color: var(--text-2); line-height: 1.8; }
.faq-a-inner a { color: var(--accent); text-decoration: underline; }

/* ── FLOATING CTA ── */
.float-cta {
  position: fixed; right: 28px; z-index: 80;
  bottom: 80px;
  transform: translateY(10px); opacity: 0; pointer-events: none;
  transition: opacity 0.35s, transform 0.35s, bottom 0.35s;
}
.float-cta.visible { opacity: 1; transform: none; pointer-events: auto; }
.float-cta .btn-primary { box-shadow: 0 4px 20px rgba(22,163,74,0.25); }

/* ── FOOTER ── */
footer { background: var(--text); color: #fff; padding: 64px 0 32px; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 32px;
}
.footer-brand .nav-logo { color: #fff; display: block; margin-bottom: 14px; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.75; max-width: 300px; }
.footer-col h4 { font-family: var(--font-head); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-co { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-co a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-co a:hover { color: #fff; }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* ── MODALS ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.45);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--bg); border-radius: var(--radius) var(--radius) 0 0;
  padding: 40px 32px 48px; max-width: 600px; width: 100%;
  max-height: 80vh; overflow-y: auto; position: relative;
  transform: translateY(16px); transition: transform 0.3s;
}
.modal-overlay.open .modal-box { transform: none; }
.modal-close { position: absolute; top: 16px; right: 20px; font-size: 1.25rem; color: var(--text-2); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; transition: color 0.2s; }
.modal-close:hover { color: var(--text); }
.modal-box h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 16px; }
.modal-box p { font-size: 0.875rem; color: var(--text-2); margin-bottom: 12px; line-height: 1.7; }
.modal-box a { color: var(--accent); text-decoration: underline; }
.cookie-pref-list { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.cookie-pref-item { display: flex; gap: 12px; align-items: flex-start; }
.cookie-pref-item input { margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.cookie-pref-item label { font-size: 0.875rem; font-weight: 600; }
.cookie-pref-item span { display: block; font-size: 0.8rem; color: var(--text-2); margin-top: 2px; font-weight: 400; }
.modal-save-btn { width: 100%; padding: 12px; background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 700; border-radius: var(--radius); margin-top: 8px; transition: background 0.2s; }
.modal-save-btn:hover { background: var(--accent-dark); }

/* ── ANIMATIONS ── */
.anim { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.anim.vis { opacity: 1; transform: none; }

/* ── LEGAL PAGES ── */
.legal-hero { margin-top: var(--nav-h); padding: 64px 0 48px; border-bottom: 1px solid var(--border); }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; margin-top: 8px; }
.legal-updated { font-size: 0.875rem; color: var(--text-2); margin-top: 12px; }
.legal-body { padding: 64px 0; }
.legal-body h2 { font-size: 1.2rem; font-weight: 800; margin: 40px 0 12px; padding-top: 8px; border-top: 1px solid var(--border); }
.legal-body h3 { font-size: 0.95rem; font-weight: 700; margin: 20px 0 8px; }
.legal-body p { font-size: 0.95rem; color: var(--text-2); line-height: 1.8; margin-bottom: 14px; }
.legal-body ul { margin: 0 0 14px 20px; list-style: disc; }
.legal-body ul li { font-size: 0.95rem; color: var(--text-2); line-height: 1.75; margin-bottom: 6px; }
.legal-body a { color: var(--accent); text-decoration: underline; }
.subpage-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 32px 0; }
.subpage-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.subpage-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.subpage-footer-links a { font-size: 0.85rem; color: var(--text-2); transition: color 0.2s; }
.subpage-footer-links a:hover { color: var(--accent); }
.subpage-footer-copy { font-size: 0.8rem; color: var(--text-3); }

/* ── THANK YOU ── */
.thankyou-sec { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; margin-top: var(--nav-h); }
.thankyou-inner { max-width: 480px; }
.thankyou-check { width: 64px; height: 64px; background: var(--bg-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 28px; font-size: 1.75rem; }
.thankyou-inner h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }
.thankyou-inner p { color: var(--text-2); font-size: 1.05rem; line-height: 1.8; margin-bottom: 32px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  #hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px; }
  .hero-img { display: none; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .how-step { grid-template-columns: 40px 1fr; gap: 0 20px; }
  .step-body { grid-template-columns: 1fr; gap: 24px; }
  .step-dot { width: 36px; height: 36px; font-size: 0.75rem; }
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .float-cta { right: 16px; bottom: 80px; }
  .float-cta .btn-primary { font-size: 0.85rem; padding: 11px 18px; }
}
@media (max-width: 480px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-btns a { justify-content: center; }
  .form-card { padding: 24px 20px; }
  .section-pad { padding: 64px 0; }
  #how, #cta-sec, #faq { padding: 64px 0; }
}
