/* RentDeskLK website. Colours from the logo: navy (brand), green, orange. */
:root {
  --navy: #134c7c;
  --navy-dark: #0c3558;
  --navy-deep: #0a2a46;
  --navy-soft: #e4edf6;
  --green: #2e7a3d;
  --green-soft: #e6f2e8;
  --orange: #eb840c;
  --ink: #15181b;
  --ink-2: #3d4247;
  --muted: #5b6168;
  --line: #e2e4e0;
  --bg: #f6f7f5;
  --card: #ffffff;
  --on-navy: #d6e4f1;
  --radius: 18px;
  --font: 'Plus Jakarta Sans', 'Noto Sans Sinhala', 'Noto Sans Tamil', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:lang(si) h1, :lang(si) h2, :lang(ta) h1, :lang(ta) h2 { letter-spacing: 0; line-height: 1.3; }
:lang(si), :lang(ta) { line-height: 1.7; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--navy); }
.langs { display: inline-flex; background: #eef1f4; border-radius: 999px; padding: 4px; gap: 2px; flex: none; }
.langs button { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-2); min-width: 46px; min-height: 36px; padding: 0 10px; border-radius: 999px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--navy); color: #fff; }
@media (max-width: 760px) {
  .nav { display: none; }
  .langs { margin-left: auto; }
  .brand img { height: 38px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; background: var(--navy); color: #fff; border: 2px solid var(--navy); cursor: pointer; text-align: center; }
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: var(--navy-dark); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
.btn[aria-disabled="true"] { background: #e6e8e4; border-color: #e6e8e4; color: var(--muted); cursor: default; pointer-events: none; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% 0%, #1d6aa8 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 0; }
.hero-copy { padding-bottom: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--on-navy); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 22px; height: 4px; border-radius: 2px; background: var(--orange); }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; max-width: 14ch; }
:lang(si) .hero h1, :lang(ta) .hero h1 { font-size: clamp(28px, 4.2vw, 46px); max-width: 18ch; }
.lead { margin-top: 20px; font-size: 18px; color: var(--on-navy); max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font-size: 14px; font-weight: 600; color: var(--on-navy); }
.pills li { display: inline-flex; align-items: center; gap: 8px; }
.pills li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #7fd18f; }

.hero-phones { position: relative; height: 560px; align-self: end; }
.phone { margin: 0; background: #0b1520; border-radius: 34px; padding: 10px; box-shadow: 0 30px 60px rgba(4, 18, 33, .45), 0 0 0 1px rgba(255,255,255,.08) inset; }
.phone img { border-radius: 25px; width: 100%; height: auto; background: #f3f4f1; }
.hero-phones .phone { position: absolute; width: 270px; }
.phone-front { right: 190px; bottom: -70px; z-index: 2; }
.phone-back { right: 0; bottom: -10px; transform: rotate(4deg); opacity: .96; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 48px; gap: 0; }
  .hero-copy { padding-bottom: 36px; }
  .hero-phones { height: 380px; }
  .hero-phones .phone { width: 210px; }
  .phone-front { right: auto; left: 50%; margin-left: -190px; bottom: -110px; }
  .phone-back { right: auto; left: 50%; margin-left: -10px; bottom: -60px; }
}
@media (max-width: 420px) {
  .hero-phones { height: 330px; }
  .hero-phones .phone { width: 180px; padding: 8px; border-radius: 28px; }
  .phone-front { margin-left: -170px; }
  .phone-back { margin-left: -14px; }
  .ctas .btn { flex: 1 1 100%; }
}

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
:lang(si) .kicker, :lang(ta) .kicker { letter-spacing: 0; text-transform: none; }
.section h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; max-width: 22ch; }
.sub { margin-top: 10px; color: var(--muted); font-size: 17px; }
@media (max-width: 640px) { .section { padding: 60px 0; } }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.feature h3 { font-size: 17px; font-weight: 800; }
.feature p { color: var(--muted); font-size: 15px; }
.ico { width: 46px; height: 46px; border-radius: 12px; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; }
.ico svg, .web-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature:nth-child(4n+2) .ico { background: var(--green-soft); color: var(--green); }
.feature:nth-child(4n+3) .ico { background: #fdf0e1; color: #a85a00; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.cats { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cats h3 { font-size: 18px; font-weight: 800; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; color: var(--ink-2); }

.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.split.reverse { grid-template-columns: .8fr 1.2fr; }
.phone-solo { width: 300px; justify-self: center; }
.phone-solo figcaption { color: #c9d6e3; font-size: 13px; font-weight: 600; text-align: center; padding: 10px 4px 2px; }
@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > figure { order: 2; }
  .phone-solo { width: 260px; }
}

.steps { list-style: none; counter-reset: step; display: grid; gap: 22px; margin: 32px 0 34px; }
.steps li { counter-increment: step; position: relative; padding-left: 62px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.steps p { color: var(--muted); }

.rfeatures { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; margin-top: 30px; }
.rfeatures h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; padding-top: 14px; border-top: 3px solid var(--orange); width: fit-content; }
.rfeatures p { color: var(--muted); font-size: 15px; }
@media (max-width: 560px) { .rfeatures { grid-template-columns: 1fr; } }

/* Download */
.download { background: linear-gradient(180deg, var(--bg) 0%, #eaf0f6 100%); }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.app { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.app:not(.web) { border: 2px solid var(--navy-soft); }
.app-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 2px 8px rgba(19,76,124,.18); }
.web-icon { display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); box-shadow: none; }
.web-icon svg { width: 30px; height: 30px; }
.app-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.app h3 { font-size: 20px; font-weight: 800; }
.app p { color: var(--muted); font-size: 15px; }
.app .meta { font-size: 13px; font-weight: 600; color: var(--ink-2); min-height: 1.4em; }
.btn-download { width: 100%; }
.btn-download::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 20h16'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 20h16'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn-download[aria-disabled="true"]::before { display: none; }
.sha summary { font-size: 13px; color: var(--muted); cursor: pointer; }
.sha code { display: block; margin-top: 6px; font-size: 11.5px; word-break: break-all; color: var(--ink-2); background: var(--bg); padding: 8px 10px; border-radius: 8px; }
.app.web .btn { width: 100%; }
@media (max-width: 960px) { .apps { grid-template-columns: 1fr; } .app { flex-direction: row; flex-wrap: wrap; align-items: flex-start; } .app-body { min-width: 200px; } .btn-download, .app.web .btn { flex: 1 1 100%; } .sha { flex: 1 1 100%; } }

.help { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 52px; }
.help h3 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.install { padding-left: 22px; display: grid; gap: 10px; color: var(--ink-2); }
.install li::marker { font-weight: 800; color: var(--navy); }
.note { margin-top: 16px; font-size: 14px; color: var(--muted); background: #fff; border-left: 4px solid var(--green); border-radius: 8px; padding: 10px 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--navy); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 16px 16px; color: var(--muted); }
@media (max-width: 860px) { .help { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy); padding: 56px 0 28px; }
.foot { display: flex; flex-wrap: wrap; gap: 36px 60px; justify-content: space-between; }
.foot-brand img { height: 48px; width: auto; }
.foot-brand p { margin-top: 10px; font-size: 14px; }
.foot-links, .foot-contact { display: flex; flex-direction: column; gap: 10px; }
.foot-links a, .foot-contact a { color: #fff; text-decoration: none; font-weight: 600; }
.foot-links a:hover, .foot-contact a:hover { text-decoration: underline; }
.foot-contact h3 { font-size: 14px; color: var(--on-navy); text-transform: uppercase; letter-spacing: .08em; }
.copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
