/* Chetaa CRM website: the Chetaa ERP site's design (chetaerp.com), same colours and layout. */
:root {
  /* Same colours as the Chetaa app and its login page: yellow ground, cream panels, black text, blue buttons */
  --navy: #0b3b5c; --navy-2: #0f4c75; --ink: #111111; --muted: #3d3a2c; --line: #e3cf6e;
  --blue: #066fd1; --blue-2: #0559a8;
  --amber: #f5a524; --amber-2: #e08e0b; --amber-soft: #ffe58a;
  --teal: #0d7f74; --teal-soft: #d9f2e6; --rose-soft: #fde2d8; --sky-soft: #dbeafb;
  --bg: #fff2a8; --bg-2: #fffbe0; --card: #fffbe0; --panel: #fffbe0;
  --radius: 14px; --shadow: 0 18px 50px rgba(90, 70, 0, .14), 0 2px 6px rgba(90, 70, 0, .08);
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; font: 17px/1.65 Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg) }
img { max-width: 100%; height: auto; display: block }
a { color: var(--blue) }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px }
.hand { font-family: Caveat, cursive; font-weight: 700 }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--panel);
  border-bottom: 1px solid var(--line) }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 22px }
.brand img { width: 36px; height: 36px }
.menu { display: flex; gap: 26px; flex: 1 }
.menu a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 16px }
.menu a:hover, .menu a.on { color: var(--ink) }
.acts { display: flex; gap: 10px; align-items: center }
.signin { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 10px }
.burger { display: none; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; font-size: 18px; cursor: pointer }
@media (max-width: 880px) {
  .menu { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--panel); border-bottom: 1px solid var(--line); padding: 8px 16px 16px }
  .menu.open { display: flex }
  .menu a { padding: 12px 0; border-bottom: 1px solid var(--line) }
  .burger { display: block }
  .acts { margin-left: auto }
  .acts .btn { display: none }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 13px 24px; font-weight: 600;
  text-decoration: none; font-size: 16px; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap }
.btn-main { background: var(--blue); color: #fff }
.btn-main:hover { background: var(--blue-2) }
.btn-gold { background: var(--amber); color: var(--navy) }
.btn-gold:hover { background: var(--amber-2) }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--card) }
.btn-line:hover { border-color: var(--blue) }
.btn-sm { padding: 9px 16px; font-size: 15px }

/* marker underline like a highlighter stroke */
.mark { position: relative; white-space: nowrap; z-index: 0 }
.mark::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: .02em; height: .38em; z-index: -1;
  background: var(--amber); border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%; transform: rotate(-1.2deg); opacity: .85 }

/* hero */
.hero { padding: 72px 0 40px; text-align: center; position: relative; overflow: hidden }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; max-width: 900px; margin: 0 auto 18px }
.hero .lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 720px; margin: 0 auto 30px }
.hero .lead b { color: var(--ink) }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--ink) }
.note { position: absolute; color: var(--teal); font-size: 26px; line-height: 1.1; transform: rotate(-6deg) }
.note svg { display: block; margin-top: 4px }
@media (max-width: 1000px) { .note { display: none } }

/* screenshot in a browser frame */
.shot { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line) }
.shot .bar { height: 30px; background: #f3e7a6; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line) }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6c46a }
.shot .bar span { margin-left: 10px; font-size: 12px; color: var(--muted); background: var(--card); border-radius: 6px; padding: 1px 10px }
.hero .shot { max-width: 1060px; margin: 48px auto 0 }
.phone { max-width: 290px; border-radius: 34px; border: 9px solid #1d2531; box-shadow: var(--shadow); overflow: hidden; margin: 0 auto }

/* blobs behind images */
.blobbed { position: relative }
.blobbed::before { content: ""; position: absolute; inset: 8% -4% -6% 10%; border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%; z-index: -1 }
.b-amber::before { background: var(--amber-soft) } .b-teal::before { background: var(--teal-soft) }
.b-rose::before { background: var(--rose-soft) } .b-sky::before { background: var(--sky-soft) }

/* sections */
section { padding: 88px 0 }
section.alt { background: var(--bg-2) }
.center { text-align: center }
.kicker { color: var(--teal); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800 }
.sub { color: var(--muted); font-size: 19px; max-width: 680px }
.center .sub { margin: 0 auto }

.row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center }
.row.flip > :first-child { order: 2 }
.row > * { min-width: 0 }
.row h2 { font-size: clamp(28px, 3.4vw, 40px) }
.row p { color: var(--muted); font-size: 18px }
.stat { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 }
.stat b { font-size: 44px; font-weight: 800; color: var(--blue) }
.stat span { color: var(--muted) }
@media (max-width: 900px) { .row { grid-template-columns: 1fr; gap: 36px } .row.flip > :first-child { order: 0 } section { padding: 64px 0 } }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); font-size: 17px }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat }

/* chat bubbles over a screenshot */
.chat { position: absolute; right: -10px; bottom: -28px; width: min(360px, 80%); display: grid; gap: 8px; font-size: 14.5px }
.chat div { padding: 10px 14px; border-radius: 14px; box-shadow: 0 8px 24px rgba(15,35,60,.15) }
.chat .u { background: var(--blue); color: #fff; justify-self: end; border-bottom-right-radius: 4px }
.chat .a { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px }
@media (max-width: 600px) { .chat { position: static; width: auto; margin-top: 14px } }

/* callout with a blob */
.callout { display: flex; gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 36px 40px }
.callout .em { font-size: 64px; line-height: 1 }
.callout h3 { font-size: 26px; margin-bottom: 6px }
.callout p { margin: 0; color: var(--muted) }
.keys { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px }
kbd { font: 600 14px ui-monospace, Menlo, monospace; background: var(--card); border: 1px solid var(--line); border-bottom-width: 3px;
  border-radius: 8px; padding: 4px 9px; color: var(--blue) }
@media (max-width: 600px) { .callout { flex-direction: column; text-align: center; padding: 28px 20px } .keys { justify-content: center } }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 36px; margin-top: 52px }
.grid h3 { font-size: 19px; margin: 12px 0 4px }
.grid p { color: var(--muted); margin: 0; font-size: 16px }
.ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 24px }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr } }

/* app tiles */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px }
.app { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink);
  transition: transform .15s, box-shadow .15s }
.app:hover { transform: translateY(-3px); box-shadow: var(--shadow) }
.app b { display: block; margin: 12px 0 2px; font-size: 17px }
.app span { color: var(--muted); font-size: 15px }
@media (max-width: 900px) { .apps { grid-template-columns: 1fr 1fr } }

/* closing band */
.band { background: var(--navy); color: #fff; text-align: center; padding: 84px 0; position: relative; overflow: hidden }
.band h2 { color: #fff }
.band p { color: #c6d6e5; font-size: 19px; margin: 0 0 28px }
.band .hand { color: var(--amber); font-size: 24px; margin-top: 18px }

/* page header for inner pages */
.phead { padding: 64px 0 24px; text-align: center }
.phead h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800 }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 36px }
.plan { border: 1px solid var(--line); border-radius: 20px; padding: 32px; background: var(--card); box-shadow: var(--shadow) }
.plan.best { border: 2px solid var(--blue) }
.plan h3 { font-size: 22px }
.price { font-size: 40px; line-height: 1.1; font-weight: 800; color: var(--blue); margin: 8px 0 18px }
.price small { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); font-weight: 500 }
.plan { display: flex; flex-direction: column }
.plan > p:last-child { margin-top: auto !important; padding-top: 26px; margin-bottom: 0 }

/* manual */
.manual { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 24px 16px 80px }
.toc { position: sticky; top: 90px; align-self: start; font-size: 15px }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--muted) }
.toc a:hover { background: var(--card); color: var(--ink) }
.doc { min-width: 0 }
.doc h2 { font-size: 30px; margin-top: 56px; padding-top: 12px; border-top: 1px solid var(--line) }
.doc h2:first-child { margin-top: 0; border: 0 }
.doc h3 { font-size: 20px; margin-top: 28px }
.doc p, .doc li { color: #26241a }
.doc code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 15px }
.doc table { border-collapse: collapse; width: 100%; font-size: 15.5px; margin: 12px 0 }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top }
.doc th { background: var(--bg-2) }
.tip { background: var(--teal-soft); border-radius: 12px; padding: 14px 18px; margin: 16px 0 }
@media (max-width: 900px) { .manual { grid-template-columns: 1fr } .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px } .doc table { display: block; overflow-x: auto } }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 18px 0 }
summary { font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--muted) }
details[open] summary::after { content: "–" }
details p { color: var(--muted); margin: 10px 0 0 }

/* contact */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 36px }
.card { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--card) }
.card h3 { font-size: 19px }
.card p { color: var(--muted); margin: 0 0 14px }

/* footer */
footer { background: #0a1a2a; color: #a7b4c3; padding: 64px 0 28px; font-size: 15px }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px }
footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px }
footer a { color: #a7b4c3; text-decoration: none; display: block; padding: 3px 0 }
footer a:hover { color: #fff }
footer .brand { color: #fff; margin-bottom: 12px }
footer .legal { border-top: 1px solid #1d3247; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px }
@media (max-width: 800px) { footer .cols { grid-template-columns: 1fr 1fr } }

/* demo login box */
.creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px }
.creds span { background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 14px; font-size: 16px }
.creds b { font-family: ui-monospace, Menlo, monospace; color: var(--blue); margin-left: 6px }
