/* Recipe Duck landing page — a straight port of the React LandingPage (#411).
   Colors are Tailwind's default neutral/slate/amber palette, which the old
   page used; #412 replaces this design. */

:root {
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --slate-100: #f1f5f9;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
h4,
h5,
p,
ol {
  margin: 0;
}
ol {
  list-style: none;
  padding: 0;
}
button,
input {
  font: inherit;
  color: inherit;
}
svg {
  display: block;
}

body {
  min-height: 100vh;
  background: var(--neutral-50);
  color: var(--neutral-900);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  line-height: 1.5;
}

/* Lucide-style stroke icons */
.i {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header and footer */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--neutral-200);
}
.site-header .container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--slate-900);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}
.logo-sm {
  width: 2rem;
  height: 2rem;
  font-size: 0.75rem;
}
.brand-name {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
}

.site-footer {
  padding: 2rem 0;
  background: #fff;
  border-top: 1px solid var(--neutral-200);
}
.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--neutral-600);
}
.site-footer p {
  font-size: 0.875rem;
  color: var(--neutral-500);
}

/* Hero */
.hero {
  padding: 4rem 0;
  text-align: center;
}
.hero h1 {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.lede {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--neutral-600);
}

/* Signup forms */
.signup {
  max-width: 28rem;
  margin: 2.5rem auto 0;
}
.cta .signup {
  margin-top: 2rem;
}
.signup-form {
  position: relative;
}
.honeypot {
  position: absolute;
  z-index: -10;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
.signup-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.signup-row input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--neutral-300);
  border-radius: 9999px;
  background: #fff;
  color: var(--neutral-900);
}
.signup-row input::placeholder {
  color: var(--neutral-400);
}
.signup-row input:focus {
  outline: none;
  border-color: var(--slate-500);
  box-shadow: 0 0 0 2px rgb(15 23 42 / 0.1);
}
.signup-row button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border: 0;
  border-radius: 9999px;
  background: #000;
  color: #fff;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: background-color 150ms;
}
.signup-row button:hover {
  background: var(--neutral-800);
}
.signup-row button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.signup-row button .i {
  width: 1rem;
  height: 1rem;
}
.signup-row button .spin,
.signup-row button .label-busy,
.submitting .signup-row button .label-idle {
  display: none;
}
.submitting .signup-row button .spin {
  display: block;
}
.submitting .signup-row button .label-busy {
  display: inline;
}
.form-error {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #dc2626;
}
/* Collapsed, not display:none, so the aria-live region stays in the
   accessibility tree and the first error is announced */
.form-error:empty {
  margin: 0;
}
.form-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--neutral-500);
}
.signup-done {
  display: none;
  padding: 1.5rem;
  border: 1px solid #bbf7d0;
  border-radius: 0.75rem;
  background: #f0fdf4;
  color: #15803d;
  font-weight: 500;
}
.signed-up .signup-done {
  display: block;
}
.signed-up .signup-form {
  display: none;
}

.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Before/after illustration */
.compare {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 4rem;
}
.compare-col {
  width: 100%;
  max-width: 20rem;
}
.before {
  position: relative;
}
.compare-label {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  color: var(--neutral-500);
}
.compare-caption {
  margin-top: 0.5rem;
  font-size: 10px;
  color: var(--neutral-400);
}
.compare-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 300;
  color: var(--neutral-300);
}
.mock {
  padding: 0.75rem;
  border: 1px solid var(--neutral-200);
  border-radius: 0.5rem;
  background: #fff;
}
.mock-before {
  opacity: 0.75;
  box-shadow: var(--shadow-sm);
}
.mock-before > * + * {
  margin-top: 0.5rem;
}
.mock-bar {
  display: flex;
  gap: 0.5rem;
}
.grow {
  flex: 1;
}
.bar-logo {
  width: 4rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  background: var(--neutral-200);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}
.bar-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  background: var(--amber-200);
  color: var(--amber-700);
  font-size: 7px;
  font-weight: 700;
}
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  background: var(--neutral-100);
  color: var(--neutral-400);
  font-size: 10px;
}
.ph-hero {
  height: 6rem;
}
.ph-photo {
  height: 4rem;
}
.ph-video {
  height: 3.5rem;
  border: 1px solid var(--neutral-200);
}
.lines > * {
  height: 0.375rem;
  border-radius: 0.25rem;
  background: var(--neutral-200);
}
.lines > * + * {
  margin-top: 0.25rem;
}
.w-full {
  width: 100%;
}
.w-11-12 {
  width: 91.666667%;
}
.w-10-12 {
  width: 83.333333%;
}
.w-9-12,
.w-3-4 {
  width: 75%;
}
.w-4-5 {
  width: 80%;
}
.ad {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--amber-200);
  border-radius: 0.25rem;
  background: var(--amber-100);
  color: var(--amber-600);
  font-weight: 500;
}
.ad-inline {
  height: 2.5rem;
  font-size: 9px;
}
.ad-bottom {
  height: 2rem;
  font-size: 8px;
}
.popup {
  position: absolute;
  top: 4rem;
  right: 0.5rem;
  width: 6rem;
  padding: 0.5rem;
  border: 1px solid var(--neutral-300);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.popup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 7px;
  font-weight: 500;
  color: var(--neutral-700);
}
.popup-head .i {
  width: 0.625rem;
  height: 0.625rem;
  color: var(--neutral-400);
}
.popup-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0.875rem;
  margin-top: 0.25rem;
  border-radius: 0.25rem;
  background: #3b82f6;
  color: #fff;
  font-size: 6px;
}
.side-ad {
  position: absolute;
  top: 8rem;
  right: -0.5rem;
  padding: 0.25rem;
  border-radius: 0.25rem;
  background: var(--amber-200);
  color: var(--amber-700);
  font-size: 6px;
  font-weight: 700;
  transform: rotate(12deg);
  box-shadow: var(--shadow);
}

.mock-after {
  box-shadow: var(--shadow-md);
}
.back-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  font-size: 9px;
  color: var(--neutral-500);
}
.back-link .i {
  width: 0.75rem;
  height: 0.75rem;
}
.mock-after h4 {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}
.tags {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
  font-size: 9px;
  color: var(--neutral-500);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--neutral-100);
  font-size: 8px;
  color: var(--neutral-600);
}
.actions span {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}
.actions .i {
  width: 0.625rem;
  height: 0.625rem;
}
.actions .danger {
  color: #ef4444;
}
.mock-section {
  text-align: left;
}
.mock-section + .mock-section {
  margin-top: 0.75rem;
}
.mock-section h5 {
  margin-bottom: 0.5rem;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}
.ing-table {
  border: 1px solid var(--neutral-200);
  border-radius: 0.25rem;
  font-size: 8px;
}
.ing-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  color: var(--neutral-600);
}
.ing-row + .ing-row {
  border-top: 1px solid var(--neutral-100);
}
.ing-head {
  background: var(--neutral-50);
  font-weight: 500;
  color: var(--neutral-700);
}
.ing-head + .ing-row {
  border-top-color: var(--neutral-200);
}
.steps {
  font-size: 8px;
  white-space: nowrap;
  color: var(--neutral-600);
}
.steps li + li {
  margin-top: 0.375rem;
}
.steps span {
  margin-right: 0.25rem;
  color: var(--neutral-400);
}

/* Section headings shared by features and how-it-works */
.features,
.how {
  padding: 4rem 0;
  border-top: 1px solid var(--neutral-200);
}
.features {
  background: #fff;
}
.section-head {
  margin-bottom: 3rem;
  text-align: center;
}
.section-head h2,
.cta h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.section-head p {
  margin-top: 1rem;
  color: var(--neutral-600);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--neutral-200);
  border-radius: 0.75rem;
  background: #fff;
  text-align: center;
  transition: box-shadow 150ms;
}
.feature:hover {
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 9999px;
  background: var(--slate-100);
  color: var(--slate-700);
}
.feature h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}
.feature p {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--neutral-600);
}

/* How it works */
.step-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}
.step {
  text-align: center;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 9999px;
  background: var(--slate-900);
  color: #fff;
  font-weight: 700;
}
.step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
}
.step p {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--neutral-600);
}

/* Closing call to action (dark) */
.cta {
  padding: 4rem 0;
  background: var(--slate-900);
  text-align: center;
}
.cta h2 {
  color: #fff;
}
.cta > .container > p {
  margin-top: 1rem;
  color: var(--slate-300);
}
.cta .signup-row input {
  border-color: var(--slate-600);
  background: var(--slate-800);
  color: #fff;
}
.cta .signup-row input::placeholder {
  color: var(--slate-400);
}
.cta .signup-row input:focus {
  border-color: var(--slate-400);
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.1);
}
.cta .signup-row button {
  background: #fff;
  color: var(--slate-900);
  box-shadow: none;
}
.cta .signup-row button:hover {
  background: var(--slate-100);
}
.cta .form-error {
  color: #f87171;
}
.cta .signup-done {
  border-color: var(--slate-700);
  background: var(--slate-800);
  color: #4ade80;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
  .hero {
    padding: 6rem 0;
  }
  .hero h1 {
    font-size: 3rem;
    line-height: 1;
  }
  .signup-row,
  .footer-row {
    flex-direction: row;
  }
  .features,
  .how,
  .cta {
    padding: 6rem 0;
  }
  .section-head h2,
  .cta h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .step-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  .hero {
    padding: 8rem 0;
  }
  .hero h1 {
    font-size: 3.75rem;
  }
  .compare {
    flex-direction: row;
    align-items: stretch;
    gap: 1.5rem;
  }
  .compare-arrow {
    padding: 0;
  }
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .spin,
  .bar-logo {
    animation: none;
  }
}
