:root {
  --ink: #1b1328;
  --muted: #6a6375;
  --paper: #fbf7f1;
  --card: #ffffff;
  --line: #eadfce;
  --purple: #7a2fc0;
  --purple-deep: #471e9e;
  --yellow: #fff4a3;
  --gold: #d89a3a;
  --cyan: #6ad4f0;
  --orange: #f3b64a;
  --shadow: 0 18px 40px rgba(28, 20, 40, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-deep); }
a:hover { color: var(--purple); }

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 241, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.top-bar {
  background: #17111f;
  color: #f4eefc;
  font-size: 0.85rem;
}

.top-bar-inner,
.nav-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-bar-inner { min-height: 36px; }
.top-bar-note { opacity: 0.8; }

.x-link {
  color: #fff;
  display: inline-flex;
  padding: 6px;
}

.nav-inner { min-height: 68px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.site-nav {
  display: flex;
  gap: 6px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
}

.site-nav a.is-active,
.site-nav a:hover {
  background: var(--yellow);
  color: var(--purple-deep);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
}

main { flex: 1; }

.banner img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article {
  padding: 48px 0 72px;
}

.article h1,
.product-hero h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 16px;
}

.meta, .eyebrow, .author {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.lede {
  font-size: 1.2rem;
  color: #3d3548;
}

.wordmark-shot {
  max-width: 420px;
  background: var(--yellow);
  border-radius: 24px;
  padding: 12px;
}

.badge-link { display: inline-block; margin: 8px 0 24px; }
.badge-link img { height: 54px; width: auto; }

.phone-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

.phone {
  margin: 0;
  width: min(260px, 100%);
  background: #111;
  border-radius: 32px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.phone img {
  border-radius: 22px;
  width: 100%;
}

.more-apps {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 48px 0 64px;
}

.more-apps h2,
.privacy-band h2 {
  font-family: Fraunces, Georgia, serif;
  margin-top: 0;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.app-card {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
}

.app-card img { border-radius: 16px; }
.app-card h3 { margin: 0 0 6px; }
.app-card p { margin: 0; color: var(--muted); }

.product-hero { padding: 56px 0 24px; }
.product-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.feature-list,
.privacy-list {
  padding-left: 1.1rem;
}

.feature-list li + li,
.privacy-list li + li { margin-top: 6px; }

.hero-mark {
  max-width: 380px;
  margin-inline: auto;
  border-radius: 28px;
  background: #fff;
  padding: 12px;
  box-shadow: var(--shadow);
}

.dayearns-hero { background: linear-gradient(180deg, #fff7b8 0%, var(--paper) 80%); }
.laisuat-hero { background: linear-gradient(180deg, #fff 0%, var(--paper) 80%); }
.phien-hero { background: linear-gradient(180deg, #ffe7a8 0%, var(--paper) 85%); }

.privacy-band {
  background: #17111f;
  color: #f7f1e8;
  padding: 40px 0;
}

.privacy-band h2 { color: var(--gold); }
.privacy-list { font-size: 1.1rem; }

.contact-page { max-width: 640px; }
.contact-meta { color: var(--muted); }

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d8cfc0;
  background: #fffcf7;
}

.contact-form button {
  justify-self: start;
  background: var(--purple);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.contact-form button:hover { background: var(--purple-deep); }
.req { color: var(--muted); font-weight: 500; }
.error { color: #b42318; font-size: 0.9rem; font-weight: 500; }
.flash.success {
  background: #e8f8ee;
  border: 1px solid #b7e4c7;
  padding: 12px 16px;
  border-radius: 12px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links a { text-decoration: none; }

@media (max-width: 800px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    right: 16px;
    top: 108px;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    min-width: 180px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
