/*
   ══ goals ══════════════════════════════════════════════════════════════════════════════════

   goals.html's own CSS, lifted verbatim out of its inline <style> block. ADR-0063 / CODE-01.
   Rule order is byte-for-byte what it was inline.
   Rules shared by all 24 marketing pages are in glance-base.css, linked immediately before
   this file. Both sit exactly where the <style> block used to, so glance-motion.css and
   glance-identity.css still come after and still win.
*/

:root{
    /* WHITE IS THE DEFAULT. It used to be dark unless the OS asked for light, which meant
       most visitors met a near-black page. Dark is a choice, not one we make for them. */
    --bg:#f5f2ea; --panel:#fffdf8; --panel2:#ece5d7; --text:#191712; --muted:#5f5a50;
    --line:#ddd6c8; --accent:#c5311d; --accent2:#c08a2e; --good:#1f7a52;
    --shadow:0 10px 40px rgba(20,40,90,.10);
  }
  @media (prefers-color-scheme: light){
    :root:not([data-theme]){--bg:#f5f2ea;--panel:#fffdf8;--panel2:#ece5d7;--text:#191712;--muted:#5f5a50;
      --line:#ddd6c8;--shadow:0 10px 40px rgba(20,40,90,.10);}
  }

  body{margin:0;font:16px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
    background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}
  .wrap{max-width:760px;margin:0 auto;padding:0 22px}
  a{color:inherit}
  .btn{display:inline-block;background:linear-gradient(135deg,#c5311d,#a8321f);
    color:#fff;font-weight:600;padding:15px 30px;border-radius:12px;text-decoration:none;border:0;
    box-shadow:var(--shadow);transition:transform .15s;cursor:pointer;font:inherit;font-weight:600}
  .btn:hover{transform:translateY(-2px)}

  /* top nav (matches index.html) */
  .nav{display:flex;align-items:center;justify-content:space-between;
    max-width:960px;margin:0 auto;padding:18px 22px}
  .brand{display:flex;align-items:center;gap:11px;text-decoration:none}
  .brand .nm{font-weight:700;font-size:22px;letter-spacing:-.03em}
  .nav-links{display:flex;align-items:center;gap:20px;font-size:14px}
  .nav-links a{color:var(--muted);text-decoration:none}

  .nav-links a:hover{color:var(--text)}
  .nav-links a.active{color:var(--text)}

  @media(max-width:560px){.nav-links .hideSm{display:none}}

  header{padding:44px 0 14px;text-align:center}
  .eyebrow{color:var(--ink-accent2);font-weight:600;letter-spacing:.08em;text-transform:uppercase;font-size:13px}
  h1{font-size:clamp(30px,5.6vw,48px);line-height:1.08;margin:16px 0 12px;letter-spacing:-.02em}
  .sub{font-size:clamp(17px,2.6vw,20px);color:var(--muted);max-width:600px;margin:0 auto}

  section{padding:22px 0}
  .cat{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);
    font-weight:700;margin:26px 0 10px}

  details{background:var(--panel);border:1px solid var(--line);border-radius:14px;
    padding:2px 20px;margin-bottom:12px;transition:border-color .15s}
  details[open]{border-color:var(--ink-accent2)}
  summary{list-style:none;cursor:pointer;padding:17px 0;font-weight:600;font-size:16.5px;
    display:flex;align-items:center;justify-content:space-between;gap:14px}
  summary::-webkit-details-marker{display:none}
  summary .chev{flex:none;width:20px;height:20px;color:var(--muted);transition:transform .2s}
  details[open] summary .chev{transform:rotate(180deg);color:var(--ink-accent2)}
  details .a{padding:0 0 18px;color:var(--muted);font-size:15.5px}
  details .a a{color:var(--ink-accent2);text-decoration:none}

  .cta{background:var(--panel);border:1px solid var(--line);border-radius:18px;
    padding:30px;text-align:center;margin-top:12px;box-shadow:var(--shadow)}
  .cta h2{margin:0 0 8px;font-size:22px}
  .cta p{margin:0 0 18px;color:var(--muted)}

  footer{padding:50px 0 70px;font-size:14px}
  footer a{color:var(--ink-accent2)}
  .nav-links .more{position:relative;color:var(--muted);cursor:pointer;display:inline-flex;align-items:center;gap:4px}
  .nav-links .more:hover,.nav-links .more:focus-within{color:var(--text)}
  .nav-links .more .chev{font-size:11px}
  .nav-links .more .menu{position:absolute;right:0;top:160%;background:var(--panel);border:1px solid var(--line);
    border-radius:12px;padding:7px;display:none;flex-direction:column;min-width:176px;box-shadow:var(--shadow);z-index:30}
  .nav-links .more:hover .menu,.nav-links .more:focus-within .menu{display:flex}
  .nav-links .menu a{padding:9px 12px;border-radius:8px;white-space:nowrap;color:var(--muted)}
  .nav-links .menu a:hover{background:var(--panel2);color:var(--text)}

  /* ---- responsive pass: phones & tablets ---- */
  @media(max-width:900px){
    .nav{padding:12px 16px}
    .wrap{padding:0 16px}
    section{padding:36px 0}
  }
  @media(max-width:640px){
    /* The nav collapses to brand + Log in; the footer carries the full sitemap. */
    .nav-links{gap:10px}
    header{padding:36px 0 40px}
    h1{font-size:clamp(28px,8vw,38px)}
    .sub{font-size:17px}
    .cta-row{flex-direction:column;align-items:stretch}
    .cta-row .btn{text-align:center;width:100%}
    .cards>*{flex-basis:100%;max-width:100%}
    .kpis{grid-template-columns:repeat(2,1fr)}
    .tiers,.plans,.jobs,.cmp-grid{grid-template-columns:1fr}
    table{font-size:14px}
    .mock{padding:14px}
  }
  @media(max-width:400px){
    .kpis{grid-template-columns:1fr}
  }

  /* Text-only ink. The brand mint (#c08a2e) measures 1.7:1 on white and the blue
     3.2:1 — both fail as text. Buttons keep the bright brand colours; text uses these. */

  @media (prefers-color-scheme: light){
    :root{--ink-accent:#c5311d;--ink-accent2:#a8321f;--muted:#4d566a}
  }
  .eyebrow{color:var(--ink-accent2)}

  /* Explicit theme choice beats the system preference. */
  :root[data-theme="light"]{--bg:#f5f2ea;--panel:#fffdf8;--panel2:#ece5d7;--text:#191712;
    --muted:#4d566a;--line:#ddd6c8;--shadow:0 10px 40px rgba(20,40,90,.10);
    --ink-accent:#c5311d;--ink-accent2:#a8321f}
  :root[data-theme="dark"]{--ink-accent:#d9705e;--ink-accent2:#c08a2e;--good:#5fcf9a;
    --bg:#17140f;--panel:#211d16;--panel2:#2a251c;--text:#f2ede2;
    --muted:#a89e8c;--line:#38322a;--shadow:0 10px 40px rgba(0,0,0,.45);
    --ink-accent:#c5311d;--ink-accent2:#c08a2e}

  /* Phone tap targets. A link 16px tall is a miss waiting to happen — Apple and Google both
     say ~44px. The text stays the same size; the TAPPABLE BOX grows. */

  /* Tap targets on a phone (WCAG 2.5.5). Vertical padding on a link grows the TAPPABLE BOX
     without moving anything: on an inline link it doesn't change the line height at all, and
     on a standalone one it lifts a 28px target to a thumb-sized 44px. Buttons already have
     their own padding and are excluded. */

  /* "Log in" in the nav was 33px — one pixel under the threshold, and it's the single most
     important link on the page for a returning user. */

  /* Tablets show the FULL nav (a phone collapses it to brand + Log in), so those links need
     tap targets too — and the phone-only breakpoint never reached them. Touch is touch,
     whether the screen is 390px or 834px. */

  .cmp-shot{margin-top:26px}
  .cmp-shot.narrow{max-width:640px;margin-left:auto;margin-right:auto}
  .shotcap{margin-top:12px;text-align:center;color:var(--muted);font-size:14px;line-height:1.6}

  .tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);
    border-radius:14px;background:var(--gc-card)}
  .cmp-table{border-collapse:collapse;width:100%;min-width:840px;font-size:14px}
  .cmp-table th,.cmp-table td{padding:13px 14px;text-align:left;border-bottom:1px solid var(--line);
    vertical-align:top;line-height:1.5}
  .cmp-table thead th{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);
    background:var(--bg);position:sticky;top:0}
  .cmp-table tbody th{font-weight:650;color:var(--text);width:210px}
  .cmp-table .us{background:rgba(197,49,29,.07)}
  .cmp-table thead th.us{color:var(--ink-accent);font-weight:800}
  .cmp-table td.yes{color:var(--good);font-weight:600}
  .cmp-table td.no{color:var(--muted)}
  .cmp-table td.part{color:var(--muted)}
  .cmp-table tr:last-child td,.cmp-table tr:last-child th{border-bottom:0}
  html[data-theme="dark"] .cmp-table td.yes{color:#c08a2e}
  .foot{margin-top:16px;color:var(--muted);font-size:14px;line-height:1.65;max-width:70ch}

  .ai3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:22px}
  .aicard{border:1px solid var(--line);border-radius:14px;background:var(--gc-card);padding:18px}
  .aicard.us{border-color:var(--gc-brand);box-shadow:0 10px 30px rgba(197,49,29,.12)}
  .aicard .tag{display:inline-block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;
    color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:3px 9px;margin-bottom:10px}
  .aicard.us .tag{color:#fff;background:var(--gc-brand);border-color:var(--gc-brand)}
  .aicard h3{margin:0 0 8px;font-size:17px}
  .aicard p{color:var(--muted);line-height:1.65;font-size:14.5px;margin:0}
  .aicard b{color:var(--text)}
  @media (max-width:900px){.ai3{grid-template-columns:1fr}}

  .promise{margin-top:26px;border:1px solid var(--line);border-left:3px solid var(--gc-brand);
    border-radius:0 14px 14px 0;background:var(--gc-card);padding:20px 22px}
  .promise h3{margin:0 0 12px;font-size:17px}
  .promise ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px}
  .promise li{color:var(--muted);line-height:1.6}
  .promise li b{color:var(--text)}
  .promise p{margin:14px 0 0;color:var(--muted);font-size:14px}
  /* ── Footer ──────────────────────────────────────────────────────────────
     It listed six links and left out Iris, Compare, Reviews and the release notes — half the
     site. A footer is where people go when the page they're on didn't answer them; it should be
     the map, not a formality. */

  /* The column headers were the same muted grey as the links beneath them, so the footer read as
     one undifferentiated list of sixteen things. A header has to look like a header. */

  /* Spans the full footer width — it was capped at 78ch and stopped short of the
     columns above it, which made it read as a stray note pinned to the side rather
     than part of the footer. */

  /* Phones. The footer had collapsed to ONE centred column: sixteen links stacked down the screen
     with 32px of air between them, so the last thing anyone saw before leaving was a minute of
     scrolling. Most people are on a phone, so this is the layout that matters most.

     Two columns, left-aligned, tight. A footer is a map you scan, not prose you read — and you
     cannot scan a centred single column, because your eye has no edge to run down. Tap targets
     stay at 44px; the spacing comes out of the padding around the text, not the text itself. */

  /* ── Language switcher ───────────────────────────────────────────────────
     Same place and weight as the theme toggle, because that's what it is: a preference you flip. */

  /* Arabic mirrors the document; these are the few things that were hard-coded to the left. */

  /* ── Headings ─────────────────────────────────────────────────────────────
     Appended last, so it wins on every page regardless of what that page declared. */
  h2{font-size:clamp(27px,4.4vw,40px)!important;font-weight:800!important;line-height:1.15;
     letter-spacing:-.025em}
  h3{font-weight:700;letter-spacing:-.015em}
  section{padding-top:58px}
  .eyebrow{font-size:12px;font-weight:750;letter-spacing:.1em;text-transform:uppercase;
     color:var(--ink-accent2)}
  @media (max-width:600px){
    h2{font-size:clamp(24px,7vw,30px)!important}
    section{padding-top:44px}
  }
  /* The footer has its own surface, so its links need their own green — the page's accent drops to
     4.23:1 against it. Contrast is a relationship, not a property of a colour. */
  /* NOT the CTA — it's a filled blue button, and colouring its label green put mint text on blue
     at 3.26:1. A rule that says "every link in the footer" also means the one that isn't a link. */
  footer a:not(.ftcta){color:var(--good)}
  footer .ftmail{color:var(--good)}
  html[data-theme="dark"] footer a:not(.ftcta){color:#c08a2e}
  html[data-theme="dark"] footer .ftmail{color:#c08a2e}
  footer .ftcta{color:#fff}
  footer .ftcol a{color:var(--muted)}
  footer .ftcol a:hover{color:var(--text)}
  footer .ftbase a{color:var(--muted)}
  /* The nav CTA — the one thing we want a stranger to do, and it had no button anywhere. */
  .nav-cta{background:var(--gc-brand,#c5311d);color:#fff!important;border-radius:10px;
    padding:9px 15px;font-weight:650;text-decoration:none;min-height:44px;
    display:inline-flex;align-items:center}
  .nav-cta:hover{filter:brightness(1.08)}
  .nav-login{font-weight:600}
  @media (max-width:900px){
    .nav-cta{padding:8px 12px}
  }
  /* ── Nav dropdowns ────────────────────────────────────────────────────────
     Fourteen flat links made everything equally unimportant; five hid pages people want. Three
     groups, each holding what belongs together, and the descriptions do the work a bare word can't:
     "Iris" means nothing until it says "she reads your bill and builds the dashboard". */
  .navdrop{position:relative}
  .navtop{display:inline-flex;align-items:center;gap:5px;border:0;background:none;cursor:pointer;font-weight:650;
    color:inherit;font:inherit;font-size:15px;padding:8px 2px;min-height:44px}
  .navtop i{width:6px;height:6px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;
    transform:rotate(45deg) translateY(-1px);transition:transform .18s ease;opacity:.6}
  .navdrop[data-open="1"] .navtop i{transform:rotate(-135deg) translateY(-1px)}
  .navtop:focus-visible{outline:2px solid var(--gc-brand,#c5311d);outline-offset:2px;border-radius:6px}

  .navmenu{position:absolute;z-index:70;top:calc(100% + 10px);inset-inline-start:0;width:308px;
    background:var(--gc-card,var(--panel));border:1px solid var(--line);border-radius:14px;
    padding:7px;box-shadow:0 20px 54px rgba(8,12,20,.20);
    opacity:0;visibility:hidden;transform:translateY(-6px);
    /* visibility is NOT transitioned. If it fades in over 160ms, the links inside are not
       focusable at the instant the browser computes tab order — so a keyboard user pressing Tab
       sails straight past the menu and lands somewhere else entirely, and the menu shuts behind
       them. It flips instantly; only the opacity and the movement are animated. */
    transition:opacity .16s ease,transform .16s ease}
  .navdrop[data-open="1"] .navmenu{opacity:1;visibility:visible;transform:none}
  .navmenu a{display:block;padding:10px 12px;border-radius:10px;text-decoration:none;min-height:44px}
  .navmenu a:hover{background:var(--bg)}
  .navmenu a:focus-visible{outline:2px solid var(--gc-brand,#c5311d);outline-offset:-2px}
  .navmenu b{display:block;font-size:14.5px;color:var(--text);font-weight:650}
  .navmenu span{display:block;font-size:12.5px;color:var(--muted);line-height:1.45;margin-top:2px}

  /* On a phone the menu is already a stack — a dropdown inside a drawer is a maze. Everything
     shows, indented, and you scroll. */
  .navburger{display:none;background:var(--panel2);border:1px solid var(--line);color:var(--text);
    width:34px;height:34px;border-radius:10px;cursor:pointer;flex:0 0 34px;
    align-items:center;justify-content:center}
  .navburger:hover{border-color:var(--ink-accent)}
  .navburger svg{display:block}
  .navburger .x{display:none}
  .nav[data-mobopen="1"] .navburger .bars{display:none}
  .nav[data-mobopen="1"] .navburger .x{display:block}
  @media (max-width:900px){
    .nav{flex-wrap:wrap;row-gap:10px}
    .navburger{display:inline-flex}
    .nav-links{order:9;flex-basis:100%;flex-direction:column;align-items:stretch;gap:2px;
      display:none}
    .nav[data-mobopen="1"] .nav-links{display:flex}
    .nav-links .nav-login{margin-top:8px}
    .navdrop{width:100%}
    /* Product / Solutions / More stay collapsed and match the real site map — the same
       click-toggle in glance-nav.js that opens the desktop dropdown opens these, just reshaped
       from a floating panel into an inline accordion row. */
    .navtop{display:flex;width:100%;justify-content:space-between;padding:11px 0}
    .navmenu{position:static;width:100%;transform:none;box-shadow:none;border:0;padding:0;
      background:none;max-height:0;overflow:hidden;transition:max-height .25s ease}
    .navdrop[data-open="1"] .navmenu{max-height:600px}
    .navmenu span{display:none}
    .navmenu a{padding:10px 0 10px 14px;min-height:0}
    .nav-links>a:not(.nav-login):not(.nav-cta){color:var(--text);font-weight:650;
      font-size:14.5px;padding:11px 0}
    /* Language + theme aren't menu items — they're page controls. Off the collapsed top bar,
       and only into view at the bottom of the open panel, not stacked in with the links. */
    .langwrap,.themebtn{display:none;order:10;margin-top:8px}
    .nav[data-mobopen="1"] .langwrap{display:block;border-top:1px solid var(--line);
      padding-top:12px;width:100%}
    .nav[data-mobopen="1"] .themebtn{display:inline-grid}
    /* A right-anchored 240px dropdown hanging off a left-hand button runs straight off the left
       edge of a phone — it was opening at left:-166px, so most of the languages couldn't be
       reached at all. At this width it isn't a dropdown; it's a list. */
    .langmenu{position:static;width:100%;box-shadow:none;margin-top:8px}
  }

  /* utilities — one-off inline styles moved here (lint: no-inline-styles) */
  .u-m0a{margin:0 auto}
  .u-mxa{margin-left:auto;margin-right:auto}.u-mt12{margin-top:12px}.u-mt22{margin-top:22px}
  .u-mt44{margin-top:44px}
  .u-mt26a{margin:26px auto 0}.u-mhead30{margin:0 auto 30px}.u-mhead18{margin:0 auto 18px}
  .u-max62{max-width:62ch}

  .u-grid240{display:flex;flex-wrap:wrap;justify-content:center;gap:16px}

  /* utilities-2 — second sweep of one-off inline styles */
  .u-p18{padding:18px}.u-p14{padding:14px}.u-p16v{padding:16px 0}.u-pt34{padding-top:34px}
  .u-mz12{margin:0 0 12px}.u-mz16{margin:0 0 16px}.u-mt18{margin-top:18px}.u-mt10{margin-top:10px}
  .u-ma22{margin:0 auto 22px}.u-ma24{margin:0 auto 24px}.u-m8a22{margin:8px auto 22px}
  .u-td0{text-decoration:none}
  .u-link6{color:var(--ink-accent2);font-weight:600;text-decoration:none}
  .u-fine16{color:var(--muted);font-size:14px;margin-top:16px}
  .u-fine14{color:var(--muted);font-size:14px;margin-top:14px}
  .u-fine13{color:var(--muted);font-size:13px;margin:14px 0 0}
  .u-max640{max-width:640px}
  .u-norm{font-weight:400}.u-mut{color:var(--muted)}.u-fs14{font-size:14px}
  .u-h20{font-weight:700;font-size:20px;margin:0}.u-r7{border-radius:7px}
  .u-stars{color:#e0a33e;letter-spacing:2px}
  /* Rotating hero — a few angles on the same idea, one at a time. */
  .hero-rotate{display:grid;justify-items:center}
  .hero-rotate .hr{grid-column:1;grid-row:1;opacity:0;transform:translateY(.16em);animation:heroCycle 18s cubic-bezier(.4,0,.2,1) infinite}
  .hero-rotate .hr:nth-child(1){animation-delay:0s}
  .hero-rotate .hr:nth-child(2){animation-delay:4.5s}
  .hero-rotate .hr:nth-child(3){animation-delay:9s}
  .hero-rotate .hr:nth-child(4){animation-delay:13.5s}
  @keyframes heroCycle{0%{opacity:0;transform:translateY(.16em)}3%,20%{opacity:1;transform:none}23%,100%{opacity:0;transform:translateY(-.16em)}}
  @media(prefers-reduced-motion:reduce){.hero-rotate .hr{animation:none;opacity:0}.hero-rotate .hr:first-child{opacity:1}}
