/* wared-app.com: the app's palette. Teal structure, gold accents; no gradients. */
:root {
  --teal: #0F766E;
  --teal-strong: #0B5953;
  --teal-soft: #CCF3EE;
  --on-teal-soft: #042F2C;
  --gold: #D4A017;
  --gold-text: #7A5C00;
  --gold-soft: #FBEFC4;
  --on-gold-soft: #3D2E00;
  --bg: #F5F8F7;
  --surface: #FFFFFF;
  --ink: #101B1A;
  --body: #283A38;
  --muted: #475856;
  --line: #D3DFDC;
  --hairline: #E3ECEA;
  --deep: #0E2B28;
  --deep-2: #143A36;
  --on-deep: #CFE2DF;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif; font-size: 16px; line-height: 1.75; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
p { margin: 0; }
a { color: var(--teal); }
a:hover { color: var(--teal-strong); }
img { display: block; }
:focus-visible { outline: 3px solid rgba(15, 118, 110, 0.5); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.deep { background: var(--deep); color: var(--on-deep); }
.section { padding: 72px 0; }
.section-title { font-size: 32px; margin-bottom: 8px; }
.section-lead { font-size: 17px; color: var(--muted); margin-bottom: 36px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { inset-inline-start: 8px; }
.mono { font-family: "IBM Plex Mono", monospace; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 40px; height: 40px; border-radius: 11px; background: var(--teal-soft); display: grid; place-items: center; }
.logo strong { font-size: 22px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; }
.site-nav a { color: var(--body); text-decoration: none; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal); }
.site-nav a[aria-current="page"] { font-weight: 600; }
.grow { flex: 1; }
.signin { font-size: 15px; font-weight: 600; text-decoration: none; padding: 10px 4px; }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; place-items: center; }

/* ---------- Buttons ---------- */
.btn { height: 52px; display: inline-flex; align-items: center; gap: 8px; padding: 0 24px; border-radius: 12px; font-size: 17px; font-weight: 600; text-decoration: none; transition: background 0.15s ease, transform 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #FFFFFF; }
.btn-primary:hover { background: var(--teal-strong); color: #FFFFFF; }
.btn-outline { border: 1px solid var(--teal); color: var(--teal); background: var(--surface); }
.btn-small { height: 44px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.tag { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--gold-text); background: var(--gold-soft); padding: 4px 12px; border-radius: 6px; }
.hero h1 { font-size: 52px; line-height: 1.25; letter-spacing: -0.5px; }
.hero h1 span { color: var(--teal); }
.hero-lead { font-size: 19px; color: #3A4C4A; max-width: 560px; }
.hero-note { font-size: 14px; color: var(--muted); max-width: 560px; }
.hero-art { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.hero-art .lottie { width: 100%; max-width: 460px; aspect-ratio: 1 / 1; }

/* ---------- Problem + live list ---------- */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > .text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; font-size: 17px; color: var(--body); }
.split > .text h2 { font-size: 32px; line-height: 1.35; color: var(--ink); }
.split > .text strong { color: var(--ink); }
.screen { flex: 1.2 1 520px; min-width: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.screen-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--hairline); font-size: 15px; }
.screen-head span { color: var(--muted); font-size: 13px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--on-teal-soft); background: var(--teal-soft); padding: 2px 10px; border-radius: 12px; }
.live i { width: 7px; height: 7px; border-radius: 4px; background: var(--teal); animation: pulse 1.8s ease-out infinite; }
.pay { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--hairline); }
.pay-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pay-text b { font-size: 15px; }
.pay-text span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 3px 10px; white-space: nowrap; }
.pay time { font-size: 12px; min-width: 44px; white-space: nowrap; color: var(--muted); }
.pay.new { animation: arrive 6s ease-out infinite; background: #FFFBEB; }
.pay.new time { color: var(--gold-text); font-weight: 700; }
.screen figcaption { display: flex; align-items: center; gap: 8px; padding: 12px 20px; font-size: 13px; color: var(--muted); background: var(--bg); }

/* ---------- Cards ---------- */
.grid-3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; }
.step .lottie { height: 180px; }
.step-no { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; color: var(--gold-text); background: var(--gold-soft); }
.step strong { font-size: 20px; }
.step p, .feature p { color: #3A4C4A; }
.feature { display: flex; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.feature strong { font-size: 18px; display: block; margin-bottom: 4px; }
.icon-badge { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--teal-soft); display: grid; place-items: center; }
.icon-badge.small { width: 44px; height: 44px; border-radius: 12px; }
.lift { transition: transform 0.2s ease, border-color 0.2s ease; }
.lift:hover { transform: translateY(-4px); border-color: var(--teal); }

/* ---------- Trust ---------- */
.trust .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.trust-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.trust-text .lottie { width: 220px; height: 220px; background: var(--bg); border-radius: 24px; }
.trust-text h2 { font-size: 32px; color: #FFFFFF; }
.trust-text p { font-size: 17px; }
.trust-list { flex: 1.4 1 480px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.trust-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--deep-2); border-radius: 14px; }
.trust-list .icon-badge { background: var(--bg); }
.trust-list strong { color: #FFFFFF; }

/* ---------- What if ---------- */
.whatif { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.callout { flex: 1 1 340px; min-width: 0; padding: 28px; background: var(--gold-soft); border-radius: 18px; display: flex; flex-direction: column; gap: 10px; color: var(--on-gold-soft); }
.callout strong { font-size: 22px; color: var(--ink); }
.qa-grid { flex: 1.6 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.qa { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }

/* ---------- Questions: one list, each answer opens under its question ---------- */
.faq { max-width: 860px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 20px; font-size: 17px; font-weight: 600; color: var(--ink); min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-inline-start: auto; font-size: 22px; line-height: 1; color: var(--teal); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--body); }
.faq summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 14px; }
.qa strong { display: block; margin-bottom: 4px; }
.qa span { color: #3A4C4A; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
.plan.free { border-color: var(--teal); }
.plan strong { font-size: 18px; }
.plan .price { font-size: 26px; font-weight: 700; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: #3A4C4A; font-size: 15px; }
.plan li { display: flex; gap: 8px; align-items: center; }
.plan li img { flex: none; }
.fine { margin-top: 20px; font-size: 14px; color: var(--muted); }
.plans { padding-top: 14px; }
.plan { position: relative; min-width: 0; }
.plan.featured { border: 2px solid var(--gold); padding: 23px; box-shadow: 0 10px 28px rgba(212, 160, 23, 0.18); }
.plan.featured.lift:hover { border-color: var(--gold); }
.plan-badge { position: absolute; top: -14px; inset-inline-start: 20px; background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.8; padding: 0 12px; border-radius: 14px; }
.plan-trial { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--gold-text); background: var(--gold-soft); padding: 2px 10px; border-radius: 6px; }
.plan .alt { margin-top: -10px; font-size: 14px; color: var(--muted); }
.price .y { display: none; }
.plans[data-period="yearly"] .price .m { display: none; }
.plans[data-period="yearly"] .price .y { display: inline; }
.plans[data-period] .alt { display: none; }
.period { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 20px; max-width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.period[hidden] { display: none; }
.period button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent; color: var(--body); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.period button small { font-size: 13px; font-weight: 500; color: var(--gold-text); }
.period button[aria-pressed="true"] { background: var(--teal); color: #FFFFFF; }
.period button[aria-pressed="true"] small { color: #FFFFFF; }
.included { margin-top: 24px; display: flex; gap: 10px; align-items: center; padding: 14px 18px; background: var(--teal-soft); color: var(--on-teal-soft); border-radius: 12px; font-weight: 500; }
.included img { flex: none; }

/* ---------- Get started ---------- */
.start .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.start .lottie { flex: none; width: 200px; height: 200px; }
.start .text { flex: 1 1 400px; min-width: 0; }
.start h2 { font-size: 32px; margin-bottom: 12px; }
.start p { font-size: 17px; color: #3A4C4A; }

/* ---------- Article pages ---------- */
.page-head { padding: 64px 0 32px; display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.page-head h1 { font-size: 42px; }
.page-head p { font-size: 18px; color: #3A4C4A; }
.kicker { font-size: 15px; font-weight: 600; color: var(--gold-text); }
.prose { max-width: 860px; display: flex; flex-direction: column; gap: 18px; font-size: 17px; color: var(--body); padding-bottom: 56px; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px 48px; }
.values div { display: flex; flex-direction: column; gap: 8px; }
.values strong { font-size: 19px; }
.values p { color: #3A4C4A; }
.contact { display: flex; flex-wrap: wrap; gap: 32px; }
.contact .text { flex: 1 1 340px; min-width: 0; }
.contact h2 { font-size: 30px; margin-bottom: 10px; }
.contact dl { flex: 1.3 1 420px; min-width: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.contact dl div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 18px 22px; border-bottom: 1px solid var(--hairline); }
.contact dl div:last-child { border-bottom: 0; }
.contact dt { width: 140px; color: var(--muted); }
.contact dd { margin: 0; }

.guide { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-bottom: 72px; }
.toc { flex: 1 1 240px; max-width: 300px; position: sticky; top: 92px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.toc a { color: var(--body); text-decoration: none; }
.toc a:hover { color: var(--teal); }
.toc b { font-size: 14px; color: var(--muted); margin-top: 8px; }
.article { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.article section { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 92px; }
.article h2 { font-size: 24px; display: flex; align-items: center; gap: 14px; }
.article ul, .article ol { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 6px; }
.note { padding: 14px 16px; background: var(--gold-soft); border-radius: 10px; color: var(--on-gold-soft); }
.keys { border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15px; }
.keys td { padding: 10px 16px; border-bottom: 1px solid var(--hairline); }
.keys tr:last-child td { border-bottom: 0; }
kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); font-family: "IBM Plex Mono", monospace; font-size: 13px; }

.help { max-width: 900px; display: flex; flex-direction: column; gap: 36px; padding-bottom: 72px; }
.search { height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; }
.faq-group h2 { font-size: 20px; color: var(--body); display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; align-items: center; gap: 12px; padding: 18px 22px; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-inline-end: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); margin-inline-start: auto; transition: transform 0.2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer { padding: 0 22px 20px; color: var(--body); }
.faq .answer ol { margin: 0; padding-inline-start: 22px; }
.no-results { color: var(--muted); }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.cta-box div { flex: 1 1 360px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-top: 48px; padding-bottom: 32px; }
.site-footer .who { flex: 1 1 280px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.site-footer .who strong { font-size: 20px; color: #FFFFFF; }
.site-footer .who a { color: #F2C94C; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 32px 64px; font-size: 14px; }
.site-footer nav div { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav strong { color: #FFFFFF; }
.site-footer nav a { color: var(--on-deep); text-decoration: none; }
.site-footer nav a:hover { color: #FFFFFF; }
.copyright { border-top: 1px solid #24433F; padding: 16px 0 28px; font-size: 13px; color: #9DBAB5; }

/* ---------- Motion ---------- */
@keyframes arrive { 0% { opacity: 0; transform: translateY(-14px); } 12% { opacity: 1; transform: none; } 100% { opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.45); } 70% { box-shadow: 0 0 0 8px rgba(15, 118, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.6s ease-out both; }
.rise-2 { animation: rise 0.6s 0.12s ease-out both; }
.rise-3 { animation: rise 0.6s 0.24s ease-out both; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .rise-2, .rise-3, .pay.new, .live i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .lift:hover, .btn:hover { transform: none; }
  .period button { transition: none; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  /* Logo at one edge, sign-in then the menu button at the other; the open menu drops below. */
  .site-header .wrap { column-gap: 12px; }
  .site-header .grow { order: 1; }
  .site-header .signin { order: 2; }
  .menu-button { display: grid; order: 3; }
  .site-nav { display: none; order: 4; width: 100%; flex-direction: column; padding-bottom: 12px; }
  .site-nav.open { display: flex; }
  .site-header .btn-small { display: none; }
  .hero h1 { font-size: 38px; }
  .section { padding: 52px 0; }
  .section-title, .split > .text h2, .trust-text h2, .start h2 { font-size: 26px; }
  .page-head h1 { font-size: 32px; }
  .toc { position: static; max-width: none; }
  /* The transaction number is what the demo is about: on its own line under the message. */
  .pay { flex-wrap: wrap; row-gap: 6px; }
  /* The message keeps most of the row, so the number always drops to a line of its own. */
  .pay-text { flex: 1 1 60%; }
  .pay-text span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .pay .chip { order: 4; margin-inline-start: 42px; }
}

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .hero .wrap { gap: 24px; padding-top: 32px; padding-bottom: 40px; }
  .hero h1 { font-size: 31px; }
  .hero-lead { font-size: 17px; }
  .hero .actions .btn, .start .actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-art .lottie { max-width: 220px; }
  .section { padding: 40px 0; }
  .section-title, .split > .text h2, .trust-text h2, .start h2 { font-size: 23px; }
  .split > .text { font-size: 16px; }
  .step { padding: 20px; }
  .step .lottie { height: 120px; }
  .step strong { font-size: 18px; }
  .feature { padding: 18px; gap: 12px; }
  .feature strong { font-size: 17px; }
  .screen-head { padding: 12px 14px; }
  .screen-head > span:not(.grow):not(.live) { display: none; }
  .pay { padding: 12px 14px; gap: 10px; }
  .pay .chip { margin-inline-start: 38px; }
  .trust-text .lottie, .start .lottie { width: 140px; height: 140px; }
}
