/* =========================================================
   Your Hidden Gem — styles
   Mobile-first: base styles are for phones, then
   @media (min-width: ...) blocks add tablet/desktop layout.
   ========================================================= */

/* ---------- Colours & type: change the whole look here ---------- */
:root {
  --cream:        #FBF6EE;  /* page background */
  --sand:         #F2E8D9;  /* alternate section background */
  --sand-dark:    #E4D6C1;  /* borders */
  --ink:          #1D2B2A;  /* main text */
  --muted:        #4F5D5A;  /* secondary text */
  --emerald:      #1F6F5C;  /* primary brand colour / buttons */
  --emerald-dark: #155446;  /* button hover */
  --emerald-soft: #DCEFE7;  /* soft tint */
  --garnet:       #A8324A;  /* accent / highlights */
  --gold:         #D9A441;  /* small decorative sparkle */

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(29, 43, 42, .06), 0 8px 24px rgba(29, 43, 42, .06);
  --max: 1120px;
  --space: clamp(4rem, 9vw, 7rem); /* vertical space between sections */
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 7vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
a  { color: var(--emerald); text-underline-offset: .18em; }
a:hover { color: var(--emerald-dark); }

:focus-visible {
  outline: 3px solid var(--garnet);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow > * { max-width: 46rem; } /* keeps text lines a comfy length, left-aligned with other sections */
.section   { padding-block: var(--space); }
.alt       { background: var(--sand); }
.section-intro { color: var(--muted); font-size: 1.125rem; max-width: 40rem; margin-bottom: 2.5rem; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 8px;
  z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: .8rem 1.5rem;
  background: var(--emerald);
  color: #fff;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  border: 0; border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(31, 111, 92, .25);
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--emerald-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-large { font-size: 1.0625rem; padding: 1rem 1.8rem; min-height: 56px; }
.btn-small { white-space: nowrap; min-height: 44px; padding: .55rem 1.1rem; font-size: .9375rem; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid rgba(228, 214, 193, .7);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.25rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--ink); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo:hover { color: var(--ink); }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-mark.small { width: 22px; height: 22px; }
.logo-accent { color: var(--emerald); }

/* Nav links are hidden on small phones to keep the header tidy;
   the "Free preview" button is always visible. */
.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .975rem;
  padding: .4rem 0;
}
.site-nav a:hover { color: var(--emerald); text-decoration: underline; }

/* ---------- Placeholder warning banner (added by script.js) ---------- */
.placeholder-banner {
  background: #FFF1C9;
  color: #5A3E00;
  border-bottom: 2px solid #E3B33B;
  padding: .7rem 1.25rem;
  font-size: .9375rem;
  text-align: center;
}
.placeholder-banner code { font-weight: 700; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 8vw, 6rem) var(--space); overflow: hidden; }
.hero-inner { display: grid; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-block;
  font-size: .875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: .35rem .8rem; border-radius: 999px;
  margin-bottom: 1.4rem;
}
.highlight {
  color: var(--garnet);
  background-image: linear-gradient(transparent 70%, rgba(217, 164, 65, .35) 70%);
  padding-inline: .05em;
}
.lead { font-size: clamp(1.125rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }
.hero-note { font-size: .9375rem; color: var(--muted); margin-top: 1rem; }

.hero-art { max-width: 460px; margin-inline: auto; width: 100%; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(29, 43, 42, .08)); }

@media (prefers-reduced-motion: no-preference) {
  .pin { animation: pin-drop .9s cubic-bezier(.2, .9, .3, 1.3) both .2s; transform-origin: 200px 178px; }
  .pin-shadow { animation: shadow-in .9s ease both .2s; transform-origin: 200px 182px; }
  .sparkle { animation: twinkle 3.2s ease-in-out infinite 1.2s; transform-origin: 268px 64px; }
}
@keyframes pin-drop { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes shadow-in { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: .15; } }
@keyframes twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.6); opacity: .5; } }

/* ---------- Pitch ---------- */
.pitch p { font-size: 1.125rem; }

/* ---------- What you get ---------- */
.card-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
}
.card {
  background: #fff;
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--emerald-soft);
  fill: none; stroke: var(--emerald); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.extras-note {
  margin: 2rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, .55);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  max-width: 46rem;
}

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.step {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--sand-dark);
}
.step h3 { margin-bottom: .35em; }
.step p { margin: 0; color: var(--muted); }
.step-num {
  flex: none;
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--emerald); color: #fff;
  font: 700 1.25rem/1 var(--font-head);
}
.small-print { margin-top: 2rem; color: var(--muted); font-size: .975rem; }

/* ---------- Who it's for ---------- */
.chips {
  list-style: none; margin: 1.5rem 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .6rem;
}
.chips li {
  background: #fff;
  border: 1px solid var(--sand-dark);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-weight: 500; font-size: .975rem;
}

/* ---------- About ---------- */
.about p { font-size: 1.125rem; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #EDE6DA; }
.contact h2 { color: #fff; }
.contact a { color: #9FE0C8; }
.contact a:hover { color: #fff; }
.contact-email-wrap { margin: 1.75rem 0 .75rem; }
.contact-email {
  display: inline-block;
  font: 600 clamp(1.4rem, 5vw, 2rem)/1.2 var(--font-head);
  word-break: break-word;
}

.contact-form {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
}
.contact-form[hidden] { display: none; }
.form-intro { color: #fff; font-weight: 500; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; color: #fff; }
.optional { font-weight: 400; color: #C9C1B4; }
.field input, .field textarea {
  width: 100%;
  font: inherit; color: var(--ink);
  background: var(--cream);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: .75rem .9rem;
  min-height: 48px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: #9FE0C8; outline: none; }
.field input[aria-invalid="true"] { border-color: #F2A0B0; }
.form-error { color: #FFC2CE; font-weight: 600; }
.contact .btn { background: #9FE0C8; color: var(--ink); box-shadow: none; }
.contact .btn:hover { background: #fff; color: var(--ink); }
.form-help { font-size: .9rem; color: #C9C1B4; margin: .9rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: #142020; color: #C9C1B4; padding-block: 2rem; font-size: .9375rem; }
.footer-inner { display: grid; gap: .5rem; }
.footer-inner p { margin: 0; }
.footer-name {
  display: inline-flex; align-items: center; gap: .5rem;
  color: #fff; font: 700 1.05rem/1.2 var(--font-head);
}

/* =========================================================
   Larger screens
   ========================================================= */
@media (min-width: 560px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .site-nav { display: block; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; }
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { flex-direction: column; }
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; gap: 2rem; }
  .footer-inner p:last-child { text-align: right; }
}

/* Very small phones: shrink the logo text a touch */
@media (max-width: 360px) {
  .logo { font-size: 1.05rem; }
  .btn-small { padding-inline: .9rem; }
}
