@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --bg: #f8f5ef;
  --surface: #fffaf1;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #0f4c5c;
  --accent-bright: #f7b32b;
  --border: rgba(15, 76, 92, 0.2);
  --shadow: 0 18px 40px rgba(15, 76, 92, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Grotesk', 'Gill Sans', 'Trebuchet MS', sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fef5e7 0%, #f6efe4 40%, #efe7db 100%);
}

.page {
  min-height: 100vh;
  padding: 56px 20px 72px;
  display: grid;
  place-items: center;
  gap: 32px;
}

.hero {
  max-width: 760px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px 42px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(247, 179, 43, 0.35), transparent 70%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 76, 92, 0.08);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.headline {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  display: grid;
  gap: 8px;
  justify-items: start;
  max-width: 100%;
}

.headline-line {
  display: block;
}

.rotator {
  display: block;
  padding: 8px 18px;
  border-radius: 12px;
  background: rgba(247, 179, 43, 0.2);
  color: #603813;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  line-height: 1.2;
  width: 100%;
  max-width: 36ch;
  height: calc(1.2em * 3 + 16px);
  text-align: left;
  overflow: hidden;
}

.rotator.fade {
  opacity: 0;
  transform: translateY(6px);
}

.subhead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

button {
  height: 52px;
  border: none;
  border-radius: 14px;
  padding: 0 22px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 76, 92, 0.25);
}

.fine {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.status {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  min-height: 1.2em;
}

.login-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.login-link {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  border-bottom: 2px solid rgba(15, 76, 92, 0.25);
  padding-bottom: 2px;
}

.onboarding {
  max-width: 760px;
  width: 100%;
  display: grid;
  gap: 12px;
}

.onboarding h2 {
  margin: 0;
  font-size: 1.4rem;
}

.prompt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.prompt-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 160px;
  background: #fff;
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 640px) {
  .hero {
    padding: 36px 24px;
  }

  button {
    width: 100%;
  }
}
