/* Dunky landing pages — shared theme.
   Tokens and component treatments mirror the dashboard design system in
   openclaw-dashboard/src/views/partials/head.ejs. If you change one, change both. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F5F1EA;
  --bg-secondary: #EDE7DC;
  --surface: #FFFFFF;
  --fg: #111111;
  --accent: #8B6FD8;
  --accent-light: #C4B0F0;
  --yellow: #F5C64F;
  --text-secondary: #6B675F;
  --rule-light: #E3DCD0;
  --line: #111111;
  --tag-bg: #E9E1F8;
  --danger: #DC2626;
  --hard-shadow: 3px 3px 0 #111111;
  --hard-shadow-sm: 2px 2px 0 #111111;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Archivo', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
nav {
  padding: 20px 0;
}
nav .container,
nav .nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Archivo', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-signin {
  color: var(--fg);
  text-decoration: none;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border: 2px solid transparent;
  border-radius: 999px;
  transition: border-color 0.1s;
}
.nav-signin:hover { border-color: var(--line); }

/* Buttons — yellow pill with hard shadow and press-down hover */
.nav-cta,
.hero-cta {
  display: inline-block;
  background: var(--yellow);
  color: var(--fg);
  border: 2px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: var(--hard-shadow-sm);
  transition: transform 0.1s, box-shadow 0.1s;
}
.nav-cta {
  padding: 8px 20px;
  font-size: 12px;
}
.hero-cta {
  padding: 12px 32px;
  font-size: 14px;
}
.nav-cta:hover,
.hero-cta:hover {
  background: var(--yellow);
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #111;
}
.hero-cta:disabled { opacity: 0.6; transform: none; box-shadow: var(--hard-shadow-sm); }

/* Login modal */
.login-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.35);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.login-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--hard-shadow);
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}
.login-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.login-card p { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; }
.login-card input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 12px;
  font-family: inherit;
  background: var(--surface);
  color: var(--fg);
  transition: box-shadow 0.1s;
}
.login-card input:focus { outline: none; box-shadow: var(--hard-shadow-sm); }
.login-card button {
  width: 100%;
  padding: 11px;
  background: var(--yellow);
  color: var(--fg);
  border: 2px solid var(--line);
  border-radius: 999px;
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: var(--hard-shadow-sm);
  transition: transform 0.1s, box-shadow 0.1s;
}
.login-card button:hover { background: var(--yellow); transform: translate(1px, 1px); box-shadow: 1px 1px 0 #111; }
.login-card .login-msg { font-size: 13px; margin-top: 12px; color: var(--accent); font-weight: 600; }

/* Hero — side by side */
.hero {
  padding: 48px 0 56px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 24px;
  align-items: center;
}
.hero-header {
  grid-column: 1 / -1;
}
.hero-header h1 {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 16px;
}
.hero-header h1 span { color: var(--accent); }
.hero-header .subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}
.hero-benefits {
  list-style: none;
  margin-bottom: 28px;
}
.hero-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--fg);
}
.hero-benefits li .check {
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  flex-shrink: 0;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-price {
  font-size: 14px;
  color: var(--text-secondary);
}
.hero-price strong { color: var(--fg); }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-mascot {
  width: 100%;
  max-width: 380px;
  height: auto;
  border: 2px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--hard-shadow);
  background: var(--accent-light);
}

/* Integration strip */
.integration-strip {
  padding: 40px 0;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: var(--bg-secondary);
}
.integration-strip p {
  text-align: center;
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--fg);
  margin-bottom: 20px;
}
.integration-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.integration-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  box-shadow: var(--hard-shadow-sm);
}
.integration-pill img {
  width: 18px;
  height: 18px;
}
.integration-pill span { font-size: 16px; }

/* Features */
.features {
  padding: 64px 0;
}
.features h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 40px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--hard-shadow-sm);
  padding: 24px;
  text-align: center;
  transition: transform 0.1s, box-shadow 0.1s;
}
.feature-card:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #111;
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--tag-bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 12px;
}
.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

/* CTA */
.cta-section {
  padding: 64px 0;
  text-align: center;
}
.cta-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--hard-shadow);
  padding: 48px 32px;
}
.cta-section h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}
.cta-section p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 24px;
}
.cta-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Signup form */
.signup-form {
  margin-top: 4px;
}
.signup-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.signup-row-center {
  justify-content: center;
}
.signup-form input[type="email"] {
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-family: inherit;
  width: 100%;
  max-width: 260px;
  outline: none;
  background: var(--surface);
  color: var(--fg);
  transition: box-shadow 0.1s;
}
.signup-form input[type="email"]:focus {
  box-shadow: var(--hard-shadow-sm);
}
.signup-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 8px;
  font-weight: 600;
}
.hero-price {
  margin-top: 12px;
  display: block;
}

/* Simple centered card page (success) */
.message-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
.message-card {
  text-align: center;
  max-width: 480px;
  padding: 48px 32px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--hard-shadow);
}
.message-card img {
  width: 140px;
  margin-bottom: 24px;
  border: 2px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--hard-shadow-sm);
}
.message-card h1 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 12px;
}
.message-card p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
}
.message-card .highlight {
  color: var(--accent);
  font-weight: 700;
}

/* Legal pages (terms, privacy) */
.legal-container { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.page-header { text-align: center; padding: 48px 0 32px; }
.page-header h1 { font-size: 36px; font-weight: 900; margin-bottom: 8px; }
.page-header p { color: var(--text-secondary); font-size: 16px; }
.page-header .date { font-size: 13px; color: var(--text-secondary); margin-top: 8px; }
.section {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--hard-shadow-sm);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.section h2 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.section p { color: var(--text-secondary); line-height: 1.7; }
.section ul { list-style: none; }
.section ul li {
  color: var(--text-secondary); line-height: 1.7; padding-left: 20px; margin-bottom: 10px;
  position: relative;
}
.section ul li::before { content: "\2022"; color: var(--accent); font-weight: 700; position: absolute; left: 0; }
a.contact-link { color: var(--accent); font-weight: 600; text-decoration: none; }
a.contact-link:hover { text-decoration: underline; }
.back-link {
  display: inline-block;
  margin-top: 32px;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg);
  text-decoration: none;
  padding: 8px 20px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--hard-shadow-sm);
  transition: transform 0.1s, box-shadow 0.1s;
}
.back-link:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #111; text-decoration: none; }

/* Footer */
footer {
  padding: 24px 0;
  border-top: 2px solid var(--line);
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 48px;
}
footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-header h1 { font-size: 32px; white-space: normal; }
  .hero-header .subtitle { font-size: 16px; }
  .hero-mascot { max-width: 200px; }
  .hero-benefits li { justify-content: center; font-size: 14px; }
  .hero-cta-row { justify-content: center; flex-direction: column; align-items: center; }
  .signup-form input[type="email"] { width: 100%; max-width: 300px; font-size: 16px; }
  .signup-row { flex-direction: column; width: 100%; align-items: center; }
  .signup-row .hero-cta { width: 100%; max-width: 300px; text-align: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .features h2 { font-size: 26px; }
  .cta-section h2 { font-size: 26px; }
  .cta-card { padding: 32px 20px; }
  .cta-section .signup-row { flex-direction: column; }
  .cta-section input[type="email"] { width: 100%; max-width: 300px; }
  .cta-section .hero-cta { width: 100%; max-width: 300px; text-align: center; }
  nav .container, nav .nav-inner { gap: 8px; }
  .nav-cta { padding: 8px 16px; font-size: 11px; }
  .nav-signin { padding: 8px 8px; font-size: 11px; }
  .page-header h1 { font-size: 28px; }
}

@media (max-width: 480px) {
  .hero-header h1 { font-size: 26px; }
  .hero-header .subtitle { font-size: 15px; }
  .feature-grid { grid-template-columns: 1fr; }
  .integration-pill { font-size: 12px; padding: 6px 12px; }
  .hero-benefits li { font-size: 13px; text-align: left; }
}
