/* MyPatchly landing page. Mobile-first. Garden hero + quiz-to-access. */

:root{
  /* Palette from Chris's MyPatchly identity sheet */
  --cream:#F6EFDB;      /* off-white paper base */
  --paper:#FBF7EC;
  --sand:#E6DEC6;       /* pale cream */
  --olive:#5C5D40;      /* deep khaki */
  --ink:#33301F;
  --brown:#3D2B1F;
  --green:#3B7A57;      /* forest green */
  --green-deep:#2F6446;
  --gold:#E8C566;       /* golden yellow, the action colour */
  --gold-deep:#D6AE44;
  --sage:#9CB395;
  --terracotta:#C67D5F;
  --brick:#B4463B;
  --lavender:#A99AC3;
  --sky:#CDE3EE;        /* painted-sky blue */
  --muted:#7A7057;
  --line:#E3D9BF;
  --shadow:rgba(61,43,31,.16);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:"Inter",system-ui,-apple-system,sans-serif;
  color:var(--ink);
  background-color:#EFE6CC; /* base tone so tall pages never show white below the fixed gradient */
  background-image:
    radial-gradient(85% 50% at 50% -6%, rgba(205,227,238,.55) 0%, rgba(205,227,238,0) 62%), /* soft painted-sky wash up top */
    radial-gradient(120% 80% at 50% 0%, #FCF7E9 0%, var(--cream) 55%, #EFE6CC 100%);
  background-attachment:fixed;
  min-height:100vh;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

/* ---- wordmark ---- */
.wordmark{
  display:block;
  text-align:center;
  padding:20px 20px 2px;
  text-decoration:none;
}
.wordmark-img{
  display:inline-block;
  width:200px;
  max-width:58%;
  height:auto;
}

.landing{
  max-width:560px;
  margin:0 auto;
  padding:0 20px;
}

/* ---- hero ---- */
.hero{padding:8px 0 4px}

.hero-art{
  margin:0 auto;
  max-width:76%;
  border-radius:22px;
  overflow:hidden;
  background:var(--paper);
  border:1px solid var(--line);
  box-shadow:0 14px 34px -12px var(--shadow);
}
.hero-img{
  display:block;
  width:100%;
  height:auto;
}

.hero-copy{padding:14px 4px 6px;text-align:center}

.hero-eyebrow{
  font-family:"Cormorant Garamond",Georgia,serif;
  font-style:italic;
  font-size:1.15rem;
  color:var(--green-deep);
  margin:0 0 6px;
}

.hero-title{
  font-family:"Cormorant Garamond",Georgia,serif;
  font-weight:600;
  font-size:2.15rem;
  line-height:1.08;
  color:var(--brown);
  margin:0 0 14px;
  letter-spacing:.005em;
}
.hero-quote{
  font-family:"Caveat",cursive;
  font-size:1.75rem;
  line-height:1.05;
  color:var(--green-deep);
  margin:0 0 12px;
}

.hero-sub{
  font-size:1.04rem;
  color:var(--muted);
  margin:0 auto 24px;
  max-width:34em;
}

/* ---- welcome / about (recap for cold visitors) ---- */
.welcome{padding:2px 4px 0;text-align:center}
.welcome-copy{
  font-size:1.04rem;
  color:var(--ink);
  margin:0 auto;
  max-width:34em;
}

.mid-line{
  max-width:34em;
  margin:26px auto 4px;
  text-align:center;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-style:italic;
  font-size:1.25rem;
  color:var(--olive);
}

.quiz-sub{
  text-align:center;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-style:italic;
  font-size:1.05rem;
  color:var(--muted);
  margin:0 0 22px;
}

.hero-cta{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  background:var(--gold);
  color:var(--brown);
  text-decoration:none;
  font-family:"Oswald",system-ui,sans-serif;
  font-weight:600;
  font-size:1.14rem;
  letter-spacing:.01em;
  padding:14px 32px;
  border-radius:16px;
  border:1.5px solid var(--gold-deep);
  box-shadow:0 9px 20px -8px rgba(61,43,31,.5);
  transition:transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.hero-cta span{transition:transform .15s ease}
.hero-cta:hover{background:var(--gold-deep);transform:translateY(-1px)}
.hero-cta:hover span{transform:translateX(3px)}
.hero-cta:active{transform:translateY(0)}

.hero-cta-foot{
  font-size:.9rem;
  color:var(--muted);
  margin:16px auto 0;
  max-width:30em;
}

/* ---- quiz section ---- */
.quiz-section{
  margin:40px 0 8px;
  padding:30px 22px 34px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:0 14px 34px -16px var(--shadow);
  scroll-margin-top:14px;
}
.quiz-eyebrow{
  text-align:center;
  font-family:"Oswald",system-ui,sans-serif;
  text-transform:uppercase;
  letter-spacing:.22em;
  font-size:.74rem;
  font-weight:600;
  color:var(--gold-deep);
  margin:0 0 8px;
}
.quiz-heading{
  font-family:"Cormorant Garamond",Georgia,serif;
  font-weight:600;
  font-size:1.7rem;
  line-height:1.12;
  color:var(--brown);
  text-align:center;
  margin:0 0 10px;
}

/* ---- quiz component (rendered by quiz.js) ---- */
.quiz-progress-row{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:18px;min-height:18px;
}
.quiz-dots{display:flex;gap:7px}
.dot{width:8px;height:8px;border-radius:50%;background:var(--line);transition:background .2s ease}
.dot-on{background:var(--green)}
.pace-cue{font-size:.8rem;color:var(--muted);font-style:italic}

.quiz-question{
  font-family:"Cormorant Garamond",Georgia,serif;
  font-weight:600;
  font-size:1.42rem;
  line-height:1.2;
  color:var(--brown);
  margin:0 0 18px;
}

.quiz-options{display:flex;flex-direction:column;gap:11px}
.option{
  font-family:inherit;
  font-size:1.02rem;
  text-align:left;
  color:var(--ink);
  background:var(--cream);
  border:1.5px solid var(--line);
  border-radius:14px;
  padding:15px 18px;
  cursor:pointer;
  transition:border-color .15s ease, background .15s ease, transform .1s ease;
}
.option:hover{border-color:var(--green);background:#fff}
.option:active{transform:scale(.99)}

.quiz-nav{
  display:flex;align-items:center;justify-content:space-between;
  margin-top:20px;min-height:20px;font-size:.92rem;
}
.quiz-nav button,.quiz-nav a{
  background:none;border:none;padding:0;cursor:pointer;
  font-family:inherit;font-size:.92rem;color:var(--muted);text-decoration:none;
}
.quiz-nav button:hover,.quiz-nav a:hover{color:var(--green)}

/* ---- result + email gate ---- */
.result-wrap{text-align:center;padding:6px 2px}
.result-eyebrow{
  font-family:"Oswald",system-ui,sans-serif;
  text-transform:uppercase;letter-spacing:.22em;font-size:.74rem;font-weight:600;
  color:var(--gold-deep);margin:0 0 10px;
}
.result-title{
  font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;
  font-size:2rem;line-height:1.1;color:var(--brown);margin:0 0 6px;
}
.result-title em{font-style:normal;color:var(--green)}
.result-line{
  font-family:"Caveat",cursive;font-size:1.5rem;color:var(--green-deep);margin:0 0 18px;
}
.result-body{font-size:1.02rem;color:var(--ink);margin:0 auto 16px;max-width:34em;text-align:left}
.result-thanks{font-size:.98rem;color:var(--muted);margin:18px auto 0;max-width:32em}
.result-thanks em{font-style:normal;color:var(--green);font-weight:600}

.result-form{margin:22px 0 6px}
.result-form form{display:flex;flex-direction:column;gap:12px;max-width:24em;margin:0 auto}
.result-form input{
  font-family:inherit;
  font-size:16px; /* 16px keeps iOS from zooming on focus */
  padding:15px 18px;
  border:1.5px solid var(--line);
  border-radius:14px;
  background:var(--cream);
  color:var(--ink);
  text-align:center;
}
.result-form input:focus{outline:none;border-color:var(--green);background:#fff}
.btn{
  font-family:"Oswald",system-ui,sans-serif;font-size:1.1rem;font-weight:600;letter-spacing:.01em;
  color:var(--brown);background:var(--gold);border:1.5px solid var(--gold-deep);
  padding:14px 26px;border-radius:16px;cursor:pointer;
  box-shadow:0 9px 20px -8px rgba(61,43,31,.5);
  transition:background .15s ease, transform .12s ease;
}
.btn:hover{background:var(--gold-deep);transform:translateY(-1px)}
.result-trust{font-size:.85rem;color:var(--muted);margin:14px auto 0;max-width:28em}
.result-actions{margin-top:20px;font-size:.92rem;color:var(--muted)}
.result-actions a{color:var(--muted);cursor:pointer;text-decoration:none}
.result-actions a:hover{color:var(--green)}

/* ---- colophon ---- */
.colophon{
  max-width:42em;margin:30px auto 40px;padding:0 26px;
  text-align:center;font-size:.82rem;color:var(--muted);line-height:1.5;
}
.colophon a{color:var(--green);text-decoration:none}

/* focus visibility for keyboard users */
a:focus-visible,button:focus-visible,input:focus-visible{
  outline:2.5px solid var(--gold);outline-offset:2px;border-radius:6px;
}

/* ---- larger screens ---- */
@media (min-width:820px){
  .landing{max-width:1060px;padding-top:6px}
  .hero{
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:60px;
    padding:36px 0 20px;
    min-height:66vh;
  }
  .hero-art{flex:0 0 44%;max-width:44%;margin:0}
  .hero-copy{flex:1;text-align:left;padding:0;max-width:34em}
  .hero-eyebrow{font-size:1.3rem;margin-bottom:10px}
  .hero-title{font-size:3rem;line-height:1.04;margin-bottom:18px}
  .hero-sub{margin-left:0;margin-right:0;font-size:1.12rem;margin-bottom:28px}
  .hero-cta-foot{margin-left:0;margin-right:0}
  .quiz-section{max-width:620px;margin-left:auto;margin-right:auto;padding:38px 40px 42px}
  .wordmark{padding-top:30px}
  .wordmark-img{width:250px;max-width:250px}
}

/* ---- quiz selection, progression and gate art (17 Oct) ---- */
.option{position:relative}
.option.selected{
  background:#EEF4E8;
  border-color:var(--green);
  box-shadow:0 0 0 2px var(--green) inset, 0 6px 16px -10px rgba(47,100,70,.55);
  color:var(--green-deep);
  font-weight:600;
  padding-right:48px;
}
.option.selected::after{
  content:"\2713";
  position:absolute;right:14px;top:50%;transform:translateY(-50%);
  width:24px;height:24px;border-radius:50%;
  background:var(--green);color:#fff;
  font-size:.85rem;line-height:24px;text-align:center;font-weight:700;
}
.option.selected:hover{background:#EEF4E8}

.next-arrow,.mail-go{
  display:flex;align-items:center;justify-content:center;gap:10px;
  width:100%;min-height:54px;margin-top:20px;
  font-family:"Oswald",system-ui,sans-serif;font-size:1.15rem;font-weight:600;letter-spacing:.02em;
  color:var(--brown);background:var(--gold);
  border:1.5px solid var(--gold-deep);border-radius:16px;
  box-shadow:0 9px 20px -8px rgba(61,43,31,.5);
  cursor:pointer;
  transition:background .15s ease, transform .12s ease, opacity .15s ease;
}
.next-arrow span,.mail-go span{font-size:1.35rem;line-height:1}
.next-arrow:hover:not(:disabled),.mail-go:hover{background:var(--gold-deep);transform:translateY(-1px)}
.next-arrow:active:not(:disabled),.mail-go:active{transform:scale(.98)}
.next-arrow:not(:disabled){animation:nudge .5s ease-out 1}
.next-arrow:disabled{
  background:var(--sand);border-color:var(--line);color:var(--muted);
  box-shadow:none;cursor:not-allowed;opacity:.8;
}
@keyframes nudge{0%{transform:scale(.96)}60%{transform:scale(1.03)}100%{transform:scale(1)}}
.next-hint{text-align:center;font-size:.85rem;color:var(--muted);margin:8px 0 0;font-style:italic}

.gate-sub{font-size:1rem;color:var(--ink);margin:6px auto 0;max-width:30em}
.gate-art{
  display:block;width:min(300px,82%);max-width:100%;height:auto;
  margin:14px auto 0;
}
.mail-pill{display:flex;flex-direction:column;gap:0}
.mail-ico{display:none}
.mail-go{margin-top:12px}

.match-divider{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 auto 10px;max-width:200px}
.match-divider span{flex:1;height:1px;background:var(--line)}
.match-divider .mf{flex:0 0 10px;height:10px;border-radius:50%;background:var(--gold)}
.match-scene{display:block;width:100%;max-width:100%;height:auto;margin:20px auto 0;border-radius:14px}
.quiz,.quiz-section{overflow-wrap:break-word}

@media (prefers-reduced-motion:reduce){.next-arrow:not(:disabled){animation:none}}
