/* Sweet Earth Hello — same family as sweetearthgoa.in (quiz draft v0.9, section 16a) */

@font-face { font-family: "Josefin Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("/fonts/josefin-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/josefin-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/josefin-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --teal: #8fb3ad;          /* main buttons (website) */
  --teal-deep: #5f8e87;     /* headings, readable in sunlight */
  --teal-dark: #4f7a74;     /* button pressed */
  --rose: #caaea1;          /* small accents */
  --rose-deep: #ad8676;     /* labels, the little symbols */
  --sage: #bcc9bf;
  --grey: #7f7f7f;          /* body text */
  --grey-dark: #505151;     /* logo, strong text */
  --line: #e6e6e6;
  --sand: #faf7f4;          /* soft panel */
  --error: #a4523f;
  --bg: #ffffff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--grey);
  font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
}

.page { max-width: 460px; margin: 0 auto; padding: 28px 22px 40px; }

.brand {
  display: block; text-align: center; text-decoration: none;
  color: var(--grey-dark); font-weight: 400; letter-spacing: 0.32em; font-size: 15px;
  text-transform: lowercase; margin: 4px 0 30px;
}
.brand span { display: block; margin-top: 6px; color: var(--rose-deep); letter-spacing: 0.4em; font-size: 12px; }

.kicker { color: var(--rose-deep); font-size: 15px; margin: 0 0 8px; }
h1 {
  color: var(--teal-deep); font-weight: 300; font-size: 31px; line-height: 1.2;
  margin: 0 0 16px; letter-spacing: 0;
}
h2 { color: var(--teal-deep); font-weight: 400; font-size: 21px; line-height: 1.3; margin: 34px 0 12px; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; }
.note {
  background: var(--sand); border-radius: 18px; padding: 14px 18px; margin: 18px 0 4px;
  color: var(--grey-dark); font-size: 17px;
}

a { color: var(--teal-deep); text-underline-offset: 3px; }

/* ---------- form ---------- */
form { margin-top: 26px; }
.field { margin-bottom: 14px; }
label.lbl { display: block; font-size: 15px; color: var(--rose-deep); margin: 0 0 6px 18px; }
input[type="text"], input[type="email"] {
  width: 100%; font: inherit; font-size: 18px; color: var(--grey-dark); font-weight: 400;
  padding: 14px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  appearance: none; -webkit-appearance: none;
}
input[type="text"]:focus, input[type="email"]:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(143,179,173,.25); }
input[aria-invalid="true"] { border-color: var(--error); }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 22px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box {
  flex: 0 0 24px; height: 24px; margin-top: 1px; border: 1.5px solid var(--teal); border-radius: 7px;
  display: grid; place-items: center; background: #fff; transition: background .15s;
}
.box::after { content: ""; width: 7px; height: 12px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px,-1px); opacity: 0; }
.check input:checked + .box { background: var(--teal); }
.check input:checked + .box::after { opacity: 1; }
.check input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(143,179,173,.35); }
.check .txt { font-size: 16.5px; line-height: 1.45; color: var(--grey-dark); }

.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

button.cta {
  display: block; width: 100%; font: inherit; font-size: 19px; font-weight: 400; letter-spacing: .02em;
  color: #fff; background: var(--teal); border: 0; border-radius: 999px; padding: 15px 22px; cursor: pointer;
  text-transform: lowercase;
}
button.cta:hover { background: #82a8a2; }
button.cta:active { background: var(--teal-dark); }
button.cta[disabled] { opacity: .6; cursor: default; }

.assure { text-align: center; font-size: 15px; margin: 14px 0 0; }
.assure a { color: var(--grey); }

.err { color: var(--error); font-size: 16px; margin: 10px 0 0 18px; min-height: 1px; }
.err:empty { display: none; }

/* ---------- thank-you ---------- */
.thanks h1 { margin-top: 6px; }
ol.places { list-style: none; counter-reset: p; padding: 0; margin: 0; }
ol.places li { counter-increment: p; position: relative; padding: 12px 0 12px 40px; border-top: 1px solid var(--line); }
ol.places li:last-child { border-bottom: 1px solid var(--line); }
ol.places li::before {
  content: counter(p); position: absolute; left: 0; top: 13px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sand); color: var(--rose-deep); font-size: 14px; display: grid; place-items: center; font-weight: 400;
}
.pname { color: var(--grey-dark); font-weight: 400; }
.parea { color: var(--rose-deep); font-size: 14px; letter-spacing: .04em; }
.pline { display: block; font-size: 16.5px; margin-top: 2px; }

.pill {
  display: inline-block; text-decoration: none; color: #fff; background: var(--teal); border-radius: 999px;
  padding: 12px 22px; font-weight: 400; text-transform: lowercase;
}
.pill.light { background: var(--sage); color: var(--grey-dark); }

footer { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; }
footer a { color: var(--grey); margin: 0 9px; text-decoration: none; }
footer a:hover { color: var(--teal-deep); }

.sym { color: var(--rose-deep); }
[hidden] { display: none !important; }

/* privacy page */
.doc h2 { font-size: 19px; margin-top: 28px; }
.doc ul { padding-left: 20px; margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.small { font-size: 15px; }

@media (max-width: 360px) {
  .page { padding: 22px 16px 34px; }
  h1 { font-size: 27px; }
  body { font-size: 17px; }
}
