/* CRM & AI automation landing page (/services/crm-automation). Every rule is scoped to #tnm-automation
   so the page cannot restyle the site header, footer or modals. */
/* Fonts matched to thenightmarketer.com: Hanken Grotesk (all text) + IvyPresto Display Light (accent words).
     IvyPresto is served from thenightmarketer.com; Instrument Serif is the fallback if it can't load. */
  @font-face {
    font-family: 'IvyPresto Display';
    src: url('../font/fonnts.com-ivy-presto-display-light-webfont.woff2') format('woff2'),
         url('../font/fonnts.com-ivy-presto-display-light-webfont.woff') format('woff');
    font-weight: 400; font-style: normal; font-display: swap;
  }
  #tnm-automation{
    color-scheme: light;
    --bg: #fafaf7;
    --bg-2: #f5f3ec;
    --card: #ffffff;
    --line: #e6e3da;
    --ink: #14161a;
    --ink-2: #4a4f58;
    --muted: #6b707a;
    --accent: #ffd60a;          /* thenightmarketer.com yellow — used for fills */
    --accent-2: #f5c800;        /* hover */
    --accent-bright: #ffe24d;
    --accent-ink: #14161a;      /* text on yellow */
    --accent-text: #8a6d00;     /* yellow is unreadable as text on white, so accent TEXT uses this dark gold */
    --danger: #d64545;
    --shadow: 0 1px 2px rgba(20,22,26,.04), 0 10px 28px -14px rgba(20,22,26,.14);
    --radius: 18px;
    --radius-sm: 12px;
    --font-head: 'Hanken Grotesk', Arial, sans-serif;
    --font-body: 'Hanken Grotesk', Arial, sans-serif;
    --font-accent: 'IvyPresto Display', 'Instrument Serif', Georgia, serif;
    --wrap: 1200px;
    --gutter: 24px;
    /* Site navbar (thenightmarketer.com: fixed, 76px desktop / ~66px mobile).
       JS overwrites these with the live navbar's size when the page runs inside the site. */
    --nav-h: 76px;        /* height the navbar takes from the first screen */
    --nav-overlap: 76px;  /* = --nav-h when the navbar is fixed over the page, 0 when it sits above it */
  }

  #tnm-automation *, #tnm-automation *::before, #tnm-automation *::after{ box-sizing: border-box; margin: 0; padding: 0; }
  #tnm-automation{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
  #tnm-automation{ background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  #tnm-automation img, #tnm-automation svg{ display: block; max-width: 100%; }
  #tnm-automation a{ color: inherit; }
  #tnm-automation button, #tnm-automation input, #tnm-automation select, #tnm-automation textarea{ font: inherit; color: inherit; }
  #tnm-automation h1, #tnm-automation h2, #tnm-automation h3, #tnm-automation h4{ font-family: var(--font-head); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
  #tnm-automation h1, #tnm-automation h2{ font-weight: 400; }
  #tnm-automation .accent{ font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--accent); }
  #tnm-automation :focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

  #tnm-automation .wrap{ max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
  #tnm-automation section{ padding: 76px 0; position: relative; }
  #tnm-automation .band{ background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  #tnm-automation .section-head{ max-width: 720px; margin-bottom: 36px; }
  #tnm-automation .section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
  #tnm-automation .eyebrow{ display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
  #tnm-automation .eyebrow::before{ content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
  #tnm-automation .section-head h2, #tnm-automation .h2{ font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 12px; }
  #tnm-automation .section-head p, #tnm-automation .lead{ color: var(--ink-2); font-size: 17px; }
  #tnm-automation .split{ display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
  #tnm-automation .split > .section-head{ margin-bottom: 0; position: sticky; top: 24px; }
  #tnm-automation .hero__grid > *, #tnm-automation .split > *, #tnm-automation .ba__grid > *, #tnm-automation .tab-panel > *, #tnm-automation .case__card > *, #tnm-automation .why__band > *,
  #tnm-automation .faq__grid > *, #tnm-automation .faq__aside > *, #tnm-automation .trust__grid > *, #tnm-automation .pcards > *, #tnm-automation .types > *{ min-width: 0; }
  #tnm-automation .tbc{ display: inline-block; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0; padding: 3px 10px; border-radius: 6px; border: 1px dashed currentColor; color: var(--muted); }

  /* Buttons */
  #tnm-automation .btn{ display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
  #tnm-automation .btn--primary{ background: var(--accent); color: #fff; }
  #tnm-automation .btn--primary:hover{ background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(176,138,0,.55); }
  #tnm-automation .btn--ghost{ border-color: var(--line); color: var(--ink); background: var(--card); }
  #tnm-automation .btn--ghost:hover{ border-color: var(--ink-2); transform: translateY(-2px); }
  #tnm-automation .btn--block{ width: 100%; }
  #tnm-automation .btn-row{ display: flex; flex-wrap: wrap; gap: 12px; }
  #tnm-automation .btn-row.center{ justify-content: center; }
  #tnm-automation .text-link{ display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--accent); text-decoration: none; }
  #tnm-automation .text-link{ text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(176,138,0,.35); transition: text-decoration-color .15s; }
  #tnm-automation .text-link:hover{ text-decoration-color: currentColor; }

  /* Reveal */
  #tnm-automation .reveal{ opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
  #tnm-automation .reveal.in{ opacity: 1; transform: none; }

  /* =====================================================================
     01 HERO
     ===================================================================== */
  /* Full-screen hero with soft colour washes (no grid) */
  #tnm-automation .hero{
    /* fills the first screen below the site navbar */
    min-height: calc(100vh - var(--nav-h) + var(--nav-overlap)); min-height: calc(100svh - var(--nav-h) + var(--nav-overlap));
    display: flex; flex-direction: column; padding: calc(var(--nav-overlap) + 40px) 0 24px; overflow: hidden;
    background:
      radial-gradient(60% 55% at 88% 12%, rgba(255,214,10,.22), transparent 70%),
      radial-gradient(45% 50% at 6% 92%, rgba(252,233,170,.55), transparent 70%),
      radial-gradient(40% 40% at 55% 55%, rgba(221,233,253,.45), transparent 70%),
      var(--bg);
  }
  #tnm-automation .hero > .wrap{ width: 100%; flex: 1; align-content: center; }

  /* Running logo strip at the bottom of the hero */
  #tnm-automation .hero__logos{ position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 40px auto 0; padding: 0 var(--gutter); }
  #tnm-automation .hero__logos-label{ text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
  #tnm-automation .logo-marquee{ overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  #tnm-automation .logo-marquee__track{ display: flex; width: max-content; animation: ta-logoScroll 32s linear infinite; }
  #tnm-automation .logo-marquee:hover .logo-marquee__track{ animation-play-state: paused; }
  #tnm-automation .logo-marquee__group{ display: flex; align-items: center; gap: 48px; padding-right: 48px; }
  @keyframes ta-logoScroll { to { transform: translateX(-50%); } }
  #tnm-automation .logo-slot{ flex: none; display: grid; place-items: center; height: 44px; min-width: 130px; padding: 0 18px; border-radius: 10px; border: 1px dashed #d3d0c6; background: rgba(255,255,255,.6); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a3a097; }
  #tnm-automation .logo-marquee img{ flex: none; height: 32px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .25s, opacity .25s; }
  #tnm-automation .logo-marquee img:hover{ filter: none; opacity: 1; }
  #tnm-automation .hero::before{ /* slow-drifting soft blob */
    content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -160px; border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(255,214,10,.28), rgba(255,214,10,0) 70%); filter: blur(10px);
    pointer-events: none; animation: ta-heroDrift 16s ease-in-out infinite alternate;
  }
  #tnm-automation .hero::after{ /* thin curved line accent */
    content: ""; position: absolute; width: 900px; height: 900px; left: -420px; bottom: -620px; border-radius: 50%;
    border: 1px solid rgba(176,138,0,.14); box-shadow: 0 0 0 60px rgba(255,214,10,.04), 0 0 0 140px rgba(255,214,10,.025); pointer-events: none;
  }
  @keyframes ta-heroDrift { to { transform: translate(-80px, 60px) scale(1.1); } }
  #tnm-automation .hero__grid{ position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
  #tnm-automation .hero__badge{ display: flex; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); max-width: 560px; }
  #tnm-automation .hero__badge{ gap: 18px; }
  #tnm-automation .hero__badge svg{ height: 82px; width: auto; color: var(--ink); margin: -12px 0 -12px -12px; flex: none; }
  #tnm-automation .hero__badge-text{ padding-left: 20px; border-left: 1px solid var(--line); max-width: 440px; }
  #tnm-automation .hero__badge-text b{ display: block; font-family: var(--font-head); font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); margin-bottom: 5px; }
  #tnm-automation .hero__badge-text span{ display: block; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
  #tnm-automation .hero__badge-text em{ font-style: normal; font-weight: 800; color: var(--accent-text); white-space: nowrap; }
  #tnm-automation .hero__badge-text b{ text-wrap: balance; }   /* even line lengths, no one-word last line */
  #tnm-automation .hero h1{ font-size: clamp(38px, min(5vw, 7.2vh), 62px); margin-bottom: 18px; }
  #tnm-automation .hero h1 strong.accent{ font-weight: 700; }
  #tnm-automation .hero__sub{ font-size: 18.5px; color: var(--ink-2); max-width: 560px; margin-bottom: 26px; }
  #tnm-automation .hero__ctas{ margin-bottom: 30px; }

  /* Hero form */
  #tnm-automation .form-card{ background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px 30px; box-shadow: 0 30px 60px -28px rgba(20,22,26,.28), 0 0 0 1px rgba(176,138,0,.06); scroll-margin-top: calc(var(--nav-overlap) + 12px); }
  /* Project Type: the select's own text is hidden and drawn by .select-label on top,
     so a long choice can slide left/right instead of being cut off */
  #tnm-automation .select-wrap{ position: relative; }
  #tnm-automation .select-wrap .select{ color: transparent; }
  #tnm-automation .select-wrap .select option, #tnm-automation .select-wrap .select optgroup{ color: var(--ink); }
  #tnm-automation .select-label{ position: absolute; top: 0; bottom: 0; left: 15px; right: 38px; display: flex; align-items: center; overflow: hidden; pointer-events: none; color: var(--ink); font-size: 16px; white-space: nowrap; }
  #tnm-automation .select-label__text{ display: inline-block; }
  #tnm-automation .select-label.is-sliding{ -webkit-mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 12px), transparent); mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 12px), transparent); }
  #tnm-automation .select-label.is-sliding .select-label__text{ padding: 0 8px; margin-left: -8px; animation: ta-selectSlide var(--slide-dur, 6s) ease-in-out infinite; }
  @keyframes ta-selectSlide { 0%, 18% { transform: translateX(0); } 50%, 68% { transform: translateX(var(--slide-shift, 0px)); } 100% { transform: translateX(0); } }
  @media (prefers-reduced-motion: reduce) {
    #tnm-automation .select-label.is-sliding{ -webkit-mask-image: none; mask-image: none; }
    #tnm-automation .select-label.is-sliding .select-label__text{ animation: none; padding: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  }

  /* yellow ring when a "Start your project" button brings you to the form */
  #tnm-automation .form-card.is-pulse{ animation: ta-cardPulse 1.6s ease; }
  @keyframes ta-cardPulse { 0%, 30% { box-shadow: 0 30px 60px -28px rgba(20,22,26,.28), 0 0 0 4px rgba(255,214,10,.75); } 100% { box-shadow: 0 30px 60px -28px rgba(20,22,26,.28), 0 0 0 1px rgba(176,138,0,.06); } }
  #tnm-automation .form-card h2{ font-size: 25px; margin-bottom: 8px; }
  #tnm-automation .form-card__lead{ color: var(--ink-2); font-size: 15px; margin-bottom: 22px; }
  #tnm-automation .field{ margin-bottom: 13px; }
  #tnm-automation .field label{ display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
  #tnm-automation .field label abbr{ color: var(--danger); text-decoration: none; }
  #tnm-automation .input, #tnm-automation .select, #tnm-automation .textarea{ width: 100%; padding: 12px 14px; background-color: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
  #tnm-automation .textarea{ resize: vertical; min-height: 96px; }
  #tnm-automation .field__count{ display: block; margin-top: 5px; text-align: right; font-size: 12px; color: var(--muted); }
  #tnm-automation .field__count.is-max{ color: var(--accent-text); font-weight: 600; }
  #tnm-automation .select{ appearance: none; -webkit-appearance: none; padding-right: 40px; background-repeat: no-repeat; background-position: right 15px center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%234a4f58' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  /* Phone: country-code picker (flag + dial code) joined to the number input */
  #tnm-automation .phone{ position: relative; display: flex; }
  #tnm-automation .phone__cc{ flex: none; display: flex; align-items: center; gap: 7px; padding: 0 10px 0 12px; background-color: var(--bg); border: 1px solid var(--line); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
  #tnm-automation .phone__cc svg{ width: 10px; height: 7px; color: var(--ink-2); transition: transform .2s; }
  #tnm-automation .phone__cc[aria-expanded="true"] svg{ transform: rotate(180deg); }
  #tnm-automation .phone__cc:focus-visible{ outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,214,10,.18); }
  #tnm-automation .phone .phone__input{ flex: 1; min-width: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
  #tnm-automation .phone .fi{ width: 20px; height: 15px; flex: none; border-radius: 2px; background-size: cover; box-shadow: 0 0 0 1px rgba(20,22,26,.1); }
  #tnm-automation .cc-pop{ position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 300px; max-width: calc(100vw - 32px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(20,22,26,.3); padding: 8px; }
  #tnm-automation .cc-pop[hidden]{ display: none; }
  #tnm-automation .cc-pop__search{ width: 100%; padding: 9px 12px; font: inherit; font-size: 15px; background-color: var(--bg); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; }
  #tnm-automation .cc-pop__search:focus{ outline: none; border-color: var(--accent); }
  #tnm-automation .cc-pop__list{ list-style: none; max-height: 248px; overflow-y: auto; overscroll-behavior: contain; }
  #tnm-automation .cc-pop__list li{ display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14.5px; cursor: pointer; }
  #tnm-automation .cc-pop__list li span:nth-child(2){ flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #tnm-automation .cc-pop__list li small{ flex: none; color: var(--muted); font-size: 13.5px; }
  #tnm-automation .cc-pop__list li.is-active{ background: rgba(255,214,10,.18); }
  #tnm-automation .cc-pop__list li[aria-selected="true"]{ font-weight: 700; }
  #tnm-automation .cc-pop__empty{ padding: 10px; font-size: 14px; color: var(--muted); }
  #tnm-automation .input::placeholder, #tnm-automation .textarea::placeholder{ color: var(--muted); }
  #tnm-automation .input:focus, #tnm-automation .select:focus, #tnm-automation .textarea:focus{ outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,214,10,.18); }
  #tnm-automation .row-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  #tnm-automation .row-2 > *{ min-width: 0; }
  /* phone (country code + up to 15 digits) and Project Type each get a full-width row, so every digit
     is always visible and the fields line up with the Name / Email row above */
  #tnm-automation .row-2.row-2--phone{ grid-template-columns: 1fr; gap: 0; }
  #tnm-automation #projectForm .btn--primary{ margin-top: 4px; }
  /* brief yellow flash when a button pre-selects the Project Type */
  #tnm-automation .select.is-prefilled{ animation: ta-prefill 1.6s ease; }
  @keyframes ta-prefill { 0%, 35% { border-color: #d4a900; box-shadow: 0 0 0 4px rgba(255,214,10,.45); background-color: #fffbe6; } 100% { box-shadow: 0 0 0 0 rgba(255,214,10,0); } }
  #tnm-automation .form-assure{ margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }
  #tnm-automation .form-success{ text-align: center; padding: 30px 0 10px; }
  #tnm-automation .form-success__icon{ width: 64px; height: 64px; border-radius: 50%; background: rgba(255,214,10,.18); display: grid; place-items: center; margin: 0 auto 18px; }
  #tnm-automation .form-success__icon svg{ width: 30px; height: 30px; color: var(--accent); }
  #tnm-automation .form-success h3{ font-size: 24px; margin-bottom: 10px; }
  #tnm-automation .form-success p{ color: var(--ink-2); }

  /* =====================================================================
     02 TRUST & CREDENTIALS
     ===================================================================== */
  #tnm-automation .trust__grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
  #tnm-automation .tcard{ background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: border-color .25s, transform .25s; display: flex; flex-direction: column; gap: 10px; }
  #tnm-automation .tcard:hover{ border-color: rgba(255,214,10,.5); transform: translateY(-4px); }
  #tnm-automation .tcard__icon{ width: 42px; height: 42px; border-radius: 12px; background: rgba(255,214,10,.14); color: var(--accent); display: grid; place-items: center; }
  #tnm-automation .tcard__icon svg{ width: 21px; height: 21px; }
  #tnm-automation .tcard h3{ font-size: 18px; }
  #tnm-automation .tcard p{ color: var(--ink-2); font-size: 15px; }
  #tnm-automation .tcard--badge svg.badge-logo{ height: 66px; width: auto; color: var(--ink); margin: -10px 0 -6px -10px; }
  #tnm-automation .logo-slots{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
  #tnm-automation .logo-slots span{ height: 38px; border-radius: 8px; border: 1px dashed #d3d0c6; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a3a097; }
  #tnm-automation .cta-bar{ display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 18px 18px 18px 28px; border-radius: var(--radius); border: 1px dashed rgba(255,214,10,.55); background: rgba(255,214,10,.06); }
  #tnm-automation .cta-bar p{ font-family: var(--font-head); font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
  #tnm-automation .cta-bar p span{ color: var(--accent); }

  /* =====================================================================
     03 FEATURED WORK — project 01 (before/after) + project 02 (case card)
     ===================================================================== */
  #tnm-automation .ba__grid{ display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
  #tnm-automation .ba__side .section-head{ margin-bottom: 20px; }
  #tnm-automation .ba{ position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; --pos: 50%; user-select: none; background: var(--card); box-shadow: var(--shadow); }
  #tnm-automation .ba__layer{ position: absolute; inset: 0; }
  #tnm-automation .ba__layer--before{ clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 2; }
  #tnm-automation .ba__tag{ position: absolute; top: 14px; z-index: 4; padding: 6px 12px; border-radius: 999px; font-family: var(--font-head); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  #tnm-automation .ba__tag--before{ left: 14px; background: rgba(20,22,26,.78); color: #fff; }
  #tnm-automation .ba__tag--after{ right: 14px; background: var(--accent); color: #fff; }
  #tnm-automation .ba__handle{ position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--ink); z-index: 3; transform: translateX(-1px); pointer-events: none; }
  #tnm-automation .ba__handle::after{ content: "◂ ▸"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 13px; letter-spacing: 2px; box-shadow: 0 6px 20px rgba(20,22,26,.3); }
  #tnm-automation .ba__range{ position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 5; margin: 0; }
  #tnm-automation .ba__hint{ font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
  #tnm-automation .mock-old{ background: #dcdcd6; height: 100%; padding: 4%; font-family: Georgia, serif; color: #555; display: flex; flex-direction: column; gap: 3%; }
  #tnm-automation .mock-old__bar{ display: flex; justify-content: space-between; background: #8a8a85; color: #eee; padding: 2% 3%; font-size: clamp(8px, 1.2vw, 13px); }
  #tnm-automation .mock-old__marquee{ background: #c0392b; color: #fff; font-size: clamp(7px, 1vw, 11px); padding: 1% 3%; text-align: center; font-weight: 700; }
  #tnm-automation .mock-old__hero{ flex: 1.1; background: repeating-linear-gradient(45deg, #b9b9b2 0 10px, #c4c4bd 10px 20px); display: grid; place-items: center; font-size: clamp(10px, 1.8vw, 20px); color: #666; font-weight: 700; text-align: center; padding: 3%; }
  #tnm-automation .mock-old__grid{ flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3%; }
  #tnm-automation .mock-old__grid div{ background: #c9c9c3; border: 1px solid #aaa; display: flex; align-items: flex-end; padding: 5%; }
  #tnm-automation .mock-old__grid div::after{ content: "Add to Cart"; display: block; width: 100%; background: #7f8c8d; color: #fff; font-size: clamp(6px, .8vw, 9px); text-align: center; padding: 3% 0; }
  #tnm-automation .mock-new{ background: #f6f4ef; height: 100%; padding: 4%; color: #111; display: flex; flex-direction: column; gap: 4%; }
  #tnm-automation .mock-new__bar{ display: flex; justify-content: space-between; align-items: center; font-family: var(--font-head); font-size: clamp(8px, 1.1vw, 13px); font-weight: 800; }
  #tnm-automation .mock-new__bar i{ display: flex; gap: 8px; } #tnm-automation .mock-new__bar i::before, #tnm-automation .mock-new__bar i::after{ content: ""; width: 30px; height: 5px; border-radius: 3px; background: #d6d2c6; }
  #tnm-automation .mock-new__hero{ flex: 1.2; border-radius: 10px; background: linear-gradient(120deg, #1a1914, #3a3214 60%, #ffd60a); color: #fff; padding: 5%; display: flex; flex-direction: column; justify-content: center; gap: 6%; }
  #tnm-automation .mock-new__hero b{ font-family: var(--font-head); font-size: clamp(12px, 2.2vw, 26px); line-height: 1.05; letter-spacing: -.02em; max-width: 60%; }
  #tnm-automation .mock-new__hero span{ align-self: flex-start; background: #fff; color: #111; border-radius: 999px; padding: 1.5% 4%; font-size: clamp(7px, 1vw, 12px); font-weight: 700; }
  #tnm-automation .mock-new__grid{ flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3%; }
  #tnm-automation .mock-new__grid div{ background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.06); position: relative; }
  #tnm-automation .mock-new__grid div::after{ content: ""; position: absolute; left: 8%; right: 35%; bottom: 10%; height: 5px; border-radius: 3px; background: #d6d2c6; }
  #tnm-automation .facts{ display: grid; gap: 10px; margin-bottom: 18px; }
  #tnm-automation .fact{ padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; box-shadow: var(--shadow); }
  #tnm-automation .fact small{ font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }

  #tnm-automation .case__card{ display: grid; grid-template-columns: .85fr 1.15fr; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); margin-top: 56px; }
  #tnm-automation .case__visual{ position: relative; min-height: 300px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; background: radial-gradient(circle at 75% 25%, rgba(255,214,10,.45), transparent 55%), linear-gradient(160deg, #fff3c2, #fffdf3); }
  #tnm-automation .case__client{ display: inline-flex; align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.85); border: 1px solid var(--line); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  #tnm-automation .case__shot{ flex: 1; border-radius: 14px; border: 1.5px dashed rgba(176,138,0,.35); background: rgba(255,255,255,.55); display: grid; place-items: center; text-align: center; font-size: 14px; color: var(--ink-2); padding: 18px; }
  #tnm-automation .case__body{ padding: 32px 36px; display: flex; flex-direction: column; gap: 18px; }
  #tnm-automation .case__body h3{ font-size: clamp(22px, 2.4vw, 28px); }
  #tnm-automation .case__steps{ display: grid; gap: 12px; }
  #tnm-automation .case__steps div{ padding-left: 16px; border-left: 2px solid var(--line); }
  #tnm-automation .case__steps small{ display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
  #tnm-automation .work__note{ margin-top: 16px; font-size: 14px; color: var(--muted); text-align: center; }

  /* =====================================================================
     SERVICES OVERVIEW — bento grid (from v4)
     ===================================================================== */
  #tnm-automation{
    --mint: #fff1b8; --mint-d: #7a5c00;
    --sky: #dde9fd; --sky-d: #1f4fb3;
    --lilac: #ebe5fd; --lilac-d: #5b3fb8;
    --peach: #fde4d6; --butter: #fcefc4;
    --mono: 'Hanken Grotesk', Arial, sans-serif;
  }
  #tnm-automation .sec-top{ display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 36px; }
  #tnm-automation .sec-top > div{ max-width: 640px; }
  #tnm-automation .sec-top .lead{ max-width: 440px; }
  #tnm-automation .kicker{ display: inline-block; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 14px; }
  #tnm-automation .kicker b{ font-weight: 700; color: var(--accent); }
  #tnm-automation .arrow-link{ display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--ink); }
  #tnm-automation .arrow-link{ text-decoration: underline; text-decoration-color: rgba(20,22,26,.25); text-underline-offset: 4px; transition: color .15s, text-decoration-color .15s; }
  #tnm-automation .arrow-link:hover{ color: var(--accent); text-decoration-color: currentColor; }
  #tnm-automation .bento{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  #tnm-automation .bento > *{ min-width: 0; }
  #tnm-automation .tile{ position: relative; border-radius: 22px; padding: 24px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: opacity .7s ease, transform .3s ease, box-shadow .2s; transition-delay: var(--d, 0s); box-shadow: var(--shadow); }
  #tnm-automation .tile:hover{ transition-delay: 0s; }
  #tnm-automation .tile:hover{ transform: translateY(-3px); box-shadow: 0 1px 2px rgba(20,22,26,.04), 0 18px 40px -18px rgba(20,22,26,.25); }
  #tnm-automation .tile--wide, #tnm-automation .tile--span2{ grid-column: span 2; }
  #tnm-automation .tile--wide{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
  #tnm-automation .tile--wide > div{ display: flex; flex-direction: column; gap: 10px; height: 100%; min-width: 0; }
  #tnm-automation .tile--mint, #tnm-automation .tile--butter, #tnm-automation .tile--sky, #tnm-automation .tile--lilac, #tnm-automation .tile--peach{ border-color: transparent; }
  #tnm-automation .tile--mint{ background: var(--mint); } #tnm-automation .tile--butter{ background: var(--butter); } #tnm-automation .tile--sky{ background: var(--sky); } #tnm-automation .tile--lilac{ background: var(--lilac); } #tnm-automation .tile--peach{ background: var(--peach); }
  #tnm-automation .tile__meta{ font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
  #tnm-automation .tile h3{ font-size: 22px; letter-spacing: -.02em; }
  #tnm-automation .tile p{ font-size: 15px; color: var(--ink-2); }
  #tnm-automation .tile .arrow-link{ margin-top: auto; padding-top: 6px; font-size: 14.5px; }
  #tnm-automation .tile__art{ margin-bottom: 6px; }
  #tnm-automation .tile--wide .tile__art{ margin: 0; }
  #tnm-automation .mini-store{ background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
  #tnm-automation .mini-store__bar{ height: 22px; display: flex; gap: 5px; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--line); }
  #tnm-automation .mini-store__bar i{ width: 6px; height: 6px; border-radius: 50%; background: #dcd9d1; }
  #tnm-automation .mini-store__body{ padding: 10px; display: grid; gap: 8px; }
  #tnm-automation .mini-store__hero{ height: 58px; border-radius: 8px; background: var(--sky); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 12px; }
  #tnm-automation .mini-store__hero b{ width: 55%; height: 8px; border-radius: 4px; background: var(--sky-d); opacity: .8; }
  #tnm-automation .mini-store__hero span{ width: 30%; height: 14px; border-radius: 999px; background: var(--ink); }
  #tnm-automation .mini-store__grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  #tnm-automation .mini-store__grid div{ height: 44px; border-radius: 6px; background: #f5f4ef; position: relative; }
  #tnm-automation .mini-store__grid div::after{ content: ""; position: absolute; left: 6px; bottom: 6px; width: 50%; height: 5px; border-radius: 3px; background: #cfccc3; }
  #tnm-automation .flow{ display: grid; gap: 8px; }
  #tnm-automation .flow__node{ display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 9px 12px; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow); position: relative; }
  #tnm-automation .flow__node + .flow__node::before{ content: ""; position: absolute; left: 22px; top: -9px; width: 2px; height: 9px; background: var(--lilac-d); opacity: .35; }
  #tnm-automation .flow__tag{ font-family: var(--mono); font-size: 10.5px; padding: 2px 6px; border-radius: 4px; background: var(--lilac); color: var(--lilac-d); }
  /* platform chips stay on one line; text scales down with the tile width so they always fit */
  #tnm-automation .migrate{ display: flex; flex-wrap: nowrap; gap: 5px; align-items: center; container-type: inline-size; }
  #tnm-automation .chip{ flex: none; white-space: nowrap; font-size: 12.5px; font-size: clamp(8px, 5.2cqi, 12.5px); font-weight: 500; padding: 5px 8px; padding: 5px clamp(5px, 3cqi, 8px); border-radius: 999px; background: rgba(255,255,255,.75); }
  #tnm-automation .chip--to{ background: var(--ink); color: #fff; }
  #tnm-automation .migrate__arrow{ font-size: 14px; color: var(--ink-2); }
  #tnm-automation .bars{ display: flex; align-items: flex-end; gap: 6px; height: 54px; }
  #tnm-automation .bars i{ flex: 1; border-radius: 4px 4px 0 0; background: rgba(20,22,26,.12); }
  #tnm-automation .bars i:last-child{ background: var(--ink); }
  #tnm-automation .apps{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  #tnm-automation .apps span{ font-family: var(--mono); font-size: 11px; text-align: center; padding: 8px 0; border-radius: 8px; background: rgba(255,255,255,.75); }
  /* marketing platforms list (Marketing tile) */
  #tnm-automation .tools{ list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 4px; }
  #tnm-automation .tools li{ display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 12px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); }
  #tnm-automation .tools__logo{ flex: none; width: 30px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
  #tnm-automation .tools__logo > img{ width: 100%; height: 100%; object-fit: contain; }
  /* shows just the icon part of a logo file (positioned per logo inline) */
  #tnm-automation .tools__crop{ position: relative; width: 78%; overflow: hidden; }
  #tnm-automation .tools__crop img{ position: absolute; max-width: none; height: auto; }
  #tnm-automation .tools span{ min-width: 0; font-size: 12px; line-height: 1.3; color: var(--muted); }
  #tnm-automation .tools b{ display: block; font-family: var(--font-head); font-size: 14.5px; font-weight: 700; color: var(--ink); }

  /* =====================================================================
     04 PROJECT TYPES
     ===================================================================== */
  #tnm-automation .types{ display: grid; gap: 14px; }
  #tnm-automation .type{ display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); transition: border-color .25s, transform .25s; }
  #tnm-automation .type:hover{ border-color: rgba(255,214,10,.55); transform: translateX(4px); }
  #tnm-automation .type__ic{ width: 52px; height: 52px; border-radius: 14px; background: rgba(255,214,10,.14); color: var(--accent); display: grid; place-items: center; }
  #tnm-automation .type__ic svg{ width: 24px; height: 24px; }
  #tnm-automation .type h3{ font-size: 20px; margin-bottom: 6px; }
  #tnm-automation .type p{ color: var(--ink-2); font-size: 15.5px; }
  #tnm-automation .type .btn{ padding: 12px 20px; font-size: 14.5px; }
  #tnm-automation .type--featured{ border-color: rgba(255,214,10,.55); background: linear-gradient(160deg, rgba(255,214,10,.1), var(--card) 60%); }

  /* =====================================================================
     04b SHOPIFY PLANS — yearly / monthly toggle + 4 plan cards
     ===================================================================== */
  #tnm-automation .plans__bar{ display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin-bottom: 22px; }
  #tnm-automation .plans__switch{ display: flex; align-items: center; gap: 12px; }
  #tnm-automation .plan-toggle{ display: inline-flex; align-items: center; gap: 10px; padding: 0; background: none; border: 0; cursor: pointer; font-weight: 600; font-size: 15.5px; color: var(--ink); }
  #tnm-automation .plan-toggle__track{ position: relative; flex: none; width: 44px; height: 24px; border-radius: 999px; background: #d9d5ca; transition: background .2s; }
  #tnm-automation .plan-toggle__knob{ position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20,22,26,.3); transition: transform .2s; }
  #tnm-automation .plan-toggle[aria-checked="true"] .plan-toggle__track{ background: var(--accent); }
  #tnm-automation .plan-toggle[aria-checked="true"] .plan-toggle__knob{ transform: translateX(20px); }
  #tnm-automation .plan-save{ font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,214,10,.24); color: var(--accent-text); transition: opacity .2s; }
  #tnm-automation .plan-toggle[aria-checked="false"] + .plan-save{ opacity: .45; }

  #tnm-automation .plans{ list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  #tnm-automation .plans > *{ min-width: 0; }
  #tnm-automation .plan{
    display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
    box-shadow: var(--shadow); transition: opacity .7s ease, transform .3s ease, border-color .25s, box-shadow .25s; transition-delay: var(--d, 0s);
  }
  #tnm-automation .plan:hover{ transition-delay: 0s; transform: translateY(-4px); border-color: rgba(255,214,10,.55); box-shadow: 0 1px 2px rgba(20,22,26,.04), 0 18px 40px -18px rgba(20,22,26,.25); }
  #tnm-automation .plan h3{ font-size: 22px; }
  #tnm-automation .plan__for{ margin-top: 4px; font-size: 14.5px; font-weight: 600; color: var(--accent-text); }
  #tnm-automation .plan__price{ display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 5px; margin-top: 22px; font-family: var(--font-head); }
  #tnm-automation .plan__from{ font-size: 14px; color: var(--ink-2); }
  #tnm-automation .plan__amount{ font-size: 34px; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; transition: opacity .2s; }
  #tnm-automation .plan__amount.is-swapping{ opacity: 0; }
  #tnm-automation .plan__per{ font-size: 15px; color: var(--ink-2); }
  #tnm-automation .plan__billing{ margin-top: 6px; font-size: 13px; color: var(--muted); }
  #tnm-automation .plan .btn{ width: 100%; margin: 20px 0 8px; padding: 13px 18px; font-size: 15px; }
  #tnm-automation .plan__features{ list-style: none; }
  #tnm-automation .plan__features li{ display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
  #tnm-automation .plan__features li:last-child{ border-bottom: 0; }
  #tnm-automation .plan__features li::before{ content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5l3 3 6-7' stroke='%238a6d00' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  #tnm-automation .plan__features li.is-base{ color: var(--ink); font-weight: 600; }
  /* Plus: dark card for the enterprise tier */
  #tnm-automation .plan--plus{ background: var(--ink); border-color: var(--ink); color: #fff; }
  #tnm-automation .plan--plus:hover{ border-color: var(--accent); }
  #tnm-automation .plan--plus .plan__for{ color: var(--accent); }
  #tnm-automation .plan--plus .plan__from, #tnm-automation .plan--plus .plan__per{ color: rgba(255,255,255,.7); }
  #tnm-automation .plan--plus .plan__billing{ color: rgba(255,255,255,.55); }
  #tnm-automation .plan--plus .plan__features li{ color: rgba(255,255,255,.78); border-color: rgba(255,255,255,.12); }
  #tnm-automation .plan--plus .plan__features li.is-base{ color: #fff; }
  #tnm-automation .plan--plus .plan__features li::before{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5l3 3 6-7' stroke='%23ffd60a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  #tnm-automation .plans__foot{ display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; margin-top: 26px; }
  #tnm-automation .plans__note{ max-width: 640px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
  @media (max-width: 1080px) {
    #tnm-automation .plans{ grid-template-columns: repeat(2, 1fr); }
  }
  /* phones: plans become a swipeable row (one card + a peek of the next) */
  @media (max-width: 720px) {
    #tnm-automation .plans{ display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; scroll-padding: 0 var(--gutter); }
    #tnm-automation .plans::-webkit-scrollbar{ display: none; }
    #tnm-automation .plan{ flex: 0 0 84%; scroll-snap-align: start; padding: 22px 20px; }
    #tnm-automation .plan:hover{ transform: none; }
    /* cards share the tallest card's height: features first, button pinned to the bottom */
    #tnm-automation .plan__features{ order: 1; margin: 14px 0 18px; }
    #tnm-automation .plan .btn{ order: 2; margin: auto 0 0; }
    #tnm-automation .plan__amount{ font-size: 30px; }
    #tnm-automation .plans__foot .btn{ width: 100%; }
  }

  /* =====================================================================
     05 SERVICES — tab slider
     ===================================================================== */
  #tnm-automation .tabs__bar{ position: relative; margin-bottom: 20px; }
  #tnm-automation .tabs__list{ display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; position: relative; box-shadow: var(--shadow); }
  #tnm-automation .tab{ padding: 10px 16px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--ink-2); font-weight: 700; font-size: 14.5px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
  #tnm-automation .tab:hover{ color: var(--ink); }
  #tnm-automation .tab[aria-selected="true"]{ background: var(--accent); color: #fff; }
  #tnm-automation .tabs__arrow{ display: none; flex: none; width: 36px; height: 36px; border-radius: 50%; place-items: center; cursor: pointer; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); transition: opacity .2s, border-color .2s, color .2s; }
  #tnm-automation .tabs__arrow:hover{ border-color: var(--accent); color: var(--accent); }
  #tnm-automation .tabs__arrow svg{ width: 16px; height: 16px; }
  #tnm-automation .tabs__count{ display: none; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin: 10px 0 14px; }
  #tnm-automation .tabs__count b{ color: var(--accent); }
  #tnm-automation .tab-panel{ display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); animation: ta-fadeUp .45s ease; }
  #tnm-automation .tab-panel[hidden]{ display: none; }
  @keyframes ta-fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  #tnm-automation .tab-panel__num{ font-family: var(--font-head); font-weight: 800; font-size: 13px; letter-spacing: .1em; color: var(--muted); }
  #tnm-automation .tab-panel h3{ font-size: clamp(24px, 2.6vw, 32px); margin: 10px 0 12px; }
  #tnm-automation .tab-panel p{ color: var(--ink-2); font-size: 17px; margin-bottom: 24px; max-width: 460px; }
  #tnm-automation .stage{ border-radius: 20px; padding: 26px; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 250px; overflow: hidden; background: radial-gradient(circle at 70% 20%, rgba(255,214,10,.3), transparent 60%), #fff7d1; }
  #tnm-automation .stage > *{ min-width: 0; max-width: 100%; }
  #tnm-automation .code{ width: 100%; max-width: 360px; background: #16191f; border-radius: 12px; padding: 14px 16px; box-shadow: 0 30px 50px -24px rgba(20,22,26,.5); font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; line-height: 1.75; color: #c9cdd4; overflow: hidden; }
  #tnm-automation .code__dots{ display: flex; gap: 5px; margin-bottom: 10px; } #tnm-automation .code__dots i{ width: 8px; height: 8px; border-radius: 50%; background: #3a3f48; }
  #tnm-automation .code .k{ color: #c792ea; } #tnm-automation .code .s{ color: #c3e88d; } #tnm-automation .code .t{ color: #82aaff; } #tnm-automation .code .c{ color: #6b7280; }
  #tnm-automation .code span.l{ display: block; white-space: nowrap; overflow: hidden; }
  #tnm-automation .mini{ width: 100%; max-width: 330px; background: #fff; border-radius: 12px; box-shadow: 0 30px 50px -24px rgba(20,22,26,.4); overflow: hidden; }
  #tnm-automation .mini__bar{ height: 22px; display: flex; gap: 5px; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--line); }
  #tnm-automation .mini__bar i{ width: 6px; height: 6px; border-radius: 50%; background: #d9d6cd; }
  #tnm-automation .mini__body{ padding: 10px; display: grid; gap: 8px; }
  #tnm-automation .mini__hero{ height: 64px; border-radius: 8px; background: linear-gradient(120deg, #2a2510, #8a6d00 60%, #ffd60a); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 12px; }
  #tnm-automation .mini__hero b{ width: 50%; height: 7px; border-radius: 4px; background: rgba(255,255,255,.9); }
  #tnm-automation .mini__hero span{ width: 26%; height: 13px; border-radius: 999px; background: #fff; }
  #tnm-automation .mini__grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  #tnm-automation .mini__grid div{ height: 52px; border-radius: 6px; background: #f1efe8; }
  #tnm-automation .hub{ position: relative; width: 260px; height: 210px; }
  #tnm-automation .hub__core{ position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 74px; height: 74px; border-radius: 20px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 12px; box-shadow: 0 20px 40px -16px rgba(176,138,0,.7); }
  #tnm-automation .hub__core::before{ content: ""; position: absolute; inset: -14px; border-radius: 28px; border: 1.5px dashed rgba(176,138,0,.4); animation: ta-spin 18s linear infinite; }
  @keyframes ta-spin { to { transform: rotate(360deg); } }
  #tnm-automation .hub span{ position: absolute; padding: 7px 12px; border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow); animation: ta-float 5s ease-in-out infinite; }
  @keyframes ta-float { 50% { transform: translateY(-6px); } }
  #tnm-automation .sub{ width: 100%; max-width: 300px; background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 30px 50px -24px rgba(20,22,26,.4); display: grid; gap: 10px; }
  #tnm-automation .sub b{ font-family: var(--font-head); font-size: 15px; }
  #tnm-automation .sub div{ display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; border: 1.5px solid var(--line); font-size: 14px; }
  #tnm-automation .sub div.on{ border-color: var(--accent); background: #fff8d6; }
  #tnm-automation .sub div i{ width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c4c8cf; flex: none; }
  #tnm-automation .sub div.on i{ border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #fff; }
  #tnm-automation .sub__btn{ background: var(--ink); color: #fff; text-align: center; border-radius: 999px; padding: 10px; font-family: var(--font-head); font-weight: 700; font-size: 13.5px; }
  /* ---- Tab illustration cards (replace the old form-like "options + button" card) ---- */
  #tnm-automation .viz{ width: 100%; max-width: 340px; background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 30px 50px -24px rgba(20,22,26,.4); display: grid; gap: 18px; align-content: center; }
  #tnm-automation .viz__head{ display: flex; align-items: center; gap: 12px; }
  #tnm-automation .viz__icon{ width: 40px; height: 40px; border-radius: 12px; background: rgba(255,214,10,.22); color: var(--accent-text); display: grid; place-items: center; flex: none; }
  #tnm-automation .viz__icon svg{ width: 20px; height: 20px; }
  #tnm-automation .viz__head b{ display: block; font-size: 15px; font-weight: 600; }
  #tnm-automation .viz__head small{ display: block; font-size: 12.5px; color: var(--muted); }
  /* subscription timeline */
  #tnm-automation .cycle{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
  #tnm-automation .cycle::before, #tnm-automation .cycle::after{ content: ""; position: absolute; top: 13px; height: 2px; left: 12.5%; }
  #tnm-automation .cycle::before{ right: 12.5%; background: var(--line); }
  #tnm-automation .cycle::after{ width: 50%; background: var(--accent); }
  #tnm-automation .cycle li{ position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; text-align: center; }
  #tnm-automation .cycle i{ width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 800; color: var(--accent-ink); margin-bottom: 4px; }
  #tnm-automation .cycle .done i{ background: var(--accent); border-color: var(--accent); }
  #tnm-automation .cycle .done i::before{ content: "\2713"; }
  #tnm-automation .cycle .now i{ border-color: var(--accent); animation: ta-vizPing 1.8s ease-out infinite; }
  #tnm-automation .cycle .now i::before{ content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
  #tnm-automation .cycle b{ font-size: 13.5px; font-weight: 600; }
  #tnm-automation .cycle span{ font-size: 11.5px; color: var(--muted); }
  @keyframes ta-vizPing { 0% { box-shadow: 0 0 0 0 rgba(255,214,10,.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255,214,10,0); } }
  /* report table */
  #tnm-automation .ledger{ width: 100%; border-collapse: collapse; font-size: 13.5px; }
  #tnm-automation .ledger th{ text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 0 8px; border-bottom: 1px solid var(--line); }
  #tnm-automation .ledger td{ padding: 11px 0; border-bottom: 1px solid var(--line); }
  #tnm-automation .ledger tr:last-child td{ border-bottom: 0; }
  #tnm-automation .ledger td:nth-child(2){ color: var(--ink-2); font-variant-numeric: tabular-nums; }
  #tnm-automation .ledger th:last-child, #tnm-automation .ledger td:last-child{ text-align: right; }
  #tnm-automation .tag{ display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #e7f6ec; color: #1d7a3f; }
  #tnm-automation .tag--warn{ background: #fff1d6; color: #8a5a00; }
  /* workflow diagram */
  #tnm-automation .flowline{ display: grid; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr); align-items: center; gap: 6px; }
  #tnm-automation .flowline__node{ display: grid; justify-items: center; gap: 8px; text-align: center; padding: 14px 6px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
  #tnm-automation .flowline__node.on{ background: #fff8d6; border-color: rgba(212,169,0,.5); }
  #tnm-automation .flowline__node svg{ width: 22px; height: 22px; color: var(--accent-text); }
  #tnm-automation .flowline__node b{ font-size: 12.5px; font-weight: 600; line-height: 1.25; }
  #tnm-automation .flowline__arrow{ height: 2px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
  #tnm-automation .flowline__arrow::after{ content: ""; position: absolute; top: 0; left: -50%; width: 50%; height: 100%; background: var(--accent-2); animation: ta-vizFlow 1.6s linear infinite; }
  @keyframes ta-vizFlow { to { left: 100%; } }
  @media (prefers-reduced-motion: reduce) { #tnm-automation .cycle .now i, #tnm-automation .flowline__arrow::after{ animation: none; } }
  #tnm-automation .gauge{ text-align: center; }
  #tnm-automation .gauge svg{ width: 210px; height: 120px; max-width: 100%; }
  #tnm-automation .gauge__arc{ stroke-dasharray: 283; stroke-dashoffset: 283; animation: ta-gauge 1.4s ease .2s forwards; }
  @keyframes ta-gauge { to { stroke-dashoffset: 40; } }
  #tnm-automation .gauge p{ margin: 6px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--ink-2); }
  #tnm-automation .tasks{ width: 100%; max-width: 300px; background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 30px 50px -24px rgba(20,22,26,.4); display: grid; gap: 8px; }
  #tnm-automation .tasks div{ display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 14px; font-weight: 500; animation: ta-fadeUp .5s ease both; animation-delay: calc(var(--i) * .12s + .1s); }
  #tnm-automation .tasks div::before{ content: "✓"; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,214,10,.2); color: var(--accent); font-size: 12px; font-weight: 800; flex: none; }

  /* ---- Each illustration fills its stage (thin tinted frame around it) ---- */
  #tnm-automation .tab-panel{ align-items: stretch; }
  #tnm-automation .tab-panel > div:first-child{ align-self: center; }
  #tnm-automation .stage{ padding: 12px; min-height: 300px; place-items: stretch; }
  #tnm-automation .stage > *{ width: 100%; height: 100%; max-width: none !important; border-radius: 14px; box-shadow: 0 14px 30px -18px rgba(20,22,26,.35); }
  /* code editor */
  #tnm-automation .code{ display: flex; flex-direction: column; justify-content: center; padding: 22px 26px; font-size: 13.5px; line-height: 2; }
  #tnm-automation .code__dots{ margin-bottom: 14px; }
  #tnm-automation .code span.l{ white-space: pre-wrap; overflow: visible; }
  /* storefront */
  #tnm-automation .mini{ display: flex; flex-direction: column; }
  #tnm-automation .mini__bar{ height: 28px; }
  #tnm-automation .mini__body{ flex: 1; grid-template-rows: 1fr auto; padding: 12px; gap: 10px; }
  #tnm-automation .mini__hero{ height: auto; min-height: 110px; padding: 0 18px; gap: 10px; }
  #tnm-automation .mini__hero b{ height: 10px; }
  #tnm-automation .mini__hero span{ height: 18px; }
  #tnm-automation .mini__grid div{ height: 84px; }
  /* app hub */
  #tnm-automation .hub{ background: #fff; }
  #tnm-automation .hub span{ font-size: 13.5px; padding: 8px 14px; }
  #tnm-automation .hub span:nth-of-type(1){ left: 8% !important; top: 14% !important; }
  #tnm-automation .hub span:nth-of-type(2){ right: 8% !important; top: 22% !important; }
  #tnm-automation .hub span:nth-of-type(3){ left: 10% !important; bottom: 18% !important; }
  #tnm-automation .hub span:nth-of-type(4){ right: 9% !important; bottom: 12% !important; }
  #tnm-automation .hub__core{ width: 88px; height: 88px; font-size: 13px; }
  /* subscription options */
  #tnm-automation .sub{ align-content: center; padding: 26px; gap: 12px; }
  #tnm-automation .sub b{ font-size: 16px; }
  #tnm-automation .sub div{ padding: 14px 16px; font-size: 15px; }
  #tnm-automation .sub__btn{ padding: 13px; font-size: 14.5px; }
  /* speed gauge */
  #tnm-automation .gauge{ background: #fff; display: grid; place-items: center; align-content: center; padding: 24px; }
  #tnm-automation .gauge svg{ width: 78%; max-width: 380px; height: auto; }
  #tnm-automation .gauge p{ font-size: 15px; }
  /* maintenance checklist */
  #tnm-automation .tasks{ align-content: center; padding: 24px; gap: 10px; }
  #tnm-automation .tasks div{ padding: 14px 16px; font-size: 15px; }

  /* =====================================================================
     06 WHY — yellow band with reasons card
     ===================================================================== */
  #tnm-automation .why__band{ position: relative; overflow: hidden; border-radius: 28px; padding: 48px; background: var(--accent); color: var(--ink); display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
  #tnm-automation .why__band::before{ content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255,255,255,.07); pointer-events: none; }
  #tnm-automation .why__band .eyebrow{ color: #d9eec0; }
  #tnm-automation .why__band h2{ font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 14px; }
  #tnm-automation .why__band h2 .accent{ color: #e3f5c9; }
  #tnm-automation .why__band > div > p{ font-size: 17px; opacity: .9; margin-bottom: 26px; }
  #tnm-automation .why__band .btn--ghost{ background: #fff; border-color: #fff; }
  #tnm-automation .reasons{ position: relative; z-index: 1; background: #fff; color: var(--ink); border-radius: 22px; padding: 10px 26px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.35); list-style: none; counter-reset: r; }
  #tnm-automation .reasons li{ counter-increment: r; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  #tnm-automation .reasons li:last-child{ border-bottom: 0; }
  #tnm-automation .reasons li::before{ content: "0" counter(r); width: 40px; height: 40px; border-radius: 12px; background: rgba(255,214,10,.16); color: var(--accent); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 14px; }
  #tnm-automation .reasons h3{ font-size: 17px; margin-bottom: 4px; }
  #tnm-automation .reasons p{ color: var(--ink-2); font-size: 15px; }

  /* =====================================================================
     07 PROCESS
     ===================================================================== */
  /* Process: same left-aligned heading layout as other sections, 4 cards in a row (no numbers) */
  /* small label naming each block inside a section (e.g. testimonials / FAQs) */
  #tnm-automation .sub-label{ display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; }
  #tnm-automation .sub-label::after{ content: ""; flex: 1; height: 1px; background: var(--line); }
  #tnm-automation .pcards{ list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  #tnm-automation .pcard{
    position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 24px; box-shadow: var(--shadow); transition: opacity .7s ease, transform .3s ease, border-color .25s, box-shadow .25s; transition-delay: var(--d, 0s);
  }
  #tnm-automation .pcard:hover{ transition-delay: 0s; transform: translateY(-4px); border-color: rgba(255,214,10,.5); box-shadow: 0 1px 2px rgba(20,22,26,.04), 0 18px 40px -18px rgba(20,22,26,.25); }
  /* icon as a large, faint background graphic in the bottom-right corner */
  #tnm-automation .pcard__ic{ position: absolute; right: -14px; bottom: -18px; width: 128px; height: 128px; color: rgba(176,138,0,.14); pointer-events: none; transition: color .3s, transform .4s; }
  #tnm-automation .pcard__ic svg{ width: 100%; height: 100%; }
  #tnm-automation .pcard__ic svg *{ stroke-width: 1.1; }
  #tnm-automation .pcard:hover .pcard__ic{ color: rgba(176,138,0,.22); transform: rotate(-6deg) scale(1.04); }
  #tnm-automation .pcard h3, #tnm-automation .pcard p{ position: relative; z-index: 1; }
  #tnm-automation .pcard{ min-height: 200px; }
  #tnm-automation .pcard h3{ font-size: 19px; margin-bottom: 8px; }
  #tnm-automation .pcard p{ color: var(--ink-2); font-size: 15px; line-height: 1.55; }

  /* =====================================================================
     08 TESTIMONIALS & FAQ
     ===================================================================== */
  /* Auto-scrolling testimonials */
  #tnm-automation .tmarquee{ margin: 0 calc(var(--gutter) * -1) 56px; overflow: hidden; padding: 6px 0 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  #tnm-automation .tmarquee__track{ display: flex; width: max-content; animation: ta-tScroll 48s linear infinite; }
  #tnm-automation .tmarquee:hover .tmarquee__track{ animation-play-state: paused; }
  #tnm-automation .tmarquee__group{ display: flex; gap: 18px; padding-right: 18px; }
  @keyframes ta-tScroll { to { transform: translateX(-50%); } }
  #tnm-automation .tcard2{ flex: none; width: 340px; display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .25s, transform .25s; }
  #tnm-automation .tcard2:hover{ border-color: rgba(255,214,10,.5); transform: translateY(-3px); }
  #tnm-automation .tcard2__stars{ color: #e69b00; letter-spacing: 2px; font-size: 14px; }
  #tnm-automation .tcard2 blockquote{ flex: 1; font-size: 16px; line-height: 1.55; color: var(--ink); }
  #tnm-automation .tcard2 figcaption{ display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
  #tnm-automation .tcard2 figcaption i{ width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--font-head); font-weight: 800; font-size: 13px; flex: none; }
  #tnm-automation .tcard2 figcaption b{ display: block; font-family: var(--font-head); font-size: 14.5px; color: var(--ink); }
  #tnm-automation .tcard2 figcaption span{ font-size: 13px; color: var(--muted); line-height: 1.35; }
  #tnm-automation .faq__grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
  #tnm-automation .faq__list{ display: grid; gap: 10px; }
  #tnm-automation .faq__item{ background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .2s; }
  #tnm-automation .faq__item[open]{ border-color: rgba(255,214,10,.5); }
  #tnm-automation .faq__item summary{ list-style: none; cursor: pointer; padding: 17px 22px; display: flex; justify-content: space-between; align-items: center; gap: 18px; font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
  #tnm-automation .faq__item summary::-webkit-details-marker{ display: none; }
  /* plus drawn with two centred bars (a text "+" sits off-centre because of font metrics) */
  #tnm-automation .faq__item summary::after{ content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); color: var(--accent); background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat; transition: transform .25s; }
  #tnm-automation .faq__item[open] summary::after{ transform: rotate(45deg); }
  #tnm-automation .faq__item p{ padding: 0 22px 18px; color: var(--ink-2); font-size: 15.5px; }
  #tnm-automation .contact-card{ background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
  #tnm-automation .contact-card h3{ font-size: 22px; margin-bottom: 6px; }
  #tnm-automation .contact-card > p{ color: var(--ink-2); margin-bottom: 18px; font-size: 15px; }
  #tnm-automation .contact-links{ display: grid; gap: 10px; }
  #tnm-automation .contact-link{ display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--radius-sm); background-color: var(--bg); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
  #tnm-automation .contact-link:hover{ border-color: var(--accent); transform: translateX(4px); }
  #tnm-automation .contact-link__icon{ width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(255,214,10,.14); color: var(--accent); }
  #tnm-automation .contact-link__icon svg{ width: 20px; height: 20px; }
  #tnm-automation .contact-link b{ display: block; font-size: 16px; }
  #tnm-automation .contact-link small{ color: var(--muted); font-size: 13px; }

  /* =====================================================================
     09 FINAL ENQUIRY
     ===================================================================== */
  #tnm-automation .final{ padding: 80px 0 90px; text-align: center; overflow: hidden; }
  #tnm-automation .final::before{ content: ""; position: absolute; left: 50%; bottom: -380px; transform: translateX(-50%); width: 900px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,10,.3), transparent 65%); pointer-events: none; }
  #tnm-automation .final .wrap{ position: relative; }
  #tnm-automation .final h2{ font-size: clamp(34px, 5vw, 58px); max-width: 820px; margin: 0 auto 16px; }
  #tnm-automation .final p{ color: var(--ink-2); font-size: 18px; max-width: 600px; margin: 0 auto 28px; }

  /* Mobile sticky bar */
  #tnm-automation .sticky-bar{ display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 49; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(20,22,26,.18); gap: 10px; transform: translateY(100%); transition: transform .3s ease; }
  #tnm-automation .sticky-bar.show{ transform: none; }
  #tnm-automation .sticky-bar .btn{ flex: 1; padding: 14px 16px; font-size: 15px; }

  /* =====================================================================
     RESPONSIVE
     ===================================================================== */
  @media (max-width: 1080px) {
    #tnm-automation .tabs__bar{ display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
    #tnm-automation .tabs__list{ flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; scrollbar-width: none; gap: 8px; padding: 2px 0; background: none; border: 0; border-radius: 0; box-shadow: none;
      -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
    #tnm-automation .tabs__bar.at-start .tabs__list{ -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
    #tnm-automation .tabs__bar.at-end .tabs__list{ -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px); mask-image: linear-gradient(90deg, transparent, #000 32px); }
    #tnm-automation .tabs__list::-webkit-scrollbar{ display: none; }
    #tnm-automation .tab{ flex: none; scroll-snap-align: center; background: var(--card); border-color: var(--line); color: var(--ink); }
    #tnm-automation .tab[aria-selected="true"]{ border-color: var(--accent); }
    #tnm-automation .tabs__arrow{ display: grid; }
    #tnm-automation .tabs__bar.at-start .tabs__arrow--prev, #tnm-automation .tabs__bar.at-end .tabs__arrow--next{ opacity: .3; pointer-events: none; }
    #tnm-automation .tabs__count{ display: block; }

    #tnm-automation .hero__grid{ grid-template-columns: 1fr; gap: 40px; }
    #tnm-automation .form-card{ max-width: 640px; }
    #tnm-automation .split{ grid-template-columns: 1fr; gap: 0; }
    #tnm-automation .split > .section-head{ position: static; margin-bottom: 28px; }
    #tnm-automation .trust__grid{ grid-template-columns: 1fr 1fr; }
    #tnm-automation .ba__grid{ grid-template-columns: 1fr; gap: 20px; }
    #tnm-automation .ba__side{ display: contents; }
    #tnm-automation .ba__side .section-head{ order: -1; margin-bottom: 0; }
    #tnm-automation .tab-panel{ grid-template-columns: 1fr; gap: 24px; padding: 28px; }
    #tnm-automation .case__card{ grid-template-columns: 1fr; }
    #tnm-automation .bento{ grid-template-columns: repeat(2, 1fr); }
    #tnm-automation .pcards{ grid-template-columns: 1fr 1fr; }
    #tnm-automation .why__band{ grid-template-columns: 1fr; gap: 28px; padding: 36px; }
  }

  @media (max-width: 720px) {
    #tnm-automation{ --gutter: 16px; --nav-h: 66px; --nav-overlap: 66px; }
    #tnm-automation{ font-size: 16px; }
    #tnm-automation section{ padding: 52px 0; }
    #tnm-automation .section-head{ margin-bottom: 24px; }
    #tnm-automation .section-head p, #tnm-automation .lead{ font-size: 16px; }
    #tnm-automation .section-head h2, #tnm-automation .h2{ font-size: 30px; }
    #tnm-automation .btn{ padding: 14px 22px; }
    /* full-width buttons on phones (sticky bar keeps its own side-by-side layout) */
    #tnm-automation section .btn{ width: 100%; }
    #tnm-automation .btn-row .btn{ flex: 1 1 100%; }

    #tnm-automation .hero{ padding: calc(var(--nav-overlap) + 14px) 0 36px; }
    #tnm-automation .hero h1{ margin-bottom: 12px; }
    #tnm-automation .hero__sub{ font-size: 16.5px; margin-bottom: 16px; }
    #tnm-automation .hero__ctas .btn{ flex: 1 1 100%; }
    #tnm-automation .hero__ctas{ margin-bottom: 18px; }
    #tnm-automation .hero__badge{ padding-top: 14px; }
    #tnm-automation .hero__logos{ margin-top: 32px; }
    #tnm-automation .hero__logos-label{ font-size: 11.5px; margin-bottom: 12px; }
    #tnm-automation .logo-marquee__group{ gap: 28px; padding-right: 28px; }
    #tnm-automation .logo-slot{ height: 38px; min-width: 104px; font-size: 10px; }
    #tnm-automation .logo-marquee img{ height: 26px; }
    #tnm-automation .hero__badge{ gap: 12px; align-items: center; }
    #tnm-automation .hero__badge svg{ height: 60px; margin: -9px -4px -9px -9px; }
    #tnm-automation .hero__badge-text{ padding-left: 12px; }
    #tnm-automation .hero__badge-text b{ font-size: 14.5px; }
    #tnm-automation .hero__badge-text span{ font-size: 12.5px; }
    #tnm-automation .form-card{ padding: 22px 18px; border-radius: 20px; }
    #tnm-automation .row-2{ gap: 10px; }
    #tnm-automation .field label{ font-size: 13px; }

    /* 2 × 2 on phones */
    #tnm-automation .trust__grid{ gap: 10px; }
    #tnm-automation .tcard{ padding: 16px 14px; gap: 8px; }
    #tnm-automation .tcard__icon{ width: 36px; height: 36px; }
    #tnm-automation .tcard h3{ font-size: 15.5px; }
    #tnm-automation .tcard p{ font-size: 13px; }
    #tnm-automation .tcard--badge svg.badge-logo{ height: 52px; }
    #tnm-automation .tbc{ font-size: 11.5px; padding: 2px 7px; }
    #tnm-automation .logo-slots span{ height: 32px; font-size: 9px; }
    #tnm-automation .cta-bar{ padding: 18px; gap: 14px; }
    #tnm-automation .cta-bar p{ font-size: 18px; }
    #tnm-automation .cta-bar .btn{ width: 100%; }

    #tnm-automation .ba{ aspect-ratio: 4 / 3.2; }
    #tnm-automation .fact{ padding: 10px 12px; }
    #tnm-automation .case__card{ margin-top: 36px; border-radius: 22px; }
    #tnm-automation .case__visual{ min-height: 220px; padding: 20px 18px; }
    #tnm-automation .case__body{ padding: 22px 18px; }

    /* bento: 2 × 2 on phones */
    #tnm-automation .sec-top{ margin-bottom: 24px; }
    #tnm-automation .bento{ gap: 10px; }
    #tnm-automation .tile{ padding: 16px 14px; border-radius: 18px; gap: 6px; }
    #tnm-automation .tile h3{ font-size: 17px; }
    #tnm-automation .tile p{ font-size: 13.5px; line-height: 1.45; }
    #tnm-automation .tile__meta{ font-size: 11px; }
    #tnm-automation .tile .arrow-link{ font-size: 13.5px; }
    #tnm-automation .tile--wide{ grid-template-columns: 1fr; gap: 14px; }
    #tnm-automation .apps span{ font-size: 10px; padding: 6px 0; }
    #tnm-automation .tools{ grid-template-columns: 1fr 1fr; gap: 6px; }
    #tnm-automation .tools li{ flex-direction: row; align-items: center; padding: 8px 10px; gap: 8px; }
    #tnm-automation .tools__logo{ width: 26px; height: 26px; }
    #tnm-automation .tools b{ font-size: 13.5px; }
    #tnm-automation .tools span{ font-size: 11px; }
    /* phone: tiles are narrow, so the chip row borrows a little of the tile padding to stay on one line */
    #tnm-automation .migrate{ gap: 3px; margin-inline: -6px; }
    #tnm-automation .chip{ font-size: clamp(8px, 5.2cqi, 11px); padding: 4px 5px; letter-spacing: -.01em; }

    #tnm-automation .type{ grid-template-columns: auto 1fr; padding: 18px 16px; gap: 14px; }
    #tnm-automation .type .btn{ grid-column: 1 / -1; width: 100%; }
    #tnm-automation .type__ic{ width: 44px; height: 44px; }
    #tnm-automation .type h3{ font-size: 17px; }
    #tnm-automation .type p{ font-size: 14.5px; }

    #tnm-automation .tab{ font-size: 14px; padding: 10px 16px; }
    #tnm-automation .tab-panel{ padding: 22px 18px; }
    #tnm-automation .tab-panel p{ font-size: 16px; margin-bottom: 20px; }
    #tnm-automation .stage{ padding: 10px; min-height: 240px; }
    #tnm-automation .code{ font-size: 11.5px; padding: 18px; line-height: 1.8; }
    #tnm-automation .hub{ min-height: 220px; }
    #tnm-automation .hub span{ font-size: 12px; padding: 6px 11px; }
    #tnm-automation .hub__core{ width: 70px; height: 70px; }
    #tnm-automation .mini__hero{ min-height: 80px; }
    #tnm-automation .mini__grid div{ height: 56px; }
    #tnm-automation .sub, #tnm-automation .tasks{ padding: 18px; }

    #tnm-automation .why__band{ padding: 28px 18px; border-radius: 22px; }
    #tnm-automation .reasons{ padding: 4px 16px; }
    #tnm-automation .reasons li{ grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; }
    #tnm-automation .reasons li::before{ width: 34px; height: 34px; font-size: 12.5px; }
    #tnm-automation .reasons h3{ font-size: 15.5px; }
    #tnm-automation .reasons p{ font-size: 14px; }

    /* process cards stay 2 × 2 on phones */
    #tnm-automation .pcards{ gap: 10px; }
    #tnm-automation .pcard{ padding: 18px 14px; border-radius: 16px; }
    #tnm-automation .pcard{ min-height: 170px; }
    #tnm-automation .pcard__ic{ width: 92px; height: 92px; right: -10px; bottom: -12px; }
    #tnm-automation .pcard h3{ font-size: 16px; margin-bottom: 6px; }
    #tnm-automation .pcard p{ font-size: 13.5px; line-height: 1.45; }
    #tnm-automation .sub-label{ font-size: 11.5px; margin-bottom: 12px; }

    #tnm-automation .tmarquee{ margin-bottom: 40px; }
    #tnm-automation .tmarquee__track{ animation-duration: 36s; }
    #tnm-automation .tmarquee__group{ gap: 12px; padding-right: 12px; }
    #tnm-automation .tcard2{ width: 272px; padding: 18px; gap: 10px; }
    #tnm-automation .tcard2 blockquote{ font-size: 14.5px; }
    #tnm-automation .tcard2 figcaption i{ width: 32px; height: 32px; font-size: 11.5px; }
    #tnm-automation .faq__grid{ grid-template-columns: 1fr; }
    #tnm-automation .faq__item summary{ padding: 15px 18px; font-size: 15.5px; }
    #tnm-automation .faq__item p{ padding: 0 18px 16px; font-size: 15px; }
    #tnm-automation .contact-card{ padding: 22px 16px; }

    #tnm-automation .final{ padding: 52px 0 96px; }
    #tnm-automation .final p{ font-size: 16px; }
    #tnm-automation .btn-row .btn{ flex: 1 1 100%; }
    #tnm-automation .sticky-bar{ display: flex; }
  }

  /* =====================================================================
     YELLOW THEME (thenightmarketer.com #ffd60a)
     Yellow = fills (buttons, tabs, badges, bars, band) with dark text on top.
     Accent TEXT uses dark gold (--accent-text) because yellow on white is unreadable.
     ===================================================================== */
  /* heading accent words: italic serif in dark gold (no highlighter) */
  #tnm-automation .accent{ color: var(--accent-text); background: none; padding: 0; }
  #tnm-automation .eyebrow, #tnm-automation .text-link, #tnm-automation .form-success__icon svg, #tnm-automation .tcard__icon, #tnm-automation .cta-bar p span, #tnm-automation .case__steps small,
  #tnm-automation .kicker b, #tnm-automation .arrow-link:hover, #tnm-automation .type__ic, #tnm-automation .tabs__arrow:hover, #tnm-automation .tabs__count b, #tnm-automation .tasks div::before,
  #tnm-automation .reasons li::before, #tnm-automation .faq__item summary::after, #tnm-automation .contact-link__icon{ color: var(--accent-text); }
  #tnm-automation .text-link{ text-decoration-color: rgba(138,109,0,.35); }
  #tnm-automation :focus-visible{ outline-color: var(--ink); }
  #tnm-automation .input:focus, #tnm-automation .select:focus, #tnm-automation .textarea:focus{ border-color: #d4a900; box-shadow: 0 0 0 4px rgba(255,214,10,.3); }

  /* text on yellow fills */
  #tnm-automation .btn--primary, #tnm-automation .tab[aria-selected="true"], #tnm-automation .ba__tag--after, #tnm-automation .hub__core{ color: var(--accent-ink); }
  #tnm-automation .btn--primary:hover{ box-shadow: 0 10px 30px -10px rgba(212,169,0,.6); }
  #tnm-automation .tab[aria-selected="true"]{ border-color: #e8bf00 !important; }
  #tnm-automation .sub div.on{ border-color: #d4a900; }

  /* Why band: solid yellow, dark text */
  #tnm-automation .why__band .eyebrow{ color: #5c4700; }
  #tnm-automation .why__band h2 .accent{ background: none; color: #4a3a00; text-decoration: none; display: block; }
  #tnm-automation .why__band::before{ border-color: rgba(20,22,26,.05); }
  #tnm-automation .why__band > div > p{ opacity: .85; }
  #tnm-automation .why__band .btn--ghost{ background: var(--ink); border-color: var(--ink); color: #fff; }

  /* client logo images in the hero marquee */
  /* logos come from a dark site (many are white): show all as uniform dark silhouettes */
  #tnm-automation .logo-marquee img{ height: 38px; width: auto; max-width: 150px; object-fit: contain; filter: brightness(0) !important; opacity: .55 !important; transition: opacity .2s; }
  #tnm-automation .logo-marquee img:hover{ opacity: .9 !important; }
  /* square, thin-line marks (Urth, Eirya) read too small at wordmark height: enlarge without changing the row height */
  #tnm-automation .logo-marquee img.is-mark{ transform: scale(1.5); margin: 0 6px; }
  /* room above/below so the enlarged marks aren't clipped by the strip (row position unchanged) */
  #tnm-automation .logo-marquee{ padding: 12px 0; margin: -12px 0; }

  /* =====================================================================
     HERO FITS THE FIRST SCREEN (below the site navbar)
     Copy, form and logo strip all show without scrolling on laptops/desktops;
     spacing tightens step by step as the screen gets shorter.
     ===================================================================== */
  #tnm-automation .field--brief{ position: relative; }
  #tnm-automation .field--brief .field__count{ position: absolute; top: 1px; right: 0; margin: 0; }  /* counter sits on the label line */

  @media (min-width: 901px) and (max-width: 1080px) {
    #tnm-automation .hero__grid{ grid-template-columns: 1.05fr .95fr; gap: 36px; }   /* tablets landscape: keep form beside copy */
    #tnm-automation .form-card{ max-width: none; }
  }
  /* tablets portrait (hero stacked in one column): centre the copy, buttons, badge and form card */
  @media (min-width: 721px) and (max-width: 900px) {
    #tnm-automation .hero__copy{ text-align: center; }
    #tnm-automation .hero h1, #tnm-automation .hero__sub{ margin-left: auto; margin-right: auto; }
    #tnm-automation .hero h1{ max-width: 640px; }
    #tnm-automation .hero__ctas{ justify-content: center; }
    #tnm-automation .hero__badge{ margin: 0 auto; justify-content: center; text-align: left; }
    #tnm-automation .form-card{ margin: 0 auto; }
    #tnm-automation .form-card h2, #tnm-automation .form-card__lead{ text-align: center; }
  }
  @media (min-width: 901px) and (max-height: 900px) {
    #tnm-automation .hero{ padding-top: calc(var(--nav-overlap) + 24px); padding-bottom: 18px; }
    #tnm-automation .hero h1{ margin-bottom: 14px; }
    #tnm-automation .hero__sub{ font-size: 17px; margin-bottom: 22px; }
    #tnm-automation .hero__ctas{ margin-bottom: 24px; }
    #tnm-automation .hero__badge{ padding-top: 18px; }
    #tnm-automation .hero__badge svg{ height: 70px; margin: -10px 0 -10px -10px; }
    #tnm-automation .form-card{ padding: 22px 26px; }
    #tnm-automation .form-card h2{ font-size: 22px; margin-bottom: 4px; }
    #tnm-automation .form-card__lead{ font-size: 14px; margin-bottom: 14px; }
    #tnm-automation .field{ margin-bottom: 10px; }
    #tnm-automation .field label{ font-size: 13px; margin-bottom: 4px; }
    #tnm-automation .input, #tnm-automation .select, #tnm-automation .textarea{ padding: 10px 13px; font-size: 15px; }
    #tnm-automation .textarea{ min-height: 68px; }
    #tnm-automation .form-assure{ margin-top: 10px; font-size: 12.5px; }
    #tnm-automation .hero__logos{ margin-top: 22px; }
    #tnm-automation .hero__logos-label{ font-size: 12px; margin-bottom: 10px; }
    #tnm-automation .logo-marquee img{ height: 32px; }
  }
  @media (min-width: 901px) and (max-height: 740px) {
    #tnm-automation .hero{ padding-top: calc(var(--nav-overlap) + 16px); padding-bottom: 14px; }
    #tnm-automation .hero__sub{ font-size: 16px; margin-bottom: 18px; }
    #tnm-automation .hero__ctas{ margin-bottom: 18px; }
    #tnm-automation .hero__ctas .btn{ padding-top: 13px; padding-bottom: 13px; }
    #tnm-automation .hero__badge{ padding-top: 14px; }
    #tnm-automation .hero__badge svg{ height: 60px; margin: -8px 0 -8px -8px; }
    #tnm-automation .hero__badge-text b{ font-size: 15.5px; margin-bottom: 3px; }
    #tnm-automation .hero__badge-text span{ font-size: 13.5px; line-height: 1.45; }
    #tnm-automation .form-card{ padding: 18px 24px; }
    #tnm-automation .form-card h2{ font-size: 21px; margin-bottom: 12px; }
    #tnm-automation .form-card__lead{ display: none; }
    #tnm-automation .textarea{ min-height: 54px; }
    #tnm-automation #projectForm .btn{ padding-top: 12px; padding-bottom: 12px; }
    #tnm-automation .form-assure{ margin-top: 8px; }
    #tnm-automation .hero__logos{ margin-top: 16px; }
    #tnm-automation .hero__logos-label{ margin-bottom: 8px; }
    #tnm-automation .logo-marquee img{ height: 28px; }
  }

  @media (prefers-reduced-motion: reduce) {
    #tnm-automation{ scroll-behavior: auto; }
    #tnm-automation .reveal{ opacity: 1; transform: none; transition: none; }
    #tnm-automation *, #tnm-automation *::before, #tnm-automation *::after{ animation: none !important; }
    #tnm-automation .gauge__arc{ stroke-dashoffset: 40; }
  }

  /* =====================================================================
     AI AUTOMATION & CRM VERSION — additions on top of the Shopify v2 design
     ===================================================================== */
  /* hero headline: three fixed lines */
  #tnm-automation .hero h1 .ln{ display: block; white-space: nowrap; }
  /* "Book a Free Call" button with calendar icon */
  #tnm-automation .btn--call svg{ width: 18px; height: 18px; flex: none; }
  #tnm-automation .btn--primary{ color: var(--accent-ink); }
  /* desktop shows Book + Explore; phones show Book + Get a Quote (as on the live page) */
  #tnm-automation .hero__quote{ display: none; }
  #tnm-automation .hero__ctas{ margin-bottom: 20px; }
  /* FREE tag + one-line note under the buttons */
  #tnm-automation .free-tag{ display: inline-flex; align-items: center; flex: none; background: var(--ink); color: var(--accent); border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; }
  #tnm-automation .hero__free{ display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--ink-2); margin-bottom: 28px; }
  @media (min-width: 1181px) { #tnm-automation .hero__free{ font-size: 14px; gap: 8px; } #tnm-automation .hero__free-txt{ white-space: nowrap; } }
  /* badge: TNM mark in place of the Shopify partner logo */
  #tnm-automation .hero__ai{ display: flex; align-items: center; gap: 14px; flex: none; }
  #tnm-automation .ai-chip{ position: relative; width: 58px; height: 58px; border-radius: 16px; background: radial-gradient(circle at 30% 25%, #2b2a24, #14161a 70%); overflow: hidden; box-shadow: 0 8px 22px -10px rgba(20,22,26,.55), inset 0 0 0 1px rgba(255,214,10,.18); flex: none; }
  #tnm-automation .hero__badge .ai-chip svg{ width: 100%; height: 100%; margin: 0; color: inherit; }
  #tnm-automation .ai-chip__ring{ transform-origin: 28px 28px; animation: ta-aiSpin 14s linear infinite; }
  #tnm-automation .ai-chip__orbit{ transform-origin: 28px 28px; animation: ta-aiSpin 3.6s linear infinite; }
  #tnm-automation .ai-chip__spark{ transform-origin: 28px 25px; animation: ta-aiPulse 2.4s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(255,214,10,.55)); }
  #tnm-automation .ai-chip__twinkle{ transform-origin: 41px 12.5px; animation: ta-aiTwinkle 2.4s ease-in-out infinite .6s; }
  #tnm-automation .ai-chip__sheen{ position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%); transform: translateX(-120%); animation: ta-aiSheen 4.2s ease-in-out infinite 1s; }
  @keyframes ta-aiSpin { to { transform: rotate(360deg); } }
  @keyframes ta-aiPulse { 0%, 100% { transform: scale(.86) rotate(0deg); } 50% { transform: scale(1.06) rotate(45deg); } }
  @keyframes ta-aiTwinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 45% { opacity: 1; transform: scale(1); } }
  @keyframes ta-aiSheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
  #tnm-automation .ai-status{ display: flex; flex-direction: column; gap: 4px; width: 172px; flex: none; }
  #tnm-automation .ai-status small{ display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  #tnm-automation .ai-status small i{ width: 7px; height: 7px; border-radius: 50%; background: #2e9e5b; box-shadow: 0 0 0 0 rgba(46,158,91,.5); animation: ta-aiLive 1.8s ease-out infinite; }
  @keyframes ta-aiLive { 0% { box-shadow: 0 0 0 0 rgba(46,158,91,.5); } 100% { box-shadow: 0 0 0 7px rgba(46,158,91,0); } }
  #tnm-automation .ai-status b{ font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
  #tnm-automation .ai-type::after{ content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--accent-text); animation: ta-aiCaret .9s steps(1) infinite; }
  @keyframes ta-aiCaret { 50% { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { #tnm-automation .ai-chip__ring, #tnm-automation .ai-chip__orbit, #tnm-automation .ai-chip__spark, #tnm-automation .ai-chip__twinkle, #tnm-automation .ai-chip__sheen, #tnm-automation .ai-status small i, #tnm-automation .ai-type::after{ animation: none; } }
  /* form: "Prefer to talk?" strip + optional label text */
  #tnm-automation .form-card__call{ display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin-bottom: 20px; background: #fffbea; border: 1px solid #f1e0a0; border-radius: var(--radius-sm); font-size: 15px; line-height: 1.4; color: var(--ink-2); text-decoration: none; transition: background .2s, border-color .2s; }
  #tnm-automation .form-card__call b{ color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
  #tnm-automation .form-card__call svg{ width: 16px; height: 16px; margin-left: auto; color: var(--ink); flex: none; }
  #tnm-automation .form-card__call:hover{ background: #fff6d1; border-color: #e9cf6c; }
  #tnm-automation .field label span{ font-weight: 400; }
  #tnm-automation .field--brief{ position: relative; }
  #tnm-automation .field--brief .field__count{ position: absolute; top: 1px; right: 0; margin: 0; }


  /* bento: mini CRM board art (replaces the mini store) */
  #tnm-automation .mini-crm{ background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
  #tnm-automation .mini-crm__bar{ height: 22px; display: flex; gap: 5px; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--line); }
  #tnm-automation .mini-crm__bar i{ width: 6px; height: 6px; border-radius: 50%; background: #dcd9d1; }
  #tnm-automation .mini-crm__cols{ padding: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; min-height: 118px; }
  #tnm-automation .mini-crm__cols div{ display: flex; flex-direction: column; gap: 5px; background: #f5f4ef; border-radius: 6px; padding: 6px; }
  #tnm-automation .mini-crm__cols span{ width: 60%; height: 5px; border-radius: 3px; background: var(--sky-d); opacity: .55; margin-bottom: 2px; }
  #tnm-automation .mini-crm__cols b{ height: 16px; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
  #tnm-automation .mini-crm__cols b.on{ background: #fff1b8; }
  #tnm-automation .mini-crm__cols b.won{ background: #d9f0e2; }

  /* phones */
  @media (max-width: 720px) {
    #tnm-automation .hero__quote{ display: inline-flex; }
    #tnm-automation .hero__work{ display: none; }
    #tnm-automation .hero .eyebrow{ font-size: 11px; letter-spacing: .06em; white-space: nowrap; }
    #tnm-automation .hero__free{ align-items: flex-start; }
    #tnm-automation .hero__free .free-tag{ margin-top: 1px; }
    #tnm-automation .hero__ai{ gap: 10px; }
    #tnm-automation .ai-chip{ width: 46px; height: 46px; border-radius: 13px; }
    #tnm-automation .ai-status{ width: 122px; }
    #tnm-automation .ai-status small{ font-size: 9.5px; letter-spacing: .08em; }
    #tnm-automation .ai-status b{ font-size: 11.5px; }
    #tnm-automation .form-card__call{ font-size: 13.5px; padding: 10px 12px; gap: 8px; }
  }
  @media (max-width: 400px) {
    #tnm-automation .hero h1{ font-size: clamp(30px, 9.4vw, 38px); }
    #tnm-automation .hero .eyebrow{ font-size: 10.5px; letter-spacing: .04em; }
  }
  @media (max-width: 350px) { #tnm-automation .hero .eyebrow{ white-space: normal; } }

  /* Sticky call bar — floating pill on larger screens (live-site style) */
  #tnm-automation .sticky-bar{ visibility: hidden; pointer-events: none; }
  #tnm-automation .sticky-bar.show{ visibility: visible; pointer-events: auto; }
  #tnm-automation .sticky-bar__text{ display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; margin: 0 6px 0 0; }
  #tnm-automation .sticky-bar .btn--call svg{ width: 18px; height: 18px; }
  @media (min-width: 721px) {
    #tnm-automation .sticky-bar{ display: flex; align-items: center; gap: 10px; left: 50%; right: auto; bottom: 20px; width: max-content; max-width: calc(100% - 32px);
      padding: 8px 8px 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.95);
      box-shadow: 0 22px 48px -20px rgba(20,22,26,.38), 0 0 0 1px rgba(176,138,0,.05);
      transform: translate(-50%, calc(100% + 40px)); transition: transform .35s ease, visibility .35s; }
    #tnm-automation .sticky-bar.show{ transform: translate(-50%, 0); }
    #tnm-automation .sticky-bar .btn{ flex: none; padding: 13px 24px; font-size: 16px; }
  }
  @media (max-width: 720px) {
    #tnm-automation .sticky-bar__text{ display: none; }
    #tnm-automation .sticky-bar .btn{ padding: 14px 10px; font-size: 15px; }
  }
  @media (max-width: 380px) { #tnm-automation .sticky-bar .btn--call svg{ display: none; } }

  /* client logos in the marquee — shown in colour */
  #tnm-automation .logo-marquee .lg{ flex: none; display: block; background-position: center; background-size: contain; background-repeat: no-repeat; opacity: .9; transition: opacity .2s, transform .2s; }
  #tnm-automation .logo-marquee .lg:hover{ opacity: 1; transform: scale(1.04); }
  #tnm-automation .lg--seacube{ width: 56px; height: 48px; background-image: url("../images/clients/automation/seacube.webp"); }
  #tnm-automation .lg--greenleaf{ width: 136px; height: 39px; background-image: url("../images/clients/automation/greenleaf.webp"); }
  #tnm-automation .logo-marquee__group{ gap: 64px; padding-right: 64px; }
  #tnm-automation .lg--ticketa{ width: 139px; height: 36px; background-image: url("../images/clients/automation/ticketa.png"); }
  #tnm-automation .lg--rajyog{ width: 104px; height: 47px; background-image: url("../images/clients/automation/rajyog.webp"); }
  #tnm-automation .lg--sbsc{ width: 65px; height: 46px; background-image: url("../images/clients/automation/sbsc.webp"); }
  #tnm-automation .lg--wiscon{ width: 52px; height: 44px; background-image: url("../images/clients/automation/wiscon.webp"); }
  #tnm-automation .lg--raftaar{ width: 128px; height: 23px; background-image: url("../images/clients/automation/raftaar.svg"); }
  @media (max-width: 720px) { #tnm-automation .lg--rajyog{ width: 84px; height: 38px; } #tnm-automation .lg--sbsc{ width: 52px; height: 37px; } #tnm-automation .lg--wiscon{ width: 42px; height: 35px; } #tnm-automation .lg--raftaar{ width: 102px; height: 18px; } #tnm-automation .lg--ticketa{ width: 108px; height: 28px; } #tnm-automation .lg--seacube{ width: 44px; height: 38px; } #tnm-automation .lg--greenleaf{ width: 108px; height: 31px; } #tnm-automation .logo-marquee__group{ gap: 44px; padding-right: 44px; } }

  /* PRM tile: text-only feature cards with hover */
  #tnm-automation .tools--prm li{ gap: 4px; padding: 14px 14px 15px; cursor: default; transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
  #tnm-automation .tools--prm li:hover{ transform: translateY(-3px); background: #fff; border-color: rgba(212,169,0,.5); box-shadow: 0 12px 26px -16px rgba(20,22,26,.3); }
  #tnm-automation .tools--prm li b{ transition: color .2s ease; }
  #tnm-automation .tools--prm li:hover b{ color: var(--accent-text); }
  #tnm-automation .tools--prm .prm-ic{ width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 8px; background: var(--accent); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(176,138,0,.18); transition: background-color .2s ease, color .2s ease, transform .25s ease; }
  #tnm-automation .tools--prm .prm-ic svg{ width: 19px; height: 19px; }
  @media (max-width: 720px) { #tnm-automation .tools--prm .prm-ic{ width: 34px; height: 34px; margin: 0 10px 0 0; flex: none; } #tnm-automation .tools--prm .prm-ic svg{ width: 17px; height: 17px; } }
  @media (max-width: 400px) { #tnm-automation .tools--prm li{ flex-direction: column; align-items: flex-start; } #tnm-automation .tools--prm .prm-ic{ margin: 0 0 4px; } }
  #tnm-automation .tools--prm li:hover .prm-ic{ background: var(--ink); color: var(--accent); box-shadow: 0 8px 18px -8px rgba(20,22,26,.45); transform: rotate(-6deg) scale(1.06); }

  /* Project Type: styled dropdown (same look as the country picker) */
  #tnm-automation .type-pop{ position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(20,22,26,.28); max-height: 264px; overflow-y: auto; overscroll-behavior: contain; }
  #tnm-automation .type-pop[hidden]{ display: none; }
  #tnm-automation .type-hit{ position: absolute; inset: 0; z-index: 2; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  #tnm-automation .type-pop__group{ padding: 10px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  #tnm-automation .type-pop__group:first-child{ padding-top: 4px; }
  #tnm-automation .type-pop__opt{ display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14.5px; line-height: 1.35; color: var(--ink); cursor: pointer; }
  #tnm-automation .type-pop__opt.is-active{ background: rgba(255,214,10,.18); }
  #tnm-automation .type-pop__opt[aria-selected="true"]{ font-weight: 700; }
  #tnm-automation .type-pop__opt[aria-selected="true"]::after{ content: ""; width: 12px; height: 7px; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg) translateY(-2px); flex: none; }
  #tnm-automation .select-wrap.is-open .select{ border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,214,10,.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 6.5l5-5 5 5' stroke='%234a4f58' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

  /* ===== Case study: stone operations ERP (placed like "Featured Shopify Work") ===== */
  #tnm-automation .cs-demo{ align-self: start; background: #fff; color: var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 50px -24px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
  #tnm-automation .cs-demo__bar{ display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: #1f2126; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  #tnm-automation .cs-demo__bar span{ display: inline-flex; align-items: center; gap: 10px; }
  #tnm-automation .cs-demo__bar i{ width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,214,10,.18); }
  #tnm-automation .cs-demo__bar em{ font-style: normal; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
  #tnm-automation .cs-demo__tabs{ display: flex; gap: 6px; padding: 12px 14px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  #tnm-automation .cs-demo__tabs::-webkit-scrollbar{ display: none; }
  #tnm-automation .cs-demo__tabs button{ flex: none; padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
  #tnm-automation .cs-demo__tabs button:hover{ color: var(--ink); }
  #tnm-automation .cs-demo__tabs button[aria-selected="true"]{ color: var(--ink); border-bottom-color: var(--accent); }
  #tnm-automation .cs-demo__panel{ padding: 20px 20px 18px; }
  #tnm-automation .cs-demo__panel[hidden]{ display: none; }
  #tnm-automation .cs-demo__head b{ display: block; font-family: var(--font-head); font-size: 19px; font-weight: 700; }
  #tnm-automation .cs-demo__head small{ display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
  #tnm-automation .cs-demo__sub{ display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
  #tnm-automation .cs-table{ margin-top: 14px; overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
  #tnm-automation .cs-table table{ width: 100%; border-collapse: collapse; font-size: 13.5px; white-space: nowrap; }
  #tnm-automation .cs-table th{ text-align: left; padding: 11px 12px; background: var(--bg-2); font-size: 12px; font-weight: 700; color: var(--ink-2); }
  #tnm-automation .cs-table td{ padding: 11px 12px; border-top: 1px solid var(--line); }
  #tnm-automation .cs-table tbody tr{ transition: background-color .15s; }
  #tnm-automation .cs-table tbody tr:hover{ background: #fffbea; }
  #tnm-automation .cs-pill{ display: inline-flex; padding: 2px 8px; border-radius: 999px; background: rgba(255,214,10,.2); color: var(--accent-text); font-size: 12px; font-weight: 700; }
  #tnm-automation .cs-pill--green{ background: #e3f3e9; color: #1f6b43; }
  #tnm-automation .cs-muted{ color: var(--muted); font-style: italic; }
  #tnm-automation .cs-demo__note{ margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
  #tnm-automation .cs-demo__panel{ padding: 16px 14px; }
  #tnm-automation .cs-demo{ box-shadow: 0 26px 56px -30px rgba(20,22,26,.4); border: 1px solid var(--line); }
  #tnm-automation #case-study .ba__grid{ align-items: start; }
  #tnm-automation #case-study .ba__side{ padding-top: 8px; }
  #tnm-automation .fact__v{ font-size: 14.5px; font-weight: 600; color: var(--ink); text-align: right; }
  #tnm-automation .cs-more{ display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
  #tnm-automation .cs-more > *{ min-width: 0; }
  #tnm-automation .cs-more h3{ font-size: clamp(24px, 2.4vw, 30px); margin: 0 0 12px; }
  #tnm-automation .cs-more__copy > p{ color: var(--ink-2); font-size: 16.5px; max-width: 560px; }
  #tnm-automation .cs-stages{ list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
  #tnm-automation .cs-stages li{ display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
  #tnm-automation .cs-stages li:hover{ transform: translateY(-2px); border-color: rgba(212,169,0,.5); box-shadow: 0 12px 26px -16px rgba(20,22,26,.3); }
  #tnm-automation .cs-stages span{ grid-row: span 2; font-size: 12px; font-weight: 800; color: var(--accent-text); padding-top: 2px; }
  #tnm-automation .cs-stages b{ font-size: 15px; font-weight: 700; }
  #tnm-automation .cs-stages small{ font-size: 13px; line-height: 1.45; color: var(--muted); }
  #tnm-automation .cs-more__side h4{ font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
  #tnm-automation .cs-enables{ list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  #tnm-automation .cs-enables li{ padding: 16px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
  #tnm-automation .cs-enables li:hover{ transform: translateY(-2px); background: #fff8d6; border-color: rgba(212,169,0,.5); }
  #tnm-automation .cs-enables b{ display: block; font-size: 15px; margin-bottom: 4px; }
  #tnm-automation .cs-enables span{ display: block; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
  #tnm-automation .cs-note{ margin-top: 16px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
  @media (max-width: 1080px) { #tnm-automation .cs-more{ grid-template-columns: 1fr; gap: 32px; } }
  @media (max-width: 720px) {
    #tnm-automation .cs-demo__panel{ padding: 16px 14px; }
    #tnm-automation .cs-more{ margin-top: 36px; padding-top: 32px; }
    #tnm-automation .cs-stages{ grid-template-columns: 1fr; }
    #tnm-automation .cs-enables{ grid-template-columns: 1fr 1fr; gap: 8px; }
    #tnm-automation .cs-enables li{ padding: 12px; }
    #tnm-automation .cs-enables b{ font-size: 14px; line-height: 1.3; }
    #tnm-automation .cs-enables span{ font-size: 12.5px; }
    #tnm-automation .fact__v{ text-align: left; }
    #tnm-automation #case-study .facts{ grid-template-columns: 1fr 1fr; gap: 8px; }
    #tnm-automation #case-study .fact{ flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; padding: 12px; }
    #tnm-automation #case-study .fact small{ font-size: 10.5px; }
    #tnm-automation #case-study .fact__v{ font-size: 14px; line-height: 1.35; }
  }

  /* ===== More case studies: every published software case study, linked to its full page ===== */
  #tnm-automation #case-library{ padding-top: 0; }
  #tnm-automation .cs-lib__head{ display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; margin-bottom: 28px; }
  #tnm-automation .cs-lib__head .section-head{ margin-bottom: 0; }
  #tnm-automation .cs-lib{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  #tnm-automation .cs-card{ display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: border-color .25s, transform .25s; }
  #tnm-automation .cs-card:hover{ border-color: rgba(176,138,0,.45); transform: translateY(-3px); }
  #tnm-automation .cs-card__img{ display: block; aspect-ratio: 1200 / 630; background: #17161c; border-bottom: 1px solid var(--line); }
  #tnm-automation .cs-card__img img{ width: 100%; height: 100%; object-fit: cover; }
  #tnm-automation .cs-card__body{ display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
  #tnm-automation .cs-card__ind{ font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
  #tnm-automation .cs-card h3{ font-size: 18px; line-height: 1.25; }
  #tnm-automation .cs-card h3 a{ text-decoration: none; }
  #tnm-automation .cs-card h3 a::after{ content: ""; position: absolute; inset: 0; }
  #tnm-automation .cs-card{ position: relative; }
  #tnm-automation .cs-card p{ color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
  #tnm-automation .cs-card__tags{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; list-style: none; }
  #tnm-automation .cs-card__tags li{ font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
  @media (max-width: 1100px) { #tnm-automation .cs-lib{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 640px) {
    #tnm-automation .cs-lib{ grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: 0 var(--gutter); }
    #tnm-automation .cs-card{ scroll-snap-align: start; }
    #tnm-automation .cs-card:hover{ transform: none; }
  }

/* Self-hosted italic for the accent words when IvyPresto is unavailable (the site serves no Google Fonts). */
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('../font/web/instrument-serif-italic-latin.woff2') format('woff2'); }

/* Lead form plumbing shared with the Shopify page: honeypot, error box and the reserved hCaptcha space. */
#tnm-automation .form-status { border:1px solid #b3261e; background:#fff3f2; color:#8c1d18; padding:10px 12px; border-radius:10px; font-size:14px; margin-bottom:14px; }
#tnm-automation .lead-honeypot { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
#tnm-automation .captcha-row { margin:16px 0; container-type:inline-size; }
#tnm-automation .h-captcha { min-height:78px; line-height:0; }
#tnm-automation .h-captcha:empty { display:flex; align-items:center; width:303px; max-width:100%; padding:0 16px; border:1px dashed var(--line); border-radius:6px; }
#tnm-automation .h-captcha:empty::before { content:"Security check loads when you start the form."; font-size:13px; line-height:1.45; color:var(--muted); }
@container (max-width: 302.98px) {
  #tnm-automation .h-captcha { min-height:144px; }
  #tnm-automation .h-captcha:empty { width:164px; }
}
/* Bootstrap also styles .btn, .h2 and .lead site-wide; these keep its extra properties off the page's own versions. */
#tnm-automation .btn { --bs-btn-padding-x: 26px; --bs-btn-padding-y: 15px; line-height: 1.2; vertical-align: middle; user-select: none; }
#tnm-automation .lead { font-weight: 400; }
