:root {
  --brand: #6366f1;
  --brand-dark: #4f46e5;
  --brand-light: #e0e7ff;
  --bg: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

main {
  flex: 1;
}

/* Home page */
.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 24px;
  gap: 36px;
}

.brand-link {
  display: inline-block;
  text-decoration: none;
}
.brand-link:hover { text-decoration: none; }

.brand {
  display: block;
  font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 76px;
  line-height: 1;
  color: #818cf8;
  letter-spacing: -1px;
}

.logo-link {
  display: inline-block;
}

.logo {
  height: 56px;
  width: auto;
  display: block;
}

.search {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.search input[type="text"] {
  width: 100%;
  padding: 12px 18px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  outline: none;
  box-shadow: var(--shadow);
  transition: box-shadow .15s ease, border-color .15s ease;
  font-family: inherit;
}

.search input[type="text"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18), var(--shadow);
}

.smart-search-btn {
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.smart-search-btn:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.smart-search-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

/* Sub-page (about/privacy/faq/tos/for-advertisers) */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 28px;
}

.page-header .logo { height: 44px; }

.page h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 22px;
  letter-spacing: -0.5px;
}

.page h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 10px;
}

.page p,
.page li {
  color: #334155;
  line-height: 1.7;
  font-size: 15px;
}

.page p {
  margin: 0 0 14px;
}

.page ol, .page ul {
  padding-left: 22px;
  margin: 0 0 14px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 16px 18px;
  margin: 0 0 12px;
}

.faq-item .q {
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}

.faq-item .a {
  color: #475569;
  margin: 0;
  line-height: 1.65;
  font-size: 14.5px;
}

/* Footer (same on every page) */
footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  padding: 18px 16px;
}

footer nav {
  max-width: 760px;
  margin: 0 auto 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

footer nav a {
  color: var(--muted);
  font-size: 14px;
}
footer nav a:hover { color: var(--ink); text-decoration: none; }

footer p {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}

@media (max-width: 480px) {
  .brand { font-size: 56px; letter-spacing: -0.5px; }
  .logo { height: 44px; }
  .search input[type="text"] { font-size: 14px; padding: 11px 16px; }
  .smart-search-btn { padding: 8px 16px; font-size: 13px; }
  footer nav { gap: 12px; }
}
