/* Fonts are served from masatio.com itself: no requests to Google or any other third party.
   Manrope and IBM Plex, SIL Open Font License (fonts/OFL-*.txt). Subset to Latin and Turkish. */
@font-face { font-family: 'Manrope'; src: url('fonts/manrope-var.woff') format('woff'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('fonts/ibm-plex-sans-var.woff') format('woff'); font-weight: 100 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/ibm-plex-mono-500.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/ibm-plex-mono-700.woff') format('woff'); font-weight: 700; font-display: swap; }
/* Masatio Sales CRM pages (/crm/, /sales-crm/).
   Steel navy and safety orange (actions); signal yellow stays for the QR tag and logo,
   Manrope for headings, IBM Plex for text. Orange, green and red are data colours only. */
:root {
  --pine: #13263b; --pine-2: #1a3049; --slate: #1d3550;
  --teal: #b84a08; --teal-hover: #a94306; --mint: #ff8a3d;
  --action: #c94f09; --action-hover: #b84a08;
  --paper: #f3f6f9; --surface: #ffffff; --line: #d9e0e8; --line-2: #c3cdd8;
  --ink: #12202f; --muted: #55657a;
  --on-dark: #eef3f8; --on-dark-2: #a9b8c8; --dark-line: rgba(238, 243, 248, .14);
  --call: #e8590c; --won: #2b8a3e; --won-bg: #e3f4e6; --lost: #c92a2a; --lost-bg: #fbe5e5;
  --focus: #2f8fff; --signal: #ffc61a; --signal-edge: #e0a800;
  --display: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --max: 1200px; --gutter: 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1622; --surface: #12202f; --line: #223347; --line-2: #2f4560;
    --ink: #e7eef6; --muted: #9db0c3; --teal: #ff9a52; --teal-hover: #ffb27a;
    --won: #69db7c; --won-bg: #16301d; --lost: #ff8787; --lost-bg: #3a1c1c; --call: #ff8f52;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1622; --surface: #12202f; --line: #223347; --line-2: #2f4560;
  --ink: #e7eef6; --muted: #9db0c3; --teal: #ff9a52; --teal-hover: #ffb27a;
  --won: #69db7c; --won-bg: #16301d; --lost: #ff8787; --lost-bg: #3a1c1c; --call: #ff8f52;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; line-height: 1.04; }
h3 { font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--surface); color: var(--ink); padding: 8px 12px; }
.skip:focus { left: 8px; }
.lede { margin-top: 18px; max-width: 58ch; font-size: 19px; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px;
  border-radius: 12px; border: 1.5px solid var(--line-2); background: transparent; color: inherit;
  font: 700 16px var(--display); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: currentColor; }
.btn-primary { background: var(--action); border-color: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.dark .btn-primary { background: var(--action); border-color: var(--action); color: #fff; }
.dark .btn-primary:hover { background: #dd5a0c; border-color: #dd5a0c; }
.dark .btn:not(.btn-primary) { border-color: var(--dark-line); }
.dark .btn:not(.btn-primary):hover { border-color: var(--on-dark); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* Dark surfaces: header, hero, contact */
.dark { background: var(--pine); color: var(--on-dark); }
.dark .lede, .dark .muted { color: var(--on-dark-2); }

.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 21px var(--display); text-decoration: none; letter-spacing: -.01em; }
.brand small { font: 500 14px var(--body); color: var(--on-dark-2); letter-spacing: 0; padding-left: 10px; border-left: 1px solid var(--dark-line); }
.mark { position: relative; width: 15px; height: 21px; border-radius: 3px 3px 5px 5px; background: var(--signal); box-shadow: inset 0 0 0 1.5px var(--signal-edge); transform: rotate(-8deg); }
.mark::before { content: ''; position: absolute; top: 4px; left: 4.5px; width: 6px; height: 6px; border-radius: 50%; background: var(--pine); }

.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--pine) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--dark-line); }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.links { display: flex; gap: 24px; margin-left: 12px; }
.links a { font-size: 15px; font-weight: 500; color: var(--on-dark-2); text-decoration: none; }
.links a:hover { color: var(--on-dark); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.lang { font-size: 14px; font-weight: 600; color: var(--on-dark-2); text-decoration: none; padding: 6px 10px; border: 1px solid var(--dark-line); border-radius: 8px; }
.lang:hover { color: var(--on-dark); border-color: var(--on-dark-2); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 0;
  background:
    radial-gradient(70% 90% at 90% 0%, #1f3a5c 0%, transparent 60%),
    var(--pine); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(42px, 5.8vw, 80px); font-weight: 800; line-height: .98; letter-spacing: -.035em; }
.hero h1 .soft { color: inherit; }
.hero .lede { font-size: 20px; max-width: 56ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--on-dark-2); }

/* The stage: desktop screen, phone and the live feed */
.stage { position: relative; margin-top: 72px; height: 520px; perspective: 1800px; }
.screen {
  position: absolute; left: 4%; top: 0; width: min(980px, 80%); margin: 0;
  border-radius: 14px; overflow: hidden; background: #0b1c1b;
  border: 1px solid rgba(238, 243, 248, .18);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .7), 0 0 0 8px rgba(238, 243, 248, .04);
  transform: rotateY(9deg) rotateX(5deg) translateZ(0); transform-origin: left center;
}
.screen-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #10302d; }
.screen-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(238, 243, 248, .22); }
.screen-bar span { margin-left: 12px; font-size: 12px; color: var(--on-dark-2); }
.phone {
  position: absolute; z-index: 3; right: 4%; top: 70px; width: 236px; margin: 0; padding: 8px;
  background: #060d16; border-radius: 34px; border: 1px solid rgba(238, 243, 248, .16);
  box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .8);
}
.phone img { border-radius: 27px; }

.feed { position: relative; z-index: 4; margin-top: 12px; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.feed-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--on-dark-2); padding-left: 4px; }
.feed-head .live { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(255, 138, 61, .7); animation: pulse 2s infinite; }
.entry {
  display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; padding: 14px 16px;
  background: rgba(250, 252, 251, .97); color: #172521; border-radius: 14px;
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .6);
}
.entry .av { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--display); color: #fff; }
.entry b { font-family: var(--display); font-size: 14px; }
.entry p { font-size: 14px; line-height: 1.4; color: #3c4a46; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; margin-right: 4px; }
.pill.won { color: #1f6f31; background: #dcf2e1; }
.pill.lost { color: #a32020; background: #fbe2e2; }
.pill.visit { color: #10302d; background: #dcefeb; }
.pill.call { color: #9a3a05; background: #fde8da; }
.entry.in { animation: drop .6s cubic-bezier(.2, .9, .25, 1.15) both; }
.entry.out { animation: fade .4s ease both; }
@keyframes drop { from { opacity: 0; transform: translateY(-18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 0; transform: translateY(10px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 138, 61, .6); } 70% { box-shadow: 0 0 0 8px rgba(255, 138, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0); } }

/* Sections */
section.block { padding: 112px 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }

/* Loss reasons chart */
.reasons { margin: 0; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.reasons-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.reasons-head h3 { font-size: 18px; }
.reasons-head span { font-size: 14px; color: var(--muted); }
.reasons ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.reasons li { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 15px; }
.reasons li b { font: 700 15px var(--mono); }
.bar { grid-column: 1 / -1; height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--lost); }
.reasons li:first-child .bar i { background: linear-gradient(90deg, var(--lost), color-mix(in srgb, var(--lost) 70%, var(--call))); }
.reasons figcaption { margin-top: 22px; font-size: 14px; color: var(--muted); }
.big-stat { margin-top: 36px; display: flex; gap: 40px; flex-wrap: wrap; }
.big-stat div { display: grid; }
.big-stat b { font: 800 44px/1 var(--display); letter-spacing: -.03em; }
.big-stat b.won { color: var(--won); } .big-stat b.lost { color: var(--lost); }
.big-stat span { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* A week in the CRM */
.week-band { background: var(--surface); border-block: 1px solid var(--line); }
.week { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.week::before { content: ''; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line); }
.week li { position: relative; padding-right: 28px; display: grid; gap: 10px; align-content: start; }
.day { white-space: nowrap; position: relative; z-index: 1; justify-self: start; display: inline-flex; align-items: center; height: 48px; padding: 0 16px; border-radius: 12px; background: var(--paper); border: 1.5px solid var(--line-2); font: 800 16px var(--display); }
.week li:last-child .day { background: var(--pine); border-color: var(--pine); color: var(--on-dark); }
.week h3 { margin-top: 10px; }
.week p { color: var(--muted); font-size: 16px; }

/* Screens */
.tabs { display: inline-flex; gap: 4px; margin-top: 36px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.tabs button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: 700 15px var(--display); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--pine); color: var(--on-dark); }
.shot { margin: 28px 0 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 50px 90px -60px rgba(19, 38, 59, .55); }
.shot .screen-bar { background: color-mix(in srgb, var(--paper) 60%, var(--line)); }
.shot .screen-bar i { background: var(--line-2); }
.shot .screen-bar span { color: var(--muted); }
.shot img.on { animation: show .35s ease both; }
@keyframes show { from { opacity: .3; } to { opacity: 1; } }
.shot-caption { margin-top: 18px; max-width: 70ch; color: var(--muted); font-size: 16px; }

/* Features */
.sub-h { margin-top: 112px; }
.features { margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 56px; }
.features div { display: grid; gap: 8px; align-content: start; padding-top: 22px; border-top: 2px solid var(--ink); }
.features dt { font: 700 19px/1.25 var(--display); letter-spacing: -.01em; }
.features dd { margin: 0; color: var(--muted); font-size: 16px; }

/* Industries */
.industries { margin: 56px 0 0; padding: 0; list-style: none; display: grid; }
.industries li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) auto; gap: 32px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--line-2); }
.industries li:last-child { border-bottom: 1px solid var(--line-2); }
.industries h3 { font-size: 24px; letter-spacing: -.02em; }
.industries p { color: var(--muted); font-size: 16px; }
.tag { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 99px; white-space: nowrap; color: var(--won); background: var(--won-bg); }
.tag.custom { color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent); }

/* Getting started */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.steps li { display: grid; gap: 12px; align-content: start; }
.step-n { font: 800 64px/1 var(--display); letter-spacing: -.04em; color: var(--teal); }
.steps p { color: var(--muted); font-size: 16px; }

/* Contact */
.contact { padding: 112px 0; background:
  radial-gradient(50% 80% at 100% 100%, #1f3a5c 0%, transparent 70%), var(--pine); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; }
.contact h2 { font-size: clamp(36px, 5vw, 64px); }
.contact .cta { margin-top: 0; justify-content: flex-end; }
.contact-note { margin-top: 18px; color: var(--on-dark-2); font-size: 15px; }

.foot { padding: 32px 0 44px; font-size: 14px; color: var(--on-dark-2); border-top: 1px solid var(--dark-line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot .brand { color: var(--on-dark); font-size: 17px; }
.foot-row span:last-child { margin-left: auto; }

@media (max-width: 1080px) {
  .links { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 36px; }
  .phone { width: 200px; }
  .week { grid-template-columns: 1fr; gap: 28px; }
  .week::before { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .week li { grid-template-columns: 104px 1fr; padding-right: 0; gap: 4px 20px; }
  .week .day { grid-row: span 2; }
  .week h3 { margin-top: 12px; }
}
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .hero { padding-top: 48px; }
  .stage { height: auto; margin-top: 40px; padding-bottom: 40px; perspective: none; }
  .screen { position: relative; left: 0; width: 100%; transform: none; }
  .phone { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .feed .entry:nth-child(n+4) { display: none; }
  section.block, .contact { padding: 72px 0; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact .cta { justify-content: flex-start; }
  .features, .steps { grid-template-columns: 1fr; gap: 32px; }
  .industries li { grid-template-columns: 1fr; gap: 10px; }
  .industries .tag { justify-self: start; grid-row: 1; }
  .tabs { display: flex; overflow-x: auto; max-width: 100%; }
  .tabs button { flex: 1 0 auto; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hero .lede { font-size: 17px; }
  .lede { font-size: 17px; }
  .cta .btn { flex: 1 1 100%; }
  .brand small { display: none; }
  .top-actions .btn { display: none; }
  .reasons { padding: 22px; }
  .big-stat { gap: 28px; }
  .foot-row span:last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Footer, shared by every page */
.foot { padding: 64px 0 36px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.foot-brand { display: grid; gap: 14px; align-content: start; justify-items: start; }
.foot-brand p { margin: 0; max-width: 36ch; }
.foot nav { display: grid; gap: 10px; align-content: start; }
.foot nav h2 { margin: 0 0 4px; font: 700 13px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark); }
.foot a { color: var(--on-dark-2); text-decoration: none; }
.foot a:hover { color: var(--on-dark); text-decoration: underline; }
.foot .brand { color: var(--on-dark); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 22px; font-size: 13px;
             background: linear-gradient(var(--dark-line), var(--dark-line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat; }

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
