/* Melo Books website pages (meloapp.store/books and the Melo Books guides) */
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("fonts/cairo-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Cairo"; src: url("fonts/cairo-arabic-700-normal.woff2") format("woff2"); font-weight: 600 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }

:root { --navy: #0F2A4A; --navy2: #16395F; --green: #1FA36B; --green-d: #13805A; --edge: #4A7AB0; --ink: #12233A; --muted: #53657A; --line: #E2E8F0; --bg: #F5F7FA; --melo: #10B981; --r: 18px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; font-size: 16px; }
[dir="rtl"] body, body[dir="rtl"] { font-family: "Cairo", "Poppins", system-ui, Tahoma, Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-d); }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.sec { padding: 76px 0; }
.sec.alt { background: var(--bg); }
.sec.dark { background: var(--navy); color: #DCE6F2; }
.sec.dark h2, .sec.dark h3 { color: #fff; }
.lead { font-size: 19px; color: var(--muted); max-width: 760px; }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-d); margin-bottom: 10px; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .by { font-size: 12px; color: var(--muted); border-inline-start: 1px solid var(--line); padding-inline-start: 10px; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 8px 10px; border-radius: 10px; }
.nav a:hover { background: var(--bg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn.pri { background: var(--green-d); color: #fff; }
.btn.pri:hover { background: #0F6B4B; color: #fff; }
.btn.sec2 { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.sec2:hover { border-color: var(--navy); color: var(--navy); }
.btn.light { background: #fff; color: var(--navy); }
.nav .btn { min-height: 40px; padding: 8px 16px; }

/* hero */
.hero { padding: 64px 0 40px; background: radial-gradient(900px 420px at 85% 0%, rgba(31, 163, 107, .12), transparent 70%), radial-gradient(700px 380px at 0% 10%, rgba(74, 122, 176, .12), transparent 70%); }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
@media (min-width: 980px) { .hero .grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.soon { display: inline-flex; align-items: center; gap: 8px; background: #E9F7F0; color: var(--green-d); font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.soon i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 18px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 14px; }
.badges li::before { content: "✓"; color: var(--green-d); font-weight: 700; margin-inline-end: 6px; }
.shot { border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(15, 42, 74, .18), 0 0 0 1px rgba(15, 42, 74, .08); background: #fff; }
.shot .bar { height: 30px; background: #EEF2F7; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.shot .bar span { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; }

/* cards and grids */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 34px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.sec.alt .card { border-color: #E6ECF2; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .ic { width: 42px; height: 42px; border-radius: 12px; background: #E9F7F0; color: var(--green-d); display: grid; place-items: center; margin-bottom: 12px; }
.card .ic svg { width: 22px; height: 22px; }
.why { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 30px; }
.why .card { border: none; background: rgba(255, 255, 255, .06); }
.why .card p { color: #C5D3E3; }
.why .card h3 { color: #fff; }
ul.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
ul.ticks li { padding-inline-start: 26px; position: relative; }
ul.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--green-d); border-bottom: 2.5px solid var(--green-d); transform: rotate(-45deg); }
[dir="rtl"] ul.ticks li::before { transform: rotate(-45deg) scaleX(1); }

/* screens */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 18px; }
.tabs button { font-family: inherit; font-size: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 9px 14px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.screen-cap { color: var(--muted); font-size: 15px; margin-top: 14px; }

/* compliance + industries */
.two { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* comparison */
.tbl { overflow-x: auto; margin-top: 26px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 15px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
thead th { background: var(--bg); color: var(--navy); font-weight: 600; }
td.us, th.us { background: #F0FAF5; }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* pricing */
.cur { display: inline-flex; gap: 6px; background: #fff; border: 1px solid var(--line); padding: 5px; border-radius: 999px; margin-top: 8px; }
.cur button { font-family: inherit; border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--ink); min-height: 38px; }
.cur button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin-top: 28px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; position: relative; }
.plan.best { border: 2px solid var(--green); box-shadow: 0 18px 44px rgba(31, 163, 107, .15); }
.plan .tag { position: absolute; top: -13px; inset-inline-start: 22px; background: var(--green-d); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.plan h3 { margin-bottom: 4px; }
.plan .who { color: var(--muted); font-size: 14px; min-height: 44px; }
.price { margin: 14px 0 4px; }
.price b { font-size: 34px; color: var(--navy); font-weight: 700; }
.price .per { color: var(--muted); font-size: 14px; display: block; }
.price .was { display: block; color: #8A99AB; font-size: 14px; margin-bottom: 2px; }
.price .was s { margin-inline-end: 6px; }
.plan ul.ticks { margin-bottom: 22px; font-size: 15px; }
.plan .btn { margin-top: auto; }
.pfoot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }

/* early access */
.ea { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .ea { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
form.box { background: #fff; color: var(--ink); border-radius: 22px; padding: 26px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
form.box label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
form.box input, form.box select { width: 100%; min-width: 0; font-family: inherit; font-size: 15px; padding: 11px 12px; border: 1px solid #CBD5E1; border-radius: 10px; min-height: 46px; color: var(--ink); background: #fff; }
form.box .full { grid-column: 1 / -1; }
form.box small { font-weight: 400; color: var(--muted); }

/* faq */
.faq { max-width: 860px; margin: 30px auto 0; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--green-d); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); }

/* also from melo */
.also { display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #ECFDF5; border: 1px solid #C7F0DD; border-radius: 22px; padding: 26px 28px; }
.also h3 { margin: 0 0 4px; }
.also p { margin: 0; color: var(--muted); }
.also .btn.pri { background: var(--melo); }

/* article (guides) */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 22px; }
.crumbs a { color: var(--muted); }
.art { max-width: 820px; }
.art h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 1.6em; }
.art p, .art li { font-size: 17px; }
.art ul { padding-inline-start: 22px; }
.art li { margin-bottom: 6px; }
.cta-box { margin: 38px 0; padding: 26px; border-radius: 22px; background: var(--navy); color: #DCE6F2; }
.cta-box h3 { color: #fff; }
.cta-box .ctas { margin-bottom: 0; }
.related { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 16px; }
.related a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--navy); font-weight: 600; background: #fff; }
.related a:hover { border-color: var(--green); }

/* footer */
footer { background: #0B2038; color: #B8C7D8; padding: 54px 0 30px; font-size: 14px; }
footer .cols { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
footer h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
footer a { color: #B8C7D8; text-decoration: none; display: block; padding: 3px 0; }
footer a:hover { color: #fff; }
footer .copy { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 720px) { .nav a.hide-s { display: none; } .sec { padding: 56px 0; } .hero { padding-top: 40px; } }

/* product video */
.vid { align-items: center; }
.vbox { display: flex; justify-content: center; }
.vbox video { display: block; width: 100%; max-width: 340px; height: auto; aspect-ratio: 9 / 16; border-radius: 24px; background: var(--navy); box-shadow: 0 24px 60px rgba(15, 42, 74, .25); }
ol.steps3 { list-style: none; counter-reset: s; padding: 0; margin: 18px 0 22px; display: grid; gap: 12px; }
ol.steps3 li { counter-increment: s; position: relative; padding-inline-start: 46px; min-height: 32px; }
ol.steps3 li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
/* download box */
.box.dl { background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 18px; padding: 26px; box-shadow: 0 10px 30px rgba(15, 42, 74, .08); }
.box.dl b { display: block; font-size: 20px; color: var(--navy, #0F2A4A); margin-bottom: 8px; }
.box.dl p { margin: 0 0 16px; color: #4b5563; }
.box.dl.ready { border-color: var(--green-d, #1FA36B); }
.small { font-size: 13px; }
.pfoot a { color: inherit; }
