/* Ad-Free Family — single stylesheet, mobile first. */

:root {
  --cream: #fbf7ef;
  --cream-deep: #f4ecdc;
  --paper: #fffdf8;
  --green: #1f5f4a;
  --green-deep: #164536;
  --green-soft: #e3efe9;
  --green-line: #c4ddd0;
  --gold: #f2b33d;
  --gold-dark: #c98a17;
  --gold-soft: #fdf0d2;
  --ink: #1f2a25;
  --muted: #4c5a53;
  --line: #e4d9c5;
  --error: #9c3319;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(31, 42, 37, 0.06), 0 10px 28px rgba(31, 42, 37, 0.07);
  --wrap: 72rem;
  --measure: 42rem;
  --font-head: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.1875rem; /* 19px with default browser settings */
  line-height: 1.75;
  overflow-wrap: break-word;
}

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

img {
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  color: var(--green-deep);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 1.45rem + 2.6vw, 3.15rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.25rem);
  line-height: 1.25;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1.15rem;
}

a {
  color: var(--green);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-deep);
  text-decoration-thickness: 0.15em;
}

:focus-visible {
  outline: 3px solid var(--green-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus {
  outline: none;
}

strong {
  font-weight: 800;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1rem;
}

.prose {
  max-width: var(--measure);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  background: var(--green-deep);
  color: #fff;
  font-weight: 800;
  padding: 0.6rem 1rem;
  border-radius: 10px;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
  outline-color: var(--gold);
}

/* ---------- Advertorial strip & header ---------- */

.ad-strip {
  background: var(--green-deep);
  color: #eef5f1;
  font-size: 0.95rem;
  line-height: 1.5;
  padding-block: 0.5rem;
}

.ad-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  text-align: center;
}

.ad-tag {
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.1rem 0.7rem;
}

.ad-strip a {
  color: #fff;
}

.ad-strip a:focus-visible,
.site-footer a:focus-visible,
.final-cta a:focus-visible {
  outline-color: var(--gold);
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--green-deep);
  text-decoration: none;
}

.brand:hover {
  color: var(--green);
}

.brand-mark {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.15;
}

.brand-name span {
  white-space: nowrap; /* one line when there is room, "Ad-Free / Family" otherwise */
}

.btn.header-cta {
  position: relative;
  display: inline-block;
  flex: none;
  white-space: nowrap;
}

/* On very narrow phones the word "Visit" is kept for screen readers only. */
@media (max-width: 24.99rem) {
  .cta-extra {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold-dark);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--gold-dark);
}

.btn-gold:hover {
  background: #f6c460;
  color: var(--ink);
}

.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 3px 0 var(--green-deep);
}

.btn-green:hover {
  background: var(--green-deep);
  color: #fff;
}

.btn-small {
  font-size: 0.95rem;
  padding: 0.55rem 1rem;
}

.btn-large {
  font-size: 1.15rem;
  padding: 1rem 1.75rem;
}

/* ---------- Shared bits ---------- */

.kicker,
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.kicker {
  background: var(--green-soft);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
}

.lead {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--muted);
}

.section {
  padding-block: 3.25rem;
}

.section-alt {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: var(--measure);
  margin: 0 auto 2rem;
}

.section-head > p:last-child {
  margin-bottom: 0;
}

.inline-offer {
  font-weight: 800;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  padding-block: 2.5rem 1.5rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  margin-bottom: 1rem;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  font-size: 0.98rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin: 1.5rem 0 0;
}

.byline span:first-child {
  font-weight: 800;
  color: var(--ink);
}

.hero-art {
  margin: 0 auto;
  width: 100%;
  max-width: 30rem;
}

.hero-art img {
  width: 100%;
}

/* ---------- Intro ---------- */

.intro {
  padding-top: 1.5rem;
}

.intro-lede {
  font-size: 1.28rem;
  line-height: 1.65;
}

/* ---------- Five tricks ---------- */

.trick-grid {
  display: grid;
  gap: 1.25rem;
}

.trick-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}

.trick-num {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.trick-card h3 {
  font-size: 1.22rem;
}

.trick-tell {
  margin: auto 0 0;
  background: var(--green-soft);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.trick-tell strong {
  color: var(--green-deep);
}

.trick-recap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--green);
  color: #eef5f1;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.trick-recap-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.trick-recap p:last-child {
  margin-bottom: 0;
}

/* ---------- Gentle conversation ---------- */

.talk-panel {
  display: grid;
  gap: 2rem;
}

.fridge-note {
  background: var(--gold-soft);
  border: 2px dashed var(--gold-dark);
  border-radius: 18px;
  padding: 1.35rem 1.25rem;
  margin-top: 1.5rem;
  transform: rotate(-0.6deg);
}

.fridge-note-title {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7a5408;
  margin-bottom: 0.5rem;
}

.fridge-note-rule {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
}

.blank {
  display: inline-block;
  min-width: 5.5em;
  border-bottom: 2px solid var(--ink);
  vertical-align: baseline;
  height: 1em;
}

.fridge-note-hint {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0;
}

.talk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.talk-tip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--green-line);
  border-radius: 18px;
  padding: 1.15rem 1.15rem 0.35rem;
}

.talk-icon {
  width: 2.3rem;
  height: 2.3rem;
  padding: 0.4rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.talk-tip h3 {
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}

/* ---------- Where a filter helps ---------- */

.help-list {
  list-style: none;
  margin: 1.5rem auto 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 60rem;
}

.help-item {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.15rem 0.25rem;
}

.help-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 16px;
  background: var(--green);
  color: var(--gold);
}

.help-item h3 {
  font-size: 1.12rem;
  margin-bottom: 0.3rem;
}

.limits {
  background: var(--gold-soft);
  border-left: 6px solid var(--gold);
  border-radius: 0 16px 16px 0;
  padding: 1.25rem 1.35rem 0.25rem;
}

.limits h3 {
  font-size: 1.15rem;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.step {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--green-line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 0.5rem;
}

.step-num {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.45rem;
  line-height: 1;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 6px var(--green-soft);
}

.step h3 {
  font-size: 1.2rem;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: var(--measure);
  margin-inline: auto;
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.faq-item[open] {
  border-color: var(--green-line);
  background: #fff;
}

.faq-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--green-deep);
  padding: 1.05rem 3.75rem 1.05rem 1.25rem;
  border-radius: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "\2212";
  background: var(--gold);
  color: var(--ink);
}

.faq-item summary:hover {
  color: var(--green);
}

.faq-item summary:focus-visible {
  outline-offset: -3px;
}

.faq-answer {
  padding: 0 1.25rem 0.35rem;
}

/* ---------- Final CTA ---------- */

.cta-section {
  padding-bottom: 2rem;
}

.final-cta {
  display: grid;
  gap: 2rem;
  align-items: center;
  background: var(--green);
  color: #e9f2ed;
  border-radius: 28px;
  padding: 2.25rem 1.25rem;
  background-image: radial-gradient(circle at 100% 0%, rgba(242, 179, 61, 0.22), transparent 45%);
}

.final-cta h2 {
  color: #fff;
}

.final-cta-action {
  margin: 1.5rem 0 1rem;
}

.final-cta .btn-large {
  width: 100%;
}

.fine-print {
  font-size: 0.95rem;
  color: #cfe1d7;
  margin-bottom: 0;
}

.final-cta-badge {
  text-align: center;
}

.cta-badge {
  display: inline-block;
  width: 100%;
  max-width: 22rem;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.cta-badge img {
  width: 100%;
}

.cta-badge:hover {
  transform: translateY(-2px) scale(1.01);
}

/* ---------- Disclosure ---------- */

.disclosure {
  margin-block: 0.5rem 0;
}

.disclosure p {
  max-width: 60rem;
  margin: 0 auto;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.35rem;
  font-size: 1rem;
  line-height: 1.65;
}

/* ---------- Inner pages ---------- */

.page-head {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
  padding-block: 2.5rem 2rem;
}

.page-head-inner {
  max-width: calc(var(--measure) + 2rem);
}

.page-head h1 {
  font-size: clamp(1.9rem, 1.5rem + 2vw, 2.7rem);
}

.page-head .lead {
  margin-bottom: 0;
}

.updated {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 0;
}

.legal {
  max-width: calc(var(--measure) + 2rem);
  padding-block: 2.5rem 1rem;
}

.legal h2 {
  font-size: 1.45rem;
  margin-top: 2.25rem;
}

.legal ul {
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal-summary {
  background: var(--green-soft);
  border-radius: 16px;
  padding: 1.15rem 1.35rem 0.15rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: 1.5rem;
  padding-block: 2.5rem 1rem;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  font-size: 1.45rem;
}

.contact-card h3 {
  font-size: 1.08rem;
  margin-top: 1.5rem;
  margin-bottom: 0.35rem;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.contact-details li {
  margin-bottom: 0.35rem;
}

.field {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  border: 2px solid #b9ad97;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 10rem;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  border-color: var(--green);
  outline: 3px solid var(--gold);
  outline-offset: 1px;
}

.contact-form [aria-invalid="true"] {
  border-color: var(--error);
}

.field-hint {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.field-error {
  color: var(--error);
  font-weight: 800;
  font-size: 1rem;
  margin: 0.35rem 0 0;
}

.form-privacy {
  margin-top: 1rem;
}

.form-alert {
  border-radius: 14px;
  padding: 1rem 1.15rem 0.1rem;
  margin-bottom: 1.25rem;
}

.form-alert-error {
  background: #fbeee8;
  border: 1px solid #e6bfb0;
}

.form-alert-success {
  background: var(--green-soft);
  border: 1px solid var(--green-line);
}

.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 404 ---------- */

.lost {
  padding-block: 3rem 1rem;
}

.lost-card {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2rem 1.25rem;
  box-shadow: var(--shadow);
}

.lost-art {
  width: 12rem;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
}

.lost-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.lost-links a {
  font-weight: 800;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-deep);
  color: #dde9e2;
  font-size: 1rem;
  line-height: 1.65;
  padding-block: 2.75rem 1.5rem;
  margin-top: 3rem;
}

.site-footer a {
  color: #fff;
}

.site-footer a[aria-current="page"] {
  color: var(--gold);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.footer-links,
.footer-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.92rem;
  color: #c3d6cb;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* ---------- Larger screens ---------- */

@media (min-width: 30rem) {
  .final-cta .btn-large {
    width: auto;
  }
}

@media (min-width: 40rem) {
  .wrap {
    padding-inline: 1.5rem;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .btn-small {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }

  .trick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .help-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .help-item:last-child {
    grid-column: 1 / -1;
  }

  .contact-card {
    padding: 2rem;
  }
}

@media (min-width: 56rem) {
  .section {
    padding-block: 4.5rem;
  }

  .hero {
    padding-block: 3.5rem 2rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }

  .talk-panel {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
  }

  .talk-intro {
    position: sticky;
    top: 1.5rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .final-cta {
    grid-template-columns: 1.35fr 0.65fr;
    padding: 3.25rem;
    gap: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .lost-card {
    padding: 2.75rem;
  }
}

@media (min-width: 64rem) {
  .trick-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .cta-badge:hover {
    transform: none;
  }

  .fridge-note {
    transform: none;
  }
}
