/* web.sitedee.com builder – app chrome.
   Design tokens follow the main sitedee.com site (assets/css/de-main-sitedee.css):
   Kanit at light weight, black fixed navbar with the logo flush-left, navy
   #114488 headings; the 2025 logo blue #0041d7 for calls to action. */
:root {
  --brand: #0041d7;
  --brand-dark: #0033a8;
  --brand-soft: #e8eefc;
  --navy: #114488;
  --ink: #222;
  --muted: #7d868f;
  --line: #e4e9ed;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --nav: #0e0d0d;
  --danger: #e05252;
  --ok: #2fb56b;
  --nav-h: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Kanit', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px; font-weight: 200; line-height: 1.5;
  padding-top: var(--nav-h);
}
a { color: var(--brand); text-decoration: none; }
b, strong { font-weight: 400; }
h1, h2, h3 { font-weight: 300; color: var(--navy); margin: 0 0 12px; }

/* ---------- navbar (sitedee.com: navbar-inverse, fixed top) ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100;
  background: var(--nav); box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.navbar-inner {
  max-width: 1170px; margin: 0 auto; height: 100%; padding: 0 16px 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
/* The logo SVG carries its own blue box, so it sits flush in the bar:
   no white panel, full bar height (3:1 logo -> 192px wide at 64px). */
.brand { display: flex; align-items: center; height: 100%; padding: 0; background: transparent; flex: none; }
.brand-logo { height: var(--nav-h); width: auto; display: block; }
.brand-logo-sm { height: 32px; }
.mainnav { display: flex; align-items: center; gap: 4px; }
.mainnav a {
  color: #d8d8d8; padding: 8px 14px; font-size: 14px; font-weight: 300; border-radius: 4px;
  transition: color .15s;
}
.mainnav a:hover, .mainnav a.active { color: #fff; }
.mainnav a.active { border-bottom: 2px solid var(--brand); border-radius: 0; }
.nav-user { color: #9d9d9d; font-size: 13px; padding: 0 8px; }
.nav-cta {
  background: var(--brand) !important; color: #fff !important; border-radius: 30px !important;
  padding: 9px 22px !important; margin-left: 6px; font-weight: 400 !important;
}
.nav-cta:hover { background: var(--brand-dark) !important; }
.nav-cta-ghost { background: transparent !important; border: 1px solid #555; }
.nav-cta-ghost:hover { background: #262626 !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .mainnav {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--nav); flex-direction: column; align-items: stretch; padding: 10px 16px 16px;
  }
  .mainnav a { padding: 12px 8px; border-bottom: 1px solid #222; }
  .nav-cta { margin: 10px 0 0; text-align: center; }
  body.nav-open .mainnav { display: flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer; border-radius: 30px;
  background: var(--brand); color: #fff; padding: 12px 34px; font-size: 15px;
  font-family: inherit; font-weight: 400; transition: background .15s, transform .1s;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 20px; font-size: 13px; }
.btn-lg { padding: 15px 42px; font-size: 17px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: #eef2ff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- layout helpers ---------- */
.page { max-width: 1100px; margin: 0 auto; padding: 40px 20px 80px; }
.page-narrow { max-width: 520px; }
.page-title { text-align: center; font-size: 34px; font-weight: 300; margin: 10px 0 34px; color: var(--navy); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 30px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mt { margin-top: 20px; }

/* ---------- home: hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--brand) 100%); color: #fff; overflow: hidden; }
.hero-inner {
  max-width: 1170px; margin: 0 auto; padding: 70px 20px 60px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center;
}
.hero-kicker { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; opacity: .8; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: 46px; font-weight: 500; line-height: 1.2; margin-bottom: 18px; }
.hero h1 span { font-weight: 200; }
.hero p { font-size: 17px; line-height: 1.7; opacity: .92; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero-note { font-size: 13px; opacity: .8; }
.hero-frame {
  background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35);
  transform: rotate(-1.5deg);
}
.hero-frame-bar { background: #eef1f4; padding: 8px 12px; display: flex; align-items: center; gap: 6px; font-size: 11px; color: #777; }
.hero-frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d3d8de; display: inline-block; }
.hero-frame-bar em { font-style: normal; background: #fff; border-radius: 4px; padding: 2px 10px; margin-left: 8px; flex: 1; }
.hero-frame iframe { width: 1200px; height: 900px; border: 0; transform: scale(.4); transform-origin: 0 0; pointer-events: none; display: block; }
.hero-shot { min-width: 0; overflow: hidden; }
.hero-frame { height: 396px; width: 100%; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 50px 20px 40px; }
  .hero h1 { font-size: 34px; }
  .hero-shot { display: none; }
}

/* ---------- home: sections ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: 1170px; margin: 0 auto; padding: 0 20px; }
.section-title { text-align: center; font-size: 32px; font-weight: 300; margin-bottom: 40px; color: var(--navy); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 30px 26px; position: relative; }
.step-no {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 18px; margin-bottom: 16px;
}
.step-card h3 { font-size: 18px; font-weight: 400; }
.step-card p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.feat { text-align: center; padding: 10px; }
.feat-ic { font-size: 40px; margin-bottom: 10px; }
.feat h3 { font-size: 17px; font-weight: 400; }
.feat p { color: var(--muted); font-size: 14px; margin: 0; }
.cta-band { background: var(--navy); color: #fff; padding: 60px 0; }
.cta-band h2 { color: #fff; font-size: 30px; font-weight: 300; }
.cta-band p { opacity: .85; margin-bottom: 24px; }

/* ---------- forms ---------- */
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field label .req { color: var(--danger); }
.field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=tel], .field select, .field textarea {
  width: 100%; border: none; border-bottom: 1px solid var(--line); background: transparent;
  padding: 8px 2px; font-size: 15px; font-family: inherit; color: var(--ink); outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--brand); }
.field-error { color: var(--danger); font-size: 12px; margin-top: 5px; min-height: 15px; }
.field-ok { color: var(--ok); font-size: 12px; margin-top: 5px; }
.alert { border-radius: 8px; padding: 12px 16px; font-size: 13px; margin-bottom: 20px; }
.alert-error { background: #fdeeee; color: var(--danger); }
.alert-ok { background: #eafaf1; color: #1e7a48; }
.alert-info { background: #fdf3e4; color: #7a5a1e; }

/* ---------- auth page ---------- */
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.auth-tabs a {
  flex: 1; text-align: center; padding: 12px 0; color: var(--muted);
  border-bottom: 2px solid transparent; font-size: 15px;
}
.auth-tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted); font-size: 12px; }
.auth-divider:before, .auth-divider:after { content: ""; flex: 1; height: 1px; background: var(--line); }
.g-wrap { display: flex; justify-content: center; }

/* ---------- slug input ---------- */
.slug-row { display: flex; align-items: baseline; gap: 6px; }
.slug-row .slug-prefix { color: var(--muted); white-space: nowrap; }
.slug-row input { flex: 1; }

/* ---------- verify page ---------- */
.verify-hero { font-size: 84px; margin: 30px 0 10px; }

/* ---------- account – my websites ---------- */
.site-empty {
  border: 2px dashed var(--line); border-radius: 10px; padding: 60px 30px;
  text-align: center; background: #fff;
}
.site-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 26px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.site-thumb {
  width: 180px; height: 120px; border-radius: 6px; background: #eef3f6;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  font-size: 12px; overflow: hidden; border: 1px solid var(--line);
}
.site-thumb img { width: 100%; height: 100%; object-fit: cover; }
.site-meta { flex: 1; min-width: 220px; }
.site-meta h3 { margin: 0 0 6px; font-weight: 400; }
.badge { display: inline-block; border-radius: 20px; padding: 2px 12px; font-size: 11px; vertical-align: middle; font-weight: 300; }
.badge-pub { background: #eafaf1; color: #1e7a48; }
.badge-draft { background: #eef1f4; color: #666; }
.badge-pending { background: #fdf3e4; color: #b07a1e; }
.badge-rej { background: #fdeeee; color: var(--danger); }
.site-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- create flow – steps ---------- */
.steps { display: flex; justify-content: center; gap: 0; margin-bottom: 40px; }
.step { display: flex; align-items: center; color: var(--muted); font-size: 13px; }
.step .dot {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; display: inline-flex; align-items: center; justify-content: center;
  margin-right: 8px; font-size: 13px;
}
.step.active { color: var(--brand); }
.step.active .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.step + .step:before { content: ""; width: 60px; height: 1px; background: var(--line); margin: 0 14px; }

/* ---------- category chips ---------- */
.cat-row { display: flex; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.cat-q { font-size: 22px; font-weight: 300; max-width: 320px; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; max-width: 640px; }
.chip {
  border: 1px solid var(--line); border-radius: 30px; background: #fff;
  padding: 10px 22px; cursor: pointer; font-size: 14px; font-family: inherit;
  color: var(--ink); font-weight: 300; transition: all .12s;
}
.chip:hover { border-color: var(--brand); }
.chip.selected { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.next-fab { position: fixed; right: 30px; bottom: 30px; }

/* ---------- template gallery ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.tpl-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: box-shadow .15s; }
.tpl-card:hover { box-shadow: 0 10px 30px rgba(17,68,136,.12); }
.tpl-shot { position: relative; height: 210px; background: #eef3f6; overflow: hidden; }
.tpl-shot iframe {
  width: 1200px; height: 840px; border: 0; transform: scale(.25);
  transform-origin: 0 0; pointer-events: none;
}
.tpl-free {
  position: absolute; top: 10px; left: 10px; background: #57c94f; color: #fff;
  padding: 3px 14px; border-radius: 4px; font-size: 12px; z-index: 2;
}
.tpl-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; gap: 8px; flex-wrap: wrap; }
.tpl-name { font-size: 14px; }
.tpl-actions { display: flex; gap: 8px; }

/* ---------- preview frame bar ---------- */
.pv-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 54px; background: #262b30;
  color: #fff; display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; z-index: 200; gap: 12px;
}
.pv-bar .pv-title { font-size: 13px; color: #cfd6db; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-frame { position: fixed; top: 54px; left: 0; right: 0; bottom: 0; }
.pv-frame iframe { width: 100%; height: 100%; border: 0; background: #fff; }

/* ---------- footer (sitedee.com-style dark footer) ---------- */
.footer { background: var(--nav); color: #bbb; margin-top: 40px; }
.footer-inner {
  max-width: 1170px; margin: 0 auto; padding: 36px 20px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-logo { height: 34px; margin-bottom: 8px; display: block; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: #d8d8d8; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-copy { border-top: 1px solid #222; text-align: center; font-size: 11px; color: #777; padding: 14px 20px 18px; }
