/* NuRecord home page. Colors and the brand font follow NuRecord's shared stylesheet in
   nurecord-docs/ui/nurecord.css. */

@font-face {
  font-family: "Exo 2";
  src: url("fonts/exo-2-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --primary: #1f6b64;
  --primary-hover: #17564f;
  --secondary: #12a5a8;
  --secondary-soft: #e3f6f6;
  --soft: #e8f3f0;
  --paper: #f8f9f7;
  --surface: #ffffff;
  --ink: #273b3a;
  --muted: #56645f;
  --line: #dce4df;
  --mark: #d8f1ef;
  --radius: 8px;
  --radius-card: 14px;
  --shadow-1: 0 1px 2px rgb(25 45 43 / .04), 0 2px 6px rgb(25 45 43 / .04);
  --shadow-2: 0 1px 2px rgb(25 45 43 / .05), 0 8px 24px rgb(25 45 43 / .08);
  --shadow-3: 0 2px 6px rgb(25 45 43 / .06), 0 24px 56px rgb(25 45 43 / .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Exo 2", var(--font);
  --wrap: 1120px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { color: var(--ink); background: var(--surface); font-family: var(--font); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-size: 17px; line-height: 1.6; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; border-radius: 4px; }

.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; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 20; padding: 8px 14px; background: var(--primary); color: #fff; border-radius: var(--radius); }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / .86); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgb(220 228 223 / .7); }
.header-row { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-brand); font-weight: 600; font-size: 22px; letter-spacing: -.2px; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: var(--radius); background: var(--primary); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; box-shadow: 0 1px 2px rgb(25 45 43 / .12), 0 6px 18px rgb(31 107 100 / .22); transition: background-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease); }
.button:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 1px 2px rgb(25 45 43 / .12), 0 10px 24px rgb(31 107 100 / .26); }
.button-small { min-height: 40px; padding: 0 16px; font-size: 15px; box-shadow: none; }
.button-small:hover { box-shadow: none; }
.site-nav + .button-small { margin-left: 4px; }
.button-light { background: #fff; color: var(--primary); box-shadow: 0 8px 24px rgb(0 0 0 / .16); }
.button-light:hover { background: var(--secondary-soft); color: var(--primary-hover); }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 120px 0 112px; background:
  radial-gradient(800px 420px at 85% 0%, rgb(18 165 168 / .13), transparent 70%),
  radial-gradient(700px 400px at 0% 100%, rgb(31 107 100 / .07), transparent 70%),
  linear-gradient(180deg, #f3f8f6 0%, var(--surface) 100%); }
.eyebrow, .kicker { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
h1, h2, h3 { font-family: var(--font-brand); font-weight: 600; color: var(--ink); text-wrap: balance; }
.hero-inner { position: relative; }
.hero-mark { position: absolute; right: max(24px, calc((100% - var(--wrap)) / 2 - 40px)); top: 50%; width: 300px; height: auto; transform: translateY(-50%); color: var(--secondary); opacity: .12; pointer-events: none; }
h1 { max-width: 900px; margin-top: 20px; font-size: clamp(38px, 2.2rem + 2.6vw, 66px); line-height: 1.07; letter-spacing: -.02em; }
.lede { margin-top: 28px; max-width: 680px; font-size: clamp(18px, 1rem + .4vw, 21px); line-height: 1.6; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }
.hero-note { margin-top: 28px; font-size: 15px; color: var(--muted); }

/* ---------------------------------------------------------------- sections */
.section { padding: 112px 0; }
.section-tint { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; }
.section-head h2 { margin-top: 12px; font-size: clamp(30px, 1.5rem + 1.3vw, 42px); line-height: 1.15; letter-spacing: -.015em; }
.section-head > p:last-child, .section-head h2 + p { margin-top: 18px; color: var(--muted); font-size: 18px; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.005em; }

/* the Assistant */
.assistant-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 72px; align-items: start; margin-top: 64px; }
.points { display: grid; gap: 32px; padding-top: 8px; }
.points li { padding-left: 20px; border-left: 2px solid var(--soft); }
.points li:hover { border-left-color: var(--secondary); }
.points p { margin-top: 6px; color: var(--muted); }

/* the example answer */
.demo-window { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-3); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--paper); font-family: var(--font-brand); font-weight: 600; font-size: 15px; }
.demo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 4px var(--secondary-soft); }
.demo-body { display: grid; gap: 18px; padding: 24px; font-size: 15.5px; line-height: 1.55; }
.demo-q { justify-self: end; max-width: 86%; padding: 12px 16px; border-radius: 14px 14px 4px 14px; background: var(--primary); color: #fff; }
.demo-a { max-width: 94%; padding: 14px 16px; border-radius: 14px 14px 14px 4px; background: var(--paper); border: 1px solid var(--line); }
.cite { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 5px; border-radius: 6px; background: var(--secondary-soft); color: var(--primary); font-size: 12px; font-weight: 700; text-decoration: none; vertical-align: 2px; box-shadow: inset 0 0 0 1px rgb(18 165 168 / .35); }
.demo-source { position: relative; margin-left: 24px; padding: 16px 18px; border: 1px solid rgb(18 165 168 / .45); border-radius: 12px; background: linear-gradient(180deg, #f6fcfc, #fff); }
.demo-source::before { content: ""; position: absolute; left: -16px; top: -18px; width: 14px; height: 40px; border-left: 2px solid rgb(18 165 168 / .45); border-bottom: 2px solid rgb(18 165 168 / .45); border-bottom-left-radius: 10px; }
.demo-file { display: flex; gap: 12px; align-items: flex-start; color: var(--primary); }
.file-icon { flex: none; margin-top: 1px; }
.demo-filename { font-weight: 600; color: var(--ink); font-size: 14.5px; overflow-wrap: anywhere; }
.demo-page { font-size: 13.5px; color: var(--muted); }
.demo-quote { margin-top: 12px; padding-left: 14px; border-left: 3px solid var(--secondary); font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.65; color: var(--ink); }
mark { background: linear-gradient(transparent 8%, var(--mark) 8%, var(--mark) 92%, transparent 92%); color: inherit; padding: 0 1px; }
figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* regulated work */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.card { padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-1); transition: box-shadow 200ms var(--ease), transform 200ms var(--ease); }
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card-icon { color: var(--primary); margin-bottom: 20px; }
.card p { margin-top: 10px; font-size: 16px; color: var(--muted); }

/* Microsoft setup */
.microsoft-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.facts { display: grid; gap: 22px; margin-top: 36px; }
.facts dt { font-family: var(--font-brand); font-weight: 600; font-size: 18px; }
.facts dd { margin-top: 4px; color: var(--muted); }
.tenant-box { position: relative; padding: 28px; border: 2px dashed #b9cfc9; border-radius: 20px; background:
  radial-gradient(400px 240px at 50% 50%, rgb(18 165 168 / .08), transparent 70%), var(--paper); }
.tenant-label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.tenant-row { display: grid; gap: 0; margin-top: 20px; justify-items: center; }
.node { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 320px; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); font-weight: 600; color: var(--ink); }
.node svg { color: var(--primary); flex: none; }
.node-primary { border-color: rgb(18 165 168 / .6); box-shadow: 0 0 0 4px var(--secondary-soft), var(--shadow-2); }
.link { position: relative; height: 52px; width: 2px; background: linear-gradient(var(--secondary), rgb(18 165 168 / .35)); }
.link span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); white-space: nowrap; }

/* what comes next */
.roadmap { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 64px; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: linear-gradient(90deg, var(--secondary), var(--line) 70%); }
.roadmap li { position: relative; padding-top: 44px; }
.roadmap li::before { content: ""; position: absolute; top: 6px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--secondary); }
.roadmap li:first-child::before { background: var(--secondary); box-shadow: 0 0 0 5px var(--secondary-soft); }
.step { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.roadmap h3 { margin-top: 8px; }
.roadmap h3 + p { margin-top: 8px; color: var(--muted); }

/* call to action */
.cta { padding: 104px 0; background:
  radial-gradient(700px 360px at 80% 0%, rgb(18 165 168 / .35), transparent 70%),
  linear-gradient(135deg, #1f6b64 0%, #18564f 100%); color: #fff; }
.cta-inner { text-align: center; display: grid; justify-items: center; }
.cta h2 { color: #fff; font-size: clamp(30px, 1.5rem + 1.3vw, 42px); line-height: 1.15; letter-spacing: -.015em; }
.cta-inner > p:first-of-type { margin: 16px 0 36px; max-width: 560px; color: rgb(255 255 255 / .86); font-size: 18px; }
.cta-mail { margin-top: 20px; font-size: 15px; color: rgb(255 255 255 / .8); }
.cta-mail a { color: #fff; }
.cta :focus-visible { outline-color: #fff; }

/* footer */
.site-footer { padding: 36px 0 44px; border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.brand-small { font-size: 18px; gap: 8px; margin-right: auto; }

/* ---------------------------------------------------------------- motion, only where wanted */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise 700ms var(--ease) both; }
  .hero-inner > :nth-child(2) { animation-delay: 60ms; }
  .hero-inner > :nth-child(3) { animation-delay: 120ms; }
  .hero-inner > :nth-child(4) { animation-delay: 180ms; }
  .hero-inner > :nth-child(5) { animation-delay: 240ms; }
  /* the headline and lede only move, so they count as painted from the first frame */
  .hero-inner > h1, .hero-inner > .lede { animation-name: lift; }
  .demo-window { animation: rise 900ms 200ms var(--ease) both; }
  .demo mark { background-size: 0% 100%; background-repeat: no-repeat; background-image: linear-gradient(var(--mark), var(--mark)); background-color: transparent; animation: highlight 900ms 900ms var(--ease) forwards; }
  .demo mark + mark { animation-delay: 1300ms; }
  .demo-dot { animation: breathe 3.2s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lift { from { transform: translateY(10px); } to { transform: none; } }
@keyframes highlight { to { background-size: 100% 100%; } }
@keyframes breathe { 50% { box-shadow: 0 0 0 7px var(--secondary-soft); } }

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 1040px) {
  .site-nav { display: none; }
  .hero-mark { display: none; }
  .header-row .button-small { margin-left: auto; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assistant-grid, .microsoft-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .assistant-grid { max-width: 680px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .header-row { height: 60px; gap: 12px; }
  .brand { font-size: 20px; }
  .hero { padding: 72px 0 72px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .text-link { text-align: center; }
  .section { padding: 80px 0; }
  .section-head > p:last-child, .section-head h2 + p { font-size: 17px; }
  .assistant-grid { margin-top: 44px; }
  .demo-body { padding: 16px; }
  .demo-source { margin-left: 14px; }
  .demo-source::before { left: -12px; width: 10px; }
  .cards { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .tenant-box { padding: 20px 16px; }
  .roadmap { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 44px; }
  .roadmap::before { display: none; }
  .roadmap li:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 22px; bottom: -32px; width: 2px; background: linear-gradient(var(--secondary), rgb(18 165 168 / .35)); }
  .roadmap li { padding: 0 0 0 36px; }
  .roadmap li::before { top: 4px; }
  .cta { padding: 80px 0; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

/* the page-not-found page */
.not-found { min-height: calc(100vh - 68px - 105px); display: flex; align-items: center; }
