/* gifts.timebank.tw — WSI/CES Design System — Gate 2A Pilot */
/* Derived from maf-tier-a pattern (agents/cc/control/maf-tier-a) */
:root {
  --wsi-900: #1e3a8a; --wsi-800: #1e40af; --wsi-700: #1d4ed8;
  --wsi-grad: linear-gradient(to right, #1e3a8a, #1e40af, #1d4ed8);
  --max: 1120px; --pad: 20px; --radius: 8px;
  --bg: #f8fafc; --text: #0f172a; --muted: #64748b;
  --border: #e2e8f0; --surface: #ffffff;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
a { color: var(--wsi-700); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
nav { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.wsi-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--wsi-900); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #fff; flex-shrink: 0; }
.brand-text { line-height: 1.2; min-width: 0; }
.brand-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--wsi-900); }
.brand-text span { font-size: 11px; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--muted); padding: 6px 10px; border-radius: 6px; }
.nav-links a:hover, .nav-links a.active { color: var(--wsi-700); background: #eff6ff; text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-select { min-height: 36px; border: 1px solid #bfdbfe; border-radius: 6px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 600; padding: 4px 8px; cursor: pointer; }
.sign-in-pending { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: #94a3b8; font-size: 12px; font-weight: 600; cursor: default; white-space: nowrap; user-select: none; }
.hamburger { display: none; background: none; border: none; padding: 8px; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-menu { display: none; background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px var(--pad); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; font-size: 14px; font-weight: 500; color: var(--text); padding: 10px 0; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu-divider { border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.mobile-sign-in { display: block; font-size: 13px; color: #94a3b8; padding: 8px 0; font-weight: 500; }
/* Skip link */
.skip-link { position: absolute; left: 16px; top: 8px; z-index: 50; background: var(--wsi-900); color: #fff; padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 600; transform: translateY(-130%); transition: transform .2s; text-decoration: none; }
.skip-link:focus { transform: translateY(0); outline: 3px solid var(--wsi-700); outline-offset: 2px; }

/* HERO */
.hero { background: var(--wsi-grad); color: #fff; padding: 64px var(--pad) 56px; }
.hero-inner { max-width: var(--max); margin: 0 auto; }
.hero-tag { display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 20px; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; padding: 4px 12px; margin-bottom: 20px; color: #dbeafe; }
.hero h1 { font-size: clamp(24px, 5vw, 42px); font-weight: 800; line-height: 1.15; margin-bottom: 16px; color: #fff; }
.hero p { font-size: 16px; color: #bfdbfe; max-width: 640px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn-primary { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 22px; border-radius: var(--radius); background: #fff; color: var(--wsi-900); font-size: 14px; font-weight: 700; text-decoration: none; }
.btn-primary:hover { background: #f1f5f9; text-decoration: none; }
.btn-outline { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 22px; border-radius: var(--radius); background: rgba(255,255,255,.1); color: #fff; font-size: 14px; font-weight: 700; border: 1px solid rgba(255,255,255,.35); text-decoration: none; }
.btn-outline:hover { background: rgba(255,255,255,.18); text-decoration: none; }

/* SECTIONS */
.section { padding: 52px var(--pad); }
.section + .section { padding-top: 0; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-inner.narrow { max-width: 760px; }
.section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--wsi-700); margin-bottom: 10px; }
.section h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 800; color: var(--wsi-900); margin-bottom: 14px; }
.section h3 { font-size: 16px; font-weight: 700; color: var(--wsi-900); margin-bottom: 8px; margin-top: 28px; }
.section p { font-size: 15px; color: #334155; line-height: 1.75; margin-bottom: 14px; }
.section ul { font-size: 15px; color: #334155; line-height: 1.75; padding-left: 20px; margin-bottom: 14px; }
.section ul li { margin-bottom: 6px; }
.section p:last-child, .section ul:last-child { margin-bottom: 0; }

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 15px; font-weight: 700; color: var(--wsi-900); margin: 0; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0; flex: 1; }
.card a.card-cta { font-size: 13px; font-weight: 600; color: var(--wsi-700); display: inline-flex; align-items: center; gap: 4px; margin-top: auto; }
.card a.card-cta:hover { text-decoration: underline; }
.tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tag-draft { background: #fef9c3; color: #78350f; }
.tag-pending { background: #fff7ed; color: #92400e; }
.tag-public { background: #ecfdf5; color: #065f46; }

/* NOTICE BOXES */
.partner-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius); padding: 24px 28px; margin-top: 32px; }
.partner-box h3 { font-size: 14px; font-weight: 700; color: var(--wsi-800); margin-bottom: 8px; }
.partner-box p { font-size: 14px; color: #1e3a8a; line-height: 1.7; margin-bottom: 0; }
.notice-box { border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.notice-warn { background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; }
.notice-warn h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #78350f; margin-bottom: 8px; }
.notice-warn p { font-size: 14px; color: #92400e; line-height: 1.65; margin-bottom: 0; }
.notice-stop { background: #fef2f2; border: 1px solid #fecaca; border-left: 4px solid #dc2626; }
.notice-stop h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #7f1d1d; margin-bottom: 8px; }
.notice-stop p { font-size: 14px; color: #991b1b; line-height: 1.65; margin-bottom: 0; }
.ip-notice { background: #f8fafc; border: 1px solid var(--border); border-left: 4px solid var(--wsi-700); border-radius: var(--radius); padding: 20px 24px; margin-top: 36px; }
.ip-notice h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--wsi-700); margin-bottom: 10px; }
.ip-notice p { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 6px; }
.ip-notice p:last-child { margin-bottom: 0; }

/* INTEREST FORM (static display) */
.form-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-top: 28px; }
.form-section h3 { font-size: 15px; font-weight: 700; color: var(--wsi-900); margin-bottom: 16px; }
.field-group { margin-bottom: 18px; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.field-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field-placeholder { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 10px 14px; font-size: 14px; color: #94a3b8; width: 100%; }
.field-placeholder-area { min-height: 80px; }

/* FOOTER */
footer { background: var(--wsi-900); color: #bfdbfe; padding: 32px var(--pad); margin-top: auto; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.footer-inner a { color: #93c5fd; }
.footer-inner a:hover { text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 44px var(--pad) 40px; }
  .section { padding: 40px var(--pad); }
}
@media (max-width: 390px) {
  .hero h1 { font-size: 22px; }
  .nav-inner { height: 56px; }
  .hero-actions { flex-direction: column; }
}
@media (max-width: 768px) {
  .lang-select { max-width: 100px; }
  .sign-in-pending { display: none; }
}
