:root {
  --cream: #F8EDE3;
  --ink: #201c18;
  --green: #8dbb5e;
  --green-dark: #6f9c46;
  --line: #d9c9b8;
  --footer-bg: #1a1714;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, .signup-form button, .pill, .lets-go-btn, .tool-label {
  font-family: "Courier New", Courier, monospace;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: var(--cream);
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.logo-img { height: 56px; width: auto; display: block; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.auth-state {
  display: flex;
  align-items: center;
  gap: 14px;
}
.text-btn {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  padding: 8px 4px;
}
.text-btn-primary {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
}
.text-btn-primary:hover { background: var(--ink); color: #fff; }
.signed-in-as { font-size: 0.9rem; }

/* Auth modal */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-modal[hidden] {
  display: none;
}
.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.5);
}
.auth-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 36px 32px 28px;
  width: 90%;
  max-width: 380px;
  z-index: 1;
}
.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #888;
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.auth-tab {
  flex: 1;
  border: none;
  background: none;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  padding: 10px 0;
  cursor: pointer;
  color: #8a7a68;
  border-bottom: 2px solid transparent;
}
.auth-tab.active {
  color: var(--ink);
  border-bottom-color: var(--green);
  font-weight: bold;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: #5b4636;
}
.auth-form input {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
}
.auth-form input:focus { outline: none; border-color: var(--green-dark); }
.auth-form button[type="submit"] {
  margin-top: 4px;
  border: none;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 12px;
  font-size: 0.95rem;
  cursor: pointer;
}
.auth-form button[type="submit"]:hover { background: var(--green-dark); }
.auth-error { color: #b3453f; font-size: 0.85rem; margin: 0; min-height: 0; }
.auth-success { color: #4a7c3f; font-size: 0.85rem; margin: 0; }

/* Hero */
.hero {
  background: var(--cream);
  text-align: center;
  padding: 40px 20px 70px;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: 1px;
}
.hero .tagline {
  font-size: 1.1rem;
  margin: 0;
}

/* Signup */
.signup-section {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
}
.signup-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}
.signup-form {
  display: inline-flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: center;
}
.signup-form input {
  border: none;
  border-bottom: 1px solid #999;
  padding: 8px 4px;
  font-size: 1rem;
  min-width: 260px;
  background: transparent;
}
.signup-form input:focus { outline: none; border-bottom-color: var(--ink); }
.signup-form button {
  border: 1.5px solid var(--ink);
  background: transparent;
  border-radius: 999px;
  padding: 10px 28px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.signup-form button:hover { background: var(--ink); color: #fff; }

/* Pitch */
.pitch-section {
  background: var(--cream);
  padding: 70px 20px;
  text-align: center;
}
.pitch-line {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.15rem;
}
.testimonial {
  max-width: 720px;
  margin: 50px auto 0;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: 1.05rem;
  border: none;
  padding: 0;
}
.testimonial footer {
  margin-top: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 0.9rem;
  color: #5b4636;
}

/* What section */
.what-section {
  background: #fff;
  padding: 70px 20px;
  text-align: center;
}
.what-section h2 { font-size: 2rem; margin-bottom: 30px; }
.what-section p {
  max-width: 620px;
  margin: 0 auto 20px;
  font-size: 1.05rem;
}
.what-section .lead { font-weight: 600; }
.what-section .italic { font-style: italic; }

/* Tools heading */
.tools-heading {
  background: var(--cream);
  text-align: center;
  padding: 50px 20px;
}
.tools-heading h2 { font-size: 1.8rem; margin: 0; }

/* Tool cards */
.tool-card {
  background: #fff;
  padding: 60px 20px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.tool-card.alt { background: #fdfaf6; }
.tool-card h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.beta-tag { font-size: 1rem; color: #9c7b52; }
.tool-card p { max-width: 560px; margin: 0 auto 20px; }
.tool-card ul {
  display: inline-block;
  text-align: left;
  margin: 0 auto 30px;
  padding-left: 20px;
}
.tool-card li { margin-bottom: 6px; }

/* Embedded tool preview mockup */
.tool-preview {
  background: var(--cream);
  border-radius: 8px;
  padding: 30px;
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
}
.tool-preview-row {
  margin-bottom: 18px;
}
.tool-label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.qmark {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid #999;
  font-size: 0.7rem;
  font-family: -apple-system, sans-serif;
}
.pill-group { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  padding: 8px 16px;
  border-radius: 4px;
  background: #ddd0c0;
  font-size: 0.85rem;
  color: #4a4a4a;
}
.pill-active { background: var(--green); color: #fff; }
.mascot-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
}
.mascot-img { height: 56px; width: auto; flex-shrink: 0; }
.forgot-password-btn { align-self: flex-start; margin-top: -8px; font-size: 0.82rem; color: #7a6a58; text-decoration: underline; padding: 0; }
.speech-bubble {
  background: #fdf6ea;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  max-width: 420px;
}
.lets-go-btn {
  display: block;
  margin: 26px auto 0;
  border: none;
  background: #cfc3b3;
  color: #6b6155;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: not-allowed;
  text-decoration: none;
  text-align: center;
  width: fit-content;
  font-family: "Courier New", Courier, monospace;
}
.lets-go-btn.active {
  background: var(--green);
  color: #fff;
  cursor: pointer;
}
.lets-go-btn.active:hover { background: var(--green-dark); }
.live-tag { font-size: 1rem; color: var(--green-dark); }

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: #f0e9df;
  text-align: center;
  padding: 40px 20px;
  font-size: 0.85rem;
}
.site-footer a { color: #f0e9df; }
.site-footer .copyright { margin-top: 14px; }
.site-footer .trademark { max-width: 620px; margin: 14px auto 0; color: #b6a999; font-size: 0.78rem; }

@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .site-header { padding: 16px 20px; }
}
