/* gethexxy.ca — Hexxy's landing page.
   The brief's visual system: warm off-white surfaces, charcoal type, and the
   UI yellow #FFC83D spent only on actions and emphasis. Inter throughout.
   The original lockup is placed, never recoloured — its #F5B800 and #263245
   are the logo's, and nothing here touches them. */
:root {
  /* surfaces, light to dark */
  --paper: #fdfcfa;        /* the warm off-white the page sits on */
  --paper-2: #f4f5f7;      /* the brief's light grey, for banded sections */
  --white: #ffffff;
  --char: #202127;         /* body charcoal */
  --char-deep: #17181b;    /* the dark plate */
  /* ink */
  --text: #202127;
  --text-2: #4b4d57;       /* 7.0:1 on --paper */
  --text-3: #6a6d78;       /* 4.9:1 on --paper — the lightest text used */
  --rule: #e4e4e8;
  --rule-2: #d3d4da;
  /* the one accent */
  --yolk: #ffc83d;
  --yolk-ink: #6b4a00;     /* yellow is never the only signal: this is the
                              readable ink that rides on it, 6.1:1 on #FFC83D */
  --yolk-wash: #fff7e3;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gut: clamp(20px, 5vw, 48px);
  --col: 1140px;
  --bar: 76px;
  /* Type is sized in rem so the reader's own font-size setting
     actually enlarges the page — px would ignore it. */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 16px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure, figcaption { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid #1a1b1f; outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--col); margin: 0 auto; padding: 0 var(--gut); }
.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus {
  position: fixed; top: 12px; left: 12px; z-index: 80;
  padding: 12px 18px; border-radius: 10px;
  background: var(--char-deep); color: #fff; font-weight: 600; text-decoration: none;
}

/* ─────────── type scale ─────────── */
/* The headings are sized in rem, so the reader's own 200% setting doubles
   them while the column stays put — at 320px that leaves a single long word
   ("Everything", "departments") wider than the page. Breaking the word is
   the lesser evil: a hyphen where the dictionary allows one, and a hard
   break as the guarantee that nothing ever scrolls sideways. */
.h-hero, .h2, .h3, .h4 { overflow-wrap: break-word; hyphens: auto; }
.h-hero {
  font-weight: 700; font-size: clamp(2.5rem, 7.2vw, 5.375rem); line-height: 1.02;
  letter-spacing: -.035em; text-wrap: balance; color: var(--char-deep);
}
.h2 { font-weight: 700; font-size: clamp(1.75rem, 4.1vw, 3rem); line-height: 1.1; letter-spacing: -.028em; text-wrap: balance; color: var(--char-deep); }
.h3 { font-weight: 700; font-size: clamp(1.4375rem, 2.7vw, 2.0625rem); line-height: 1.18; letter-spacing: -.022em; text-wrap: balance; color: var(--char-deep); }
.h4 { font-weight: 650; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.3; letter-spacing: -.012em; color: var(--char-deep); }
.eyebrow {
  font-weight: 600; font-size: 0.7812rem; line-height: 1.3;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: 18px;
}
.sec-lede { margin-top: 18px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--text-2); max-width: 54ch; }
.sec-head { max-width: 42ch; }

/* ─────────── actions ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1.0312rem/1.1 var(--sans); letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn-yolk {
  background: var(--yolk); color: var(--yolk-ink);
  box-shadow: 0 1px 2px rgba(32, 33, 39, .16), 0 10px 24px -12px rgba(107, 74, 0, .5);
}
.btn-yolk:hover { background: #ffd460; }
@media (prefers-reduced-motion: no-preference) { .btn-yolk:hover { transform: translateY(-1px); } }
.btn-sm { padding: 10px 18px; font-size: 0.9062rem; }
.btn-lg { padding: 17px 32px; font-size: 1.0938rem; }
.textlink {
  font-weight: 600; font-size: 1.0312rem; color: var(--char-deep);
  text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 4px; text-decoration-color: var(--yolk);
}
.textlink:hover { text-decoration-color: var(--char-deep); }

/* ─────────── the bar ─────────── */
/* The bar grows rather than overflows. At 320px with the reader's text at
   200% the logo and the one action no longer fit on a single line, so the
   row is allowed to wrap onto a second — which is why this is a min-height
   and not a height. */
.bar {
  position: sticky; top: 0; z-index: 40; min-height: var(--bar);
  background: rgba(253, 252, 250, .88);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.bar-in {
  max-width: var(--col); margin: 0 auto;
  padding: 10px var(--gut); min-height: var(--bar);
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 32px;
}
.bar-mark { display: flex; flex: 0 0 auto; }
.bar-mark img { height: 46px; width: auto; }
.bar-nav { display: flex; gap: 28px; margin-left: auto; }
.bar-nav a { font-weight: 500; font-size: 0.9688rem; color: var(--text-2); text-decoration: none; }
.bar-nav a:hover { color: var(--char-deep); text-decoration: underline; text-underline-offset: 4px; }
/* On a phone: the logo and the one next step. No menu to wrestle. */
@media (max-width: 820px) {
  .bar-nav { display: none; }
  .bar-cta { margin-left: auto; }
}

/* ─────────── sections ─────────── */
section { padding: clamp(64px, 9vw, 128px) 0; }
.hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
/* One restrained hexagon hint, behind everything, decorative only. */
.hero::after {
  content: ""; position: absolute; right: -10%; top: -20%;
  width: min(620px, 58vw); aspect-ratio: 1; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(255, 200, 61, .22), transparent 72%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-lede {
  margin-top: 26px; max-width: 34ch;
  font-weight: 450; font-size: clamp(1.1875rem, 2.3vw, 1.5625rem); line-height: 1.5;
  letter-spacing: -.012em; color: var(--text-2);
}
.hero-acts { margin-top: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.topics {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 10px;
  font-weight: 600; font-size: 0.7812rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3);
}
/* Chips rather than dot-separated words: when the row wraps on a phone a
   separator would be left stranded at the start of the new line. */
.topics span {
  padding: 7px 14px; border: 1px solid var(--rule-2); border-radius: 999px;
  background: var(--white);
}

/* ─────────── the three examples ─────────── */
.what .sec-head { margin-bottom: clamp(44px, 6vw, 72px); }
.ex {
  display: grid; grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(38px, 5vw, 60px) 0; border-top: 1px solid var(--rule);
}
.ex:last-child { border-bottom: 1px solid var(--rule); }
.ex-flip .ex-copy { order: 2; }
.ex-num {
  font-weight: 600; font-size: 0.7812rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 16px;
}
.ex-say { margin-top: 18px; font-size: clamp(1.0625rem, 1.6vw, 1.2188rem); line-height: 1.6; color: var(--text-2); max-width: 40ch; }
/* The human step is the point of each example, so it is marked — with a rule
   and weight, not with colour alone. */
.ex-who {
  margin-top: 20px; padding-left: 16px; border-left: 3px solid var(--yolk);
  font-weight: 600; font-size: 1.0312rem; line-height: 1.5; color: var(--char-deep); max-width: 36ch;
}
/* The captures are of the real app, which is dark. Rather than recolour the
   product to suit a light page, each one sits in a dark bezel — presentation
   around the screenshot, never a change to the pixels inside it. */
.bezel {
  padding: clamp(8px, 1.1vw, 14px); border-radius: 18px;
  background: linear-gradient(180deg, #2b2d35, var(--char-deep));
  border: 1px solid #0c0d10;
  box-shadow: 0 2px 4px rgba(32,33,39,.08), 0 28px 56px -30px rgba(32,33,39,.55);
}
.bezel img { border-radius: 10px; width: 100%; }
.ex-shot figcaption { margin-top: 14px; font-size: 0.8438rem; color: var(--text-3); }
@media (max-width: 880px) {
  /* Phones get one order for every example: question, explanation, image. */
  .ex { grid-template-columns: 1fr; gap: 26px; }
  .ex-flip .ex-copy { order: 0; }
}

/* ─────────── four roles ─────────── */
.roles { background: var(--char-deep); color: #fff; }
.roles .h2 { color: #fff; }
.roles .eyebrow { color: #a9abb6; }
.roles .sec-head { margin-bottom: 0; }
.role-list { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: #32343c; border: 1px solid #32343c; border-radius: 14px; overflow: hidden; }
.role-list li { background: var(--char-deep); padding: clamp(24px, 3vw, 34px); }
.role-list h3 { font-weight: 650; font-size: 1.125rem; letter-spacing: -.01em; color: var(--yolk); margin-bottom: 10px; }
.role-list p { font-size: 0.9688rem; line-height: 1.55; color: #c9cad1; }
@media (max-width: 1040px) { .role-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .role-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .role-list { grid-template-columns: 1fr; } }

/* ─────────── the four stages ─────────── */
.stages { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.stages li { padding-top: 22px; border-top: 2px solid var(--char-deep); }
.stages li + li { border-top-color: var(--rule-2); }
.stage-n { font-weight: 600; font-size: 0.7812rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.stages p:last-child { margin-top: 10px; font-size: 0.9688rem; line-height: 1.6; color: var(--text-2); }
@media (max-width: 880px) { .stages { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stages { grid-template-columns: 1fr; } }

/* ─────────── the boundary ─────────── */
.bound { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.bound-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.bound-list { display: flex; flex-direction: column; gap: 14px; }
.bound-list li {
  padding: 16px 20px 16px 48px; position: relative;
  background: var(--white); border: 1px solid var(--rule); border-radius: 12px;
  font-weight: 500; font-size: 1.0312rem; line-height: 1.5; color: var(--char-deep);
}
/* The tick is drawn, not a character: a bullet glyph would be read out. */
.bound-list li::before {
  content: ""; position: absolute; left: 20px; top: 50%;
  width: 14px; height: 8px; margin-top: -6px;
  border-left: 2.5px solid var(--char-deep); border-bottom: 2.5px solid var(--char-deep);
  transform: rotate(-45deg);
}
@media (max-width: 880px) { .bound-in { grid-template-columns: 1fr; } }

/* ─────────── what it connects to ─────────── */
.sys-grid { margin-top: clamp(40px, 5vw, 60px); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 22px); }
.sys {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--white); border: 1px solid var(--rule); border-radius: 14px;
}
.sys p { font-size: 0.9688rem; line-height: 1.55; color: var(--text-2); }
/* "Live today" is not carried by colour alone — it is the word itself, in a
   filled chip; the others are outlined and say what they need from you. */
.tag {
  margin-top: auto; padding: 6px 13px; border-radius: 999px;
  font-weight: 600; font-size: 0.7812rem; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--rule-2); color: var(--text-3); background: var(--paper);
  white-space: nowrap;
}
.tag-live { background: var(--yolk); border-color: var(--yolk); color: var(--yolk-ink); }
@media (max-width: 980px) { .sys-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sys-grid { grid-template-columns: 1fr; } }

/* ─────────── the demo form ─────────── */
.demo { background: var(--yolk-wash); border-top: 1px solid #f0e3c4; }
.demo-head { max-width: 46ch; }
.demo-form {
  margin-top: clamp(32px, 4vw, 46px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px clamp(18px, 2.2vw, 26px);
  padding: clamp(24px, 3.2vw, 40px);
  background: var(--white); border: 1px solid #ecd9a9; border-radius: 18px;
}
.demo-form .wide { grid-column: 1 / -1; }
.demo-form label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 0.9688rem; color: var(--char-deep); }
.demo-form .lab { display: inline-flex; align-items: baseline; gap: 7px; }
.demo-form small { font-weight: 500; font-size: 0.8125rem; color: var(--text-3); }
.demo-form input, .demo-form textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px;
  border: 1px solid var(--rule-2); background: var(--paper);
  font: 400 1.0312rem/1.5 var(--sans); color: var(--text);
}
.demo-form textarea { resize: vertical; min-height: 110px; }
.demo-form input:focus-visible, .demo-form textarea:focus-visible { background: var(--white); }
.form-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form-status { font-weight: 500; font-size: 0.9688rem; color: var(--text-2); }
/* A refusal is never colour alone — the text says what went wrong, and the
   rule beside it is the second signal. */
.form-status.is-bad { color: #8a2a15; font-weight: 600; padding-left: 12px; border-left: 3px solid #8a2a15; }
/* Off-screen rather than display:none: a bot reading the DOM still finds it. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done {
  margin-top: clamp(32px, 4vw, 46px); padding: clamp(28px, 3.4vw, 42px);
  background: var(--white); border: 1px solid #ecd9a9; border-radius: 18px;
}
.form-done h3 { font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.5rem); letter-spacing: -.018em; color: var(--char-deep); }
.form-done p { margin-top: 12px; font-size: 1.0312rem; line-height: 1.6; color: var(--text-2); max-width: 52ch; }
.fine { margin-top: 20px; font-size: 0.9375rem; line-height: 1.6; color: var(--text-2); max-width: 60ch; }
.fine a { color: var(--char-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--yolk); }
@media (max-width: 680px) { .demo-form { grid-template-columns: 1fr; } .form-acts .btn { width: 100%; } }

/* ─────────── foot ─────────── */
.foot { padding: clamp(48px, 6vw, 76px) 0; background: var(--white); border-top: 1px solid var(--rule); }
.foot img { height: 54px; width: auto; }
.foot-line { margin-top: 20px; font-weight: 650; font-size: 1.1875rem; letter-spacing: -.012em; color: var(--char-deep); }
.foot-meta { margin-top: 12px; font-size: 0.9688rem; color: var(--text-2); }
.foot-meta a, .foot-why a { color: var(--char-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-2); }
.foot-meta a:hover, .foot-why a:hover { text-decoration-color: var(--char-deep); }
.foot-why { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 0.875rem; line-height: 1.65; color: var(--text-3); max-width: 76ch; }
.foot-why strong { color: var(--text-2); }
.foot-why code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.8125rem; }
.foot-top { margin-top: 24px; }

/* ─────────── enlarged text (200%) and narrow phones ─────────── */
@media (max-width: 380px) {
  :root { --gut: 18px; }
  .h-hero { font-size: clamp(2.125rem, 10vw, 2.75rem); }
  .hero-acts { gap: 12px; }
  .hero-acts .btn, .hero-acts .textlink { width: 100%; text-align: center; }
}
/* Nothing on this page needs hover, motion or sound to be understood; this
   only removes the decorative movement. */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media print {
  .bar { display: none; }
  body { background: #fff; }
}
