/* ===================================================================
   Groundwork Labs — landing page
   Aesthetic: scholarly, grounded, blueprint-meets-art.
   Mobile-first, single column, fully responsive.
   =================================================================== */

:root {
  --parchment: #FCF6F1;
  --coffee: #1E1002;
  --teal: #006960;
  --emerald: #48BF84;
  --steel: #7EB5C4;

  --paper-edge: #f1e7dd;
  --line: rgba(30, 16, 2, 0.14);
  --line-strong: rgba(30, 16, 2, 0.28);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;

  --maxw: 1080px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 4px;
}

/* ------------------------------- reset ------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--parchment);
  color: var(--coffee);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  font-variation-settings: "opsz" 144;
}

/* ------------------------------ a11y -------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--coffee);
  color: var(--parchment);
  padding: 0.6rem 1rem;
  z-index: 50;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ---------------------------- layout -------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 720px; }

.section {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  position: relative;
}

/* subtle dividing rule between sections */
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line-strong);
}

.section__index {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

.section h2 {
  font-size: clamp(1.8rem, 5.5vw, 2.7rem);
  margin-bottom: 1.1rem;
}

.section__intro,
.section__intro a { color: rgba(30, 16, 2, 0.78); }
.section__intro {
  font-size: 1.06rem;
  max-width: 60ch;
  margin: 0 0 1.75rem;
}

.lede {
  font-size: clamp(1.15rem, 3vw, 1.42rem);
  line-height: 1.55;
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 40;
  margin: 0;
  color: var(--coffee);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1.1rem;
}

/* ---------------------------- buttons ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;            /* >= 44px tap target */
  padding: 0.7rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn--primary {
  background-color: var(--emerald);
  color: var(--coffee);
  box-shadow: 3px 3px 0 var(--coffee);
}
.btn--primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--coffee);
}
.btn--primary:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--coffee);
}

/* ----------------------------- hero --------------------------------- */
.hero {
  padding-block: clamp(3rem, 11vw, 7rem);
  border-bottom: 1px solid var(--line-strong);
}
.hero__grid {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: clamp(2.25rem, 6vw, 3.5rem);
}
.hero__copy { max-width: 38rem; }

.hero h1 {
  font-size: clamp(2.6rem, 11vw, 4.8rem);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.hero__sub {
  font-size: clamp(1.08rem, 3.4vw, 1.3rem);
  line-height: 1.55;
  color: rgba(30, 16, 2, 0.82);
  max-width: 34rem;
  margin: 0 0 2rem;
}

.hero__visual {
  align-self: center;
  width: min(320px, 80vw);
}
.cluster {
  width: 100%;
  height: auto;
  filter: drop-shadow(6px 8px 0 rgba(30, 16, 2, 0.12));
}

/* ----------------------------- cards -------------------------------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.card {
  background: var(--parchment);
  border: 1.5px solid var(--coffee);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 5px 5px 0 rgba(0, 105, 96, 0.18);
}
.card__mark { width: 48px; height: 48px; }
.card__title {
  font-size: 1.7rem;
  font-weight: 600;
}
.card__desc {
  margin: 0;
  color: rgba(30, 16, 2, 0.82);
}
.card__foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.card__price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--teal);
}
.card__cta { margin-left: auto; }

/* --------------------- pricing / discount codes --------------------- */
.codes {
  margin-top: 2rem;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--steel);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 1.9rem);
  background: rgba(126, 181, 196, 0.08);
}
.codes__label {
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--teal);
}
.codes__list {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.codes__list li {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  font-weight: 500;
}
.codes__pct {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--coffee);
  min-width: 3.2rem;
}
.codes__note { margin: 0; color: rgba(30, 16, 2, 0.78); font-size: 0.98rem; }

/* ------------------------------ faq --------------------------------- */
.faq__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.faq__item {
  border-bottom: 1px solid var(--line-strong);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.18rem;
  line-height: 1.35;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after {
  transform: translateY(-35%) rotate(-135deg);
}
.faq__item p { margin: 0 0 1rem; color: rgba(30, 16, 2, 0.82); }
.faq__item > p:first-of-type { margin-top: -0.2rem; }
.faq__sublist {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: rgba(30, 16, 2, 0.82);
}
.faq__sublist li { margin-bottom: 0.3rem; }

/* ----------------------------- form --------------------------------- */
.form { display: grid; gap: 1.25rem; max-width: 34rem; }
.form__hp { position: absolute; left: -5000px; }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--coffee);
  background: var(--parchment);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.55; }
.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--teal) 50%),
    linear-gradient(135deg, var(--teal) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 105, 96, 0.16);
}
.form__submit { justify-self: start; margin-top: 0.25rem; }
.form__status {
  margin: 0.25rem 0 0;
  font-size: 0.96rem;
  font-weight: 500;
  min-height: 1.2rem;
}
.form__status.is-success { color: var(--teal); }
.form__status.is-error { color: #b3261e; }

/* ---------------------------- footer -------------------------------- */
.footer {
  border-top: 1px solid var(--line-strong);
  padding-block: 2.75rem;
  background: var(--paper-edge);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}
.footer__mark { width: 28px; height: 28px; margin-bottom: 0.4rem; }
.footer__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}
.footer__domain {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(30, 16, 2, 0.62);
  letter-spacing: 0.02em;
}
.footer__admin {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
}
.footer__admin:hover,
.footer__admin:focus-visible { text-decoration: underline; }

/* -------------------------- reveal anim ----------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ======================= responsive (>= 768px) ====================== */
@media (min-width: 768px) {
  .hero__grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 6vw, 5rem);
  }
  .hero__copy { flex: 1 1 56%; }
  .hero__visual { flex: 0 0 auto; width: min(360px, 40vw); align-self: center; }

  .cards { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
}

@media (min-width: 1024px) {
  .hero__visual { width: 400px; }
}

/* --------------------- reduced motion ------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .field input, .field select, .field textarea { transition: none; }
}
