/* PadPing V3 landing page — plain CSS, mobile-first.
   Only the hero headline/subhead changes between variants; everything else is constant. */

:root {
  --bg: #ffffff;
  --bg-muted: #f4f6f5;
  --bg-cta: #0b6157;
  --text: #1a1d21;
  --text-soft: #4a5259;
  --text-on-dark: #ffffff;
  --primary: #0b6157;
  --primary-hover: #084a43;
  --border: #d9dedd;
  --accent: #e6533b;
  --focus: #0b6157;
  --radius: 12px;
  --maxw: 42rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3 { line-height: 1.25; }

a { color: var(--primary); }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 0.5rem 0.875rem;
  border-radius: 0 0 8px 0;
  z-index: 10;
}
.skip-link:focus {
  left: 0;
}

/* --- Header --- */
.site-header {
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text);
}
.brand__mark { color: var(--primary); display: block; }
.brand__name { font-size: 1.125rem; letter-spacing: -0.01em; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.75rem 1.25rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn--primary {
  background: var(--primary);
  color: var(--text-on-dark);
}
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--sm { padding: 0.5rem 0.875rem; font-size: 0.9375rem; }
.btn--lg { padding: 0.9375rem 1.5rem; font-size: 1.0625rem; width: 100%; }

@media (min-width: 34rem) {
  .btn--lg { width: auto; }
}

/* --- Focus states --- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* --- Hero --- */
.hero {
  padding: 3rem 0 2.5rem;
}
.hero__headline {
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.hero__subhead {
  font-size: 1.15rem;
  color: var(--text-soft);
  margin: 0 0 1.75rem;
}
.hero__actions { margin-bottom: 1rem; }
.hero__support {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 0;
}

@media (min-width: 40rem) {
  .hero { padding: 4.5rem 0 3.5rem; }
  .hero__headline { font-size: 2.6rem; }
}

/* Variant visibility — resolved by variant-init.js (data-variant on <html>)
   before first paint, so there is no content flash. The last rule is the
   no-JS fallback and shows Variant A. */
.hero__v { display: none; }
[data-variant="a"] .hero__v--a,
[data-variant="b"] .hero__v--b,
[data-variant="c"] .hero__v--c { display: inline; }
html:not([data-variant]) .hero__v--a { display: inline; }

/* --- Sections --- */
.section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--border);
}
.section--muted { background: var(--bg-muted); }
.section__heading {
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}

@media (min-width: 40rem) {
  .section { padding: 3.5rem 0; }
  .section__heading { font-size: 1.6rem; }
}

/* --- How it works --- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--bg);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.625rem;
}
.step__title { font-size: 1.075rem; margin: 0 0 0.25rem; }
.step__body { margin: 0; color: var(--text-soft); }

@media (min-width: 40rem) {
  .steps { grid-template-columns: 1fr 1fr; }
}

/* --- Why / prose --- */
.prose { margin: 0 0 1rem; max-width: 36rem; }
.questions {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.625rem;
}
.questions__item {
  padding-left: 1.5rem;
  position: relative;
  font-weight: 600;
}
.questions__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
}

/* --- Task example card --- */
.task-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--bg);
  max-width: 24rem;
}
.task-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.875rem;
}
.task-card__title { font-size: 1.2rem; margin: 0; }
.task-card__due {
  font-size: 0.9rem;
  font-weight: 600;
  color: #8a3a12;
  background: #fbe8df;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}
.task-card__details { margin: 0 0 1rem; }
.task-card__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}
.task-card__row:last-child { border-bottom: 0; }
.task-card__details dt { color: var(--text-soft); margin: 0; }
.task-card__details dd { margin: 0; font-weight: 600; text-align: right; }
.task-card__foot { display: flex; }
.done-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  padding: 0.5rem 1rem;
}
.done-pill svg { color: #fff; }
.caption {
  margin: 0.875rem 0 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* --- Final CTA + signup --- */
.section--cta {
  background: var(--bg-cta);
  color: var(--text-on-dark);
}
.section--cta a { color: #fff; }

/* On the dark-teal CTA band, the primary button must not be teal-on-teal. */
.section--cta .btn--primary {
  background: #ffffff;
  color: var(--primary);
}
.section--cta .btn--primary:hover { background: #e7f0ed; }

/* Focus rings must stay visible against the dark band. */
.section--cta a:focus-visible,
.section--cta button:focus-visible,
.section--cta input:focus-visible {
  outline-color: #ffffff;
}
.section__heading--cta {
  font-size: 1.5rem;
  max-width: 30rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 40rem) {
  .section__heading--cta { font-size: 1.85rem; }
}

.signup { max-width: 26rem; }
.signup__field { margin-bottom: 0.875rem; }
.signup__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375rem;
}
.signup__input {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.875rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}
.signup__error {
  margin: 0 0 0.875rem;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  background: #fff2f0;
  color: #8a1c10;
  font-weight: 600;
  border: 1px solid #f2b8b0;
}
.signup__submit { margin-top: 0.25rem; }
.signup__privacy {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: #d7efe9;
}
.signup__hp { position: absolute; left: -9999px; }

.signup__success {
  max-width: 30rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  padding: 1.25rem 1.375rem;
}
.signup__success-title { margin: 0 0 0.375rem; font-size: 1.2rem; }
.signup__success p { margin: 0 0 0.5rem; }
.signup__success p:last-child { margin-bottom: 0; }

/* Standalone no-JS confirmation page (/success.html) */
.thanks-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.thanks-page .signup__success { max-width: 32rem; }
.thanks-page__back { margin-top: 1rem; }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.site-footer p { margin: 0.25rem 0; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
