/* TouchTree — inner page components (Features, Pricing, About, Insights, Contact, Partner, Demo).
   Loaded after styles.css, which holds the tokens, header, footer and home page sections. */

/* Page header */
.page-hero { padding: clamp(72px, 9vw, 120px) 0; }
.page-hero h1 { max-width: 1000px; font-size: clamp(38px, 5vw, 64px); }
.page-hero .lead { margin-top: 28px; max-width: 820px; }

.section-intro { max-width: 820px; }
.section-intro .lead { margin-top: 20px; }

/* Icon cards */
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--mist); border-radius: var(--radius); color: var(--text); }
.section--mist .card { background: var(--white); }
.card h3 { font-size: 20px; }
.card p { font-size: 16px; color: var(--text-muted); }
.card--dark, .section--mist .card--dark { background: var(--navy); color: var(--off-white); }
.card--dark p { color: var(--text-on-dark); }
.card--accent { border-top: 5px solid var(--tt-teal); }
.icon-tile { width: 48px; height: 48px; border-radius: 10px; background: #cfe9e7; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; flex-shrink: 0; }
.section--navy .card { background: var(--navy-2); color: var(--off-white); }
.section--navy .card p { color: var(--text-on-dark); }
.section--navy .icon-tile { background: rgba(91, 184, 178, .16); }
.card .stat, .stat { font-size: 28px; color: inherit; font-weight: 700; font-stretch: 115%; line-height: 1.15; }
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .card-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .card-grid, .card-grid--2 { grid-template-columns: 1fr; } }

/* Integration logos */
.integrations { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
.integrations li { flex: 0 0 calc((100% - 64px) / 5); height: 96px; padding: 20px 24px; display: flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.integrations img { max-height: 44px; width: auto; object-fit: contain; }
.integrations .text-tile { font-size: 15px; font-weight: 700; color: var(--teal-dark); text-align: center; line-height: 1.3; }
@media (max-width: 1000px) { .integrations li { flex-basis: calc((100% - 32px) / 3); } }
@media (max-width: 560px) { .integrations li { flex-basis: calc((100% - 16px) / 2); } }

/* Split layout: copy + form */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(40px, 6vw, 80px); align-items: start; }
.split--center { align-items: center; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }

.tick-list { margin: 28px 0 0; padding: 0; list-style: none; }
.tick-list li { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 0; border-top: 1px solid #e3e8ea; font-size: 18px; font-weight: 600; }
.tick-list li:last-child { border-bottom: 1px solid #e3e8ea; }
.tick-list svg { flex-shrink: 0; }

.callout { display: flex; align-items: center; gap: 16px; margin-top: 32px; padding: 22px 24px; background: var(--navy); color: var(--off-white); border-radius: var(--radius); font-size: 18px; font-weight: 600; }
a.callout:hover { background: var(--navy-2); color: var(--off-white); }
.callout small { display: block; margin-top: 4px; font-size: 16px; font-weight: 400; color: var(--text-on-dark); }
.callout svg { flex-shrink: 0; }
.callout .arrow { margin-left: auto; }

.contact-lines { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 18px; }
.contact-lines li { display: flex; align-items: center; gap: 12px; }
.contact-lines a { color: var(--teal-dark); font-weight: 600; }

/* Forms */
.form-card { padding: clamp(28px, 4vw, 40px); background: var(--mist); border-radius: 16px; color: var(--text); }
.form-card--raised { background: var(--white); box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.form-card h2 { font-size: 26px; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 700; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid #a7b8be; border-radius: 8px; background: var(--white);
  font-family: inherit; font-size: 16px; color: var(--navy);
}
.field textarea { padding: 12px 14px; min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(67, 170, 168, .45); outline-offset: 0; border-color: var(--tt-teal); }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 150px; padding: 20px; border: 2px dashed #7fb8b5; border-radius: 10px; background: #f2f8f8; text-align: center; }
.dropzone span { font-size: 16px; font-weight: 600; }
.field .dropzone input { min-height: auto; padding: 0; border: none; background: transparent; font-size: 14px; color: var(--text-muted); max-width: 100%; }
.form-card .btn { width: 100%; margin-top: 22px; min-height: 56px; }
.form-note { margin-top: 14px; font-size: 15px; color: var(--text-muted); }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: #fff4e5; color: #6b3d00; font-size: 15px; }

/* Quote band and partner quotes */
.quote-band { text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 1040px; font-size: clamp(19px, 2vw, 22px); line-height: 1.55; font-weight: 500; color: var(--navy); }
.quote-band p { margin-top: 28px; font-size: 16px; color: var(--navy); }
.quote-band p span { color: var(--text-muted); }
.quotes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .quotes--2 { grid-template-columns: 1fr; } }

/* Statement with a rule (About) */
.rule-copy { padding-left: 40px; border-left: 3px solid var(--tt-teal); display: flex; flex-direction: column; gap: 18px; }
.rule-copy .strong { font-size: 22px; font-weight: 700; line-height: 1.4; }
.rule-copy p:not(.strong) { font-size: 19px; color: var(--text-muted); }
@media (max-width: 600px) { .rule-copy { padding-left: 20px; } }

/* Insights */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #2c5a72; color: var(--off-white); font-size: 15px; font-weight: 600; }
.filters a:hover { border-color: var(--tt-teal); color: var(--white); }
.filters a[aria-current="true"] { background: var(--tt-teal); border-color: var(--tt-teal); color: var(--navy); }
.post-feature { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--text); }
.post-feature:hover { color: var(--text); border-color: var(--tt-teal); }
.post-feature .thumb { min-height: 320px; }
.post-feature .body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.post-feature h2 { font-size: clamp(26px, 3vw, 36px); }
@media (max-width: 860px) { .post-feature { grid-template-columns: 1fr; } .post-feature .thumb { min-height: 200px; } }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--text); }
.post-card:hover { color: var(--text); border-color: var(--tt-teal); }
.post-card .thumb { aspect-ratio: 16 / 9; }
.post-card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.post-card h3 { font-size: 19px; line-height: 1.3; }
.thumb { background: var(--tt-teal) linear-gradient(135deg, rgba(37, 109, 188, .55), rgba(37, 188, 137, .35)); display: flex; align-items: center; justify-content: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-cat { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--teal-dark); }
.post-date { margin-top: auto; font-size: 15px; color: var(--text-muted); }
.read-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal-dark); }
.more-wrap { text-align: center; margin-top: 48px; }
.btn--ghost-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost-dark:hover { background: var(--navy); color: var(--white); }

[hidden] { display: none !important; }

/* Integration logos on dark, to match the client logo scroll */
.integrations-section .integrations li { background: var(--navy-2); border-color: var(--navy-line); }
.integrations-section .integrations .text-tile { color: var(--teal-light); }

/* Photo CTA banner: copy on navy, photo filling the right half */
.cta-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 460px; background: var(--navy); }
.cta-photo .copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 80px); padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.cta-photo h2 { font-size: clamp(32px, 3.6vw, 48px); }
.cta-photo .lead { margin-top: 20px; max-width: 520px; }
.cta-photo .btn { margin-top: 36px; }
.cta-photo .photo { position: relative; min-height: 320px; }
.cta-photo .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }
.cta-photo .photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--navy) 0%, rgba(0, 40, 65, 0) 22%); }
@media (max-width: 860px) {
  .cta-photo { grid-template-columns: 1fr; }
  .cta-photo .photo { order: -1; min-height: 260px; }
  .cta-photo .photo::before { background: linear-gradient(0deg, var(--navy) 0%, rgba(0, 40, 65, 0) 30%); }
}

/* Photos inside sections */
.photo-frame { border-radius: 16px; overflow: hidden; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--photo .container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.page-hero--photo .photo-frame { aspect-ratio: 4 / 3; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
@media (max-width: 900px) { .page-hero--photo .container { grid-template-columns: 1fr; } }
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
@media (max-width: 900px) { .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stats-row { grid-template-columns: 1fr; } }

/* Embedded Pipedrive web forms (an iframe styled in Pipedrive's form editor) */
.form-card--embed h2 { margin-bottom: 8px; }
.form-card--embed .pipedriveWebForms { margin: 0; min-height: 420px; display: flex; justify-content: center; }
.form-card--embed iframe { border: 0; max-width: 100%; }

/* Pipedrive forms have white labels, so their panels must be dark (as on touchtree.tech) */
.form-card--embed, .form-card--embed.form-card--raised { background: var(--deep-blend); color: var(--off-white); }
.form-card--embed h2 { color: var(--off-white); }
.form-card--embed .form-note { color: var(--text-on-dark); }

/* Grey logos on a dark panel (About: companies we work with) */
.logo-panel { margin-top: 56px; padding: clamp(28px, 4vw, 48px); background: var(--navy); border-radius: 16px; }
.logo-panel-title { margin-bottom: 28px; font-size: 13px; font-weight: 700; font-stretch: 100%; letter-spacing: 2px; text-transform: uppercase; color: var(--text-on-dark-muted); text-align: center; }
.logo-panel-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 48px; margin: 0; padding: 0; list-style: none; }
.logo-panel-list li { height: 56px; display: flex; align-items: center; justify-content: center; }
.logo-panel-list img { max-width: 170px; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 700px) { .logo-panel-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } .logo-panel-list img { max-width: 130px; } }

/* ---------- Brand colour accents ----------
   Shades from the fingerprint logo rather than four separate colours:
   one soft teal tint for cards, and icons on a teal-to-blue blend. */
:root {
  --tint: #eaf5f4;
  --tint-line: #cfe6e4;
  --icon-blend: linear-gradient(135deg, #43aaa8 0%, #258baf 100%);
  --deep-blend: linear-gradient(125deg, #0b3a5c 0%, #1d5f8e 55%, #2a8f9e 100%);
}

/* Home: "Get more from every issue" */
.benefit { background: var(--tint); border: 1px solid var(--tint-line); }
.benefit svg { box-sizing: content-box; width: 26px; height: 26px; padding: 12px; border-radius: 12px; background: var(--icon-blend); stroke: #fff; }
.benefit--wide { background: var(--deep-blend); border: 0; position: relative; overflow: hidden; }
.benefit--wide::after { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; border: 30px solid rgba(255, 255, 255, .07); }
.benefit--wide svg { background: rgba(255, 255, 255, .16); }
.benefit--wide h3 { color: #fff; font-size: 26px; }
.benefit--wide p { color: #e3f1f2; font-size: 18px; max-width: 460px; }

/* Steps: numbered badges in deepening shades, dark blend on the last step */
.steps > .step:nth-child(1) .step-num { background: #43aaa8; }
.steps > .step:nth-child(3) .step-num { background: #2f97ad; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: #fff !important; font-size: 16px; }
.step--dark { background: var(--deep-blend); border-color: transparent; }
.step--dark .step-num { background: rgba(255, 255, 255, .18); }
.step-arrow svg { stroke: #2f97ad; }

/* Feature pills: small teal icon discs */
.section--light .pill-list li svg, .section--mist .pill-list li svg { box-sizing: content-box; width: 16px; height: 16px; padding: 6px; border-radius: 50%; background: var(--icon-blend); stroke: #fff; }

/* Icon tiles (Features, demo page) */
.icon-tile { background: var(--icon-blend); }
.icon-tile svg { stroke: #fff; }
.section--light .card, .section--light .card:has(> .icon-tile) { background: var(--tint); border: 1px solid var(--tint-line); }
.section--light .card--dark { background: var(--deep-blend); border: 0; }

/* Home step 02 link to the Engine */
.step-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 700; color: var(--teal-dark); }

/* Features: TouchTree Engine diagram (PDF page -> engine -> mobile article) */
.engine-note { margin-top: 20px; font-size: 16px; color: var(--text-muted); }
.engine-diagram { margin: 0; display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding: clamp(20px, 3vw, 36px); background: var(--tint); border: 1px solid var(--tint-line); border-radius: 20px; }
.eng-page, .eng-phone { display: flex; flex-direction: column; gap: 8px; background: #fff; box-shadow: 0 18px 40px rgba(0, 40, 65, .14); }
.eng-page { padding: 18px; border-radius: 6px; aspect-ratio: 3 / 4; }
.eng-phone { padding: 14px 12px; border-radius: 26px; border: 6px solid var(--navy); aspect-ratio: 9 / 17; overflow: hidden; }
.eng-cap { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
.eng-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex-grow: 1; }
.eng-cols > div { display: flex; flex-direction: column; gap: 8px; }
.eng-block { display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 11px; font-weight: 700; color: #fff; text-align: center; }
.eng-head { min-height: 28px; background: var(--navy); }
.eng-img { min-height: 64px; flex-grow: 0; background: var(--icon-blend); }
.eng-capt { min-height: 18px; background: #8fc9c6; color: var(--navy); font-size: 10px; }
.eng-quote { min-height: 36px; background: #fff; border: 2px solid var(--tt-teal); color: var(--teal-dark); font-style: italic; }
.eng-lines { flex-grow: 1; min-height: 36px; background: repeating-linear-gradient(180deg, #d5dfe2 0 5px, transparent 5px 11px); }
.eng-lines--short { flex-grow: 0; min-height: 26px; }
.eng-phone .eng-img { min-height: 54px; }
.eng-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.eng-tags span { padding: 2px 7px; border-radius: 999px; background: var(--c3-tint, #e4f1f6); color: #1d5f8e; font-size: 9px; font-weight: 700; }
.eng-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.eng-badge { padding: 6px 10px; border-radius: 999px; background: var(--deep-blend); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) {
  .engine-diagram { grid-template-columns: 1fr; justify-items: center; }
  .eng-page { width: 100%; max-width: 280px; }
  .eng-phone { width: 200px; }
  .eng-mid svg { transform: rotate(90deg); }
}

/* ---------- Pricing ---------- */
.pricing-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.currency-toggle { display: inline-flex; padding: 4px; gap: 4px; background: var(--tint); border: 1px solid var(--tint-line); border-radius: 999px; }
.currency-toggle button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--navy); cursor: pointer; }
.currency-toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.archive-offer { display: flex; align-items: center; gap: 20px; margin-top: 40px; padding: 22px 28px; border-radius: 16px; background: var(--deep-blend); color: #fff; }
.archive-offer-icon { flex-shrink: 0; width: 60px; height: 60px; border-radius: 14px; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; }
.archive-offer-title { font-size: clamp(19px, 2vw, 24px); font-weight: 700; font-stretch: 110%; line-height: 1.25; }
.archive-offer-text { margin-top: 4px; font-size: 16px; color: #d7eaee; }

.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 32px 28px; background: var(--tint); border: 1px solid var(--tint-line); border-radius: 16px; }
.price-card--featured { background: #fff; border: 2px solid var(--tt-teal); box-shadow: 0 24px 48px rgba(0, 40, 65, .12); }
.price-badge { position: absolute; top: -14px; left: 28px; padding: 4px 14px; border-radius: 999px; background: var(--icon-blend); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.price-freq { font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--teal-dark); }
.price-card h3 { font-size: 19px; line-height: 1.3; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.price .price-amount { font-size: 52px; font-weight: 800; font-stretch: 115%; letter-spacing: -1.5px; color: var(--navy); line-height: 1; }
.price-per { font-size: 16px; color: var(--text-muted); }
.price-list { margin: 10px 0 0; padding: 14px 0 0; border-top: 1px solid var(--tint-line); list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--text-muted); }
.price-list li::before { content: "✓"; margin-right: 10px; font-weight: 700; color: var(--tt-teal); }
.price-more { margin-top: 32px; font-size: 18px; color: var(--text); }
.price-more .price-amount { font-weight: 700; }
.price-note { margin-top: 8px; font-size: 15px; color: var(--text-muted); }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 560px) { .archive-offer { flex-direction: column; align-items: flex-start; } }

/* About: headline numbers (as on touchtree.tech) */
.stats-band { padding: clamp(64px, 8vw, 104px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 72px) clamp(32px, 8vw, 120px); margin: 0; }
.stat-item { display: flex; align-items: center; gap: clamp(20px, 3vw, 36px); }
.stat-num { flex: 0 0 auto; min-width: 2.6ch; margin: 0; font-size: clamp(56px, 7vw, 96px); font-weight: 600; font-stretch: 115%; letter-spacing: -2px; line-height: 1; color: #fff; text-align: right; }
.stat-item dd { margin: 0; padding: 6px 0 6px clamp(20px, 3vw, 36px); border-left: 3px dotted var(--teal-light); font-size: clamp(20px, 2.2vw, 30px); line-height: 1.25; color: var(--off-white); max-width: 340px; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr; } .stat-num { min-width: 2.2ch; } }

/* Pricing v2: factors, bold featured card, plan inclusions, quote nudge */
.pricing-section { background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); }
.price-factors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.price-factors li { display: flex; align-items: center; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--tint-line); border-radius: 14px; font-size: 15px; color: var(--text-muted); }
.price-factors strong, .plan-includes strong { display: block; font-size: 18px; font-stretch: 110%; color: var(--navy); }
.factor-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; background: var(--icon-blend); display: flex; align-items: center; justify-content: center; }
.factor-icon--light { background: rgba(255, 255, 255, .16); }
@media (max-width: 860px) { .price-factors { grid-template-columns: 1fr; } }

.pricing-section .price-grid { margin-top: 48px; }
.pricing-section .price-card { background: #fff; }
.price-card--featured { background: var(--deep-blend) !important; border: 0; color: #fff; box-shadow: 0 30px 60px rgba(0, 40, 65, .28); transform: translateY(-12px); }
.price-card--featured h3, .price-card--featured .price .price-amount { color: #fff; }
.price-card--featured .price-freq { color: #9fe0d4; }
.price-card--featured .price-per, .price-card--featured .price-list { color: #d7eaee; border-top-color: rgba(255, 255, 255, .2); }
.price-card--featured .price-list li::before { color: #9fe0d4; }
.price-card--featured .price-badge { background: var(--tt-green); }
@media (max-width: 900px) { .price-card--featured { transform: none; } }

.plan-includes { margin-top: 40px; padding: clamp(24px, 3vw, 32px); border-radius: 16px; background: var(--navy); color: #fff; }
.plan-includes-title { margin-bottom: 18px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--teal-light); }
.plan-includes ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; margin: 0; padding: 0; list-style: none; }
.plan-includes li { display: flex; align-items: center; gap: 16px; font-size: 15px; color: var(--text-on-dark); }
.plan-includes strong { color: #fff; }
@media (max-width: 760px) { .plan-includes ul { grid-template-columns: 1fr; } }

.quote-nudge { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 24px; padding: 24px 28px; border-radius: 16px; background: #fff; border: 2px dashed var(--tint-line); }
.quote-nudge-title { font-size: 20px; font-weight: 700; font-stretch: 110%; color: var(--navy); }
.quote-nudge-text { margin-top: 4px; font-size: 16px; color: var(--text-muted); }
.price-note { margin-top: 16px; }
#quote-form { scroll-margin-top: 110px; }

/* Statement band v3: solid teal panel + full-colour photo (replaces the washed-out overlay) */
.statement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0; background: var(--tt-teal); }
.statement::before, .statement::after { display: none; }
.statement-copy { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 72px); padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.statement-copy h2 { font-size: clamp(30px, 3.2vw, 42px); margin-bottom: 10px; }
.statement-copy .strong { margin: 0; }
.statement-copy p:not(.strong) { font-size: 18px; max-width: 520px; }
.statement-photo { position: relative; min-height: 340px; }
.statement-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 35%; }
@media (max-width: 860px) {
  .statement { grid-template-columns: 1fr; }
  .statement-photo { min-height: 260px; }
}

/* Testimonials carousel (dark, like touchtree.tech, so the grey logos read well) */
.testimonials { background: var(--navy); }
.testimonials-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.carousel-nav { display: flex; gap: 10px; }
.carousel-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--tt-teal); background: transparent; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.carousel-btn:hover:not(:disabled) { background: var(--tt-teal); color: var(--navy); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel { margin-top: 48px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel::-webkit-scrollbar { display: none; }
.carousel:focus-visible { outline-offset: 6px; }
.carousel-track { display: flex; gap: 24px; }
.quote-card { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; gap: 16px; padding: 32px; background: var(--deep-blend); border-radius: 16px; color: var(--text-on-dark); }
.quote-logo { height: 64px; display: flex; align-items: center; }
.quote-logo img { max-height: 64px; max-width: 170px; width: auto; height: auto; object-fit: contain; }
.quote-logo-text { font-size: 20px; font-weight: 800; font-stretch: 120%; letter-spacing: .5px; color: #b0bac2; text-transform: uppercase; }
.quote-card h3 { color: #fff; font-size: 21px; line-height: 1.3; }
.quote-card blockquote { margin: 0; font-size: 16px; line-height: 1.6; }
.quote-card figcaption { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 15px; display: flex; flex-direction: column; gap: 2px; }
.quote-card figcaption b { color: #fff; }
@media (max-width: 1000px) { .quote-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .quote-card { flex-basis: 86%; } }

/* Demo page: product image under the intro */
.demo-shot { width: 100%; max-width: 560px; margin-top: 36px; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35)); }

/* Hero v2: clean navy, full-colour product image on the right (no washed-out background) */
.hero--split { background: linear-gradient(110deg, var(--navy) 0%, var(--navy) 58%, var(--navy-2) 58%, var(--navy-2) 100%); }
.hero--split::before { display: none; }
.hero--split .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 4vw, 64px); align-items: center; padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: 8% 4% 4% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(67, 170, 168, .45), rgba(37, 109, 188, .18) 60%, transparent); filter: blur(30px); z-index: 0; }
.hero-visual img { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .45)); }
@media (max-width: 1000px) {
  .hero--split { background: var(--navy); }
  .hero--split .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; }
}

/* Statement photo: cool-toned image, blended into the teal at its edge */
.statement-photo img { object-position: 35% 40%; }
.statement-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--tt-teal) 0%, rgba(67, 170, 168, 0) 18%); }
@media (max-width: 860px) { .statement-photo::before { background: linear-gradient(180deg, var(--tt-teal) 0%, rgba(67, 170, 168, 0) 20%); } }

/* About: numbers band v2: one row on the brand blend, icons, count-up */
.stats-live { position: relative; overflow: hidden; background: var(--deep-blend); padding: clamp(56px, 7vw, 88px) 0; }
.stats-live::before, .stats-live::after { content: ""; position: absolute; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .06); pointer-events: none; }
.stats-live::before { width: 360px; height: 360px; left: -140px; top: -180px; }
.stats-live::after { width: 280px; height: 280px; right: -90px; bottom: -150px; }
.stats-row-live { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.stats-row-live li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px clamp(16px, 2.5vw, 36px); border-left: 2px dotted rgba(159, 224, 212, .5); }
.stats-row-live li:first-child { border-left: 0; padding-left: 0; }
.stat-icon { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.stat-figure { font-size: clamp(48px, 5.5vw, 80px); font-weight: 600; font-stretch: 115%; letter-spacing: -2px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stat-suffix { color: #9fe0d4; }
.stat-label { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.35; color: #e3f1f2; max-width: 220px; }
@media (max-width: 900px) {
  .stats-row-live { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .stats-row-live li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 480px) {
  .stats-row-live { grid-template-columns: 1fr; }
  .stats-row-live li { border-left: 0; padding-left: 0; }
}

/* Legal pages (Privacy Policy, Terms & Conditions) */
.legal { max-width: 820px; color: var(--text); font-size: 17px; line-height: 1.7; }
.legal h2 { margin: 48px 0 12px; font-size: 26px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin: 32px 0 10px; font-size: 20px; }
.legal p { margin: 0 0 16px; color: var(--text-muted); }
.legal p > strong:only-child { display: block; margin-top: 36px; font-size: 20px; font-stretch: 110%; color: var(--navy); }
.legal ol, .legal ul { margin: 0 0 20px; padding-left: 24px; color: var(--text-muted); }
.legal li { margin-bottom: 10px; padding-left: 4px; }
.legal a { color: var(--teal-dark); text-decoration: underline; word-break: break-word; }
.legal strong { color: var(--navy); }

/* Engine diagram: search and listen outputs on the phone */
.eng-tags .eng-search { display: inline-flex; align-items: center; gap: 3px; background: var(--navy); color: #fff; }
.eng-listen { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--tt-teal); color: #fff; font-size: 10px; font-weight: 700; }

/* ---------- Features: integrations hub ---------- */
.integrations-hub { background: var(--deep-blend); color: #fff; overflow: hidden; }
.integrations-hub .eyebrow { color: #9fe0d4; }
.integrations-hub .lead { color: #e3f1f2; }
.hub { position: relative; width: min(560px, 100%); aspect-ratio: 1; margin-inline: auto; container-type: inline-size; }
.hub-ring { position: absolute; inset: 9%; border: 2px dashed rgba(159, 224, 212, .4); border-radius: 50%; animation: hub-spin 90s linear infinite; }
.hub-ring--inner { inset: 31%; border-style: dotted; border-color: rgba(255, 255, 255, .18); animation-direction: reverse; animation-duration: 120s; }
.hub-center { position: absolute; left: 50%; top: 50%; width: 36%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(0, 27, 46, .55); border: 1px solid rgba(159, 224, 212, .35); box-shadow: 0 0 0 14px rgba(67, 170, 168, .08), 0 20px 50px rgba(0, 0, 0, .3); display: flex; align-items: center; justify-content: center; }
.hub-center img { width: 74%; height: auto; }
.hub-list { list-style: none; margin: 0; padding: 0; }
.hub-item { position: absolute; left: 50%; top: 50%; width: 21cqw; height: 9cqw; display: flex; align-items: center; justify-content: center; transform: translate(-50%, -50%) rotate(var(--a)) translate(41cqw) rotate(calc(-1 * var(--a))); }
.hub-item img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@keyframes hub-spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
  .hub { aspect-ratio: auto; }
  .hub-ring, .hub-center { display: none; }
  .hub-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
  .hub-item { position: static; transform: none; width: auto; height: 44px; }
}

/* ---------- Features: TouchTree Engine, brought to life ---------- */
.engine { position: relative; overflow: hidden; }
.engine::before { content: ""; position: absolute; right: -10%; top: 10%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(67, 170, 168, .22), rgba(37, 139, 175, .08) 60%, transparent); pointer-events: none; }
.engine .container { position: relative; }
.engine-diagram { background: rgba(255, 255, 255, .65); backdrop-filter: blur(6px); box-shadow: 0 30px 60px rgba(0, 40, 65, .1); }
.eng-page { position: relative; overflow: hidden; }
.eng-scan { position: absolute; left: 0; right: 0; top: 0; height: 18%; background: linear-gradient(180deg, rgba(67, 170, 168, 0), rgba(67, 170, 168, .35) 70%, rgba(37, 188, 137, .9) 100%); opacity: 0; pointer-events: none; }
.eng-badge { position: relative; }

/* Play once when the diagram scrolls into view */
.engine-diagram.is-in .eng-scan { animation: eng-scan 1.6s ease-in-out .2s 1 both; }
.engine-diagram.is-in .eng-page .eng-block { animation: eng-flag .5s ease 1.2s both; }
.engine-diagram.is-in .eng-badge { animation: eng-pulse 1s ease 1.7s 2 both; }
.engine-diagram[data-animate] .eng-phone > * { opacity: 0; transform: translateY(10px); }
.engine-diagram.is-in .eng-phone > * { animation: eng-in .5s ease both; }
.engine-diagram.is-in .eng-phone > :nth-child(1) { animation-delay: 2.0s; }
.engine-diagram.is-in .eng-phone > :nth-child(2) { animation-delay: 2.2s; }
.engine-diagram.is-in .eng-phone > :nth-child(3) { animation-delay: 2.4s; }
.engine-diagram.is-in .eng-phone > :nth-child(4) { animation-delay: 2.6s; }
.engine-diagram.is-in .eng-phone > :nth-child(5) { animation-delay: 2.8s; }
.engine-diagram.is-in .eng-phone > :nth-child(6) { animation-delay: 3.0s; }
.engine-diagram.is-in .eng-phone > :nth-child(7) { animation-delay: 3.2s; }
.engine-diagram.is-in .eng-phone > :nth-child(8) { animation-delay: 3.4s; }
.engine-diagram.is-in .eng-listen { animation: eng-in .5s ease 2.4s both, eng-pulse 1.2s ease 3.6s 3; }
@keyframes eng-scan { 0% { opacity: 1; top: -18%; } 90% { opacity: 1; top: 100%; } 100% { opacity: 0; top: 100%; } }
@keyframes eng-flag { 0%, 100% { box-shadow: none; } 50% { box-shadow: 0 0 0 3px rgba(37, 188, 137, .6); } }
@keyframes eng-in { to { opacity: 1; transform: none; } }
@keyframes eng-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(67, 170, 168, .5); } 50% { box-shadow: 0 0 0 8px rgba(67, 170, 168, 0); } }
@media (prefers-reduced-motion: reduce) {
  .engine-diagram[data-animate] .eng-phone > * { opacity: 1; transform: none; animation: none !important; }
  .engine-diagram .eng-scan, .engine-diagram .eng-badge, .engine-diagram .eng-page .eng-block { animation: none !important; }
  .hub-ring { animation: none; }
}
.legal-review { padding: 14px 18px; border-radius: 10px; background: #fff4e5; border: 1px solid #f0c98a; color: #6b3d00 !important; font-size: 15px; }

/* Home: Proven results band (reuses the About numbers styles) */
.results-band h2 { color: #fff; }
.results-head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.results-band .stat-label { max-width: 240px; }
.stat-logo { margin-top: 10px; max-height: 34px; max-width: 120px; width: auto; height: auto; object-fit: contain; opacity: .9; }

/* Case studies page */
.cs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.cs-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 3vw, 40px); border-radius: 18px; background: var(--deep-blend); color: #e3f1f2; }
.cs-logo { height: 56px; width: auto; max-width: 200px; object-fit: contain; object-position: left center; }
.cs-card h2 { color: #fff; font-size: clamp(22px, 2.2vw, 28px); }
.cs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0; padding: 0; list-style: none; }
.cs-stats li { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); font-size: 14px; line-height: 1.35; }
.cs-stats strong { font-size: 28px; font-stretch: 115%; color: #fff; line-height: 1; }
.cs-card blockquote { margin: 0; padding-left: 16px; border-left: 3px solid #9fe0d4; font-style: italic; }
.cs-card cite { display: block; margin-top: 8px; font-style: normal; font-size: 14px; color: #9fe0d4; }
.cs-card .btn { align-self: flex-start; margin-top: auto; }
.cs-choose { border: 0; padding: 0; margin: 0; }
.cs-choose legend { margin-bottom: 10px; font-size: 15px; font-weight: 700; color: var(--navy); }
.cs-choose label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500 !important; }
.cs-choose input { width: 20px; height: 20px; min-height: 0; accent-color: var(--teal-dark); }
@media (max-width: 900px) { .cs-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cs-stats { grid-template-columns: 1fr; } }
.stat-suffix--word { font-size: .45em; letter-spacing: 0; }
.cs-inside li { color: var(--off-white); border-color: var(--navy-line) !important; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 16px; bottom: 16px; z-index: 60; width: min(440px, calc(100vw - 32px)); padding: 22px 24px; border-radius: 16px; background: var(--navy); color: var(--text-on-dark); border: 1px solid rgba(159, 224, 212, .3); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); font-size: 15px; line-height: 1.5; }
.cookie-banner[hidden] { display: none !important; }
.cookie-title { margin-bottom: 6px; font-size: 17px; font-weight: 700; color: #fff; }
.cookie-banner a { color: #9fe0d4; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; margin-top: 16px; }
.cookie-actions .btn { flex: 1; }
.cookie-settings { padding: 0; border: 0; background: none; font: inherit; color: #7fa3b3; cursor: pointer; }
.cookie-settings:hover { color: var(--teal-light); }

/* Hero: full-width banner image, lighter overlay on the right so the screens show through */
.hero::before { background: linear-gradient(90deg, var(--navy) 0%, rgba(0, 40, 65, .92) 38%, rgba(0, 40, 65, .35) 64%, rgba(0, 40, 65, 0) 100%); }
@media (max-width: 760px) { .hero::before { background: linear-gradient(180deg, rgba(0, 40, 65, .9) 0%, rgba(0, 40, 65, .94) 100%); } }

/* Insights article pages */
.article-hero h1 { max-width: 980px; font-size: clamp(32px, 4.2vw, 54px); }
.article-hero .eyebrow a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.prose { max-width: 760px; margin: 0 auto; color: var(--text); font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.8em; line-height: 1.2; }
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); }
.prose h3 { font-size: 22px; }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--navy); }
.prose a { color: var(--teal-dark); text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: 12px; margin-inline: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--tt-teal); font-style: italic; }
.article-image { width: 100%; border-radius: 16px; margin-bottom: 1.6em; }
.article-back { max-width: 760px; margin: 48px auto 0; font-weight: 700; }
.article-back a { color: var(--teal-dark); }

/* Pricing cards: what's included */
.price-included { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--tint-line); font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal-dark); }
.pricing-section .price-list { margin-top: 4px; padding-top: 0; border-top: 0; gap: 10px; font-size: 15px; }
.pricing-section .price-list li { display: flex; gap: 10px; line-height: 1.4; }
.pricing-section .price-list li::before { flex-shrink: 0; }
.price-card--featured .price-included { color: #9fe0d4; border-top-color: rgba(255, 255, 255, .2); }
.price-card--featured .price-list li { color: #e3f1f2; }

/* Pipedrive forms: white panel (labels set to navy #002841 in Pipedrive) so the form's own grey small print is readable */
.form-card--embed, .form-card--embed.form-card--raised { background: #fff; color: var(--text); border: 1px solid var(--line); }
.form-card--embed h2 { color: var(--navy); }
.form-card--embed .form-note { color: var(--text-muted); }
.section--split .form-card--embed { border-color: transparent; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }

/* Features header: product image beside the headline */
.page-hero--visual .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.page-hero--visual h1 { font-size: clamp(36px, 4.2vw, 58px); }
.hero-shot { position: relative; }
.hero-shot::before { content: ""; position: absolute; inset: 10% 6% 0 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(67, 170, 168, .35), rgba(37, 109, 188, .12) 60%, transparent); filter: blur(28px); }
.hero-shot img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .4)); }
@media (max-width: 960px) {
  .page-hero--visual .container { grid-template-columns: 1fr; }
  .hero-shot { max-width: 640px; }
}
.hero-photo { aspect-ratio: 4 / 3; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.hero-photo img { object-position: 30% center; }

/* Caption under a product image (home archive section) */
.media-caption { margin-top: 20px; padding-left: 16px; border-left: 3px solid var(--tt-teal); font-size: 16px; line-height: 1.55; color: var(--text-on-dark); max-width: 560px; }
.media-caption strong { display: block; margin-bottom: 4px; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #9fe0d4; }
.section--light .media-caption, .section--mist .media-caption { color: var(--text-muted); }
.section--light .media-caption strong, .section--mist .media-caption strong { color: var(--teal-dark); }
