/* thusdigital.com one-pager (16 Nov 2026): canon TD styleguide plus only what this page needs.
   This file is the site's only override home. It loads after the vendored styleguide stack.
   Every rule below is copied from the OptimAI marketing site (optimai-site/assets/css/v3.css) with its class names kept,
   unless it sits in the last block, "New for this site". Where v3.css layers several dated overrides on one selector, the
   value that wins there is the value written here. Copied rules that v3.css scopes to its own act ids (#agencies, #start,
   #plan and so on) are scoped to this page's ids instead. Literal colours and sizes in the copied rules are swapped for
   the TD token of the same or nearest value. Breakpoints as v3.css: 560, 800, 1024. */

/* ---------------------------------------------------------------- body and text rendering */
/* Marketing body, flush under the fixed header. */
body { padding: var(--site-header-height) 0 0 0; overflow-x: clip; }
/* Phone status bar: the page declares viewport-fit=cover, so the fixed header grows by the top inset and pads its
   content clear of it. The inset is 0 wherever nothing overlaps. */
@supports (padding: env(safe-area-inset-top)) {
  :root { --site-header-height: calc(56px + env(safe-area-inset-top)); }
  .site-header { padding-top: env(safe-area-inset-top); padding-left: max(var(--s-5), env(safe-area-inset-left)); padding-right: max(var(--s-5), env(safe-area-inset-right)); }
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}
/* Text rendering scoped to main so the header keeps the browser defaults. */
main { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-synthesis-weight: none; letter-spacing: -0.005em; }

/* ---------------------------------------------------------------- site header and nav */
/* Header items on one centre line. */
.site-header .site-header-inner .brand { align-items: center; transform: none; }
.site-header .site-header-inner .site-nav-links { transform: none; }
.site-header .site-header-inner .site-nav-links li { display: flex; align-items: center; }
.site-header .site-header-inner .brand-text { display: inline-flex; align-items: baseline; position: relative; top: 0px; }
/* The phone nav sheet hidden while parked; 44px hamburger. Canon switches at 800. The header button then the hamburger,
   both at the far right, the hamburger outermost. */
@media (max-width: 800px) {
  .site-header .site-header-inner .header-tools { order: 2; margin-left: auto; }
  .site-header .site-header-inner .nav-hamburger { order: 3; margin-left: 0; width: 44px; height: 44px; }
  .site-header .site-header-inner .site-nav-links { visibility: hidden; transition: transform 0.25s ease, visibility 0s linear 0.25s; }
  .site-header .site-header-inner .site-nav-links.nav-open { visibility: visible; transition: transform 0.25s ease, visibility 0s; }
}
/* Nav hover and active: colour only, no weight change. */
.site-nav-links a:hover,
.site-nav-links a.active { font-weight: 300; color: var(--c-black); }
/* Header button: Fredoka, uppercase, 1.5px letter spacing. */
.site-header .header-tools .btn { font-family: var(--ff-display); text-transform: uppercase; letter-spacing: 1.5px; }
/* The inline wordmark; knock-out on teal. */
.brand { white-space: nowrap; text-transform: none; letter-spacing: normal; }

/* ---------------------------------------------------------------- page width and gutters */
/* Content lines up with the header: a 24px pad outside a 1200px content row, the header's own rule. */
.container { max-width: calc(var(--w-content) + 2 * var(--s-5)); padding-left: var(--s-5); padding-right: var(--s-5); }

/* ---------------------------------------------------------------- grounds */
/* The teal ground re-inks canon type; the primary button inverts on it. */
.ground-primary { background: var(--c-primary); color: white; }
.ground-primary h1, .ground-primary .mega, .ground-primary p { color: var(--c-invert-2); }
.ground-primary h2 { color: var(--c-invert-1); }
.ground-primary .brand { color: white; }
.ground-primary .brand .brand-alt { color: var(--c-tertiary); }
.ground-primary a:not(.btn) { color: white; text-decoration: none; }
.ground-primary a:not(.btn):hover, .ground-primary a:not(.btn):focus-visible { text-decoration: underline; text-underline-offset: 4px; color: white; }
.ground-primary :focus-visible { outline-color: white; }
.ground-primary .btn-primary { background: white; color: var(--c-primary); border-color: white; }
.ground-primary .btn-primary:hover { background: var(--c-tertiary); border-color: var(--c-tertiary); color: var(--c-primary); }
#contact.ground-primary .btn-primary:hover { background: transparent; border-color: white; color: white; }   /* new for this site: the closing band button goes to the outline look on hover (Seth, 16 Nov 2026) */
.ground-primary .btn-outline { background: transparent; color: white; border: 1px solid white; }
.ground-primary .btn-outline:hover { background: white; color: var(--c-primary); border-color: white; }

/* ---------------------------------------------------------------- hero */
.hero { padding: var(--s-7) 0; }
/* Hero background: a mid-teal glow bottom left, through the primary teal, to a deeper teal at the far edge. v3.css
   writes the deep end as a literal (it has no token yet); here it is mixed from the primary token and black, which
   lands within one step of that literal. */
.hero.ground-primary { background: radial-gradient(120% 90% at 15% 90%, var(--c-secondary) 0%, var(--c-primary) 42%, color-mix(in srgb, var(--c-primary) 83%, black) 100%); }
.hero-head { margin-bottom: var(--s-5); font-size: 36px; line-height: 44px; }
.ground-primary h1.hero-head { color: var(--c-tertiary); }
.hero-lede { font-size: 16px; line-height: 24px; max-width: 54ch; margin-bottom: var(--s-5); padding-right: calc(var(--s-7) + var(--s-3)); text-wrap: pretty; }
.ground-primary .hero-lede { color: var(--c-invert-1); }
.hero-lede .lede-accent { color: white; font-weight: 500; }
/* A full body line between the two hero paragraphs. */
.hero-lede-first { margin-bottom: 1lh; }
.hero-lede-first + .hero-lede { margin-top: 0; }
@media (min-width: 801px) {
  .hero-head { font-size: 40px; line-height: 48px; }
  .hero-lede { font-size: 20px; line-height: 30px; }
}
@media (min-width: 1024px) {
  .hero { padding: var(--s-8) 0; }
  .hero-head { font-size: 48px; line-height: 56px; }
}
@media (max-width: 800px) {
  .hero-lede { max-width: 100%; padding-right: 0; }
}
/* Hero grid: one column at 800px and below (text first, the frame under it), a 5-column grid from 801px with the text
   in 3 columns and the frame in 2, 48px apart, the frame sharing the text column's top line. v3.css also dissolves its
   text wrappers into grid rows so its carousel frame can stretch to a text baseline; that part is the carousel's and
   is not copied. */
.v3-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
.v3-hero-text { max-width: none; }
/* The frame's look: 8px corners, a primary teal border and an even soft inner shadow (v3.css writes the shadow as a
   literal black at 16%; here it is mixed from the black token). v3.css's off-white fill, min-height and centring are
   for its carousel and are not copied: the frame here is a canon .card, which brings the white ground. */
.hero-frame { border-radius: var(--r-md); border: 1px solid var(--c-primary); box-shadow: inset 0 0 8px color-mix(in srgb, var(--c-black) 16%, transparent); padding: var(--s-5); }
@media (min-width: 801px) {
  .v3-hero-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-7); align-items: start; }
  .v3-hero-text { grid-column: span 3; }
  .hero-frame { grid-column: span 2; }
}

/* ---------------------------------------------------------------- scenes */
.scene { padding: var(--s-8) 0; }
.scene.ground-bg { background: var(--c-bg); }
.scene > .container > .act-head > h2 { margin-bottom: var(--s-3); }
.act-head { margin-bottom: var(--s-6); }
@media (max-width: 860px) { .scene { padding: var(--s-7) 0; } }
/* Act heads centred at full container width, the lead at 20/30 and capped. */
#also .act-head, #bespoke .act-head, #about .act-head, #contact .act-head { text-align: center; max-width: none; }
#bespoke .act-head .lead, #about .act-head .lead, #contact .act-head .lead { font-size: 20px; line-height: 30px; max-width: 900px; margin: 0 auto; }
/* A second lead line under the first (from the OptimAI site's css/site.css, its styleguide-pending 17). */
#about .act-head .lead + .lead { margin-top: var(--s-3); }
/* The closing band heading in pure white; its size is the canon .scale-up5. */
#contact h2 { color: white; }

/* ---------------------------------------------------------------- scroll reveals
   ScrollCraft's flow-reveal rules, as v3.css carries them. The engine's own stylesheet is vendored but not loaded, as on
   the OptimAI site: its page-wide base styles would override the styleguide. Scoped under .sc-ready, which the engine
   sets on <html> when it mounts, so the content stays visible if the script never runs. */
.sc-ready [data-sc-in], .sc-ready [data-sc-stagger] > * {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 620ms cubic-bezier(0.23, 1, 0.32, 1), transform 620ms cubic-bezier(0.23, 1, 0.32, 1);
}
.sc-ready [data-sc-in].sc-in, .sc-ready [data-sc-stagger] > .sc-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .sc-ready [data-sc-in], .sc-ready [data-sc-stagger] > * { transform: none; transition-duration: 220ms; }
}
/* The screenshot: a beat later and a touch slower than the base reveal. */
.sc-ready .plan-row-shot[data-sc-in] { transition-duration: 1200ms; transition-delay: 350ms; }
@media (prefers-reduced-motion: reduce) { .sc-ready .plan-row-shot[data-sc-in] { transition-duration: 220ms; transition-delay: 0ms; } }

/* ---------------------------------------------------------------- copy beside media
   v3.css's alternating image and text row: text in 2 parts, the shot in 3, from 800px; stacked below. */
.plan-row { display: grid; gap: var(--s-5); align-items: center; }
.plan-row-text > :last-child { margin-bottom: 0; }
.plan-row-shot { margin: 0; }
.plan-row-shot figcaption { text-align: center; }   /* new for this site: the carousel caption is centred (Seth, 16 Nov 2026); canon has no centring modifier */
@media (min-width: 800px) {
  .plan-row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-7); }
}

/* ---------------------------------------------------------------- screenshot carousel
   v3.css's hero carousel, crossfade only: slides stack in one grid cell and fade on a fixed loop, no controls. The loop
   is in site.js. The first slide carries .is-on in the markup, so it shows still if the script never runs. */
.hc { display: grid; width: 100%; }
.hc-slide { grid-area: 1 / 1; opacity: 0; transition: opacity 0.72s ease; display: flex; align-items: center; justify-content: center; }
.hc-slide.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hc-slide { transition: none; } }

/* ---------------------------------------------------------------- buttons in the page */
/* The hero's button line: left aligned, 48px tall, 8px corners. */
.hero-cta { margin: 0 0 var(--s-2); text-align: left; }
.hero-cta .btn { height: 48px; border-radius: var(--r-md); }
@media (max-width: 559px) {
  .hero .hero-cta { text-align: center; justify-content: center; }
}
/* A centred call to action with the scene's air above and below; the face is the site's uppercase Fredoka button. */
.win-cta { margin: calc(var(--s-6) + var(--s-5)) 0; text-align: center; }
.win-cta .btn, .hero-cta .btn { font-family: var(--ff-display); text-transform: uppercase; letter-spacing: 1.5px; padding-left: calc(var(--s-5) + var(--s-3)); padding-right: calc(var(--s-5) + var(--s-3)); }
/* Two buttons side by side, centred; stacked on a phone. */
.agency-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
.agency-cta .btn { white-space: nowrap; }
@media (max-width: 600px) { .agency-cta { flex-direction: column; align-items: center; } .agency-cta .btn { width: 100%; max-width: 320px; } }

/* ---------------------------------------------------------------- sticky footer */
/* The canon fixed .site-footer bar, with the page padded by its height so the last scene is never covered. */
body { padding-bottom: var(--site-footer-height); }
.site-footer .footer-tools-left, .site-footer .footer-tools-right { gap: var(--s-4); font-size: 12px; line-height: 18px; }
@media (max-width: 600px) {
  /* Phone: the page links left and the copyright right on one line, LinkedIn centred beneath. */
  :root { --site-footer-height: 84px; }
  .site-footer { padding: 0 var(--s-4); }
  .site-footer .site-footer-inner { grid-template-columns: auto 1fr; grid-template-areas: "legal copy" "help help"; align-content: center; row-gap: var(--s-2); column-gap: var(--s-3); }
  .site-footer .footer-tools-left { grid-area: legal; justify-self: start; gap: var(--s-3); }
  .site-footer .footer-center { grid-area: copy; justify-self: end; font-size: 12px; }
  .site-footer .footer-tools-right { grid-area: help; justify-self: center; }
}

/* ---------------------------------------------------------------- New for this site (not in v3.css)
   Eleven rules. Each is here because neither canon nor v3.css carries a fit. */
/* 1. The About headshot: small and circular, like a profile picture (96px = --s-8 + --s-6). Canon's only round image
      is .btn-avatar, which is a button. */
.headshot { display: block; width: calc(var(--s-8) + var(--s-6)); height: calc(var(--s-8) + var(--s-6)); margin: 0 auto var(--s-4); border-radius: var(--r-pill); object-fit: cover; }
/* 2. Nav targets land clear of the fixed header. Canon offsets only ids prefixed "section-"; this page's ids are fixed by
      its nav (#products, #optimai, #about, #contact). */
main [id] { scroll-margin-top: calc(var(--site-header-height) + var(--s-4)); }   /* header plus the canon --s-4 gap */
main .card[id] { scroll-margin-top: calc(var(--site-header-height) + var(--s-6)); }   /* a product card reached from the hero card sits well clear of the header (Seth, 16 Nov 2026) */
/* 3. A scene that is only its head (bespoke systems, about) keeps even air top and bottom. */
.act-head:last-child { margin-bottom: 0; }
/* 4. The hero's button line holds two buttons, so it is a wrapping row with the --s-3 gap of .agency-cta (v3.css's
      .hero-cta holds one button and needs no gap). */
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }
/* 5. The screenshot frame sits on the carousel stage, not on each image (it was v3.css's .plan-row-shot img rule: same
      border, corners, ground and shadow). The stage holds one fixed shape, the first slide's 1380 by 930, so the figure
      never changes height between slides. */
.plan-row-shot .hc { aspect-ratio: 1380 / 930; overflow: hidden; border: 1px solid var(--c-invert-1); border-radius: var(--r-md); background: white; box-shadow: 0 6px 24px color-mix(in srgb, var(--c-primary) 8%, transparent); }
/* 6. Each screenshot fills its slide and is shown whole, never cropped, aligned to the top; the slide is the box it is
      placed in. Out of flow, so an image's own shape cannot stretch the stage. */
.plan-row-shot .hc-slide { position: relative; }
.plan-row-shot .hc-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: top center; }
/* 7. The OptimAI block's two buttons sit under the carousel (Seth, 16 Nov 2026): .hero-cta for the button face,
      composed with .agency-cta for the centred row that stacks and centres on a phone. This is the gap above them. */
.plan-row-shot + .hero-cta { margin-top: var(--s-5); }
/* 8. The hero's products card (Seth, 16 Nov 2026) is a canon .card in the hero frame. The grid gap spaces it, so the
      card's own bottom margin goes; the bottom pad drops to --s-3 because the last row carries its own --s-3, which
      keeps the air under the last row equal to the frame's --s-5 pad above the heading. */
.card.hero-frame { margin-bottom: 0; padding-bottom: var(--s-3); }
/* 9. The card's rows are canon .popover-menu-item links. In a padded card they bleed to the card's edges (the
      negative-margin method of canon .card-header.headers-grey) so the canon hover band spans the card, and they pad
      by the frame's --s-5 so the row text lines up with the heading. */
.hero-frame .popover-menu-item { width: auto; margin: 0 calc(-1 * var(--s-5)); padding-left: var(--s-5); padding-right: var(--s-5); }
/* 10. A row is the product name over its descriptor, with the status badge at the far end. Canon stacks a name this way
      only in .popover-menu-header. */
.hero-frame .popover-menu-item strong { display: block; }
.hero-frame .popover-menu-item .badge { margin-left: auto; }
/* 11. The card is white, so the teal ground's re-inking stops at its edge: row links take body ink, hover and focus
      take the canon secondary teal with no underline (as v3.css does for the links inside its own hero frame), and the
      focus ring is the canon secondary ring, drawn just inside the row so it sits on white. */
.ground-primary .hero-frame a:not(.btn) { color: var(--c-body); }
.ground-primary .hero-frame a:not(.btn):hover, .ground-primary .hero-frame a:not(.btn):focus-visible { color: var(--c-secondary); text-decoration: none; }
.ground-primary .hero-frame :focus-visible { outline-color: var(--c-secondary); outline-offset: -2px; }

/* The lightbox, copied from optimai-site v3.css (styleguide-pending 23: scaffolding on the canon .modal). Sizes the one
   shared image card to the viewport with its aspect kept; the image shows at its full size. */
.lightbox-card { max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; }
.lightbox-card img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - var(--s-8) - var(--s-8)); object-fit: contain; background: white; }
.lightbox-card .card-body { padding: var(--s-3) var(--s-4); }
.lightbox-card .card-body p { margin: 0; }
.lightbox-card .notice-close { background: white; border-radius: var(--r-pill); z-index: 1; }
figure[data-modal-open] { cursor: zoom-in; }

/* The booking modal (Seth, 16 Nov 2026), new for this site: the cal.com booking page in a frame inside a canon .modal
   and .card. The card is sized to the viewport, loses its padding so the frame fills it, and the close button gets the
   lightbox's white circle so it reads over the framed page. */
.booking-card { width: min(1000px, 100%); height: min(760px, 100%); padding: 0; overflow: hidden; display: flex; }
.booking-card iframe { flex: 1; width: 100%; height: 100%; border: 0; background: white; }
.booking-card .notice-close { background: white; border-radius: var(--r-pill); z-index: 1; }
