/* Pages: index.html, inside.html, history.html, contact.html, ai-setup.html and legal pages.
   UI order: foundation -> header -> content -> forms -> dialogs -> footer.
   Shared property dependencies and responsive override positions preserve the cascade. */
/* 01 Shared foundation */
/* Shared visual system for all public pages. No remote fonts or trackers. */
:root {
  font-family: system-ui,-apple-system,"Segoe UI",sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

button,input,select,textarea {
  font: inherit;
}

.wrap {
  width: min(1280px,100% - 80px);
  margin-inline: auto;
}

textarea {
  resize: vertical;
}

:focus-visible {
  outline: 3px solid #b8732d;
  outline-offset: 4px;
}

/* 02 Header and navigation */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 27px;
  border-bottom: 1px solid var(--line);
  gap: 25px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-weight: 750;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.brand-sub {
  display: block;
  font-size: 8px;
  letter-spacing: .13em;
  margin-top: 7px;
  color: var(--muted);
  font-weight: 600;
}

.site-header nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 13px;
  font-weight: 550;
}

.site-header nav a {
  text-decoration: none;
}

.site-header nav a:hover {
  text-decoration: underline;
}

.nav-cta {
  border: 1px solid #a9baab;
  border-radius: 5px;
  padding: 10px 16px;
}

.nav-cta span {
  margin-left: 18px;
}

/* 03 Page introduction and opening content */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 55px;
  padding-block: 75px 70px;
}

/* 01 Shared foundation */
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .17em;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 23px;
}

.small-line {
  display: inline-block;
  width: 25px;
  height: 1px;
  background: var(--ink);
}

h1 {
  font-family: var(--heading-font);
  font-size: clamp(46px,5.5vw,78px);
  line-height: 1.03;
  letter-spacing: -.065em;
  font-weight: 400;
  margin: 0 0 25px;
}

h1 em {
  color: #5d7957;
  font-weight: 400;
}

h2 {
  font-family: var(--heading-font);
  font-size: clamp(32px,3.4vw,47px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -.045em;
  margin: 0 0 24px;
}

h3 {
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -.03em;
  margin: 0 0 13px;
}

.lead {
  font-size: 16px;
  line-height: 1.85;
  color: #52695e;
  max-width: 470px;
  margin-bottom: 27px;
}

.primary {
  background: var(--green);
  color: #fff;
}

.primary:hover {
  background: #295844;
}

.section-heading {
  max-width: 760px;
}

/* 03 Page introduction and opening content */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: 32px 0 20px;
}

/* 01 Shared foundation */
.button {
  min-height: 47px;
  border-radius: 5px;
  padding: 13px 20px;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  cursor: pointer;
  transition: background .2s;
}

.text-link {
  font-size: 13px;
  font-weight: 650;
  text-underline-offset: 5px;
}

.text-link span {
  margin-left: 12px;
}

.fine {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #3c7955;
  border-radius: 50%;
}

/* 03 Page introduction and opening content */
.hero-note {
  font-size: 10px;
}

/* 01 Shared foundation */
.visual-caption,.visual-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: .09em;
  font-weight: 650;
  margin-bottom: 14px;
}

.visual-caption>span:last-child {
  margin-left: auto;
  color: var(--muted);
}

.visual-foot {
  justify-content: space-between;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}

/* 03 Page introduction and opening content */
.hero-visual {
  position: relative;
}

.proof-strip {
  border-block: 1px solid var(--line);
  padding-block: 22px;
}

/* 01 Shared foundation */
.section {
  padding-block: 90px;
}

/* 03 Page introduction and opening content */
.proof-strip .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 9px;
  letter-spacing: .13em;
  font-weight: 650;
  color: #647467;
}

/* 01 Shared foundation */
.section-heading>p:last-child {
  max-width: 580px;
  color: var(--muted);
  font-size: 14px;
}

/* 04 Main content and research panels */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 35px;
  margin-top: 50px;
}

.feature {
  border-top: 1px solid #829b80;
  padding-top: 22px;
}

.feature-number {
  display: block;
  font-size: 9px;
  letter-spacing: .12em;
  font-weight: 700;
  color: #687b63;
  margin-bottom: 20px;
}

.feature p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}

.feature-tag {
  font-size: 10px;
  color: #456744;
  display: block;
  margin-top: 22px;
}

.source-section {
  background: var(--green);
  color: #f4f7e9;
  padding-block: 65px;
}

.source-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.source-section .eyebrow {
  color: #b1cba0;
}

.source-grid p {
  font-size: 14px;
  line-height: 1.9;
}

.source-grid .fine {
  font-size: 10px;
  color: #b0c4b5;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  padding: 0;
  margin: 42px 0 0;
  gap: 32px;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 17px;
}

.steps li>span {
  border: 1px solid #a7b69c;
  border-radius: 50%;
  width: 37px;
  height: 37px;
  min-width: 37px;
  display: grid;
  place-items: center;
  font-size: 10px;
}

.steps h3 {
  font-size: 16px;
}

.steps p {
  font-size: 12px;
  color: var(--muted);
}

/* 05 Forms, plans and account controls */
.subscribe-section {
  background: #e8eddf;
  padding-block: 80px;
  scroll-margin-top: 10px;
}

/* 01 Shared foundation */
section[id] {
  scroll-margin-top: 25px;
}

/* 05 Forms, plans and account controls */
.subscription-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 110px;
  align-items: start;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin: 30px 0 20px;
}

.price strong {
  font-family: Georgia,serif;
  font-size: 76px;
  line-height: 1;
  letter-spacing: -.065em;
  font-weight: 400;
}

.price span {
  font-size: 15px;
  color: #52674e;
}

.plan-description {
  font-size: 14px;
  color: var(--muted);
  max-width: 430px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 28px 0;
}

.checklist li {
  font-size: 13px;
  padding: 8px 0 8px 24px;
  position: relative;
}

.checklist li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #3c6f48;
}

.plan-copy>.fine {
  max-width: 430px;
}

.subscription-form {
  background: #fff;
  padding: 32px;
  border: 1px solid #d3ddce;
  border-radius: 10px;
  box-shadow: 0 10px 25px #173f3504;
}

.subscription-form h3 {
  font-family: Georgia,serif;
  font-size: 27px;
  font-weight: 400;
  margin-top: 18px;
}

.subscription-form>p:not(.fine):not(.form-feedback) {
  font-size: 12px;
  color: var(--muted);
}

/* 01 Shared foundation */
.demo-badge {
  font-size: 8px;
  letter-spacing: .12em;
  font-weight: 700;
  padding: 6px 8px;
  background: #f0f3e8;
  border-radius: 3px;
  color: #586747;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 15px 0 6px;
}

input,textarea,select {
  width: 100%;
  min-width: 0;
  padding: 11px;
  border: 1px solid #c9d3c5;
  border-radius: 5px;
  background: #fff;
  font-size: 16px;
  color: var(--ink);
  min-height: 44px;
}

/* 05 Forms, plans and account controls */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  line-height: 1.65;
  font-weight: 400;
  margin: 22px 0;
}

.checkbox input {
  width: 17px;
  min-width: 17px;
  height: 17px;
  min-height: 17px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.plan-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 12px;
}

.subscription-form button {
  width: 100%;
}

/* 01 Shared foundation */
.full {
  width: 100%;
  margin: 6px 0 0;
}

/* 05 Forms, plans and account controls */
.form-feedback {
  display: none;
}

.form-feedback.visible {
  display: block;
  background: #eef5e6;
  border: 1px solid #c2d5b7;
  padding: 14px;
  border-radius: 5px;
  font-size: 12px;
  color: #284c2b;
}

/* 07 Closing content and footer */
.faq-section {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 70px;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

/* 01 Shared foundation */
summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 550;
  padding-right: 10px;
  min-height: 28px;
}

/* 07 Closing content and footer */
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq details p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.closing {
  border-block: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 35px;
}

.closing p {
  font-family: Georgia,serif;
  font-size: 25px;
  letter-spacing: -.025em;
}

/* 02 Header and navigation */
.site-footer .brand {
  font-size: 15px;
}

.site-footer>p:not(.fine),.site-footer>a:not(.brand) {
  font-size: 11px;
  color: var(--muted);
}

/* 05 Forms, plans and account controls */
.contact-copy h1 {
  font-size: clamp(46px,5vw,67px);
}

.contact-topic>span {
  font-size: 10px;
  color: #7c9471;
}

/* 07 Closing content and footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  padding-block: 38px 22px;
}

/* 05 Forms, plans and account controls */
.contact-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
  padding-block: 85px 90px;
}

.contact-topic {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 23px;
  max-width: 410px;
}

/* 01 Shared foundation */
.skip-link {
  position: absolute;
  left: 10px;
  top: -100px;
  padding: 10px;
  background: white;
  z-index: 20;
}

.skip-link:focus {
  top: 10px;
}

/* 05 Forms, plans and account controls */
.contact-topic h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.contact-topic p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.contact-copy>.fine {
  max-width: 410px;
  margin-top: 25px;
}

.contact-form h2 {
  font-size: 31px;
  margin-top: 20px;
}

/* 08 Responsive and display overrides */
@media(max-width:1000px) {
  /* 01 Shared foundation */
  .wrap {
    width: calc(100% - 44px);
  }

  /* 03 Page introduction and opening content */
  .hero {
    gap: 28px;
  }

  .hero-actions {
    gap: 16px;
  }

  /* 05 Forms, plans and account controls */
  .subscription-grid {
    gap: 45px;
  }

  .contact-main {
    gap: 45px;
  }

  /* 02 Header and navigation */
  .site-header nav {
    gap: 18px;
  }

  /* 04 Main content and research panels */
  .source-grid {
    gap: 35px;
  }

}

@media(max-width:760px) {
  /* 01 Shared foundation */
  .lead {
    max-width: 570px;
  }

  /* 02 Header and navigation */
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-block: 20px;
    gap: 20px;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
  }

  /* 01 Shared foundation */
  h1 {
    font-size: clamp(49px,11vw,70px);
  }

  /* 02 Header and navigation */
  .nav-cta {
    padding: 8px 10px;
  }

  .nav-cta span {
    margin-left: 7px;
  }

  /* 03 Page introduction and opening content */
  .hero {
    grid-template-columns: 1fr;
    padding-block: 48px;
    gap: 35px;
  }

  /* 01 Shared foundation */
  .section {
    padding-block: 55px;
  }

  /* 03 Page introduction and opening content */
  .hero-visual {
    max-width: 620px;
  }

  .proof-strip .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 8px;
    gap: 17px;
  }

  /* 04 Main content and research panels */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 30px;
  }

  .feature h3 {
    font-size: 21px;
  }

  .feature p {
    max-width: 600px;
  }

  .source-grid,.subscription-grid,.faq-section,.contact-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .source-section {
    padding-block: 45px;
  }

  .source-section h2 {
    margin-bottom: 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .steps h3 {
    margin-bottom: 6px;
  }

  .steps p {
    margin: 0;
  }

  /* 05 Forms, plans and account controls */
  .subscribe-section {
    padding-block: 50px;
  }

  .price {
    margin: 25px 0;
  }

  .plan-copy>.fine {
    max-width: 100%;
  }

  .subscription-form {
    padding: 25px;
  }

  .contact-copy h1 {
    font-size: 55px;
  }

  /* 07 Closing content and footer */
  .faq-section {
    gap: 16px;
  }

  .closing {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding-block: 24px;
  }

  /* 05 Forms, plans and account controls */
  .contact-main {
    padding-block: 50px;
    gap: 35px;
  }

  /* 07 Closing content and footer */
  .closing p {
    margin: 0 0 12px;
  }

  .site-footer {
    padding-block: 30px 20px;
  }

  .site-footer>p:not(.fine) {
    width: 100%;
    order: 3;
  }

  .site-footer .full {
    order: 4;
  }

}

@media(max-width:400px) {
  /* 01 Shared foundation */
  .wrap {
    width: calc(100% - 32px);
  }

  /* 02 Header and navigation */
  .brand {
    font-size: 17px;
  }

  .brand-sub {
    font-size: 7px;
  }

  .site-header nav {
    font-size: 11px;
  }

  /* 03 Page introduction and opening content */
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .text-link {
    align-self: flex-start;
  }

  /* 05 Forms, plans and account controls */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .subscription-form {
    padding: 20px;
  }

  .contact-copy h1 {
    font-size: 48px;
  }

}

@media(prefers-reduced-motion:reduce) {
  /* 01 Shared foundation */
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none!important;
  }

}

/* 01 Shared foundation */
/* Readable legal copy shares the public site layout at every screen size. */
.legal-main {
  max-width: 850px;
  padding-block: 60px;
}

.legal-main h1 {
  font-size: clamp(38px,6vw,64px);
  overflow-wrap: anywhere;
}

.legal-main h2 {
  font-size: 28px;
  margin: 35px 0 12px;
}

.legal-main section p {
  font-size: 16px;
  line-height: 1.85;
}

.legal-draft {
  padding: 20px;
  border: 1px solid var(--line);
  background: #e8eddf;
  border-radius: 6px;
  font-size: 14px;
}

/* 05 Forms, plans and account controls */
.plan-total strong {
  max-width: 100%;
}

/* 07 Closing content and footer */
.site-footer .fine.full {
  font-size: 12px;
}

.site-footer .fine.full a {
  text-underline-offset: 3px;
}

/* Optional analytics controls remain equally accessible for acceptance and refusal. */
.analytics-banner {
  width: 100%;
  padding: 22px;
  background: #e8eddf;
  border: 1px solid #a9baab;
  border-radius: 8px;
  margin: 12px 0;
}

.analytics-banner[hidden] {
  display: none;
}

.analytics-banner p {
  font-size: 14px;
}

.analytics-banner .button,.privacy-controls .button {
  margin: 4px 10px 4px 0;
}

/* 05 Forms, plans and account controls */
/* Subscription offers: two plans, with an explicit three-month savings comparison. */
.offer-card {
  padding: 24px;
  border: 1px solid #bccdb3;
  border-radius: 8px;
  margin: 18px 0;
  background: #f7f9f2;
}

.best-offer {
  border: 2px solid #3d6946;
  background: #fffef8;
}

/* 07 Closing content and footer */
.privacy-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* 05 Forms, plans and account controls */
.plan-total {
  gap: 12px;
  flex-wrap: wrap;
}

/* 02 Header and navigation */
.site-header nav {
  flex-wrap: wrap;
}

/* 07 Closing content and footer */
.privacy-controls span {
  font-size: 12px;
}

/* 05 Forms, plans and account controls */
.offer-badge {
  display: inline-block;
  background: #173c36;
  color: #fff;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: .12em;
  border-radius: 3px;
  margin-bottom: 18px;
}

/* 03 Page introduction and opening content */
/* History: an editorial story with spacious, readable paragraphs. */
.history-opening {
  padding-block: 80px 65px;
  max-width: 1000px;
}

/* 05 Forms, plans and account controls */
.offer-card p {
  font-size: 13px;
  color: #52695e;
}

.offer-card .price strong {
  font-size: clamp(38px,5vw,64px);
}

.monthly-price strong {
  font-size: 42px!important;
}

/* 03 Page introduction and opening content */
.history-opening h1 {
  font-size: clamp(38px,5.5vw,76px);
}

.history-hook {
  font-family: Georgia,serif;
  font-size: clamp(23px,3vw,32px);
  line-height: 1.5;
  max-width: 800px;
}

.history-opening .lead {
  max-width: 680px;
}

/* 04 Main content and research panels */
.history-story {
  max-width: 760px;
}

.history-story>p:not(.eyebrow):not(.fine),.history-closing>p:not(.eyebrow):not(.fine) {
  font-size: 17px;
  line-height: 1.9;
  color: #52695e;
}

/* 05 Forms, plans and account controls */
.offer-card .price {
  margin: 20px 0;
}

/* 04 Main content and research panels */
.history-story blockquote {
  margin: 40px 0;
  padding: 20px 0 20px 25px;
  border-left: 3px solid #78946c;
  font-family: Georgia,serif;
  font-size: 32px;
  line-height: 1.4;
  color: #173c36;
}

/* 07 Closing content and footer */
.history-closing {
  max-width: 820px;
}

.history-closing .fine {
  margin-top: 24px;
}

/* 08 Responsive and display overrides */
@media(max-width:760px) {
  /* 03 Page introduction and opening content */
  .history-opening {
    padding-block: 45px;
  }

  /* 04 Main content and research panels */
  .history-story blockquote {
    font-size: 27px;
  }

}

/* 04 Main content and research panels */
.feature-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 30px;
}

/* 03 Page introduction and opening content */
/* Stack the two generated campaign panels without cropping their headlines or feature copy. */
.hero-campaign {
  display: grid;
  gap: 22px;
  min-width: 0;
  width: 100%;
  align-self: start;
}

.campaign-figure {
  margin: 0;
  min-width: 0;
}

.campaign-image-link {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.campaign-image-link img {
  display: block;
  width: 100%;
  height: auto;
}

/* 04 Main content and research panels */
.feature-jumps a {
  font-size: 13px;
  text-underline-offset: 4px;
}

.feature ul {
  padding-left: 20px;
  font-size: 14px;
  color: #52695e;
  line-height: 1.9;
}

.source-section .feature-grid ul {
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.9;
}

.source-section>.wrap>.fine {
  color: #c1d1c2;
}

/* 03 Page introduction and opening content */
.campaign-note {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.6;
}

.campaign-features {
  margin-top: 10px;
}

.campaign-features summary {
  padding: 8px 2px;
  font-size: 1rem;
  text-underline-offset: .2em;
}

.campaign-features ol {
  margin: 8px 0 0;
  padding-left: 24px;
  font-size: 1rem;
  color: var(--ink);
}

.campaign-features li {
  margin-bottom: 12px;
  padding-left: 4px;
}

/* 08 Responsive and display overrides */
@media (min-width: 761px) {
  /* 03 Page introduction and opening content */
  .hero:has(.hero-campaign) {
    align-items: start;
  }

}

/* 01 Shared foundation */
/* Keep the copyable CSV example within narrow phone screens. */
.csv-example {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#csv-guide {
  overflow-wrap: anywhere;
}

/* Hidden connection and account controls must remain hidden despite button display rules. */
[hidden] {
  display: none!important;
}
