/* ══════════════════════════════════════════════════════════════
   12Tile — Marketing site (landing + download pages)
   ------------------------------------------------------------
   Shares design tokens (colors/fonts) with the dashboard's
   css/style.css so the two feel like one product, but this
   stylesheet is its own file because the marketing pages scroll
   (dashboard is a fixed-height app shell) and use a different
   layout (hero, feature cards) instead of sidebar+content.
   Fonts are loaded from ../dashboard/fonts/ — same files, no
   duplication. See ../dashboard/fonts/README.md to swap them.
   ══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'AppThai';
  src: url('../dashboard/fonts/AppThai-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'AppThai';
  src: url('../dashboard/fonts/AppThai-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'AppEnglish';
  src: url('../dashboard/fonts/AppEnglish-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'AppEnglish';
  src: url('../dashboard/fonts/AppEnglish-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --font-ui: 'AppEnglish', 'AppThai', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ui-th: 'AppThai', 'AppEnglish', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --bg:    #f1f5f9;
  --sur:   #ffffff;
  --sur2:  #f8fafc;
  --bdr:   #e2e8f0;
  --bdr2:  #cbd5e1;
  --acc:   #2563eb;
  --acc2:  #1d4ed8;
  --acc-l: #eff6ff;
  --grn:   #16a34a; --grn-l: #f0fdf4;
  --pur:   #7c3aed; --pur-l: #f5f3ff;
  --cyn:   #0891b2; --cyn-l: #ecfeff;
  --txt:   #0f172a; --sec: #475569; --muted: #94a3b8; --dim: #cbd5e1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui-th);
  font-size: 16px; line-height: 1.6;
  color: var(--txt);
  background:
    radial-gradient(1100px 560px at 12% -10%, #dbeafe 0%, rgba(219,234,254,0) 60%),
    radial-gradient(900px 520px at 110% 10%, #ede9fe 0%, rgba(237,233,254,0) 60%),
    var(--bg);
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.font-en { font-family: var(--font-ui); }

/* ── SHELL ── */
.site-header {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 6vw; max-width: 1180px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand img { height: 34px; width: auto; }
.site-header nav { margin-left: auto; display: flex; gap: 6px; }
.site-header nav a {
  font-size: 15px; font-weight: 600; color: var(--sec);
  padding: 8px 14px; border-radius: 8px; transition: background .15s, color .15s;
}
.site-header nav a:hover { background: var(--sur); color: var(--txt); }
.home-logo {width: 500px; display: block; margin: 0 auto;}
main { max-width: 1180px; margin: 0 auto; padding: 0 6vw 80px; }

/* ── HERO ── */
.hero { padding: 64px 0 20px; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .4px;
  color: var(--acc); background: var(--acc-l); border: 1px solid #bfdbfe;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-ui);
  font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -.5px;
  line-height: 1.15; margin-bottom: 18px;
}
.hero p.lead {
  font-size: clamp(16px, 2vw, 19px); color: var(--sec);
  max-width: 640px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 12px; cursor: pointer;
  font-size: 16px; font-weight: 700; font-family: inherit;
  border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-p { background: var(--acc); color: #fff; box-shadow: 0 8px 24px rgba(37,99,235,.28); }
.btn-p:hover { background: var(--acc2); box-shadow: 0 10px 28px rgba(37,99,235,.36); }
.btn-s { background: var(--sur); color: var(--txt); border-color: var(--bdr); }
.btn-s:hover { border-color: var(--bdr2); box-shadow: 0 6px 20px rgba(15,23,42,.08); }
.btn .ic { width: 18px; height: 18px; flex-shrink: 0; }

/* ── ENTRY CARDS (dashboard / download) ── */
.entry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 56px; }
.entry-card {
  background: var(--sur); border: 1px solid var(--bdr); border-radius: 20px;
  padding: 32px; text-align: left; display: flex; flex-direction: column; gap: 14px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.entry-card:hover { transform: translateY(-3px); border-color: #bfdbfe; box-shadow: 0 16px 40px rgba(15,23,42,.10); }
.entry-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.entry-icon.blue { background: var(--acc-l); color: var(--acc); }
.entry-icon.purple { background: var(--pur-l); color: var(--pur); }
.entry-icon svg { width: 26px; height: 26px; }
.entry-card h3 { font-size: 20px; font-weight: 700; }
.entry-card p { font-size: 15px; color: var(--sec); flex: 1; }
.entry-card .go { font-size: 15px; font-weight: 700; color: var(--acc); display: inline-flex; align-items: center; gap: 6px; }
.entry-card .go svg { width: 16px; height: 16px; transition: transform .15s; }
.entry-card:hover .go svg { transform: translateX(3px); }

/* ── FEATURE STRIP ── */
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; }
.feature-card { background: var(--sur2); border: 1px solid var(--bdr); border-radius: 16px; padding: 22px; }
.feature-card img { height: 40px; width: auto; margin-bottom: 14px; }
.feature-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--sec); }

/* ── FOOTER ── */
.site-footer {
  max-width: 1180px; margin: 0 auto; padding: 28px 6vw 40px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--bdr); color: var(--muted); font-size: 14px; gap: 12px; flex-wrap: wrap;
}

/* ── DOWNLOAD PAGE ── */
.dl-back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--sec); margin-bottom: 28px; }
.dl-back:hover { color: var(--txt); }
.dl-back svg { width: 16px; height: 16px; }
.dl-card {
  background: var(--sur); border: 1px solid var(--bdr); border-radius: 20px;
  padding: 40px; max-width: 620px; margin: 0 auto;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.dl-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.dl-card-head img { height: 52px; width: auto; }
.dl-card-head h2 { font-size: 22px; font-weight: 700; }
.dl-card-head .sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.dl-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 28px; }
.dl-meta-item { background: var(--sur2); border: 1px solid var(--bdr); border-radius: 10px; padding: 10px 12px; }
.dl-meta-item .k { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.dl-meta-item .v { font-size: 15px; font-weight: 700; }
.dl-steps { margin: 24px 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dl-steps li { display: flex; gap: 10px; font-size: 15px; color: var(--sec); }
.dl-steps li .n {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--acc-l); color: var(--acc); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.dl-empty { text-align: center; padding: 20px 0; color: var(--sec); }
.dl-empty .ic { width: 34px; height: 34px; color: var(--muted); margin: 0 auto 12px; }
.dl-note { font-size: 13px; color: var(--muted); margin-top: 18px; text-align: center; }

@media (max-width: 760px) {
  .entry-grid, .feature-strip, .dl-meta { grid-template-columns: 1fr; }
  .site-header nav { display: none; }
}
