  /* Layout for the marketing pages: the main page (web/index.html) and the law firm
     page (web/legal.html, at /legal). They are one design with different words, so
     they share this file and /landing.js, and a change made here lands on both.

     Colour and type tokens live in /brand.css — the only file with raw hex.
     What follows is layout, expressed against those tokens, so a re-theme never
     comes back here. */
  /* Title sizes (the owners' figures, 2026-11-12): the hero headline 4.5em, every other
     section title 3.5em (3em at first, "too small"), against the 17px body, so 76.5px
     and 59.5px on a computer. Phones keep the old floors, and the vw step lands each on
     its full size near 1060px.
     The em resolves where the var() is used, against the title's parent: 17px there. */
  :root { --nav-h: 74px; --title-hero: clamp(42px, 7.2vw, 4.5em); --title: clamp(34px, 5.6vw, 3.5em); }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  a { color: inherit; text-decoration: none; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  .container { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
  section { padding: 96px 0; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

  .eyebrow {
    display: inline-block; font-family: var(--font-body); font-weight: 700;
    font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
    background: var(--surface-tint); padding: 7px 16px; border-radius: var(--radius-pill); margin-bottom: 20px;
  }
  /* Highlighter chip: bright green behind forest text, the way a marker pen would
     leave it. Reads on white and on forest alike, so it needs no per-section override.

     box-decoration-break is load-bearing, not polish. A headline this size wraps, and
     without it the browser paints ONE box around the whole inline run: the padding and
     the rounded corners land only on the first and last fragments, so the middle lines
     get square, flush edges and the chip reads as a rendering fault. `clone` gives every
     line its own box. The leading is opened up to match, or consecutive chip lines
     collide. */
  .hl {
    background: var(--accent); color: var(--on-accent);
    padding: .06em .3em; border-radius: .2em;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
  }
  .hl-p { background: var(--surface-tint); color: var(--ink); padding: .06em .3em; border-radius: .2em;
          -webkit-box-decoration-break: clone; box-decoration-break: clone; }

  /* ---------- Buttons ----------
     Three kinds, named for what they look like rather than where they sit:
       .btn          bright green, FOREST text. Never white on green: 1.7:1.
       .btn-solid    forest, white text. The primary on light sections.
       .btn-outline  a ring in the text colour. The secondary everywhere; on the
                     forest section (.on-dark) the ring and text flip to white.
     The ring is an inset shadow, not a border, so an outline button is exactly the
     size of the filled one beside it. Hover goes lighter, Wise's own direction. */
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent); color: var(--on-accent); border: none; cursor: pointer;
    font-family: var(--font-body); font-weight: 700; font-size: 17px; line-height: 1.2;
    padding: 16px 32px; border-radius: var(--radius-pill);
    transition: background .18s ease, color .18s ease, transform .12s ease;
  }
  .btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
  .btn:active { background: var(--accent-active); transform: translateY(0); }
  .btn-solid { background: var(--solid); color: var(--on-solid); }
  .btn-solid:hover, .btn-solid:active { background: var(--solid-hover); }
  .btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--c-forest); }
  .btn-outline:hover, .btn-outline:active { background: var(--surface-tint); }
  .on-dark .btn-outline { color: var(--ink-on-dark); box-shadow: inset 0 0 0 2px var(--ink-on-dark); }
  .on-dark .btn-outline:hover, .on-dark .btn-outline:active { background: var(--c-white); color: var(--ink); }
  .btn:focus-visible, .tier-btn:focus-visible, input:focus-visible, .nav-cta:focus-visible,
  .nav a:focus-visible, .faq-item a:focus-visible {
    outline: 3px solid var(--focus); outline-offset: 2px;
  }
  .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

  /* Trust bullets: a forest tick in a bright green disc, so they read as a set on
     white and on forest without a per-section colour. */
  .checks { list-style: none; display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap;
            font-size: 15.5px; font-weight: 700; color: var(--ink); }
  .checks li { display: inline-flex; align-items: center; gap: 9px; }
  .checks .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
                  display: inline-flex; align-items: center; justify-content: center; flex: none; }
  .on-dark .checks { color: var(--ink-on-dark); }

  /* ---------- Inputs ---------- */
  input[type=email] {
    font-family: var(--font-body); font-weight: 500; font-size: 16px; color: var(--ink);
    background: var(--c-white); border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill);
    padding: 15px 22px; transition: border-color .15s ease;
  }
  input[type=email]::placeholder { color: var(--muted); font-weight: 400; }
  input[type=email]:focus { outline: none; border-color: var(--c-forest); }

  /* ---------- Nav ---------- */
  .nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: transparent; transition: background .25s ease, box-shadow .25s ease; }
  /* Three columns, the outer two equal, so the section links sit on the page's true
     centre however wide the logo and the buttons are. .nav-links holds both groups for
     the phone menu; on wider screens it steps aside (display: contents) and its two
     groups take the middle and right columns themselves. */
  .nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--nav-h); }
  /* The lockup: mark + wordmark, both from .brandmark in brand.css. The mark is a
     CSS mask, so it takes its colour from here and needs no second file for the
     green-on-forest case. */
  .nav-brand { font-size: 26px; color: var(--ink); justify-self: start; }
  .nav-links { display: contents; }
  .nav-mid { display: flex; align-items: center; gap: 34px; justify-self: center; }
  .nav-end { display: flex; align-items: center; gap: 24px; justify-self: end; }
  .nav-links a:not(.nav-cta) { color: var(--ink); font-weight: 600; font-size: 16px; transition: opacity .18s ease; }
  .nav-links a:not(.nav-cta):hover { opacity: .62; }
  .nav-cta { background: var(--solid); color: var(--on-solid); padding: 11px 22px; border-radius: var(--radius-pill); font-weight: 700; font-size: 15px; transition: background .18s ease; }
  .nav-cta:hover { background: var(--solid-hover); }
  .nav.scrolled { background: rgba(255,255,255,.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
  .nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); }

  /* ---------- Hero ----------
     White, with the green carried by the highlighter chip and the buttons rather
     than by a flood fill. The bottom padding is back now that the avatar marquee is
     gone: the marquee's own padding used to carry the gap into the next section. */
  .hero { background: var(--bg); color: var(--ink); padding: 158px 0 100px; text-align: center; }
  /* The bubble over the headline: one short line, the only thing allowed above the h1. */
  .hero-badge { display: inline-flex; align-items: center; gap: 9px; background: var(--surface-alt); color: var(--ink);
                font-weight: 700; font-size: 14.5px; line-height: 1.2; padding: 9px 18px; border-radius: var(--radius-pill); margin-bottom: 30px; }
  .hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-forest); flex: none; }
  .hero h1 {
    font-family: var(--font-display); font-weight: var(--w-display);
    font-size: var(--title-hero);
    /* Roomier than a headline normally wants: .hl paints a filled box per line, and at
       1.06 those boxes touch. This is the leading the chip needs, not the type. */
    line-height: 1.22; letter-spacing: -.02em;
    /* Measured in ch so it tracks the clamped font size instead of fighting it. From
       600px up both pages end line one with a <br class="wide-only"> after the
       highlighted phrase; this width only has to hold "on a call with your next one."
       whole on line two. It used to place the break itself, between "customers" and
       "on", but in Outfit (since 2026-11-12) "on a" fits up there at any width that
       keeps line two whole, so the break is now in the markup. */
    color: var(--ink); max-width: 21ch; margin: 0 auto 24px;
  }
  /* Belt to the max-width's braces: the highlighted phrase stays whole even if the
     copy is reworded to something longer. Gated to >=600px on purpose — at 42px on a
     360px phone "happiest customers" is wider than the screen, and an unbreakable run
     there would overflow the viewport rather than wrap. */
  @media (min-width: 600px) { .hero h1 .hl { white-space: nowrap; } }
  /* A break that only exists from 600px up, after the highlighted phrase in both heroes.
     Without it "on" (on the law firm page) or "on a" (on the main page, in Outfit) rides
     up onto line one, and no width keeps it off there without also breaking line two.
     Below 600px the headline wraps on its own, with "next&nbsp;one." kept together. */
  @media (max-width: 599px) { br.wide-only { display: none; } }
  .hero .sub { font-size: 21px; line-height: 1.5; color: var(--ink); opacity: .84; max-width: 34em; margin: 0 auto 36px; }
  .hero .ctas { margin-bottom: 28px; }

  /* ---------- Who Refology is for ----------
     The main page's second section: the beige band under the hero, smile and all. The
     picture is the page's human side (two people on a video call), which leaves the step
     cards below free to show the product. Wide on a screen; on a phone a strip that wide
     would be a sliver, so it crops to 3:2 around the two of them. */
  .who { background: var(--surface-alt); }
  .who .sec-head { margin-bottom: 44px; }
  .who-media { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-sunk); }
  .who-media img { display: block; width: 100%; height: auto; aspect-ratio: 2400 / 1018; object-fit: cover; object-position: 57% 50%; }
  .who .cta-strip { margin-top: 44px; }
  .who .cta-strip h3 { margin-bottom: 20px; }
  @media (max-width: 600px) { .who-media img { aspect-ratio: 3 / 2; } }
  /* The industry in its headline, changed every couple of seconds by web/landing.js. Plain
     words, with no chip and no full stop: a chip easing to each word's width read as a box
     growing and shrinking, with the full stop riding along behind it. The word has a line
     to itself, so the sentence above never re-wraps, and it is swapped while faded out, so
     re-centring on the new word's width is never seen. Small phones shrink the line so
     "interior designers" still fits on one. */
  .rot { display: block; white-space: nowrap; transition: opacity .22s ease, transform .32s cubic-bezier(.3, .7, .2, 1); }
  .rot.out { opacity: 0; transform: translateY(-.3em); }
  .rot.pre { opacity: 0; transform: translateY(.3em); transition: none; }
  @media (max-width: 420px) { .rot { font-size: min(1em, 9.5vw); } }
  @media (prefers-reduced-motion: reduce) { .rot { transition: none; } }
  /* One band more than the law firm page puts the main page's colours a step out of
     phase from here: How it works on white with beige cards, the widget on beige,
     Transparency on white. Why Refology and everything after it match on both pages. */
  .who ~ .how { background: var(--bg); }
  .who ~ .how .step { background: var(--surface-alt); }
  .who ~ .spotlight { background: var(--surface-alt); }
  .who ~ .transparency { background: var(--bg); }

  /* ---------- Section head ---------- */
  .sec-head { text-align: center; max-width: 820px; margin: 0 auto 60px; }
  .sec-head h2 { font-family: var(--font-display); font-weight: var(--w-display); font-size: var(--title); line-height: 1.1; letter-spacing: -.02em; }
  .sec-head p { font-size: 19px; color: var(--muted); margin: 18px auto 0; max-width: 42em; }
  /* For a headline one word too long for the column above. At 820px it takes three
     lines, and balancing then evens those three out, so the block comes out half the
     width of every other heading on the page. The extra room gets it onto two. The
     paragraph keeps its own measure. */
  .sec-head.wide { max-width: 1000px; }
  /* Balanced so a two-line headline never strands one word on the second line. */
  .sec-head h2, .close h2, .cta-strip h3, .step h3, .card h3, .points h3, .callout h3, .faq-item summary { text-wrap: balance; }
  .sec-head p, .hero .sub, .close .sub { text-wrap: pretty; }

  /* ---------- Callout ----------
     A note under a set of cards: the fine print that belongs to them, in a green box
     the width of the cards above it. Used under the steps and under the plans. */
  .callout { background: var(--surface-tint); border-radius: var(--radius-lg); padding: 26px 30px;
             display: flex; align-items: flex-start; gap: 20px; margin: 24px auto 0; }
  .callout .ico { width: 48px; height: 48px; border-radius: 15px; background: var(--c-forest); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
  .callout h3 { font-size: 19px; margin-bottom: 6px; }
  .callout p { font-size: 16px; color: var(--text); }
  .callout p strong { color: var(--ink); }

  /* ---------- The band under the hero ----------
     Its top edge dips in the middle: a smile under the hero rather than a ruled line. It
     belongs to whichever section comes straight after the hero (Who Refology is for on the
     main page, How it works on the law firm page). The white is this pseudo-element,
     filled with the page's own --bg and cut to a curve by a mask, so the curve's colour
     comes from the token rather than from a hex baked into an SVG. The mask is a quadratic
     from corner to corner whose low point is the element's full height, so the depth is
     set by `height` alone. The section's top padding is raised by the same depth, so the
     heading keeps its breathing room. */
  .hero + section { position: relative; padding-top: 136px; }
  .hero + section::before {
    content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 56px;
    background: var(--bg); pointer-events: none;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100Q50 200 0 0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100Q50 200 0 0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  }
  /* ---------- How it works ---------- */
  .how { background: var(--surface-alt); }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .step { background: var(--surface); border-radius: var(--radius-lg); padding: 20px 20px 30px; }
  .step .media { border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
  .step .media img { width: 100%; height: 210px; object-fit: cover; display: block; }
  .step .media.ui img { object-position: left top; }
  /* Where all three steps are product shots (the main page), each is shown whole: at a
     fixed height most widths would cut off the right of the screen, the widget's Schedule
     button with it. The shots are all one size, so the cards still line up. */
  .steps.shots .media img { height: auto; aspect-ratio: 720 / 432; }
  .step .num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--font-body); font-weight: 700; font-size: 18px; margin: 0 8px 12px; }
  .step h3 { font-size: 24px; margin: 0 8px 8px; line-height: 1.16; }
  .step p { font-size: 17px; color: var(--text); margin: 0 8px; }
  /* The trust note under the steps: narrower than the row of cards and centred under
     it (the Oct 29 notes ask for 70-80% of the row), so it reads as a footnote to all
     three steps rather than a fourth card. Once the cards stack it takes the full width.
     The gap above is the cards' own. */
  .how .callout { max-width: 75%; margin-top: 28px; }
  .how .callout p { font-size: 17px; }

  /* ---------- Widget spotlight ----------
     Not a picture of the widget: the widget. The frame holds the real booking page,
     the one a client's visitors get, in its demo mode (example people, and a booking
     that stays in the browser). So it can never drift from the product, and the
     floating button in this page's corner opens the same page. The bar on top plays
     the client's website, which is why it looks like a browser and not like Refology. */
  .spotlight { background: var(--bg); }
  .wg { max-width: 1060px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
        border-radius: 24px; overflow: hidden; box-shadow: 0 34px 80px rgba(var(--shadow-rgb),.13), 0 2px 8px rgba(var(--shadow-rgb),.06); }
  .wg-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface-alt); }
  .wg-dots { display: flex; gap: 7px; flex: none; }
  .wg-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); display: block; }
  .wg-url { flex: 1; min-width: 0; max-width: 360px; background: var(--surface); border-radius: var(--radius-pill); padding: 6px 14px;
            font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wg-tag { margin-left: auto; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
            color: var(--muted); background: var(--surface); padding: 6px 12px; border-radius: var(--radius-pill); }
  /* Sized by the page inside it, which reports its own height; this is only the size
     it holds until that first message arrives. */
  .wg-frame { display: block; width: 100%; height: 700px; border: 0; background: var(--surface); }
  .wg-caption { text-align: center; font-size: 15px; font-weight: 600; color: var(--muted); max-width: 40em; margin: 22px auto 0; }

  /* ---------- Transparency ----------
     A short stop between the widget and Why Refology: a centred headline, one paragraph,
     three points in a row. Compact on purpose (the Oct 29 notes ask for it simple, and
     on the law firm page for no more card grids), so a point is an icon and a few
     words, with a sentence under them only where the page has one to say. */
  .transparency { background: var(--surface-alt); padding: 80px 0; }
  .transparency .sec-head { max-width: 1000px; margin-bottom: 44px; }  /* .sec-head.wide's width: at 3.5em the title needs ~920px for one line */
  .transparency .sec-head p { font-size: 18px; }
  .points { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 980px; margin: 0 auto; text-align: center; }
  .points li { display: flex; flex-direction: column; align-items: center; }
  .points .pi { width: 48px; height: 48px; border-radius: 50%; background: var(--c-forest); color: var(--accent);
                display: flex; align-items: center; justify-content: center; flex: none; margin-bottom: 14px; }
  .points h3 { font-size: 17px; line-height: 1.35; max-width: 22ch; }
  .points p { font-size: 15.5px; color: var(--text); margin-top: 6px; max-width: 32ch; }

  /* ---------- Why Refology ---------- */
  .why { background: var(--surface-tint); }
  .why .eyebrow { background: var(--surface); }  /* its default tint IS this background */
  .why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
  .card { background: var(--surface); border-radius: var(--radius-lg); padding: 34px 32px; }
  .card .ico { width: 56px; height: 56px; border-radius: 18px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
  .card.g .ico { background: var(--c-forest); color: var(--accent); }
  .card h3 { font-size: 22px; margin-bottom: 10px; line-height: 1.2; }
  .card p { font-size: 17px; color: var(--text); }

  /* ---------- Comparison ---------- */
  .cmp-wrap { max-width: 920px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-lg); padding: 20px; overflow: hidden; }
  table.cmp { width: 100%; border-collapse: separate; border-spacing: 0; }
  table.cmp th, table.cmp td { text-align: left; padding: 18px 22px; font-size: 17px; }
  table.cmp thead th { font-weight: 700; font-size: 15px; color: var(--muted); }
  table.cmp thead th.brand-col { color: var(--ink); background: var(--accent); border-radius: var(--radius) var(--radius) 0 0; }
  table.cmp td:first-child { font-weight: 600; color: var(--ink); }
  table.cmp td.old { color: var(--muted); }
  table.cmp td.new { color: var(--ink); font-weight: 700; background: var(--surface-tint); }
  table.cmp tbody tr:nth-child(even) td:first-child,
  table.cmp tbody tr:nth-child(even) td.old { background: var(--surface-alt); }
  table.cmp tbody tr:last-child td.new { border-radius: 0 0 var(--radius) var(--radius); }
  .cta-strip { text-align: center; margin-top: 64px; }
  .cta-strip h3 { font-size: clamp(24px, 3vw, 30px); line-height: 1.25; margin-bottom: 24px; }

  /* ---------- Pricing ----------
     Two plans of equal weight: same size, same colour, the brand green as the only
     outline. Neither is dressed up as the favourite, since nobody has chosen either yet.
     Reference payments are not a plan and sit underneath as a note, full width. */
  .pricing { background: var(--surface-alt); }
  .tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 960px; margin: 0 auto; }
  .tier { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius-lg); padding: 36px 34px; display: flex; flex-direction: column; }
  .tier .tname { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); }
  .tier .price { font-family: var(--font-display); font-weight: var(--w-display); font-size: 48px; letter-spacing: -.02em; color: var(--ink); margin: 10px 0 4px;
                 display: flex; align-items: center; flex-wrap: wrap; gap: 0 14px; }
  .tier .price .per { font-family: var(--font-body); font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
  .tier .save { font-family: var(--font-body); font-size: 13.5px; font-weight: 700; letter-spacing: 0; line-height: 1.2;
                background: var(--accent); color: var(--on-accent); padding: 6px 12px; border-radius: var(--radius-pill); }
  .tier .billed { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
  .tier .tdesc { font-size: 16px; color: var(--muted); margin-bottom: 24px; }

  /* Monthly or annual. Both prices are in the page; the section's .annual class, set by
     the script from the switch below, picks which one shows. The switch is two real radio
     buttons under a pill, so the arrow keys and a screen reader get a radio group without
     any script; the labels are what is seen. The saving sits to its right, hung off the
     pill rather than centred with it, so the switch itself stays on the cards' centre line. */
  .pricing .sec-head { margin-bottom: 34px; }
  .billing { display: flex; justify-content: center; margin: 0 auto 36px; }
  .seg-wrap { position: relative; display: inline-flex; align-items: center; }
  .seg { display: inline-flex; background: var(--surface); border-radius: var(--radius-pill); padding: 4px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
  .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
  .seg label { cursor: pointer; padding: 10px 22px; border-radius: var(--radius-pill); font-weight: 700; font-size: 15px; line-height: 1.2;
               color: var(--muted); transition: background .18s ease, color .18s ease; user-select: none; }
  .seg label:hover { color: var(--ink); }
  .seg input:checked + label { background: var(--solid); color: var(--on-solid); }
  .seg input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
  .save-chip { position: absolute; left: 100%; margin-left: 12px; white-space: nowrap; font-weight: 700; font-size: 13.5px; line-height: 1.2;
               background: var(--accent); color: var(--on-accent); padding: 7px 13px; border-radius: var(--radius-pill); }
  .pricing .p-a { display: none; }
  .pricing.annual .p-m { display: none; }
  .pricing.annual span.p-a { display: inline-block; }
  .pricing.annual div.p-a { display: block; }
  .tier .incl { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
  .tier ul { list-style: none; margin-bottom: 28px; flex: 1; }
  .tier li { display: flex; align-items: flex-start; gap: 11px; font-size: 16px; font-weight: 500; margin-bottom: 13px; color: var(--text); }
  .tier li strong { font-weight: 800; color: var(--ink); }
  .tier li svg { color: var(--c-ok); flex-shrink: 0; margin-top: 3px; }
  .tier li .li-sub { display: block; font-size: 14.5px; color: var(--muted); margin-top: 3px; }
  .tier li .li-sub strong { color: var(--text); }
  /* The two lists are the same but for their last line, so that line is picked out: the
     eye finds the difference without reading both. The box grows outwards on negative
     side margins, which keeps its tick in line with the ticks above it. */
  .tier li.li-hl { background: var(--surface-tint); border-radius: 14px; padding: 11px 13px; margin-left: -13px; margin-right: -13px; }
  .tier li.li-hl .li-sub { color: var(--text); }
  .tier-btn { width: 100%; background: var(--solid); color: var(--on-solid); border: none; cursor: pointer; font-family: var(--font-body); font-weight: 700; font-size: 16px; padding: 15px 20px; border-radius: var(--radius-pill); transition: background .18s ease; }
  .tier-btn:hover { background: var(--solid-hover); }
  .tier-form { display: none; flex-direction: column; gap: 10px; margin-top: 14px; }
  .tier-msg { font-size: 15px; font-weight: 700; margin-top: 12px; }
  .pricing .callout { max-width: 960px; }

  /* ---------- FAQ ----------
     <details>, so every answer opens with the keyboard and without script. */
  .faq { background: var(--bg); }
  .faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
  .faq-item { background: var(--surface-alt); border-radius: 18px; }
  .faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
                      padding: 20px 24px; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.35; color: var(--ink); border-radius: 18px; }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
  .faq-item p { padding: 0 24px 22px; font-size: 16.5px; color: var(--text); max-width: 64ch; }
  .faq-item p a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
  /* Plus that becomes a minus: the vertical bar turns flat when the item opens. */
  .pm { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); }
  .pm::before, .pm::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px;
                            background: var(--ink); transform: translate(-50%, -50%); transition: transform .2s ease; }
  .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
  .faq-item[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }

  /* ---------- Close ---------- */
  .close { background: var(--surface-dark); text-align: center; }
  /* The leading is the chip's, again, and here it needs more than the hero's. The chip is
     on the SECOND line, under "questions", and a filled box is taller than the line it
     sits on: at 1.24 its top edge cut through the tail of the q above it. 1.44 leaves the
     tail clear of the box with room to spare. The hero gets away with less because its
     chip is on the first line, with nothing above to run into. */
  .close h2 { font-family: var(--font-display); font-weight: var(--w-display); color: var(--ink-on-dark); font-size: var(--title); line-height: 1.44; letter-spacing: -.02em; max-width: 18ch; margin: 0 auto 20px; }
  /* No .hl override here: the chip is bright-green-on-forest by default, which is
     already what this dark section needs. */
  /* The law firm page's closing line is twice the length of the main page's. At 18ch it
     took three lines with its chip split over two of them; at 27ch it takes two, the
     chip whole on the second, and kept whole from 600px up as in the hero. */
  [data-page="legal"] .close h2 { max-width: 27ch; }
  @media (min-width: 600px) { [data-page="legal"] .close h2 .hl { white-space: nowrap; } }
  .close .sub { color: var(--text-on-dark); font-size: 20px; max-width: 34em; margin: 0 auto 36px; }
  .close .ctas { margin-bottom: 30px; }

  /* ---------- Footer ---------- */
  footer { background: var(--bg); padding: 56px 0 40px; border-top: 1px solid var(--line); }
  .foot-inner { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 26px 40px; }
  .foot-brand { font-size: 24px; color: var(--ink); }
  .foot-built { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--muted); }
  /* Columns of links, each under a small heading: Refology's own pages, then one link per
     industry page that exists. */
  .foot-cols { display: flex; gap: 26px 72px; flex-wrap: wrap; padding-top: 4px; }
  .foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 140px; }
  .foot-h { font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); margin-bottom: 2px; }
  .foot-col a { color: var(--muted); font-weight: 600; font-size: 16px; }
  .foot-col a:hover, .foot-col a[aria-current] { color: var(--ink); }
  .foot-copy { width: 100%; font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; margin-top: 10px; }

  /* ---------- The arrow to our own widget ----------
     A pen-drawn dotted line that loops once and lands on the widget bubble. Fixed, like
     the bubble, and placed from the bubble's real position at runtime, so a different
     side or height in the embed snippet moves the arrow with it.

     The dots are real circles, laid along an invisible guide path by the script, each
     popping in a little after the one before, so the line draws itself from its start.
     Animating a dotted stroke's own dash offset would only slide the dots along; drawing
     it through an animated mask would work, but some browsers never repaint one. The
     head lands last. */
  .wg-arrow { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; overflow: visible;
              color: var(--c-ink); opacity: 0; transition: opacity .4s ease; }
  .wg-arrow.on { opacity: 1; }
  .wg-arrow-guide { fill: none; stroke: none; }
  .wg-arrow circle { fill: currentColor; opacity: 0; transform-box: fill-box; transform-origin: center; }
  .wg-arrow-head { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
  .wg-arrow.drawn circle { animation: wgDot .22s ease-out forwards; }   /* each dot's delay is set inline */
  .wg-arrow.drawn .wg-arrow-head { animation: wgHead .3s ease-out forwards; animation-delay: var(--head-delay, 1.3s); }
  @keyframes wgDot { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
  @keyframes wgHead { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) {
    .wg-arrow circle, .wg-arrow-head { opacity: 1; }
    .wg-arrow.drawn circle, .wg-arrow.drawn .wg-arrow-head { animation: none; }
  }

  /* ---------- Dialogs: Talk to Us, and exit intent ---------- */
  .modal { position: fixed; inset: 0; z-index: 100; background: var(--scrim); display: none; align-items: center; justify-content: center; padding: 20px; }
  .modal.show { display: flex; }
  .modal-card { background: var(--surface); border-radius: var(--radius-lg); max-width: 460px; width: 100%; padding: 44px 38px; position: relative; text-align: center; }
  .modal-card h3 { font-size: 30px; color: var(--ink); margin-bottom: 12px; }
  .modal-card p { font-size: 17px; color: var(--text); margin-bottom: 24px; }
  .modal-form { display: flex; flex-direction: column; gap: 11px; }
  .modal-close { position: absolute; top: 18px; right: 20px; background: none; border: none; font-size: 26px; color: var(--muted); cursor: pointer; line-height: 1; }
  .modal-card .modal-subtext { font-size: 14px; font-weight: 600; color: var(--muted); margin: 12px 0 0; }
  .msg-ok { color: var(--c-ok); } .msg-err { color: var(--c-danger); }
  .modal-card .msg-ok { color: var(--c-ok); } .modal-card .msg-err { color: var(--c-danger); }

  /* ---------- Responsive ---------- */
  @media (max-width: 900px) {
    .steps { grid-template-columns: 1fr; }
    /* One card to a row is wide and short: a product shot would show its top strip and
       none of what it is there to show. Shown whole instead, up to a height. */
    .step .media.ui img { height: auto; aspect-ratio: 720 / 432; max-height: 360px; }
    .tiers { grid-template-columns: 1fr; }
    .how .callout { max-width: none; }
  }
  /* Just above the phone menu, the centred links and the buttons get tight: close the gaps. */
  @media (max-width: 1000px) and (min-width: 769px) {
    .nav-mid { gap: 22px; }
    .nav-end { gap: 16px; }
  }
  @media (max-width: 768px) {
    .nav-inner { display: flex; justify-content: space-between; }
    .nav-links { display: none; }
    .nav-links.open { display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; background: var(--c-white); padding: 22px 26px; gap: 18px; box-shadow: var(--shadow); }
    .nav-links.open .nav-mid, .nav-links.open .nav-end { flex-direction: column; align-items: flex-start; gap: 18px; }
    .nav-toggle { display: block; }
    section { padding: 66px 0; }
    .hero + section { padding-top: 92px; }
    .hero + section::before { height: 30px; }
    .hero { padding: 128px 0 70px; }
    .hero .sub { font-size: 18px; }
    .checks { flex-direction: column; align-items: flex-start; gap: 10px; width: fit-content; margin-left: auto; margin-right: auto; }
    .sec-head { margin-bottom: 40px; }
    .sec-head p { font-size: 17.5px; }
    .why-grid { grid-template-columns: 1fr; }
    .transparency { padding: 56px 0; }
    .points { grid-template-columns: 1fr; gap: 24px; }
    .card { padding: 28px 24px; }
    .wg { border-radius: 20px; margin: 0 -12px; }   /* every pixel counts for the rows inside */
    .wg-bar { padding: 10px 12px; gap: 10px; }
    .wg-dots { display: none; }
    .cmp-wrap { padding: 8px; }
    table.cmp th, table.cmp td { padding: 13px 10px; font-size: 14.5px; }
    table.cmp thead th { font-size: 13px; }
    .tier { padding: 30px 24px; }
    .callout { padding: 24px 20px; gap: 16px; }
    .billing { margin-bottom: 28px; }
    .close .sub { font-size: 18px; }
    .foot-inner { flex-direction: column; }
    .foot-cols { gap: 26px 48px; }
  }
  /* A phone has no room to hang the saving off the switch: it joins the row instead,
     and the two centre as a pair. */
  @media (max-width: 520px) {
    .seg-wrap { gap: 10px; }
    .save-chip { position: static; margin-left: 0; }
  }
