/* imagene.io — colours, type and shapes follow the imagene app's design
   tokens so the site and the product read as one. */

:root {
  --color-primary: #4f46e5;
  --color-primary-container: #e0e7ff;
  --color-accent: #f472b6;
  --color-neutral-50: #f8fafc;
  --color-neutral-200: #e2e8f0;
  --color-neutral-400: #94a3b8;
  --color-neutral-900: #0f172a;
  --color-surface: #ffffff;
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-border: #e2e8f0;
  --color-error: #ef4444;
  --color-success: #10b981;

  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xxl: 24px;

  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.04), 0 4px 15px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 10px 20px rgba(0, 0, 0, 0.08), 0 20px 40px rgba(0, 0, 0, 0.04);
  --shadow-primary: 0 8px 20px rgba(79, 70, 229, 0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--color-surface);
  color: var(--color-text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* Keeps the footer at the bottom of the window on short pages. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #ffffff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.button:hover:not(:disabled) { box-shadow: var(--shadow-primary); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.button:disabled {
  background: var(--color-neutral-200);
  color: var(--color-neutral-400);
  box-shadow: none;
  cursor: not-allowed;
}
.button--full { width: 100%; }
.button--quiet {
  min-height: 40px;
  padding: 0 16px;
  background: var(--color-primary-container);
  color: var(--color-primary);
  box-shadow: none;
}
.button--quiet:hover:not(:disabled) { box-shadow: none; filter: brightness(0.97); }

/* ── Landing page ───────────────────────────────────────────── */
.topbar { border-bottom: 1px solid var(--color-border); }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.topbar__inner img { height: 32px; width: auto; }

.hero { padding: 88px 0 80px; text-align: center; }
.hero__title {
  font-size: clamp(2.1rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero__title span {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  max-width: 56ch;
  margin: 20px auto 32px;
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
}

.features {
  padding: 64px 0 80px;
  background: var(--color-neutral-50);
  border-top: 1px solid var(--color-border);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature {
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--color-primary-container);
  color: var(--color-primary);
}
.feature__title { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.feature__text { color: var(--color-text-secondary); font-size: 0.9375rem; }

.footer { border-top: 1px solid var(--color-border); }
.footer__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 72px;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

/* ── App download page ──────────────────────────────────────── */
.download { padding: 72px 0 96px; }
.download__inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, 400px);
  gap: 64px;
  align-items: start;
}
.download__title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.download__title span {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.download__lede {
  max-width: 48ch;
  margin: 16px 0 32px;
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
}
.download__steps {
  padding-left: 1.25rem;
  color: var(--color-text-secondary);
}
.download__steps li { margin-bottom: 10px; padding-left: 4px; }
.download__steps li::marker { color: var(--color-primary); font-weight: 600; }
.download__steps strong { color: var(--color-text-primary); }

.download__panel {
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.download__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}
.gate__code {
  width: 100%;
  height: 60px;
  margin-bottom: 16px;
  padding: 0 8px 0 calc(8px + 0.3em);
  background: var(--color-neutral-50);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-align: center;
  text-transform: uppercase;
}
.gate__code::placeholder { color: var(--color-neutral-400); }
.gate__code:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-container);
}
.gate__check {
  display: flex;
  justify-content: center;
  min-height: 65px;
  margin-bottom: 16px;
}
.gate__message {
  min-height: 1.5rem;
  margin-top: 16px;
  font-size: 0.9375rem;
  text-align: center;
  color: var(--color-error);
}
.gate__message--ok { color: var(--color-success); font-weight: 600; }

@media (max-width: 820px) {
  .download { padding: 48px 0 64px; }
  .download__inner { grid-template-columns: 1fr; gap: 40px; }
}
/* The bot-check widget is 300px wide; on a phone the panel needs
   narrower padding to leave it that much room. */
@media (max-width: 420px) {
  .download__panel { padding: 20px 12px; }
}
