/* Tourwell marketing site
   Tokens: warm linen paper, deep ink, one evergreen accent.
   Type: Newsreader (headlines), Public Sans (body). Mobile first. */

:root {
  --paper: #F6F4EE;
  --paper-deep: #ECE8DE;
  --sheet: #FFFDF9;
  --ink: #1C2421;
  --ink-soft: #4A544F;
  --evergreen: #1F4D3B;
  --evergreen-deep: #163A2C;
  --evergreen-tint: #E1EAE3;
  --on-green: #F6F4EE;
  --on-green-soft: #CFDDD3;
  --rule: #D5CFC1;
  --field: #737B76;
  --bubble-in: #E9E5DB;
  --error: #9B2C24;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: 16px;
  --wrap: 1160px;
  --section-y: 64px;
  --measure: 34em;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 96px; }
}
@media (min-width: 1100px) {
  :root { --section-y: 120px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;           /* 18px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 768px) {
  body { font-size: 1.1875rem; } /* 19px */
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.45rem + 2.4vw, 2.875rem); }          /* 32 -> 46 */
h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.005em; } /* 22 */
@media (min-width: 768px) {
  h3 { font-size: 1.5rem; }                                          /* 24 */
}

p { margin: 0; text-wrap: pretty; }

a {
  color: var(--evergreen);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }

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

.nobreak { white-space: nowrap; }

.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;
}

/* Layout */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.band-deep { background: var(--paper-deep); }
.band-green { background: var(--evergreen); color: var(--on-green); }

/* Two columns on wide screens: heading/intro left, content right. */
.split { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 72px;
    align-items: start;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--evergreen);
  border-color: var(--evergreen);
  color: var(--on-green);
}
.btn-primary:hover {
  background: var(--evergreen-deep);
  border-color: var(--evergreen-deep);
}
.btn-secondary {
  background: transparent;
  border-color: var(--evergreen);
  color: var(--evergreen);
}
.btn-secondary:hover { background: var(--evergreen-tint); }
.btn-small {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 1rem;
}
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.65; cursor: progress; }

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 560px) {
  .actions { flex-direction: row; flex-wrap: wrap; }
}

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; }
.header-cta { display: none; }
@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
}

/* Hero */
.hero { padding-block: 40px 64px; }
@media (min-width: 960px) {
  .hero { padding-block: 80px 112px; }
}
.hero-grid { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
    align-items: center;
  }
}
.hero-label {
  max-width: 40em;
  margin-bottom: 20px;
  color: var(--evergreen);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}
.hero h1 {
  max-width: 12em;
  font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.25rem);   /* 40 -> 68 */
  line-height: 1.04;
  letter-spacing: -0.022em;
}
.lede { max-width: var(--measure); margin-top: 24px; }
.hero .actions { margin-top: 32px; }
.micro { margin-top: 16px; color: var(--ink-soft); font-size: 1rem; }

/* Hero visual: an illustrative text thread */
.thread {
  justify-self: center;
  width: 100%;
  max-width: 360px;
  margin: 0;
}
.example-tag {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
}
.phone {
  padding: 10px;
  border-radius: 42px;
  background: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(28, 36, 33, 0.45), 0 2px 6px rgba(28, 36, 33, 0.08);
}
.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  min-height: 400px;
  padding: 52px 16px 28px;
  border-radius: 32px;
  background: var(--sheet);
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 84px;
  height: 22px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
}
.msg { display: flex; flex-direction: column; max-width: 86%; }
.msg-in { align-self: flex-start; align-items: flex-start; }
.msg-out { align-self: flex-end; align-items: flex-end; }
.bubble {
  padding: 11px 15px;
  border-radius: 20px;
  font-size: 1rem;
  line-height: 1.45;
}
.msg-in .bubble {
  background: var(--bubble-in);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}
.msg-out .bubble {
  background: var(--evergreen);
  color: var(--on-green);
  border-bottom-right-radius: 6px;
}
.msg-time {
  margin-top: 6px;
  padding-inline: 4px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* The one motion moment: the reply lands right after the inquiry. */
@media (prefers-reduced-motion: no-preference) {
  .msg { animation: msg-arrive 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .msg-in { animation-delay: 0.2s; }
  .msg-out { animation-delay: 1s; }
}
@keyframes msg-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Problem */
.problem h2 { max-width: 16em; }
.stats {
  display: grid;
  gap: 40px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 56px; }
}
.stat {
  padding-top: 24px;
  border-top: 2px solid var(--evergreen);
}
.stat-claim {
  max-width: 26em;
  font-size: 1.25rem;
  line-height: 1.4;
}
.stat-figure {
  display: block;
  margin-bottom: 12px;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: clamp(4rem, 2.6rem + 5.6vw, 6.75rem);   /* 64 -> 108 */
  font-weight: 400;
  font-variant-numeric: lining-nums;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.stat-source {
  max-width: var(--measure);
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.problem-body {
  max-width: var(--measure);
  margin-top: 48px;
  font-size: 1.25rem;
  line-height: 1.55;
}

/* How it works: a real sequence, so numbered */
.steps {
  display: grid;
  gap: 36px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 16px;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--evergreen);
  border-radius: 50%;
  background: var(--paper);
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1;
}
.step h3 { margin-bottom: 10px; padding-top: 8px; }
.step p { max-width: var(--measure); color: var(--ink-soft); }
@media (min-width: 960px) {
  .steps {
    position: relative;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
    margin-top: 64px;
  }
  /* Rule joining the three step markers */
  .steps::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 24px;
    right: calc(100% / 3 - 56px);
    height: 1px;
    background: var(--rule);
  }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step::before {
    grid-row: auto;
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
  }
  .step h3 { padding-top: 0; }
}

/* Weekly report: a sheet with blanks for your numbers */
.how + .report { padding-top: 0; }
.report h2 { max-width: 13em; }
.sheet {
  padding: 8px 20px;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--evergreen);
  border-radius: 4px 4px 8px 8px;
  background: var(--sheet);
  box-shadow: 0 22px 44px -32px rgba(28, 36, 33, 0.4);
}
@media (min-width: 768px) {
  .sheet { padding: 16px 32px; }
}
.sheet-list { margin: 0; padding: 0; list-style: none; }
.sheet-list li {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 18px 0;
}
.sheet-list li + li { border-top: 1px solid var(--rule); }
.sheet-label { flex: 0 1 auto; max-width: calc(100% - 88px); font-weight: 500; }
.sheet-blank {
  position: relative;
  flex: 1 0 48px;
  height: 0;
  margin-bottom: 0.4em;
  border-bottom: 2px dotted #B3AC9C;
}
.sheet-blank::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 40px;
  border-bottom: 2px solid var(--ink-soft);
}

/* Pilot */
.band-green h2 { color: var(--on-green); }
.band-green :focus-visible { outline-color: var(--on-green); }
.pilot-body { max-width: var(--measure); margin-top: 24px; color: var(--on-green); }
.offer {
  padding: 28px 22px;
  border-radius: 10px;
  background: var(--sheet);
  color: var(--ink);
}
@media (min-width: 768px) {
  .offer { padding: 36px; }
}
.offer :focus-visible { outline-color: var(--evergreen); }
.price { font-size: 1.25rem; line-height: 1.4; }
.price-figure {
  display: block;
  margin-bottom: 4px;
  color: var(--evergreen);
  font-family: var(--serif);
  font-size: clamp(3rem, 2.4rem + 2.6vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
}
.after { margin-top: 12px; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
.included {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}
.included li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  line-height: 1.45;
}
.included svg { width: 22px; height: 22px; margin-top: 2px; color: var(--evergreen); }
.offer .btn { margin-top: 28px; }

/* About */
.about h2 { max-width: 14em; }
.about-body p { max-width: var(--measure); }
.about-body p + p { margin-top: 20px; }

/* FAQ */
.faq-list {
  max-width: 50rem;
  border-top: 1px solid var(--rule);
}
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: 0 0 26px;
  height: 26px;
  margin-top: 1px;
  border: 1.5px solid var(--evergreen);
  border-radius: 50%;
  background:
    linear-gradient(var(--evergreen), var(--evergreen)) center / 12px 2px no-repeat,
    linear-gradient(var(--evergreen), var(--evergreen)) center / 2px 12px no-repeat;
}
.faq-item[open] summary::after {
  background-size: 12px 2px, 2px 0;
}
.faq-item summary:hover { color: var(--evergreen); }
.faq-answer {
  max-width: var(--measure);
  padding-bottom: 24px;
}

/* Final CTA */
.final h2 { max-width: 16em; }
.final-body { max-width: var(--measure); margin-top: 20px; }
.final .actions { margin-top: 32px; }

/* Response-time check form */
#check { scroll-margin-top: 0; }
.check-intro p { max-width: 30em; margin-top: 20px; }
.form-panel {
  padding: 24px 20px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--sheet);
}
@media (min-width: 768px) {
  .form-panel { padding: 36px; }
}
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 18px; }
.field label { font-size: 1rem; font-weight: 600; }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--field);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;
}
.field input:focus-visible {
  border-color: var(--evergreen);
  outline-offset: 1px;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-panel .btn { margin-top: 28px; }
.form-error {
  margin-top: 16px;
  color: var(--error);
  font-weight: 500;
}
.form-error a { color: inherit; }
.form-success {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  font-size: 1.25rem;
  line-height: 1.45;
}
.form-success[hidden] { display: none; }
.form-success svg { width: 28px; height: 28px; color: var(--evergreen); }
.form-success:focus { outline: none; }

/* Footer */
.site-footer {
  padding-block: 48px;
  background: var(--ink);
  color: #E9E6DD;
  font-size: 1rem;
}
.site-footer a { color: inherit; }
.site-footer :focus-visible { outline-color: #E9E6DD; }
.footer-tagline {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.footer-copy { margin-top: 8px; color: #B9BDB7; }
