@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap");

:root {
  --bg-start: #f8fafc;
  --bg-end: #eff6ff;
  --text-main: #111827;
  --text-muted: #4b5563;
  --blue-100: #dbeafe;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --white: #ffffff;
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.1);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
}

.page {
  min-height: 100vh;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.nav {
  padding: 2rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.75rem;
  font-weight: 800;
}

.main {
  padding: 3rem 0 5rem;
}

.hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue-100);
  color: var(--blue-700);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

h1 {
  margin: 0 0 1rem;
  line-height: 1.1;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
}

h1 span {
  color: var(--blue-600);
}

.subtitle {
  margin: 0 auto 2.5rem;
  max-width: 700px;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.flow-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}

.flow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.email-pill {
  padding: 0.75rem 1.2rem;
  border-radius: 0.6rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
}

.email-from {
  background: var(--gray-100);
  color: #374151;
}

.email-to {
  background: var(--blue-600);
  color: var(--white);
}

.flow-card p {
  margin: 0;
  color: var(--text-muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.feature-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 0.8rem;
  background: var(--blue-100);
  display: grid;
  place-items: center;
}

.feature-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.cta {
  background: linear-gradient(90deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  border-radius: var(--radius-2xl);
  padding: 3rem 1.5rem;
}

.cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.cta p {
  margin: 0 0 1.25rem;
  color: #dbeafe;
}

.cta-generator {
  max-width: 560px;
  margin: 0 auto 1.25rem;
  text-align: left;
}

.cta-generator input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 1rem;
  border-radius: 0.7rem;
  padding: 0.8rem 0.9rem;
  outline: none;
}

.cta-generator input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.cta-generator input:focus {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.cta-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
  padding: 0.9rem 1.2rem;
  border-radius: 0.7rem;
}

.cta-pill small {
  display: block;
  color: #dbeafe;
  margin-bottom: 0.25rem;
}

.cta-pill strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
  word-break: break-all;
}

.cta .legal-note {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(219, 234, 254, 0.9);
}

.legal-note a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-note a:hover {
  color: #dbeafe;
}

.generated-row {
  display: block;
}

#copyInboxBtn {
  margin-top: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border-radius: 0.5rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

#copyInboxBtn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.footer {
  margin-top: 2rem;
  border-top: 1px solid var(--gray-200);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
  line-height: 1.7;
}

.icon {
  stroke-width: 2;
}

.icon-16 {
  width: 16px;
  height: 16px;
}

.icon-24 {
  width: 24px;
  height: 24px;
}

.icon-28 {
  width: 28px;
  height: 28px;
}

.icon-32 {
  width: 32px;
  height: 32px;
}

.text-blue {
  color: var(--blue-600);
}

.text-gray {
  color: var(--gray-400);
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.footer-link {
  display: inline-block;
  margin-top: 0.25rem;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-link + .footer-link {
  margin-left: 0.75rem;
}

.footer-link:hover {
  color: var(--blue-700);
}
