/* Bothy marketing site — dark theme matching the app */

:root {
  --bg: #17140F;
  --bg-raised: #201B15;
  --text: #F5F0E8;
  --text-muted: #B8AE9E;
  --accent: #E8862E;
  --accent-hover: #F0983F;
  --border: rgba(245, 240, 232, 0.10);
  --shot-border: rgba(245, 240, 232, 0.08);
  --content-width: 640px;

  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent);
}

/* Layout ------------------------------------------------------------------ */

.page {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px 24px 64px;
}

@media (min-width: 720px) {
  .page {
    padding: 64px 24px 88px;
  }
}

.wordmark {
  text-align: center;
  margin-bottom: 64px;
}

.wordmark img {
  display: inline-block;
  width: 160px;
  height: auto;
}

/* Hero -------------------------------------------------------------------- */

.hero {
  text-align: center;
  margin-bottom: 56px;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.lede {
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 34ch;
}

/* Pitch sections ---------------------------------------------------------- */

.pitch {
  text-align: center;
  margin: 72px auto;
  max-width: 40ch;
}

.pitch p {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}

/* Screenshots ------------------------------------------------------------- */

.shot {
  margin: 40px auto;
  max-width: 300px;
}

.shot img {
  width: 100%;
  border-radius: 28px;
  border: 1px solid var(--shot-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.shot-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 40px auto;
  justify-items: center;
}

.shot-pair .shot {
  margin: 0;
  max-width: 260px;
}

@media (min-width: 720px) {
  .shot-pair {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 560px;
  }
}

/* Invite form ------------------------------------------------------------- */

.invite {
  margin: 88px auto 0;
  padding: 40px 28px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
}

.invite h2 {
  font-size: clamp(1.25rem, 3.4vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  margin: 0 auto 28px;
  max-width: 32ch;
}

#invite-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 380px;
  margin: 0 auto;
  text-align: left;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.optional {
  font-weight: 400;
  opacity: 0.7;
}

.field input {
  width: 100%;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
  color: rgba(184, 174, 158, 0.5);
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 134, 46, 0.25);
}

#invite-submit {
  margin-top: 4px;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #17140F;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

#invite-submit:hover:not(:disabled) {
  background: var(--accent-hover);
}

#invite-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 134, 46, 0.4);
}

#invite-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-status {
  margin: 4px 0 0;
  min-height: 1.4em;
  font-size: 0.92rem;
  text-align: center;
}

.form-status.is-success {
  color: var(--accent);
}

.form-status.is-error {
  color: #E8846B;
}

/* Legal pages (privacy / terms) ------------------------------------------- */

.legal h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 32px;
}

.legal p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.legal .updated {
  margin-top: 40px;
  font-size: 0.9rem;
  color: rgba(184, 174, 158, 0.7);
}

.legal a {
  color: var(--accent);
}

/* Footer ------------------------------------------------------------------ */

.footer {
  margin-top: 72px;
  text-align: center;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-links span {
  opacity: 0.5;
}

.footer-fine {
  font-size: 0.85rem;
  margin: 0;
  color: rgba(184, 174, 158, 0.7);
}

.footer-fine a {
  color: rgba(184, 174, 158, 0.7);
}

.footer-fine a:hover {
  color: var(--accent);
}
