/* rasabill.com marketing pages (index.php, page.php). Brand colours from the app logo:
   teal #0b6b6f and orange #f35e01. Same-origin file only (site CSP: no external fonts/scripts). */
:root {
  --teal: #0b6b6f; --teal-dark: #064a4d; --teal-soft: #e3f3f2; --orange: #f35e01; --orange-dark: #d64f00; --orange-soft: #fff1e7;
  --ink: #0f1d24; --muted: #51616b; --line: #e4ebee; --bg: #ffffff; --bg-alt: #f6f9f9; --card: #ffffff;
  --radius: 20px; --shadow: 0 10px 30px rgba(11, 60, 70, .08); --shadow-lg: 0 30px 70px rgba(11, 60, 70, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { letter-spacing: -.02em; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(15,29,36,.06); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo img { width: 40px; height: 40px; border-radius: 11px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); flex: none; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; padding: 9px 13px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.nav a:hover { background: var(--bg-alt); }
.nav .cta { background: var(--orange); color: #fff; font-weight: 700; margin-left: 8px; }
.nav .cta:hover { background: var(--orange-dark); }
@media (max-width: 900px) { .nav a:not(.cta) { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 14px; font-weight: 700;
  text-decoration: none; font-size: 16px; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(243,94,1,.32); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { background: #fff; color: var(--teal); border: 1.5px solid #cfe2e2; }
.btn-ghost:hover { background: var(--teal-soft); }
.play { background: #0f1d24; color: #fff; padding: 10px 20px 10px 16px; border-radius: 14px; box-shadow: 0 10px 24px rgba(15,29,36,.25); text-align: left; }
.play:hover { background: #000; }
.play svg { width: 26px; height: 28px; flex: none; }
.play small { display: block; font-size: 11px; font-weight: 500; opacity: .8; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
.play b { display: block; font-size: 19px; line-height: 1.15; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 80px; overflow: hidden;
  background: radial-gradient(900px 500px at 85% 10%, rgba(243,94,1,.12), transparent 60%),
              radial-gradient(900px 600px at 0% 100%, rgba(11,107,111,.14), transparent 60%), #fbfdfd; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.04; margin: 0 0 20px; font-weight: 850; letter-spacing: -.035em; }
.grad { background: linear-gradient(100deg, var(--teal) 0%, #13979b 45%, var(--orange) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin: 0 0 30px; max-width: 560px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-soft) center/12px no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b6b6f' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 40px 0 56px; } }

/* ---------- Phone frames with real screenshots ---------- */
.device { position: relative; width: 270px; aspect-ratio: 9 / 20; border-radius: 42px; background: #0d1418; padding: 9px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #27323a; flex: none; }
.device img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; background: #f3f6f8; }
.stage { position: relative; height: 600px; display: flex; justify-content: center; align-items: center; }
.stage .device.back { position: absolute; transform: translate(-120px, 26px) rotate(-7deg) scale(.88); }
.stage .device.front { position: relative; transform: translate(70px, 0) rotate(3deg); z-index: 2; }
.chip-float { position: absolute; z-index: 3; background: #fff; border-radius: 16px; padding: 11px 15px; box-shadow: var(--shadow-lg);
  font-size: 14px; display: flex; gap: 10px; align-items: center; white-space: nowrap; animation: floaty 6s ease-in-out infinite; }
.chip-float .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: var(--teal-soft); }
.chip-float b { display: block; font-size: 15px; line-height: 1.2; }
.chip-float span { color: var(--muted); font-size: 12px; }
.chip-float.c1 { left: -4%; top: 14%; }
.chip-float.c2 { right: -2%; bottom: 22%; animation-delay: -2s; }
.chip-float.c2 .dot { background: var(--orange-soft); }
.chip-float.c3 { left: 2%; bottom: 6%; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 900px) {
  .stage { height: 520px; }
  .stage .device { width: 230px; }
  .stage .device.back { transform: translate(-80px, 22px) rotate(-7deg) scale(.86); }
  .stage .device.front { transform: translate(50px, 0) rotate(3deg); }
  .chip-float.c1 { left: 0; top: 2%; } .chip-float.c2 { right: 0; } .chip-float.c3 { display: none; }
}
@media (max-width: 420px) { .stage .device { width: 196px; } .stage { height: 450px; } }
.single-device { display: flex; justify-content: center; position: relative; padding: 20px 0; }
.single-device::before { content: ""; position: absolute; inset: 10% 12%; border-radius: 40px; background: linear-gradient(150deg, var(--teal-soft), var(--orange-soft)); }
.single-device .device { width: 270px; }
@media (max-width: 420px) { .single-device .device { width: 230px; } }

/* ---------- Trust strip ---------- */
.strip { padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 30px; color: var(--muted); font-size: 15px; font-weight: 600; }
.strip .wrap > span:first-child { color: var(--ink); font-weight: 800; }
.strip i { font-style: normal; margin-right: 6px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.kicker { display: inline-block; color: var(--orange); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; margin: 0 0 14px; font-weight: 800; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }
@media (max-width: 700px) { section { padding: 60px 0; } }

/* Feature showcase rows (text + phone) */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.show + .show { margin-top: 96px; }
.show.flip .show-media { order: -1; }
.show h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin: 8px 0 14px; font-weight: 800; }
.show p { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
.show ul { list-style: none; padding: 0; margin: 0 0 24px; }
.show li { padding: 7px 0 7px 32px; position: relative; }
.show li::before { content: ""; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 6px; background: var(--orange-soft) center/12px no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f35e01' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); }
.show-media { position: relative; display: flex; justify-content: center; padding: 30px 0; }
.show-media::before { content: ""; position: absolute; inset: 8% 10%; border-radius: 40px; background: linear-gradient(150deg, var(--teal-soft), var(--orange-soft)); z-index: 0; }
.show-media .device { z-index: 1; width: 280px; }
.show a.more { font-weight: 700; text-decoration: none; }
@media (max-width: 900px) { .show { grid-template-columns: 1fr; gap: 24px; } .show.flip .show-media { order: 0; } .show + .show { margin-top: 64px; }
  .show-media .device { width: 240px; } }

/* Cards & bento */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin: 14px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card a.more { display: inline-block; margin-top: 12px; font-weight: 700; text-decoration: none; }
.icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--teal-soft); }
.card:nth-child(even) .icon { background: var(--orange-soft); }
.bento { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.bento .card.wide { grid-column: span 2; }
.bento .card.dark { background: linear-gradient(150deg, var(--teal), var(--teal-dark)); color: #fff; border: 0; }
.bento .card.dark p { color: rgba(255,255,255,.84); }
.bento .card.dark .icon { background: rgba(255,255,255,.15); }
.bento .card.warm { background: linear-gradient(150deg, #fff6ef, #ffe7d6); border-color: #ffd9bf; }
@media (max-width: 1000px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .bento .card.wide { grid-column: auto; } }

/* Screens gallery */
.gallery { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 20px 30px; scrollbar-width: thin; }
.gallery figure { margin: 0; scroll-snap-align: center; text-align: center; }
.gallery .device { width: 220px; box-shadow: var(--shadow); }
.gallery figcaption { margin-top: 14px; font-weight: 700; font-size: 15px; }
/* Centred when it fits, scrollable from the first phone when it doesn't (justify-content would clip it). */
.gallery figure:first-child { margin-left: auto; }
.gallery figure:last-child { margin-right: auto; }

/* Industries */
.inds { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ind { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  text-decoration: none; color: var(--ink); font-weight: 700; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.ind:hover { transform: translateY(-3px); border-color: var(--teal); }
.ind .e { width: 48px; height: 48px; border-radius: 14px; background: var(--orange-soft); display: grid; place-items: center; font-size: 24px; flex: none; }
.ind small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }

/* Steps */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 22px 10px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(26px, 3vw, 34px); color: var(--teal); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Chips (related links, languages) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
a.chip:hover { border-color: var(--teal); color: var(--teal); }

/* Article text */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #33434c; font-size: 17px; }
.prose li { margin: 6px 0; }

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: 18px; box-shadow: var(--shadow); }
table.compare { width: 100%; border-collapse: collapse; background: #fff; min-width: 600px; }
.compare th, .compare td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; vertical-align: top; }
.compare th { background: var(--teal); color: #fff; }
.compare td:first-child { font-weight: 700; }
.compare td:nth-child(2) { background: #f3fbfa; }

/* FAQ */
.faq { max-width: 840px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; margin-bottom: 12px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 24px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* CTA band */
.band { position: relative; overflow: hidden; background: linear-gradient(130deg, var(--teal-dark), var(--teal) 55%, #12898d); color: #fff;
  border-radius: 32px; padding: 56px 48px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center; }
.band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(243,94,1,.35); filter: blur(60px); }
.band h2 { margin: 0 0 10px; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; position: relative; z-index: 1; }
.band p { margin: 0 0 24px; opacity: .9; font-size: 18px; position: relative; z-index: 1; }
.band .ctas { position: relative; z-index: 1; }
.band .play { background: #fff; color: var(--ink); }
.band .play:hover { background: #f1f5f6; }
.band .device { width: 200px; margin: -10px auto -150px; transform: rotate(6deg); position: relative; z-index: 1; }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; padding: 40px 26px; } .band .device { display: none; } }

/* GST calculator */
.calc { max-width: 580px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-lg); }
.calc label { display: block; font-weight: 700; margin: 14px 0 6px; }
.calc input, .calc select { width: 100%; padding: 13px 14px; border: 1.5px solid #d3e0e2; border-radius: 12px; font-size: 17px; font-family: inherit; background: #fff; }
.calc input:focus, .calc select:focus { outline: none; border-color: var(--teal); }
.calc .modes { display: flex; gap: 8px; margin-top: 14px; }
.calc .modes button { flex: 1; padding: 12px; border-radius: 12px; border: 1.5px solid #d3e0e2; background: #fff; font-weight: 700; cursor: pointer; font-family: inherit; font-size: 14px; }
.calc .modes button.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.calc .out { margin-top: 20px; background: var(--bg-alt); border-radius: 16px; padding: 16px 18px; }
.calc .out .row { display: flex; justify-content: space-between; padding: 5px 0; }
.calc .out .row.big { font-weight: 800; font-size: 20px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; color: var(--teal); }

/* Footer */
footer.site { background: #0b1418; color: #a9b8bf; padding: 64px 0 30px; }
footer.site .cols { display: grid; gap: 30px; grid-template-columns: 1.5fr repeat(4, 1fr); }
footer.site h4 { color: #fff; margin: 0 0 14px; font-size: 15px; }
footer.site a { color: #a9b8bf; text-decoration: none; display: block; padding: 4px 0; font-size: 14px; }
footer.site a:hover { color: #fff; }
footer.site a.logo { display: flex; color: #fff; font-size: 22px; padding: 0; }
footer.site .small { border-top: 1px solid #1f2b31; margin-top: 40px; padding-top: 20px; font-size: 13px; }
@media (max-width: 900px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }

/* Reveal on scroll (assets/site.js adds .in); without JS everything stays visible */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .chip-float { animation: none; }
  .btn:hover, .card:hover, .ind:hover { transform: none; }
}
