/* OpenWave shared styles. Brand: orange #E06A08, green #0E8460, black, white. */
:root {
  --orange: #E06A08; --orange-d: #B85405; --orange-t: #FFF4EB;
  --green: #0E8460;  --green-d: #0A6649;  --green-t: #EAF6F1;
  --ink: #111418; --ink-2: #3B414A; --muted: #6B7280;
  --line: #E6E8EB; --bg: #FFFFFF; --bg-2: #FAFAFA;
  --brand: var(--orange); --brand-d: var(--orange-d); --brand-t: var(--orange-t);
  --alt: var(--green); --alt-t: var(--green-t);
  --r: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Bengali", sans-serif;
}
[data-site="export"] { --brand: var(--green); --brand-d: var(--green-d); --brand-t: var(--green-t); --alt: var(--orange); --alt-t: var(--orange-t); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand { color: var(--ink); }
.brand .logo { height: 26px; width: auto; aspect-ratio: 1476 / 224; display: block; }
.site-tag { color: var(--brand); font-weight: 650; font-size: 1rem; padding-left: 12px; border-left: 1px solid var(--line); line-height: 26px; }
.logo-foot { height: 22px; width: auto; aspect-ratio: 1476 / 224; display: block; margin-bottom: 12px; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); padding: 8px 12px; border-radius: 8px; font-size: .95rem; font-weight: 500; }
.nav a:hover { background: var(--bg-2); text-decoration: none; color: var(--ink); }
.nav a.on { color: var(--brand); }
.nav a.btn { color: #fff; margin-left: 8px; }
.navtoggle, .burger { display: none; }

/* buttons */
.btn { display: inline-block; background: var(--brand); color: #fff; padding: 11px 20px; border-radius: 8px; font-weight: 600; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.btn:hover { background: var(--brand-d); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink-2); }
.btn.small { padding: 6px 12px; font-size: .9rem; }

/* sections */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--line); background:
  radial-gradient(900px 400px at 85% -10%, var(--brand-t), transparent 70%),
  radial-gradient(700px 300px at -10% 110%, var(--alt-t), transparent 70%), #fff; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 680px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.sec { padding: 72px 0; }
.sec.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: 36px; }
.page-head { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }

/* grid + cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: border-color .15s, box-shadow .15s; display: block; color: inherit; }
a.card:hover { border-color: var(--brand); box-shadow: 0 6px 24px rgba(17,20,24,.06); text-decoration: none; }
.card .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-t); color: var(--brand); display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 14px; }
.card .ico.alt { background: var(--alt-t); color: var(--alt); }
.card p { color: var(--ink-2); margin: 0; }
.card .more { display: inline-block; margin-top: 12px; color: var(--brand); font-weight: 600; font-size: .95rem; }
.tag { display: inline-block; font-size: .78rem; padding: 2px 9px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); margin: 2px 4px 2px 0; }
.tag.on { background: var(--green-t); color: var(--green-d); border-color: transparent; }
.tag.off { background: var(--orange-t); color: var(--orange-d); border-color: transparent; }
ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.ticks li { padding-left: 26px; position: relative; margin: 6px 0; color: var(--ink-2); }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.steps { counter-reset: s; }
.steps .card::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; font-weight: 800; color: var(--brand); margin-bottom: 8px; }
.band { background: var(--ink); color: #fff; border-radius: 14px; padding: 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band p { color: #C9CDD3; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.stat b { display: block; font-size: 1.8rem; color: var(--brand); }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.produce { font-size: 2.4rem; line-height: 1; margin-bottom: 12px; }

/* forms */
form.form { display: grid; gap: 14px; max-width: 640px; }
.fld { display: grid; gap: 6px; font-weight: 550; font-size: .95rem; }
.fld input, .fld textarea, .fld select, select, input[type=text], input[type=email], input[type=search] {
  font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.fld input:focus, .fld textarea:focus, select:focus { outline: 2px solid var(--brand-t); border-color: var(--brand); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req { color: var(--orange); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 8px; background: var(--green-t); color: var(--green-d); border: 1px solid #CDE9DE; margin-bottom: 20px; }
.notice.err { background: var(--orange-t); color: var(--orange-d); border-color: #F5D9C2; }

/* tables (admin) */
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; }
.tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.pill { display: inline-block; font-size: .78rem; font-weight: 650; padding: 2px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); text-transform: capitalize; }
.pill-open, .pill-new { background: var(--orange-t); color: var(--orange-d); border-color: transparent; }
.pill-in-progress, .pill-contacted, .pill-quoted { background: #EEF2FF; color: #3730A3; border-color: transparent; }
.pill-waiting-on-customer { background: #FEF9C3; color: #854D0E; border-color: transparent; }
.pill-resolved, .pill-closed, .pill-won { background: var(--green-t); color: var(--green-d); border-color: transparent; }

/* thread (support) */
.msg { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 12px; }
.msg.staff { border-left: 4px solid var(--brand); }
.msg .who { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.msg .body { white-space: pre-wrap; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 48px 0 20px; background: #fff; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.foot a { display: block; color: var(--ink-2); margin: 4px 0; font-size: .95rem; }
.legal { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .85rem; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .brand .logo { height: 20px; }
  .site-tag { font-size: .9rem; line-height: 20px; padding-left: 10px; }
  .burger { display: grid; gap: 5px; margin-left: auto; cursor: pointer; padding: 8px; }
  .burger span { width: 22px; height: 2px; background: var(--ink); display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 16px; }
  .navtoggle:checked ~ .nav { display: flex; }
  .nav a.btn { margin: 8px 0 0; text-align: center; }
  .hero { padding: 56px 0 48px; }
  .sec { padding: 48px 0; }
  .band { padding: 28px; }
  .wrap { padding: 0 16px; }
}
