/* ─────────────────────────────────────────────────────────────────────
   Lekker — shared stylesheet
   Used by index.html, privacy-policy.html, terms-and-conditions.html.
   ───────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/Fraunces-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Mirrors LekkerApp/Assets.xcassets/Colors/ — keep in sync. */
  --lekker-accent:           #FF6B35;
  --lekker-accent-hover:     #E55A24;  /* darken 10% on hover; never lighten oranges */
  --lekker-background:       #FFF8F0;
  --lekker-background-card:  #FFF5ED;
  --lekker-text-primary:     #1A1814;
  --lekker-text-secondary:   #6B5E54;  /* darkened from #8B7E74 to pass AA */
  --lekker-card-border:      rgba(26, 24, 20, 0.08);
}

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

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

body {
  margin: 0;
  background: var(--lekker-background);
  color: var(--lekker-text-primary);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--lekker-accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────────────────────────────
   Landing-page layout
   ───────────────────────────────────────────────────────────────────── */

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* Code-in-hand banner */
.code-banner {
  background: var(--lekker-background-card);
  border: 1px solid var(--lekker-card-border);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--lekker-text-primary);
}
.code-banner code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  background: rgba(255, 107, 53, 0.12);
  color: var(--lekker-accent);
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 1px;
}

/* Hero */
.hero {
  text-align: center;
  padding-top: 40px;
}
.wordmark {
  display: block;
  margin: 0 auto 28px;
  width: 210px;
  max-width: 60vw;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: fill;
}
.tagline {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--lekker-text-primary);
  margin: 0 0 16px;
}
.lede {
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  color: var(--lekker-text-secondary);
  max-width: 36ch;
  margin: 0 auto 36px;
}

/* Form */
#waitlist-form {
  max-width: 520px;
  margin: 0 auto 56px;
}
.form-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
@media (max-width: 480px) {
  .form-row { flex-direction: column; }
}

input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  font: inherit;
  font-size: 16px;  /* 16px+ prevents iOS auto-zoom on focus */
  color: var(--lekker-text-primary);
  background: var(--lekker-background-card);
  border: 1px solid var(--lekker-card-border);
  border-radius: 14px;
  outline: none;
  transition: border-color 120ms;
}
input[type="email"]:focus {
  border-color: var(--lekker-accent);
}

button[type="submit"] {
  padding: 14px 28px;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  color: white;
  background: var(--lekker-accent);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 120ms, transform 80ms;
}
button[type="submit"]:hover:not(:disabled) {
  background: var(--lekker-accent-hover);
}
button[type="submit"]:active:not(:disabled) {
  transform: translateY(1px);
}
button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-message {
  margin: 8px 0 0;
  min-height: 1.5em;
  font-size: 14px;
  color: var(--lekker-text-secondary);
}
.form-message.error {
  color: #B23A1F;
}

.thanks {
  text-align: center;
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--lekker-text-primary);
  margin: 0;
  padding: 24px 0;
}

.consent {
  text-align: center;
  font-size: 13px;
  color: var(--lekker-text-secondary);
  margin: 12px 0 0;
}

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

/* Feature sections — alternating text/screenshot, stacked on mobile. */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  justify-items: center;
  margin: 72px auto;
  max-width: 320px;
}
@media (min-width: 760px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    max-width: 960px;
    margin: 112px auto;
  }
  /* Even sections flip: screenshot on the left, text on the right. */
  .feature:nth-of-type(even) .feature-text  { order: 2; }
  .feature:nth-of-type(even) .feature-image { order: 1; }
}
@media (min-width: 1024px) {
  .feature { gap: 96px; }
}

.feature-text {
  max-width: 36ch;
  text-align: center;
}
@media (min-width: 760px) {
  .feature-text { text-align: left; }
}

.feature-headline {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--lekker-text-primary);
  margin: 0 0 16px;
}
.feature-body {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.6;
  color: var(--lekker-text-secondary);
  margin: 0;
}

.feature-image {
  display: flex;
  justify-content: center;
  width: 100%;
}
.feature-image img {
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 320 / 658;
  border-radius: 38px;
  box-shadow:
    0 30px 60px rgba(255, 107, 53, 0.12),
    0 8px 16px rgba(26, 24, 20, 0.08);
}
@media (min-width: 760px) {
  .feature-image img { max-width: 300px; }
}

/* Closing CTA — quiet line + scroll-to-top link. */
.closing-cta {
  text-align: center;
  margin: 96px auto 0;
  max-width: 520px;
}
.closing-tagline {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1.2;
  color: var(--lekker-text-primary);
  margin: 0 0 16px;
}
.closing-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: var(--lekker-accent);
  padding: 8px 0;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 64px;
  padding: 32px 20px 48px;
  border-top: 1px solid var(--lekker-card-border);
  font-size: 13px;
  color: var(--lekker-text-secondary);
}
footer a { margin: 0 4px; }
footer .sep {
  margin: 0 6px;
  color: var(--lekker-text-secondary);
  opacity: 0.5;
}

/* ─────────────────────────────────────────────────────────────────────
   Privacy / Terms — long-form legal pages
   ───────────────────────────────────────────────────────────────────── */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  font-size: 16px;
  line-height: 1.7;
}

.legal header {
  border-bottom: 1px solid var(--lekker-card-border);
  padding-bottom: 24px;
  margin-bottom: 36px;
}

.legal header h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.6rem);
  color: var(--lekker-text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.legal header p {
  margin: 8px 0 0;
  color: var(--lekker-text-secondary);
  font-size: 14px;
}

.legal h2 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--lekker-text-primary);
  margin: 36px 0 12px;
}

.legal p, .legal ul, .legal li {
  color: var(--lekker-text-primary);
}

.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }

.legal a { color: var(--lekker-accent); }
.legal a:hover { text-decoration: underline; }

.legal .back-link {
  display: inline-block;
  margin-top: 48px;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
