/* INYF sales page styles.
   Colors and fonts match the book cover and the Relationship Translator app. */

:root {
  --ground: #E8F4F9;   /* pale sky background */
  --sky: #A2DBED;      /* cover blue */
  --navy: #283677;     /* cover navy */
  --deep: #1B2559;     /* darker navy for the Translator band */
  --blue: #0051E1;     /* link / accent blue */
  --ink: #2B2D33;      /* body text */
  --muted: #5A6378;
  --line: #C9E9F1;
  --white: #FFFFFF;
  --radius: 10px;
}

* { box-sizing: border-box; }

/* Make sure anything marked hidden stays hidden (the form swap relies on this). */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

h1, h2, h3 {
  font-family: "Bree Serif", Georgia, serif;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; margin-bottom: 0.3em; }

a { color: var(--blue); }

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.narrow-left { max-width: 720px; }
.center { text-align: center; }

section { padding: 80px 0; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 16px;
}
.eyebrow.light { color: var(--sky); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--deep); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--white); }
.btn-light { background: var(--sky); color: var(--deep); }
.btn-light:hover { background: var(--white); }
/* Outlined button for the dark Translator band */
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--sky); }
.btn-outline-light:hover { background: rgba(162, 219, 237, 0.15); }

/* ---------- 1. Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--ground) 0%, var(--sky) 100%);
  padding: 72px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.hero h1 span { display: block; color: var(--deep); }
.subtitle { font-size: 1.25rem; color: var(--navy); margin: 0 0 20px; }
.lede { font-size: 1.2rem; margin: 0 0 28px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.more-stores { font-size: 0.95rem; color: var(--muted); margin: 16px 0 0; }
/* The cover, with a phone screenshot of the app overlapping its lower left corner */
.hero-cover { position: relative; max-width: 380px; margin-left: auto; }
.hero-cover .cover {
  border-radius: 4px;
  box-shadow: 0 24px 48px rgba(27, 37, 89, 0.3);
}
.hero-cover .hero-phone {
  position: absolute;
  left: -44px;
  bottom: -28px;
  width: 44%;
  border-radius: 16px;
  border: 5px solid #0F1638;          /* thin phone-style frame */
  box-shadow: 0 18px 36px rgba(27, 37, 89, 0.4);
}

/* ---------- 1b. Bundle ---------- */
.bundle-intro { max-width: 720px; margin: 0 0 32px; }
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.bundle-card {
  background: var(--ground);
  border: 1px solid var(--line);
  border-top: 5px solid var(--navy);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.bundle-card h3 { font-size: 1.5rem; }
.price {
  font-family: "Bree Serif", Georgia, serif;
  font-size: 2.2rem;
  color: var(--deep);
  margin: 0 0 12px;
  line-height: 1;
}
.bundle-card ul { margin: 0 0 24px; padding-left: 1.2em; flex: 1; }
.bundle-card li { margin-bottom: 6px; }
.bundle-card .btn { text-align: center; }
.pieces { margin: 28px 0 0; color: var(--muted); }

/* ---------- 2. Café ---------- */
.cafe { font-size: 1.3rem; }
.cafe p { margin: 0 0 1em; }
.pull {
  font-family: "Bree Serif", Georgia, serif;
  font-size: 2rem;
  color: var(--navy);
  margin: 1.2em 0 !important;
}

/* ---------- 3 & 7. Plain text sections ---------- */
.found, .about { background: var(--ground); }

/* ---------- 4. Inside ---------- */
.chapters {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.chapters li {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sky);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.chapters strong { display: block; color: var(--navy); margin-bottom: 4px; }
.note-line { max-width: 720px; color: var(--muted); }

/* ---------- 5. Translator ---------- */
.translator { background: var(--deep); color: #E6ECF7; padding: 96px 0; }
.translator h2, .translator h3 { color: var(--white); }
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.shot { margin: 0; }
.shot.placeholder {
  aspect-ratio: 9 / 16;
  max-height: 460px;
  border: 2px dashed var(--sky);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--sky);
  font-size: 0.95rem;
}
.shot img {
  border-radius: 18px;
  border: 6px solid #0F1638;          /* thin phone-style frame */
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}
.shot figcaption {
  text-align: center;
  color: var(--sky);
  font-size: 0.95rem;
  margin-top: 12px;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.features p { margin: 0; }
.is-isnt {
  background: rgba(162, 219, 237, 0.1);
  border: 1px solid rgba(162, 219, 237, 0.35);
  border-radius: var(--radius);
  padding: 22px 26px;
  max-width: 820px;
  margin-bottom: 36px;
}
.is-isnt p { margin: 0; }
.translator-cta { font-size: 1.2rem; margin-bottom: 16px; }

/* ---------- 6. Praise ---------- */
.edition-label { color: var(--muted); font-style: italic; margin-top: -0.4em; }
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
blockquote {
  margin: 0;
  background: var(--ground);
  border-radius: var(--radius);
  padding: 28px;
}
blockquote p { margin: 0 0 16px; }
cite { font-style: normal; font-weight: 600; color: var(--navy); font-size: 0.95rem; }
cite::before { content: "— "; }

/* ---------- 8. FAQ ---------- */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.15rem;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; }

/* ---------- 9. Signup ---------- */
.sample { background: linear-gradient(180deg, var(--ground), var(--sky)); }
.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 28px 0 12px;
}
.signup input {
  flex: 1 1 200px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
}
.signup input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.form-error { color: #B3261E; font-weight: 600; }
.thanks { background: var(--white); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
.or { margin-top: 28px; }

footer { background: var(--navy); color: #DDE5F5; padding: 28px 0; text-align: center; font-size: 0.95rem; }
footer p { margin: 0; }
footer a { color: var(--white); }

.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;
}

/* ---------- Draft notes ----------
   Yellow boxes that flag things to confirm. They show on the draft only.
   Before launch, delete them from index.html (or set display: none here). */
.draft-note {
  background: #FFF6C9;
  color: #5C4A00;
  border: 1px dashed #C9A800;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.9rem;
  margin-top: 16px;
}

/* ---------- Phones and small tablets ---------- */
@media (max-width: 800px) {
  section { padding: 56px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-cover { order: -1; max-width: 220px; margin: 0 auto 28px; }
  .hero-cover .hero-phone { left: -40px; bottom: -24px; }
  .shots { grid-template-columns: 1fr; max-width: 300px; margin-left: auto; margin-right: auto; }
  .cafe { font-size: 1.15rem; }
}
