/* InkyWink MVP — warm cream + coral, 2024–2026 consumer landing */
:root {
  --ink: #1c1917;
  --muted: #78716c;
  --paper: #faf7f2;
  --paper-deep: #f3ebe3;
  --card: #ffffff;
  --accent: #e85d4c;
  --accent-hover: #d44d3d;
  --accent-soft: #fce8e4;
  --accent-wash: rgba(232, 93, 76, 0.08);
  --line: #e8e0d6;
  --line-strong: #ddd4c8;
  --shadow: 0 12px 40px rgba(28, 25, 23, 0.07);
  --shadow-sm: 0 4px 16px rgba(28, 25, 23, 0.05);
  --shadow-glow: 0 8px 32px rgba(232, 93, 76, 0.18);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xl: 24px;
  --font: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", "DM Sans", Georgia, serif;
  --content: 800px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--accent-wash), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(240, 160, 144, 0.12), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.deco-strip {
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #f0a090 40%, transparent 100%);
  opacity: 0.9;
}

.wrap {
  width: min(var(--content), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2rem 0;
}

/* ——— Hero ——— */
.hero {
  padding-top: 3.5rem;
  padding-bottom: 1.25rem;
  text-align: center;
}
.hero-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.logo-row {
  margin: 0 0 1.5rem;
  display: flex;
  justify-content: center;
}
.logo {
  display: block;
  width: min(240px, 70vw);
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    var(--shadow-glow),
    0 2px 8px rgba(28, 25, 23, 0.06);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--ink);
}

h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.9rem;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 1.35rem;
  line-height: 1.55;
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
}

/* Pill badges */
.pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.pills li {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* ——— Sample ——— */
.sample {
  text-align: center;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.sample .small {
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
}
.sample-frame {
  margin: 1.5rem auto;
  max-width: 340px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.sample-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.sample-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  justify-content: center;
  align-items: center;
  margin: 1.25rem 0 0;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.35rem;
  min-height: 48px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn-secondary:hover {
  background: var(--accent-soft);
  box-shadow: 0 4px 14px rgba(232, 93, 76, 0.15);
}
.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.text-link:hover { opacity: 0.8; text-decoration: underline; }

/* ——— Signup card ——— */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2rem 1.85rem;
  margin: 1.75rem auto;
  box-shadow: var(--shadow);
}

.signup {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.35rem;
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85em;
}

input {
  font: inherit;
  font-weight: 400;
  padding: 0.85rem 1.05rem;
  min-height: 48px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input::placeholder { color: #a8a29e; }

button {
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 1rem 1.25rem;
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(232, 93, 76, 0.3);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
button:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 24px rgba(232, 93, 76, 0.36);
}
button:active { transform: translateY(1px); }

/* ——— Feature grid (Why parents sign up) ——— */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}
.feature-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ——— Simple bullets (What you get) ——— */
.bullets {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}
.bullets li { margin: 0.55rem 0; }

/* ——— FAQ ——— */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  margin: 0.5rem 0;
  background: var(--card);
  box-shadow: none;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1rem 1.15rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 48px;
  transition: background 0.15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { background: rgba(252, 232, 228, 0.4); }
.faq details[open] summary {
  border-bottom: 1px solid var(--line);
}
.faq p {
  margin: 0;
  padding: 0.9rem 1.15rem 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.fineprint, .small {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}

/* ——— Footer ——— */
.foot {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.88rem;
}
.foot p { margin: 0.35rem 0; }

/* ——— Tablet ——— */
@media (max-width: 768px) {
  .wrap {
    width: min(var(--content), calc(100% - 2rem));
    padding: 1.5rem 0;
  }
  .hero { padding-top: 2.5rem; padding-bottom: 1rem; }
  .logo { width: min(200px, 65vw); height: auto; border-radius: 14px; }
  h1 { font-size: clamp(1.65rem, 5vw, 2.2rem); }
  .lede { font-size: 1.02rem; }
  .card { padding: 1.6rem 1.4rem; margin: 1.35rem auto; }
  .sample { padding-top: 1.75rem; padding-bottom: 1.75rem; }
  input { font-size: 1rem; }
  button { font-size: 1.02rem; }
}

/* ——— Phone ——— */
@media (max-width: 480px) {
  .wrap {
    width: min(var(--content), calc(100% - 1.5rem));
    padding: 1.25rem 0;
  }
  .hero { padding-top: 2rem; padding-bottom: 0.75rem; }
  .logo { width: min(180px, 70vw); height: auto; border-radius: 12px; }
  .logo-row { margin-bottom: 1.15rem; }
  .eyebrow { margin-bottom: 0.55rem; }
  h1 { font-size: 1.55rem; line-height: 1.22; margin-bottom: 0.75rem; }
  h2 { font-size: 1.2rem; }
  .lede { font-size: 0.98rem; margin-bottom: 1.1rem; }
  .pills { gap: 0.4rem; }
  .pills li { font-size: 0.72rem; padding: 0.35rem 0.7rem; }
  .card { padding: 1.35rem 1.1rem; margin: 1.15rem auto; border-radius: var(--radius); }
  .name-row { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; gap: 0.65rem; }
  .sample-frame { max-width: 280px; padding: 0.75rem; }
  .sample-actions { flex-direction: column; gap: 0.75rem; }
  .btn-secondary { width: 100%; max-width: 280px; }
  button { width: 100%; }
  .foot { padding-bottom: 2.75rem; }
}


/* ——— Brevo iframe embed ——— */
.esp-embed {
  margin-top: 0.5rem;
  width: 100%;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.esp-embed iframe {
  background: transparent;
}

/* ——— Thanks pack gallery ——— */
.pack {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.pack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1.25rem;
  align-items: start;
}
.pack-card {
  text-align: center;
}
.pack-card .sample-frame {
  margin: 0 auto 1rem;
  max-width: 100%;
}
.pack-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.pack-card .small {
  margin: 0 auto 0.85rem;
  max-width: 22em;
}
.pack-card .sample-actions {
  margin: 0;
}
.pack-note {
  text-align: center;
  margin: 1.75rem auto 0;
  max-width: 32em;
}
@media (max-width: 640px) {
  .pack-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .pack-card .sample-frame {
    max-width: 300px;
  }
}

/* ——— Hero CTA (added 2026-09-28; scrolls to #signup) ——— */
html { scroll-behavior: smooth; }
.hero-cta { margin: 0 0 1.25rem; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.95rem 1.6rem;
  min-height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(232, 93, 76, 0.3);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 24px rgba(232, 93, 76, 0.36);
}
@media (max-width: 480px) {
  .btn-primary { width: 100%; max-width: 280px; }
}

/* ——— Fixes (2026-09-28) ———
   1) `.signup { display:grid }` was overriding the HTML `hidden` attribute, so the legacy
      form showed as three empty boxes under the Brevo iframe.
   2) Brevo form is ~600px tall on desktop and ~720px on phones; the old 520px iframe cut off
      the SUBSCRIBE button. */
[hidden] { display: none !important; }
.esp-embed iframe { min-height: 620px; }
@media (max-width: 480px) {
  .esp-embed iframe { min-height: 740px; }
}
