/* ===========================================================
   Recipes Worth Keeping — marketing site
   Design tokens
   =========================================================== */
:root {
  /* Palette — cool linen background (ties to the app's own blue
     palette instead of the generic warm-cream template look); the
     warm cream is reserved for the recipe card itself, where it
     earns its keep as literal paper. */
  --ink:        #2B2B2B;
  --ink-soft:   #5B6670;
  --linen:      #F3F7FA;
  --linen-deep: #E7EEF3;
  --card-paper: #FBF6EA;
  --card-edge:  #E7DEC8;
  --brand:      #6B90B5;
  --brand-deep: #3F5E7A;
  --teal:       #5F9EA0;
  --nav-footer: #A7BED3;
  --rule:       #D9E2E8;
  --white:      #FFFFFF;

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body:    "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand-deep); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Nav ---------- */
.site-nav {
  border-bottom: 1px solid var(--rule);
  background: var(--nav-footer);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--brand-deep);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark span { color: var(--teal); }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-links a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 96px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  color: var(--brand-deep);
  margin: 0 0 20px;
  font-weight: 600;
}
.hero p.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 32px;
}
.hero-ctas { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-deep);
  color: var(--white);
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-store:hover { background: var(--brand); transform: translateY(-1px); }
.btn-store small { display: block; font-weight: 400; font-size: 0.72rem; opacity: 0.85; }

.trust-inline { font-size: 0.88rem; color: var(--ink-soft); }

/* Official Apple "Download on the App Store" badge.
   Apple's rules: use the artwork unmodified, at least 40px tall on
   screen, with clear space around it of at least a quarter of its
   height (12px at 48px tall). */
.store-badge {
  display: inline-block;
  margin: 12px;
  line-height: 0;
  border-radius: 8px;
  transition: transform 0.15s ease;
}
.hero-ctas .store-badge { margin-left: 0; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge img { height: 48px; width: auto; }

/* ---------- Signature: the recipe card ---------- */
.recipe-card {
  background: var(--card-paper);
  border: 1px solid var(--card-edge);
  border-radius: 4px;
  padding: 34px 32px 30px;
  max-width: 380px;
  margin-left: auto;
  transform: rotate(1.4deg);
  box-shadow: 0 18px 40px -18px rgba(63, 94, 122, 0.35), 0 2px 0 var(--card-edge);
  position: relative;
}
.recipe-card::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 46px;
  height: 22px;
  background: var(--teal);
  opacity: 0.85;
  border-radius: 2px;
}
.recipe-card h2 {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 6px 0 2px;
}
.recipe-card .serves {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 16px;
}
.recipe-card hr {
  border: none;
  border-top: 1px dashed var(--card-edge);
  margin: 16px 0;
}
.recipe-card h3 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 10px;
}
.recipe-card ul, .recipe-card ol {
  margin: 0 0 4px;
  padding-left: 1.2em;
  font-size: 0.92rem;
  color: var(--ink);
}
.recipe-card li { margin-bottom: 6px; }
.recipe-card ol li::marker { color: var(--brand); font-weight: 600; }

/* ---------- Section shell ---------- */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin: 0 0 44px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  color: var(--brand-deep);
  margin: 0 0 12px;
}
.section-head p { color: var(--ink-soft); margin: 0; font-size: 1.02rem; }

/* ---------- Screenshot showcase ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.showcase-item { opacity: 0; transform: translateY(14px); animation: rise 0.6s ease forwards; }
.showcase-item:nth-child(1) { animation-delay: 0.05s; }
.showcase-item:nth-child(2) { animation-delay: 0.15s; }
.showcase-item:nth-child(3) { animation-delay: 0.25s; }
.showcase-item:nth-child(4) { animation-delay: 0.35s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .showcase-item { animation: none; opacity: 1; transform: none; }
}

.phone-frame {
  background: var(--ink);
  border-radius: 34px;
  padding: 10px;
  box-shadow: 0 24px 40px -22px rgba(43, 43, 43, 0.45);
}
.phone-screen {
  background: var(--linen-deep);
  border-radius: 24px;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-screen .placeholder {
  text-align: center;
  padding: 18px;
  font-size: 0.72rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.phone-screen .placeholder b { display: block; color: var(--brand-deep); font-size: 0.8rem; margin-bottom: 4px; }
.phone-screen .notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 46%;
  height: 22px;
  background: var(--ink);
  border-radius: 0 0 14px 14px;
}

.showcase-caption { margin-top: 18px; text-align: center; }
.showcase-caption h3 { font-size: 1rem; margin: 0 0 4px; color: var(--brand-deep); }
.showcase-caption p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--white);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.trust .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 52px 28px;
}
.trust-item { display: flex; gap: 14px; }
.trust-icon {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--linen-deep);
  color: var(--brand-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.trust-item h4 { margin: 0 0 4px; font-size: 0.98rem; color: var(--ink); }
.trust-item p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 96px 0; }
.cta-band h2 {
  font-family: var(--display);
  color: var(--brand-deep);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 14px;
}
.cta-band p { color: var(--ink-soft); margin: 0 0 30px; }

/* ---------- Simple content pages (Privacy / Contact) ---------- */
.page-header { padding: 56px 0 24px; border-bottom: 1px solid var(--rule); }
.page-header .eyebrow { margin-bottom: 10px; }
.page-header h1 {
  font-family: var(--display);
  color: var(--brand-deep);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  margin: 0 0 8px;
}
.page-header .updated { color: var(--ink-soft); font-size: 0.9rem; }

.prose { max-width: 720px; padding: 48px 28px 88px; }
.prose h2 {
  font-family: var(--display);
  color: var(--brand-deep);
  font-size: 1.35rem;
  margin: 40px 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink); margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 1.3em; color: var(--ink); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--brand-deep); }
.callout {
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  padding: 18px 20px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
}
.contact-card h2 { margin: 0 0 10px; font-family: var(--display); color: var(--brand-deep); font-size: 1.3rem; }
.contact-card p { color: var(--ink-soft); margin: 0 0 22px; }
.contact-email {
  display: inline-block;
  background: var(--linen-deep);
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--brand-deep);
  text-decoration: none;
  font-size: 1.02rem;
}
.contact-email:hover { background: var(--brand); color: var(--white); }

/* ---------- Contact form ---------- */
.contact-form-wrap {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.contact-form-wrap h2 {
  font-family: var(--display);
  color: var(--brand-deep);
  font-size: 1.5rem;
  margin: 0 0 12px;
}
.contact-form-wrap > p {
  color: var(--ink-soft);
  margin: 0 0 32px;
}
.contact-form { text-align: left; }
.contact-form .field { margin-bottom: 18px; }
.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;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px 16px;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9AA7B0; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(107, 144, 181, 0.18);
}
.contact-form .honeypot-field { position: absolute; left: -9999px; top: -9999px; }
.contact-form .actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}
.contact-form button[type="submit"] {
  font-family: var(--body);
  background: var(--brand);
  color: var(--white);
  border: none;
  padding: 15px 40px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.contact-form button[type="submit"]:hover { background: var(--brand-deep); transform: translateY(-1px); }
.contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.contact-form .form-status {
  min-height: 20px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 4px 0 0;
}
.contact-form .form-status.error { color: #B5452E; }
.contact-form .cancel-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
}
.contact-form .cancel-link:hover { color: var(--brand-deep); }

/* ---------- Thank you page ---------- */
.thanks-wrap {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0;
}
.thanks-wrap .mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 22px;
}
.thanks-wrap h1 { font-family: var(--display); color: var(--brand-deep); margin: 0 0 12px; }
.thanks-wrap p { color: var(--ink-soft); margin: 0 0 28px; }


/* ---------- Footer ---------- */
footer {
  background: var(--nav-footer);
  border-top: 1px solid var(--rule);
  padding: 10px 0;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer .copyright { font-size: 0.85rem; color: var(--ink); }
footer .foot-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
footer .foot-links a { font-size: 0.85rem; text-decoration: none; color: var(--ink); }
footer .foot-links a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .recipe-card { margin: 0 auto; transform: rotate(1deg); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .trust .wrap { grid-template-columns: 1fr; padding: 40px 28px; }
}
/* Phones: wordmark on its own line, menu links in a neat row beneath it */
@media (max-width: 640px) {
  .site-nav .wrap {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 14px;
    padding-bottom: 12px;
  }
  .wordmark { font-size: 1.15rem; white-space: nowrap; }
  .nav-links { flex-wrap: wrap; gap: 6px 20px; }
  .nav-links a { font-size: 0.92rem; }
}
@media (max-width: 520px) {
  .showcase-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
  .nav-links { gap: 16px; }
  .hero { padding: 56px 0 64px; }
}

/* ---------- Quick-Start Guide ---------- */
.section-head p.starts-empty { margin-top: 14px; font-size: 0.95rem; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  vertical-align: 3px;
}
.ways {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0 0 20px;
}
.way {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px 20px;
}
.way h3 { margin: 0 0 6px; font-size: 1rem; color: var(--brand-deep); }
.way p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 520px) {
  .ways { grid-template-columns: 1fr; }
}
