/* TACT marketing site. Colours follow the app and docs/sales/tact-sales-pitch.html;
   type is Roboto Slab for headings and Roboto for text. */
@font-face { font-family: "Roboto"; src: url("/fonts/Roboto-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/fonts/Roboto-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url("/fonts/RobotoSlab-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url("/fonts/RobotoSlab-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --purple: #190135;        /* TACT logo purple */
  --lilac: #b7a8cf;
  --on-dark: #f1ecf8;
  --orange: #f08a3e;        /* TACT orange */
  --orange-deep: #e2602a;
  --page: #f4f4f2;
  --surface: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #6f6d68;
  --hairline: #e6e5df;
  --green: #14805a;
  --radius: 14px;
  --gap: clamp(16px, 2.4vw, 28px);
  --slab: "Roboto Slab", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--ink); font-family: "Roboto", system-ui, sans-serif;
       font-size: 17px; line-height: 1.6; font-kerning: normal; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--slab); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800; line-height: 1.2; color: var(--purple);
     letter-spacing: -0.01em; margin-bottom: 20px; }
h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
p, li, dd { text-wrap: pretty; }
b { font-weight: 600; }
em { font-style: normal; color: var(--orange); }

.wrap { width: min(1120px, 100% - 2 * var(--gap)); margin-inline: auto; }
.section { margin-top: clamp(48px, 7vw, 88px); }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
           color: var(--orange); margin-bottom: 10px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--purple);
        padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.formula { font-variant-numeric: tabular-nums; color: var(--ink); background: var(--page); border-radius: 10px;
           padding: 10px 14px; margin: 10px 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
       padding: 0 22px; border-radius: 10px; font-weight: 600; text-decoration: none; color: #fff;
       background: var(--orange-deep); border: 0; transition: background-color 0.15s; }
.btn:hover { background: #c44d1a; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.94rem; }
.btn-ghost { background: transparent; border: 1.5px solid rgba(241, 236, 248, 0.45); }
.btn-ghost:hover { background: rgba(241, 236, 248, 0.08); border-color: #fff; }

/* ---------- nav ---------- */
/* Solid, not translucent: the logo's purple ground has to match it exactly. */
.nav { position: sticky; top: 0; z-index: 50; background: var(--purple);
       border-bottom: 1px solid rgba(183, 168, 207, 0.14); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { height: 34px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 26px; }
.nav nav a:not(.btn) { color: var(--on-dark); text-decoration: none; font-size: 0.95rem; opacity: 0.85; }
.nav nav a:not(.btn):hover { opacity: 1; }

/* ---------- hero ---------- */
.hero { background: var(--purple); color: var(--on-dark); padding: clamp(48px, 8vw, 88px) 0 clamp(150px, 20vw, 250px);
        position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -12%; top: -45%; width: 70vw; max-width: 900px; aspect-ratio: 1;
               border-radius: 50%; pointer-events: none;
               background: radial-gradient(closest-side, rgba(240, 138, 62, 0.22), rgba(240, 138, 62, 0)); }
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--lilac); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; font-weight: 800; color: #fff;
           letter-spacing: -0.015em; margin: 4px 0 20px; max-width: 16ch; }
.hero-sub { font-family: var(--slab); font-weight: 700; font-size: clamp(1.2rem, 2.1vw, 1.5rem); line-height: 1.35;
            color: #fff; max-width: 34ch; margin-bottom: 18px; }
.lede { font-size: clamp(1rem, 1.4vw, 1.1rem); max-width: 62ch; opacity: 0.88; }
.lede + .lede { margin-top: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.proof { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 18px 48px; }
.proof li { color: var(--lilac); font-size: 0.95rem; line-height: 1.4; }
.proof b { display: block; font-family: var(--slab); font-weight: 800; font-size: 1.35rem; color: #fff; margin-bottom: 2px; }

/* ---------- product shot ---------- */
.shot { margin: clamp(-230px, -18vw, -130px) 0 0; position: relative; z-index: 2; }
.shot-frame { position: relative; width: 82%; margin-bottom: 4%; }
.shot .main { width: 100%; border-radius: 12px;
              box-shadow: 0 32px 60px -24px rgba(25, 1, 53, 0.5), 0 0 0 1px rgba(25, 1, 53, 0.1); }
.shot .rows { position: absolute; left: 44.7%; top: 71%; width: 75%; border-radius: 10px; background: #fff;
              box-shadow: 0 20px 44px -12px rgba(25, 1, 53, 0.45), 0 0 0 1px rgba(25, 1, 53, 0.14); }
.shot figcaption { font-size: 0.82rem; color: var(--muted); max-width: 34%; margin-top: -2%; }

/* ---------- the problem ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 26px 28px; }
.card h3 { color: var(--purple); font-size: 1.2rem; margin-bottom: 12px; }
.card p { color: var(--ink-2); }
.card p + p { margin-top: 10px; }
.card .lead b { color: var(--ink); }
.card:first-child .lead b { font-family: var(--slab); font-weight: 800; font-size: 1.6rem; color: var(--orange-deep); line-height: 1.2; }

/* ---------- features ---------- */
.features { list-style: none; padding: 0; margin: 0; display: grid;
            grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 30px 30px; }
.features li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-content: start; }
.features h3 { margin-bottom: 6px; }
.features p { color: var(--ink-2); font-size: 0.95rem; }
.features p + p { margin-top: 8px; }
.features p b { color: var(--ink); }
.tick { width: 24px; height: 24px; border-radius: 50%; margin-top: 1px; display: grid; place-items: center;
        background: linear-gradient(135deg, var(--orange), var(--orange-deep)); flex: none; }
.tick::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.4px 2.4px 0;
               transform: translateY(-1.5px) rotate(45deg); }

/* ---------- coming to TACT ---------- */
.pipeline { background: var(--purple); color: var(--on-dark); border-radius: var(--radius);
            padding: clamp(28px, 4vw, 44px); position: relative; overflow: hidden; }
.pipeline::after { content: ""; position: absolute; right: -15%; top: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%;
                   pointer-events: none; background: radial-gradient(closest-side, rgba(240, 138, 62, 0.16), rgba(240, 138, 62, 0)); }
.pipeline > * { position: relative; z-index: 1; }
.pipeline h2 { color: #fff; margin-bottom: 8px; }
.pipeline .intro { color: var(--lilac); max-width: 60ch; }
.pipeline ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid;
               grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px 36px; }
.pipeline li { position: relative; padding-left: 26px; }
.pipeline li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 10px; height: 10px;
                       border-radius: 50%; border: 2.4px solid var(--orange); }
.pipeline h3 { color: #fff; margin-bottom: 4px; }
.pipeline li p { font-size: 0.95rem; color: var(--on-dark); opacity: 0.9; }
.pipeline .note { font-size: 0.86rem; color: var(--lilac); margin-top: 28px; }

/* ---------- pricing ---------- */
.band { background: var(--purple); color: var(--on-dark); padding: clamp(36px, 5vw, 56px) 0 clamp(90px, 10vw, 120px);
        position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -10%; top: -120%; width: 60vw; max-width: 760px; aspect-ratio: 1;
               border-radius: 50%; pointer-events: none;
               background: radial-gradient(closest-side, rgba(240, 138, 62, 0.22), rgba(240, 138, 62, 0)); }
.band .wrap { position: relative; z-index: 1; }
.band h2 { color: #fff; font-size: clamp(1.8rem, 3.8vw, 2.7rem); line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
.row { display: grid; gap: var(--gap); }
.row.pricing { grid-template-columns: 1fr 1.08fr; margin-top: clamp(-90px, -8vw, -70px); position: relative; z-index: 1; }
.panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.panel-title { font-size: clamp(1.3rem, 2.2vw, 1.55rem); font-weight: 800; color: var(--purple); margin-bottom: 8px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { font-weight: 600; color: var(--muted); font-size: 0.76rem; text-align: left; text-transform: uppercase;
     letter-spacing: 0.06em; padding: 0 0 10px; border-bottom: 1px solid var(--hairline); vertical-align: bottom; }
td { padding: 11px 0; border-bottom: 1px solid var(--hairline); }
tr:last-child td { border-bottom: 0; }
.r { text-align: right; }
.tiers { margin: 18px 0 6px; }
.tiers td:first-child { color: var(--ink-2); }
.tiers .price { font-family: var(--slab); font-weight: 800; font-size: 1.3rem; color: var(--purple); }
.sub { color: var(--ink-2); }
.sub + .sub { margin-top: 8px; }
.sub b { color: var(--ink); }
.panel > h2 + .sub { margin-top: -8px; }

.offers { display: grid; gap: var(--gap); align-content: start; }
.offer { border-radius: var(--radius); padding: 26px 28px; position: relative; overflow: hidden; }
.offer h3 { font-size: 1.3rem; font-weight: 800; margin: 0 0 10px; padding-right: 96px; }
.offer p:not(.eyebrow):not(.big):not(.ends) { font-size: 0.97rem; padding-right: 96px; }
.offer p:not(.eyebrow):not(.big):not(.ends) + p { margin-top: 6px; }
.offer .big { position: absolute; right: 26px; top: 22px; font-family: var(--slab); font-weight: 800;
              font-size: 2.9rem; line-height: 1; letter-spacing: -0.02em; }
.offer.annual { background: var(--surface); border: 2px solid var(--purple); }
.offer.annual h3, .offer.annual .big { color: var(--purple); }
.offer.early { background: linear-gradient(120deg, var(--orange), var(--orange-deep)); color: #fff; }
.offer.early .eyebrow { color: #fff; opacity: 0.9; }
.offer.early h3 { color: #fff; }
.offer .ends { display: inline-block; margin-top: 16px; background: var(--purple); color: #fff; font-weight: 600;
               font-size: 0.9rem; padding: 5px 12px; border-radius: 8px; }
.early-ended .offer.early { filter: grayscale(0.7); opacity: 0.75; }

/* ---------- ROI ---------- */
.roi-section { display: grid; gap: var(--gap); }
/* Let grid items shrink below their content, so wide tables scroll inside .table-scroll. */
.roi-section > *, .row > * { min-width: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 22px; }
.roi { min-width: 680px; }
.roi td, .roi th { padding-right: 14px; }
.roi th:last-child, .roi td:last-child { padding-right: 0; }
.roi .hl { color: var(--green); font-weight: 600; }
.roi td.strong { font-weight: 600; }
.assume { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hairline); color: var(--ink-2); font-size: 0.95rem; }
.assume h3 { color: var(--purple); margin-bottom: 8px; }
.assume p + p { margin-top: 8px; }
.assume .formula { margin: 8px 0; }

.calc { background: linear-gradient(180deg, #fff, #fbfaf7); }
.calc-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(22px, 4vw, 48px); align-items: start; margin-top: 22px; }
.calc-in { display: grid; gap: 8px; }
.calc-in label { font-weight: 600; font-size: 0.95rem; display: flex; justify-content: space-between; align-items: baseline;
                 margin-top: 10px; }
.calc-in label:first-child { margin-top: 0; }
.calc-in output { font-family: var(--slab); font-weight: 800; color: var(--purple); }
.calc-in input[type="number"] { font: inherit; font-size: 1.1rem; font-variant-numeric: tabular-nums; width: 100%;
                                 min-height: 48px; padding: 0 14px; border: 1.5px solid var(--hairline); border-radius: 10px;
                                 background: #fff; color: var(--ink); }
.calc-in input[type="number"]:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(240, 138, 62, 0.25); }
.calc-in input[type="range"] { width: 100%; accent-color: var(--orange-deep); min-height: 32px; }
.rand { position: relative; display: block; }
.rand::before { content: "R"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted);
                font-size: 1.1rem; pointer-events: none; }
.rand input[type="number"] { padding-left: 32px; }
.calc-out { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-out div { background: var(--page); border-radius: 12px; padding: 16px 18px; }
.calc-out dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.calc-out dd { margin: 4px 0 0; font-family: var(--slab); font-weight: 800; font-size: 1.45rem;
               color: var(--purple); font-variant-numeric: tabular-nums; line-height: 1.2; }
.calc-out .plan { background: var(--purple); }
.calc-out .plan dt { color: var(--lilac); }
.calc-out .plan dd { color: #fff; font-size: 1.15rem; }
.roi-pill { display: block; margin-top: 6px; font-size: 1.05rem; color: #7ee2b8; }
.roi-pill.neg { color: #ffb4a0; }
.calc-note { margin-top: 20px; color: var(--ink-2); }
.early-ended [data-hide-when-ended] { display: none; }

/* ---------- client service + annual commitment ---------- */
.row.carry { grid-template-columns: 1fr 1.1fr; align-items: start; }
.passon p { color: var(--ink-2); }
.passon p + p { margin-top: 10px; }
.passon p b { color: var(--ink); }
.benefits { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.benefits li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--ink-2); }
.benefits li b { color: var(--ink); }
.policy { background: #fbfaf7; }
.terms h3 { color: var(--purple); font-size: 1rem; margin: 20px 0 4px; }
.terms p { color: var(--ink-2); font-size: 0.95rem; }
.terms p + p { margin-top: 6px; }
.terms p b { color: var(--ink); }
.terms .formula { background: var(--surface); border: 1px solid var(--hairline); }

/* ---------- call to action ---------- */
.cta { background: var(--purple); color: var(--on-dark); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
       display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; left: -10%; bottom: -160%; width: 50%; aspect-ratio: 1; border-radius: 50%;
              pointer-events: none; background: radial-gradient(closest-side, rgba(240, 138, 62, 0.18), rgba(240, 138, 62, 0)); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.cta p { color: var(--lilac); max-width: 58ch; }
.cta p + p { margin-top: 8px; }
.cta p b { color: #fff; }
.contact { display: grid; gap: 4px; margin-top: 22px; }
.contact .who { color: #fff; font-family: var(--slab); font-weight: 700; font-size: 1.1rem; }
.cta .contact p + p { margin-top: 0; }
.contact a { color: #fff; text-decoration: none; }
.contact a:hover { text-decoration: underline; }
.demo-form { background: var(--surface); color: var(--ink); border-radius: 12px; padding: clamp(20px, 3vw, 28px);
             display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; width: min(100%, 470px); flex: none; }
.demo-form h3 { grid-column: 1 / -1; color: var(--purple); font-size: 1.25rem; }
.demo-form label { display: grid; gap: 4px; align-content: start; font-weight: 600; font-size: 0.9rem; }
.demo-form .wide, .demo-form .btn, .demo-form .fine { grid-column: 1 / -1; }
.demo-form .opt { font-weight: 400; color: var(--muted); }
.demo-form input, .demo-form textarea { font: inherit; font-size: 1rem; width: 100%; min-height: 44px; padding: 8px 12px;
                                        border: 1.5px solid var(--hairline); border-radius: 10px; background: #fff; color: var(--ink);
                                        box-sizing: border-box; }
.demo-form textarea { resize: vertical; }
.demo-form input:focus, .demo-form textarea:focus { border-color: var(--orange); outline: none;
                                                    box-shadow: 0 0 0 3px rgba(240, 138, 62, 0.25); }
.demo-form .btn { cursor: pointer; font: inherit; font-weight: 600; margin-top: 4px; }
.demo-form .btn:disabled { opacity: 0.7; cursor: progress; }
.demo-form .fine { font-size: 0.82rem; color: var(--muted); max-width: none; }
.demo-form .fine a { color: var(--purple); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.foot { margin-top: clamp(48px, 7vw, 80px); padding: 28px 0 40px; border-top: 1px solid var(--hairline); }
.foot-in { display: flex; justify-content: space-between; gap: 24px; font-size: 0.86rem; color: var(--muted); }
.foot-in > p { white-space: nowrap; }

/* ---------- prose pages (privacy, 404) ---------- */
.prose { max-width: 72ch; margin-top: clamp(40px, 6vw, 72px); }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.12; color: var(--purple); font-weight: 800; margin-bottom: 10px; }
.prose h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; margin: 10px 0 0; }
.prose li + li { margin-top: 6px; }
.prose .updated { color: var(--muted); font-size: 0.9rem; }
.prose a { color: var(--purple); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .row.pricing, .row.carry, .calc-grid { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .nav nav a:not(.btn) { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .why { grid-template-columns: 1fr; }
  .shot-frame { width: 100%; margin-bottom: 0; }
  .shot .rows { position: static; width: 100%; margin-top: 14px; }
  .shot figcaption { max-width: none; margin-top: 10px; }
  .cta { flex-direction: column; align-items: stretch; }
  .demo-form { width: 100%; }
  .foot-in { flex-direction: column; }
}
@media (max-width: 480px) {
  .calc-out { grid-template-columns: 1fr; }
  .demo-form { grid-template-columns: 1fr; }
  .offer h3, .offer p:not(.eyebrow):not(.big):not(.ends) { padding-right: 0; }
  .offer .big { position: static; font-size: 2.4rem; margin: 4px 0 8px; }
  .proof { gap: 16px 28px; }
}
