/* Shared by the Discover, Deliver and Demonstrate pages.
   Brand: tokens from dashboard-redesign-brief.md §1 and the live site's system.
   No rounded corners. Orange #ff5b04 for marks, shapes and large display only;
   #d24600 for orange text. Sentence-case labels with a square dot. */
@font-face { font-family: "Suisse Intl"; src: url("../fonts/SuisseIntl-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Suisse Intl"; src: url("../fonts/SuisseIntl-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Suisse Intl"; src: url("../fonts/SuisseIntl-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --orange: #ff5b04; --orange-text: #d24600; --orange-tint: #ffe6d6; --orange-ink: #a63a00;
  --ink: #233038; --ink-700: #4a5054; --ink-500: #667175; --ink-200: #ced3d4; --ink-100: #e5e7e9;
  --cream: #f7f5f0; --sand: #f1ede4; --sand-200: #e0d9c9;
  --teal: #245358; --teal-card: #2d5b5f; --teal-tint: #dcebec;
  --pad: 80px; --max: 1280px;
  --font: "Suisse Intl", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sunset: radial-gradient(50% 62% at 62% -8%, #ff1744 0%, rgba(255,23,68,.7) 30%, rgba(255,23,68,0) 72%),
    radial-gradient(65% 75% at 0% 108%, #ffb03a 0%, rgba(255,176,58,.55) 38%, rgba(255,176,58,0) 72%),
    radial-gradient(45% 55% at 100% 100%, #ff9a2e 0%, rgba(255,154,46,0) 70%),
    linear-gradient(165deg, #ff6a12 0%, var(--orange) 55%, #ff7d22 100%);
}
@media (max-width: 1100px) { :root { --pad: 40px; } }
@media (max-width: 640px) { :root { --pad: 16px; } }

* { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light; opacity: .55; }
.grain > * { position: relative; z-index: 1; }

.label { display: inline-flex; align-items: flex-start; gap: 8px; font-size: clamp(16px, 1.39vw, 20px); line-height: 1.5; }
.label::before { content: ""; width: 6px; height: 6px; background: currentColor; flex: 0 0 auto; margin-top: calc(.75em - 3px); }
.label.o::before { background: var(--orange); }
@media (max-width: 640px) { .label { gap: 6px; } .label::before { width: 4px; height: 4px; margin-top: calc(.75em - 2px); } }
.h-display { font-weight: 400; font-size: clamp(36px, 4.8vw, 68px); line-height: 1.04; letter-spacing: -0.015em; }
.h-section { font-weight: 400; font-size: clamp(24px, 2.92vw, 42px); line-height: 1.25; letter-spacing: -0.01em; }
.heading { display: flex; flex-direction: column; gap: 12px; }
.lede { font-size: 18px; line-height: 1.5; color: var(--ink-700); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; font-size: 16px; line-height: 24px; padding: 10px 18px; background: #fff; color: var(--ink); white-space: nowrap; transition: transform .25s, box-shadow .25s, background .25s; }
.btn svg { width: 20px; height: 20px; transition: transform .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: rgba(35,48,56,.45) 0 10px 24px -12px; }
.btn:hover svg { transform: translateX(3px); }
.btn:focus-visible, .tlink:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.tlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.tlink svg { width: 18px; height: 18px; transition: transform .25s; }
.tlink:hover svg { transform: translateX(3px); }
@media (max-width: 640px) { .btn { font-size: 14px; line-height: 20px; padding: 8px 14px; } }

.logo { display: inline-flex; align-items: center; gap: .32em; font-weight: 500; font-size: 33px; letter-spacing: -0.03em; line-height: 1; color: #fff; }
.logo svg { width: .82em; height: .82em; }
.logo.dark { color: var(--ink); }
.logo.dark svg { color: var(--orange); }
.mk-flag { transform-box: fill-box; animation: flagIn .9s cubic-bezier(.2,.8,.2,1) .35s both; }
@keyframes flagIn { 0% { transform: translate(-45%, -45%); opacity: 0; } }

/* ---------- Header and sub-page hero ---------- */
.hero { background: var(--sunset); background-color: var(--orange); color: #fff; position: relative; overflow: hidden; }
.hero-shape { position: absolute; left: var(--pad); right: var(--pad); top: 104px; height: 900px; max-width: var(--max); margin: 0 auto; background: rgba(255,255,255,.16); mix-blend-mode: soft-light; pointer-events: none; z-index: 0;
  clip-path: polygon(0 0, 44.3% 0, 65.2% 20.2%, 80.5% 1%, 100% 25.3%, 80.5% 51.2%, 100% 75.8%, 100% 100%, 0 100%, 0 70%, 19% 45.5%, 0 20.2%); animation: fadeIn 1.4s ease .1s both; }
header.site { display: flex; align-items: center; justify-content: space-between; height: 104px; gap: 24px; }
header.site nav { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 15px; }
header.site nav a:not(.btn) { padding: 6px 0; border-bottom: 2px solid transparent; }
header.site nav a:not(.btn):hover { border-bottom-color: rgba(255,255,255,.7); }
header.site nav a[aria-current="page"] { border-bottom-color: #fff; }
.hero-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 48px 0 104px; }
.hero-body .label { margin-bottom: 18px; }
.hero-body p { font-weight: 500; font-size: 18px; line-height: 1.45; max-width: 540px; margin-top: 22px; }
.hero-body .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-body > div:first-child > * { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.hero-body > div:first-child > :nth-child(2) { animation-delay: .12s; }
.hero-body > div:first-child > :nth-child(3) { animation-delay: .24s; }
.hero-body > div:first-child > :nth-child(4) { animation-delay: .36s; }
.hero-visual { animation: riseBig 1.2s cubic-bezier(.2,.7,.2,1) .25s both; }
.crumbs { font-size: 14px; opacity: .9; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) {
  .hero-body { grid-template-columns: 1fr; gap: 36px; padding: 24px 0 64px; }
  header.site nav a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  header.site { height: 56px; }
  header .logo { font-size: 21px; }
  .hero-shape { top: 64px; height: 540px; }
  .hero-body p { font-size: 15px; }
}

/* ---------- Sections ---------- */
.sec { padding: 112px 0; }
.sec.cream { background: var(--cream); }
.sec.sand { background: var(--sand); }
.sec.ink { background: var(--ink); color: #fff; }
.sec.ink .lede { color: #c9d1d5; }
.sec.teal { background: var(--teal); color: #fff; }
.sec.teal .lede { color: #dcebec; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; }
.sec-head .lede { max-width: 520px; font-size: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
@media (max-width: 960px) { .sec-head { flex-direction: column; align-items: flex-start; } .split { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 640px) { .sec { padding: 60px 0; } .sec-head { margin-bottom: 32px; } .lede { font-size: 15px; } }

/* Numbered steps, revealed one after another */
.steps-n { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: st; }
.steps-n li { list-style: none; background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.steps-n .n { width: 40px; height: 40px; display: grid; place-items: center; background: var(--orange-tint); color: var(--orange-ink); font-weight: 600; font-size: 14px; }
.steps-n h3 { font-weight: 500; font-size: 19px; line-height: 1.3; }
.steps-n p { font-size: 15px; line-height: 1.5; color: var(--ink-700); }
.sand .steps-n li { background: var(--cream); }
@media (max-width: 1100px) { .steps-n { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps-n { grid-template-columns: 1fr; gap: 8px; } .steps-n li { padding: 18px; } }

/* Feature cards that flip to explain (the live site's tiles) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; perspective: 900px; }
.feat { display: grid; text-align: left; cursor: pointer; background: var(--sand); border: 2px solid transparent; padding: 22px; color: var(--ink); min-height: 200px;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr); transition: transform .45s cubic-bezier(.2,.7,.2,1), border-color .3s, background .4s, color .4s; }
.cream .feat { background: var(--sand); }
.sand .feat { background: var(--cream); }
.feat .face { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-height: 0; transition: opacity .35s, transform .45s cubic-bezier(.2,.7,.2,1); }
.feat .n { display: block; font-size: 14px; line-height: 1.5; }
.feat .t { display: block; font-weight: 500; font-size: 20px; line-height: 1.3; margin-top: 6px; }
.feat .d { display: block; font-size: 15px; line-height: 1.5; }
.feat .q { width: 30px; height: 25px; }
.feat .back { opacity: 0; transform: translateY(10px); pointer-events: none; }
.feat.open { background: var(--ink); color: #fff; }
.feat.open .front { opacity: 0; transform: translateY(-10px); }
.feat.open .back { opacity: 1; transform: none; transition-delay: .1s; }
.feat:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) { .cards .feat:not(.open):hover { transform: perspective(900px) rotateY(-14deg) rotateX(4deg) rotateZ(-1.5deg) scale(.96); border-color: var(--sand-200); } }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { gap: 8px; } .feat { padding: 14px; min-height: 170px; border-width: 0; } .feat .t { font-size: 16px; } .feat .d { font-size: 13.5px; } .feat .q { width: 24px; height: 20px; } }

/* Ticked list */
.ticks { list-style: none; border-top: 1px solid var(--ink-100); }
.ticks li { padding: 14px 0; border-bottom: 1px solid var(--ink-100); display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 16px; line-height: 1.45; }
.ticks li::before { content: ""; width: 8px; height: 8px; background: var(--orange); margin-top: 8px; }
.ticks b { font-weight: 500; }
.ticks span { color: var(--ink-700); }
.ink .ticks, .ink .ticks li { border-color: rgba(255,255,255,.14); }
.ink .ticks span { color: #c9d1d5; }

/* Panels used in mock-ups */
.panel { background: #fff; color: var(--ink); box-shadow: rgba(80,20,0,.25) 0 24px 50px -26px; padding: 18px; }
.panel h6 { font-size: 13px; font-weight: 500; color: var(--ink-700); margin-bottom: 12px; display: flex; justify-content: space-between; gap: 12px; }

/* Next page */
.next { background: var(--ink); color: #fff; }
.next a { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 56px 0; }
.next small { display: block; font-size: 15px; color: #c9d1d5; }
.next b { display: block; font-weight: 400; font-size: clamp(26px, 3.2vw, 46px); letter-spacing: -0.01em; margin-top: 6px; }
.next svg { width: 48px; height: 48px; color: var(--orange); transition: transform .3s; }
.next a:hover svg { transform: translateX(8px); }

/* ---------- CTA ---------- */
.cta { background: var(--sunset); background-color: var(--orange); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.cta-shape { position: absolute; left: var(--pad); right: var(--pad); top: 80px; height: 420px; max-width: var(--max); margin: 0 auto; background: rgba(255,255,255,.4); mix-blend-mode: soft-light; opacity: 0; transform: scale(.97);
  clip-path: polygon(0 0, 46.5% 0, 62.4% 40.5%, 80% 1.4%, 100% 50.4%, 100% 100%, 0 100%); transition: opacity 1.2s, transform 1.2s; }
.cta.in .cta-shape { opacity: 1; transform: none; }
.cta .inner { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; }
.cta .heading { align-items: center; max-width: 760px; }
@media (max-width: 640px) { .cta { padding: 16px 0; } .cta-shape { top: 16px; height: 340px; } .cta .inner { min-height: 340px; padding: 24px 0; } }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #fff; padding: 42px 0; position: relative; overflow: hidden; border-top: 1px solid rgba(255,255,255,.1); }
footer .deco { position: absolute; inset: 0; pointer-events: none; }
.foot { display: flex; justify-content: space-between; gap: 40px; min-height: 360px; position: relative; }
.foot-l, .foot-r { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.foot-l { width: 480px; }
.foot-r { width: 540px; }
.foot-links { display: flex; gap: 40px; }
.foot-links ul { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 20px; }
.foot-links h2 { font-size: 13px; font-weight: 500; color: #c9d1d5; margin-bottom: 4px; }
.foot-links a:hover, .legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot .logo { font-size: 51px; }
.foot .logo svg { color: var(--orange); }
.foot-r .tag { font-size: clamp(24px, 2.92vw, 42px); line-height: 1.08; letter-spacing: -0.01em; }
.legal { display: flex; flex-direction: column; gap: 16px; font-size: 12px; line-height: 20px; color: #c9d1d5; }
.legal div { display: flex; gap: 22px; flex-wrap: wrap; row-gap: 8px; }
.foot-btn { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
@media (max-width: 760px) {
  footer { padding: 32px 0; }
  .foot { flex-direction: column; min-height: 0; gap: 28px; }
  .foot-l, .foot-r { display: contents; }
  .foot-r .tag { order: 1; }
  .foot-links { order: 2; flex-wrap: wrap; gap: 28px; }
  .foot-l .logo { order: 3; margin-top: 40px; font-size: 34px; }
  .legal { order: 4; gap: 6px; }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { 0% { opacity: 0; transform: translateY(24px); } }
@keyframes riseBig { 0% { opacity: 0; transform: translateY(80px); } }
@keyframes fadeIn { 0% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; transition: none !important; }
  .reveal, .cta-shape { opacity: 1 !important; transform: none !important; }
}
