/* Roots Daily — pages-inner.css
 * Styles for inner content pages: about, contact, disclaimer, privacy.
 * Single-column reading layout; widens slightly on desktop.
 */

/* ===== Content wrapper ===== */
.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 108px 22px 60px;
}

@media (min-width: 900px) {
  .wrap {
    max-width: 760px;
    padding: 132px 32px 80px;
  }
}

@media (min-width: 1200px) {
  .wrap {
    max-width: 820px;
  }
}

/* ===== Page hero (label + title + bar) ===== */
.pageHero {
  text-align: center;
  margin-bottom: 36px;
}

@media (min-width: 900px) {
  .pageHero {
    margin-bottom: 48px;
  }
}

.pageLabel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid rgba(196, 109, 125, 0.18);
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1.pageTitle {
  font-family: var(--serif);
  font-size: clamp(36px, 7vw, 60px);
  line-height: 1;
  letter-spacing: -0.045em;
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  /* Balance line breaks so multi-line headings don't get one orphan word
     on the last line. Falls back gracefully on browsers without support. */
  text-wrap: balance;
  /* Keep long headings from running edge-to-edge inside the .wrap. */
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

/* Modifier for sentence-style page titles ("Your subscription is active.",
   "Payment didn't go through.") — slightly smaller scale + roomier wrap
   width so a full sentence reads as one comfortable block instead of a
   billboard. */
h1.pageTitle.pageTitle--statement {
  font-size: clamp(28px, 5.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

h1.pageTitle em {
  font-style: italic;
  color: var(--teal);
}

.heroBar {
  width: 48px;
  height: 4px;
  border-radius: 999px;
  background: var(--teal);
  margin: 24px auto 0;
}

/* ===== Body content typography ===== */
.content > p {
  font-size: 17px;
  line-height: 1.72;
  color: var(--muted);
  margin: 0 0 18px;
}

@media (min-width: 900px) {
  .content > p {
    font-size: 18px;
  }
}

.content > p.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
}

@media (min-width: 900px) {
  .content > p.lead {
    font-size: 21px;
  }
}

.content > p strong {
  color: var(--ink);
  font-weight: 700;
}

.content > p em {
  font-style: italic;
  color: var(--teal);
  font-weight: 600;
}

.content h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 5vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 48px 0 18px;
  font-weight: 700;
  color: var(--navy);
  position: relative;
}

.content h2::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: var(--teal);
  margin-bottom: 14px;
}

/* ===== About: belief cards ===== */
.beliefs {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.belief {
  background: white;
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: var(--softshadow);
  position: relative;
  overflow: hidden;
}

.belief p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
}

.belief::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--teal);
}

/* ===== Bulleted list (contact, privacy) ===== */
ul.bulleted {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 12px;
}

ul.bulleted li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

ul.bulleted li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* ===== Disclaimer: callout box (paper bg, saffron left border) ===== */
.callout {
  background: var(--paper);
  border-radius: 22px;
  padding: 22px;
  margin: 24px 0;
  border-left: 3px solid var(--saffron);
}

.callout p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
}

.callout p + p {
  margin-top: 10px;
}

.callout strong {
  font-weight: 700;
  color: var(--navy);
}

/* ===== Disclaimer: acknowledgement box ===== */
.acknowledge {
  background: white;
  border-radius: 22px;
  padding: 24px;
  margin: 30px 0 0;
  box-shadow: var(--softshadow);
  text-align: center;
}

.acknowledge p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  font-style: italic;
}

/* ===== Privacy: side note (paper bg, saffron left border) ===== */
.note {
  background: var(--paper);
  border-radius: 20px;
  padding: 18px 20px;
  margin: 20px 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  border-left: 3px solid var(--saffron);
}

.note strong {
  font-weight: 700;
  color: var(--navy);
}

/* ===== Privacy: emphasis box (centered serif quote-style) =====
 * Was named .callout in original privacy.html — renamed to .emphasis
 * to avoid colliding with the disclaimer .callout style.
 */
.emphasis {
  background: white;
  border-radius: 22px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: var(--softshadow);
  text-align: center;
}

.emphasis p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--navy);
}

.emphasis p em {
  font-style: italic;
  color: var(--teal);
}

/* ===== Privacy: contact link blocks ===== */
.contactBlock {
  background: white;
  border-radius: 22px;
  padding: 20px 22px;
  margin: 18px 0;
  box-shadow: var(--softshadow);
}

.contactBlock small {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}

.contactBlock a {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
  transition: color 0.2s ease;
}

.contactBlock a:hover {
  color: var(--teal);
}

/* ===== Contact form ===== */
.contactForm {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 28px 0 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  padding-left: 4px;
}

.field input {
  border: 1px solid var(--line);
  background: white;
  border-radius: 16px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: var(--softshadow);
}

.field input::placeholder {
  color: rgba(82, 87, 117, 0.45);
}

.field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(196, 109, 125, 0.14), var(--softshadow);
}

.field.invalid input {
  border-color: #d94668;
  box-shadow: 0 0 0 4px rgba(217, 70, 104, 0.12), var(--softshadow);
}

.field .errorMsg {
  font-size: 12px;
  color: #b53a52;
  padding-left: 6px;
  display: none;
  font-weight: 600;
}

.field.invalid .errorMsg {
  display: block;
}

.formSubmit {
  margin-top: 6px;
  cursor: pointer;
  font-family: inherit;
  border: 0;
  font-size: 15px;
  min-height: 52px;
}

.formSubmit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.respond {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 6px 0 0;
  margin: 0;
}

.formSuccess {
  background: white;
  border-radius: 22px;
  padding: 32px 24px;
  box-shadow: var(--softshadow);
  text-align: center;
  border: 1px solid var(--teal-soft);
}

.formSuccess .successIcon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}

.formSuccess h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.formSuccess p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
