/* TourConvert marketing site styles.
   Self-contained: system font stack, no third-party assets or webfonts.
   Palette meets WCAG AA for text and interactive contrast. */

:root {
  --ink: #0b2230;
  --ink-soft: #46596a;
  --bg: #ffffff;
  --bg-soft: #f4f7f9;
  --bg-panel: #ffffff;
  --line: #d7e1e8;
  --brand: #0e5c63;
  --brand-strong: #0a464b;
  --brand-ink: #ffffff;
  --accent: #b45309;           /* used for small emphasis text; AA on white */
  --focus: #135cff;
  --radius: 8px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: 2.9rem; letter-spacing: 0; }
h2 { font-size: 1.9rem; letter-spacing: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand-strong); }
a:hover { color: var(--brand); }

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

/* Accessibility helpers */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Layout */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section__intro { max-width: 640px; margin-bottom: 28px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: 0; font-size: .8rem; font-weight: 700; color: var(--brand-strong); margin: 0 0 .5rem; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.1) blur(4px);
}
.site-header__bar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.15rem; letter-spacing: 0; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 26px; height: 26px; flex: 0 0 auto; }
.nav-toggle {
  margin-left: auto; display: none; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer;
}
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: inline-block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .97rem; }
.primary-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.primary-nav a[aria-current="page"] { color: var(--brand-strong); }
.primary-nav .btn--primary, .primary-nav .btn--primary:hover { color: #fff; }
.primary-nav .btn--primary:hover { background: var(--brand-strong); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 8px; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: var(--brand-strong); color: #fff; }
.btn--secondary { background: #fff; color: var(--brand-strong); border-color: var(--line); }
.btn--secondary:hover { background: var(--bg-soft); color: var(--brand-strong); }
.btn--ghost { background: transparent; color: var(--ink); border-color: transparent; padding-left: 6px; padding-right: 6px; }
.btn--lg { padding: 14px 26px; font-size: 1.05rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero (restrained, no oversized decoration) */
.hero { padding: 52px 0 40px; }
.hero__grid { display: block; }
.hero__grid > div:first-child { max-width: 760px; }
.hero__grid > div:last-child { max-width: 760px; margin-top: 28px; }
.hero p.lead { margin-bottom: 20px; }
.hero__meta { margin-top: 18px; font-size: .95rem; color: var(--ink-soft); }
.hero .preview__body { min-height: 150px; }
.hero .bubble:nth-child(3) { display: none; }

/* Cards / grids (flat, single level — no nested cards) */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.panel {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.panel h3 { margin-top: 4px; }
.feature__icon { width: 30px; height: 30px; color: var(--brand); margin-bottom: 10px; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

/* Steps (workflow) */
.steps { counter-reset: step; display: grid; gap: 16px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff;
  font-weight: 700; font-size: .95rem; margin-bottom: 10px;
}
.step h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.step p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* Assistant preview (static, clearly labelled — not a live/fake chat) */
.preview { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(11,34,48,.06); }
.preview__browser { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.preview__dot { width: 10px; height: 10px; border-radius: 50%; background: #cdd8df; }
.preview__url { margin-left: 8px; font-size: .82rem; color: var(--ink-soft); }
.preview__body { position: relative; padding: 18px; min-height: 220px; background:
  linear-gradient(180deg, #fbfdfe, #f4f7f9); }
.preview__page-line { height: 10px; border-radius: 5px; background: #e3ebf0; margin: 0 0 10px; }
.preview__page-line.is-short { width: 46%; }
.preview__page-line.is-med { width: 72%; }
.widget {
  position: absolute; right: 16px; bottom: 16px; width: min(300px, 78%);
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  box-shadow: 0 8px 24px rgba(11,34,48,.14); overflow: hidden;
}
.widget__head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem; }
.widget__body { padding: 12px; display: grid; gap: 8px; }
.bubble { padding: 8px 11px; border-radius: 10px; font-size: .86rem; max-width: 90%; }
.bubble--visitor { background: var(--bg-soft); justify-self: end; border-bottom-right-radius: 3px; }
.bubble--assistant { background: #e7f1f2; color: #093c41; justify-self: start; border-bottom-left-radius: 3px; }
.preview__tag {
  position: absolute; left: 12px; top: 12px; background: rgba(11,34,48,.82); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: 0; padding: 3px 8px; border-radius: 999px;
}

/* Pricing */
.price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 14px; }
.price__amount { font-size: 2.2rem; font-weight: 800; color: var(--ink); }
.price__unit { color: var(--ink-soft); font-weight: 600; }
.checklist { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230e5c63'%3E%3Cpath d='M8 13.2 4.8 10l-1.4 1.4L8 16 17 7l-1.4-1.4z'/%3E%3C/svg%3E");
}

/* Forms */
.form { display: grid; gap: 14px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .req { color: var(--accent); }
.field input, .field select {
  font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.form__hint { font-size: .86rem; color: var(--ink-soft); }
.form-status { font-size: .95rem; margin: 4px 0 0; padding: 10px 12px; border-radius: 8px; }
.form-status:empty { display: none; }
.form-status--success { background: #e6f4ea; color: #1e5631; }
.form-status--error { background: #fdecec; color: #8a1c1c; }
.form-status--info { background: var(--bg-soft); color: var(--ink); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Call-to-action band */
.cta-band { background: var(--brand); color: #fff; border-radius: 8px; padding: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: #dfeef0; margin: 6px 0 0; }
.cta-band .btn--primary { background: #fff; color: var(--brand-strong); }
.cta-band .btn--primary:hover { background: #eef6f6; }
.cta-band .btn--secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.cta-band .btn--secondary:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Prose (legal / security pages) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .3em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 34px 0; margin-top: 12px; font-size: .95rem; }
.site-footer__grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__legal { color: var(--ink-soft); margin-top: 20px; font-size: .88rem; }

/* Responsive */
@media (max-width: 860px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  /* Let the expanded menu drop onto its own row beneath the brand + toggle. */
  .site-header__bar { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; flex-basis: 100%; margin: 0; }
  .primary-nav.is-open { display: block; padding-bottom: 12px; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a { padding: 12px; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .cta-band { padding: 22px; }
  .section { padding: 40px 0; }
  .hero { padding: 38px 0 28px; }
  .hero__grid > div:last-child { margin-top: 16px; }
  .hero .preview__browser, .hero .preview__page-line { display: none; }
  .hero .preview__tag { position: static; display: block; border-radius: 0; }
  .hero .preview__body { min-height: 0; padding: 0; }
  .hero .widget { position: relative; inset: auto; width: 100%; border: 0; box-shadow: none; }
  .hero .widget__body { display: flex; padding: 9px; }
  .hero .bubble { padding: 6px 8px; font-size: .78rem; }
  .hero .bubble:nth-child(3) { display: none; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
