/* luychlat.com — the official site (founder, 27/10/2026). Emerald + warm gold, Kantumruy Pro, mobile first. */
:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --ink: #12261e;
  --muted: #55665e;
  --line: #e4e9e5;
  --brand: #047857;
  --brand-2: #059669;
  --brand-deep: #064e3b;
  --brand-soft: #ecfdf5;
  --gold: #c8932f;
  --gold-soft: #fbf3e2;
  --shadow: 0 1px 2px rgba(6, 78, 59, .06), 0 12px 32px -12px rgba(6, 78, 59, .18);
  --radius: 20px;
  --font-km: "Plus Jakarta Sans", "Kantumruy Pro", system-ui, sans-serif;
  --font-zh: "Plus Jakarta Sans", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1612;
    --surface: #12211b;
    --ink: #e8f1ec;
    --muted: #9db0a6;
    --line: #22352d;
    --brand: #34d399;
    --brand-2: #10b981;
    --brand-deep: #022c22;
    --brand-soft: #0f2a21;
    --gold: #e2b55a;
    --gold-soft: #2a2414;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  /* Latin and digits in Plus Jakarta Sans, Khmer in Kantumruy Pro (the app's own Khmer font). */
  font-family: var(--font-km);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
html[lang="zh"] body { font-family: var(--font-zh); }
h1, h2, h3, .btn, .price b { letter-spacing: -.01em; }
html[lang="km"] h1, html[lang="km"] h2, html[lang="km"] h3 { letter-spacing: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 700; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.eyebrow { color: var(--brand); font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.lead { color: var(--muted); font-size: 1.05rem; margin-top: 14px; }
/* The first thing a wary visitor reads (founder, 29/10/2026): no money held, no OTP ever asked. */
.safe { margin-top: 12px; padding: 10px 14px; border-radius: 14px; font-size: .95rem; line-height: 1.6; color: var(--ink); background: var(--brand-soft); border: 1px solid var(--line); }
.fine { color: var(--muted); font-size: .85rem; margin-top: 14px; }

/* Buttons — large touch targets */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  background: var(--brand); color: #fff; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 8px 20px -10px rgba(4, 120, 87, .7);
}
@media (prefers-color-scheme: dark) { .btn { color: #022c22; } }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(4, 120, 87, .75); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.02rem; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-light { background: #fff; color: var(--brand-deep); box-shadow: none; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); box-shadow: none; }
.btn:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.nav-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 12px; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; }
.brand b { font-size: 1.02rem; }
.brand small { color: var(--muted); font-size: .72rem; }
.links { display: none; gap: 22px; margin-left: 12px; }
.links a { text-decoration: none; color: var(--muted); font-weight: 500; }
.links a:hover { color: var(--brand); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang, .period { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.lang button, .period button { font: inherit; font-size: .8rem; border: 0; background: transparent; color: var(--muted); padding: 5px 10px; min-height: 32px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"], .period button[aria-pressed="true"] { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .lang button[aria-pressed="true"], .period button[aria-pressed="true"] { color: #022c22; } }
@media (max-width: 420px) { .nav-end .btn-sm { display: none; } }
@media (min-width: 900px) { .links { display: flex; } }

/* Hero */
.hero { position: relative; padding: 48px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 680px; height: 680px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -260px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 16%, transparent), transparent);
  pointer-events: none;
}
.hero-in { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 6.4vw, 3.4rem); font-weight: 700; letter-spacing: -.01em; }
.hero h1 span {
  /* A gradient painted through the letters (background-clip: text) is cut at the line box: Khmer stacks below the line
     (ក្នុង — a subscript and a vowel under it) lost their bottom. The span gets its own box with room below. */
  display: inline-block;
  padding: 0.06em 0 0.24em;
  margin-bottom: -0.18em;
  background: linear-gradient(90deg, var(--brand), #0d9488 35%, var(--brand-2) 65%, var(--brand));
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out infinite;
}
@keyframes sheen { 50% { background-position: 100% 0; } }
@keyframes drift { 50% { transform: translate(-40px, 30px) scale(1.08); } }
.hero::before { animation: drift 14s ease-in-out infinite; }
.hero::after { animation: drift 18s ease-in-out infinite reverse; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 520px) { .cta .btn { width: 100%; } }
@media (min-width: 900px) { .hero { padding: 80px 0 96px; } .hero-in { grid-template-columns: 1.15fr .85fr; } }

/* Phone illustration */
.phone {
  justify-self: center; width: min(300px, 82vw); aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 10px;
  background: linear-gradient(160deg, #1c2a24, #0b1410); box-shadow: 0 40px 80px -30px rgba(6, 78, 59, .55), inset 0 0 0 2px #2c3d35;
  transform: rotate(2deg); animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: rotate(2deg) translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } html { scroll-behavior: auto; } }
.screen { height: 100%; border-radius: 35px; background: #f6f8f6; color: #12261e; padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; font-size: 12px; }
.ph-top { display: flex; justify-content: space-between; font-weight: 600; font-size: 11px; color: #3b4a43; padding: 0 6px; }
.ph-hero { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #065f46, #047857 55%, #0d9488); box-shadow: 0 10px 20px -12px rgba(4, 120, 87, .8); }
.ph-hero small { display: block; opacity: .85; font-size: 10px; }
.ph-hero .mask { display: block; font-size: 24px; letter-spacing: 3px; line-height: 1.3; }
.ph-hero .eye { margin-top: 2px; }
.ring { position: relative; width: 52px; height: 52px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.r-bg { stroke: rgba(255, 255, 255, .25); }
.r-fg { stroke: #fcd34d; stroke-dasharray: 64 100; stroke-linecap: round; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph-grid span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); font-size: 17px; }
.ph-grid i { font-style: normal; font-size: 9.5px; color: #55665e; }
.ph-toast { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #fff; border: 1px solid #d1fae5; box-shadow: 0 10px 24px -14px rgba(4, 120, 87, .6); }
@keyframes pop { 0%, 100% { transform: translateY(0); } 8% { transform: translateY(-4px); } 16% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .ph-toast { animation: none; } }
.ph-toast .dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #ecfdf5; }
.ph-toast b { display: block; color: #047857; font-size: 13px; }
.ph-toast small { color: #55665e; font-size: 10px; }
.ph-row { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 14px; background: #fbf3e2; color: #6b4e14; font-size: 11px; }

.signature { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.signature li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.signature span { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); font-size: 22px; }
.signature b { display: block; font-size: 1.04rem; }
.signature small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.more-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; color: var(--brand); font-weight: 600; text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.ticks.light { color: #d1fae5; }
.ticks.light li::before { color: #fcd34d; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* Moments */
.moments { padding: 64px 0; }
.cards3 { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 760px) { .cards3 { grid-template-columns: repeat(3, 1fr); } .cards3.cards2 { grid-template-columns: repeat(2, 1fr); } }
.moment { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.moment span { font-size: 26px; line-height: 1; }
.moment p { color: var(--muted); }
.moment .fix { margin-top: 8px; color: var(--brand-deep); font-weight: 600; }
@media (prefers-color-scheme: dark) { .moment .fix { color: var(--brand); } }
.answer { margin-top: 26px; font-weight: 600; color: var(--brand); font-size: 1.08rem; }

/* Features */
.features { padding: 72px 0; }
.features.alt { background: linear-gradient(180deg, var(--brand-soft), transparent); }
.grid { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .2s ease; }
.feat:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(6, 78, 59, .06), 0 22px 40px -18px rgba(6, 78, 59, .3); }
.feat:hover .ic { transform: scale(1.08) rotate(-4deg); }
.feat .ic { transition: transform .25s ease; }
.signature li { transition: transform .2s ease; }
.signature li:hover { transform: translateX(4px); }
.feat .ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); font-size: 22px; margin-bottom: 12px; }
.feat h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: .95rem; }

/* And more */
.more { padding: 8px 0 64px; }
.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .95rem; }

/* Start */
.start { padding: 64px 0; background: var(--gold-soft); }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.steps b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--surface); margin-bottom: 10px; }
.steps h3 { font-size: 1.05rem; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: .95rem; }
.center-cta { justify-content: center; }

/* Bot */
.bot { padding: 72px 0; }
.bot-in { display: grid; gap: 36px; align-items: center; }
.bot .btn { margin-top: 22px; }
@media (min-width: 900px) { .bot-in { grid-template-columns: 1fr 1fr; } }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 26px; background: linear-gradient(160deg, #d9ecf7, #e9f3ea); }
@media (prefers-color-scheme: dark) { .chat { background: linear-gradient(160deg, #13262f, #13261d); } }
.chat p { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: .95rem; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.chat .me { align-self: flex-end; background: #e1fec6; color: #12261e; border-bottom-right-radius: 6px; }
.chat .them { align-self: flex-start; background: #fff; color: #12261e; border-bottom-left-radius: 6px; }

/* Trust */
.trust { padding: 72px 0; background: var(--brand-deep); color: #e8f5ef; }
.trust h2 { color: #fff; }
.trust .sub { color: #c9e3d8; max-width: 640px; margin: 10px auto 0; }
.trust-in { display: grid; gap: 16px; margin-top: 30px; }
@media (min-width: 900px) { .trust-in { grid-template-columns: 1fr 1fr; } }
.never, .control { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.trust h3 { color: #fff; font-size: 1.1rem; margin-bottom: 12px; }
.never ul, .control ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: #d6ebe2; }
.never li, .control li { position: relative; padding-left: 30px; }
.never li::before, .control li::before { position: absolute; left: 0; top: .1em; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.never li::before { content: "✕"; background: rgba(248, 113, 113, .18); color: #fca5a5; }
.control li::before { content: "✓"; background: rgba(252, 211, 77, .18); color: #fcd34d; }
/* «When something goes wrong, we're ready» (founder, 28/10/2026): the whole width, its list in two columns on wide screens. */
.ready { grid-column: 1 / -1; padding: 24px; border-radius: var(--radius); background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .25); }
.ready ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px 28px; color: #d6ebe2; }
@media (min-width: 900px) { .ready ul { grid-template-columns: 1fr 1fr; } }
.ready li { position: relative; padding-left: 30px; }
.ready li::before { content: "✓"; position: absolute; left: 0; top: .1em; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: rgba(52, 211, 153, .2); color: #6ee7b7; }
.official { margin-top: 18px; padding: 20px 24px; border-radius: var(--radius); border: 1px dashed rgba(252, 211, 77, .45); text-align: center; }
.tr { padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.tr b { display: block; font-size: 1.4rem; color: #fcd34d; margin-bottom: 8px; letter-spacing: 1px; }
.tr p { color: #c9e3d8; font-size: .95rem; }

/* Pricing */
.pricing { padding: 80px 0; }
.period { display: flex; width: max-content; margin: 22px auto 0; }
.period button { font-size: .9rem; padding: 6px 16px; min-height: 38px; }
.plans { display: grid; gap: 16px; margin-top: 28px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.plan.best { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -13px; left: 24px; background: var(--gold); color: #fff; font-size: .78rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.plan h3 { font-size: .95rem; letter-spacing: .08em; color: var(--muted); }
.price { margin-top: 8px; display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 2.3rem; }
.price span { color: var(--muted); }
.riel { color: var(--muted); font-size: .9rem; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 28px; font-size: .95rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan .btn { margin-top: auto; }

.howpay { margin: 28px auto 0; max-width: 760px; background: var(--brand-soft); border-radius: var(--radius); padding: 22px 24px; }
.howpay h3 { font-size: 1.08rem; margin-bottom: 10px; }
.howpay ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }

/* FAQ */
/* «គន្លឹះលុយខ្លីៗ» (founder, 28/10/2026): six tips from the app's library (scripts/website-tips.ts). */
.tips { padding: 72px 0 24px; }
.tip-grid { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 640px) { .tip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .tip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tip { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tip h3 { margin: 0 0 8px; font-size: 1.02rem; line-height: 1.5; color: var(--ink); }
.tip p { margin: 0; color: var(--muted); line-height: 1.75; font-size: .95rem; }
.faq { padding: 72px 0; }
.faq h2 { margin-bottom: 24px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-top: 10px; }
summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 600; position: relative; min-height: 48px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 18px 18px; color: var(--muted); }
details a { color: var(--brand); }

/* Download */
.download { padding: 72px 0; background: linear-gradient(135deg, #065f46, #047857 55%, #0f766e); color: #fff; }
.download .lead { color: #d1fae5; }
.dl-in { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .dl-in { grid-template-columns: 1.3fr .7fr; } }
.qr { margin: 0; justify-self: center; background: #fff; padding: 18px; border-radius: 24px; text-align: center; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
.qr svg { width: 188px; height: 188px; display: block; }
.qr figcaption { color: #064e3b; font-size: .85rem; font-weight: 600; margin-top: 10px; }

/* Footer */
.foot { padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot-in { display: grid; gap: 24px; }
/* Three groups like a world-class app's footer (founder, 28/10/2026): the app, contact, follow us; the copyright below. */
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.foot-cols div { display: grid; align-content: start; gap: 2px; }
.foot-cols h4 { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.foot nav a { color: var(--muted); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.foot nav a:hover { color: var(--brand); }
.foot .copy { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
/* The other pages' short footer (a few links in a row). */
.foot nav:not(.foot-cols) { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: start; }
.copy { color: var(--muted); font-size: .85rem; }
@media (min-width: 900px) {
  .foot-in { grid-template-columns: 1fr 2fr; align-items: start; }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot .copy { grid-column: 1 / -1; }
}

/* Legal pages */
.doc { padding: 40px 0 72px; }
.doc h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.doc .updated { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.doc section { margin-top: 28px; }
.doc h2 { font-size: 1.2rem; margin-bottom: 8px; }
.doc ul, .doc ol { color: var(--muted); padding-left: 22px; display: grid; gap: 6px; margin: 0; }
.doc .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 18px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); text-decoration: none; font-weight: 600; margin-bottom: 18px; min-height: 40px; }

/* Motion — only with JS and without «reduce motion» */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.motion .reveal.in { opacity: 1; transform: none; }
.ph-toast.ping { animation: ping .9s cubic-bezier(.2, .8, .2, 1); }
@keyframes ping { 0% { transform: translateY(8px) scale(.96); opacity: .3; } 60% { transform: translateY(-3px) scale(1.02); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero h1 span, .hero::before, .hero::after { animation: none; }
  .motion .reveal { opacity: 1; transform: none; }
}

/* Card link */
.card-link { display: inline-flex; align-items: center; min-height: 40px; margin-top: 8px; color: var(--brand); font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* Islamic Mode page — emerald and gold */
.gold { color: var(--gold); }
.arabic { font-family: "Amiri", serif; font-size: 1.9rem; color: var(--gold); margin-bottom: 6px; line-height: 1.6; }
.isl-hero { position: relative; overflow: hidden; padding: 48px 0 56px; background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--brand-2) 20%, transparent), transparent), radial-gradient(800px 400px at -10% 110%, color-mix(in srgb, var(--gold) 14%, transparent), transparent); }
.isl-hero-in { display: grid; gap: 32px; align-items: center; }
.isl-hero h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); font-weight: 700; }
.isl-hero h1 span { color: var(--brand); }
.isl-mascot { justify-self: center; width: min(300px, 70vw); height: auto; border-radius: 40px; box-shadow: 0 30px 60px -28px rgba(6, 78, 59, .6); animation: float 7s ease-in-out infinite; }
.isl-mascot.small { width: 180px; border-radius: 30px; }
@media (min-width: 900px) { .isl-hero { padding: 80px 0; } .isl-hero-in { grid-template-columns: 1.2fr .8fr; } }
.isl-day { padding: 64px 0; }
.timeline { list-style: none; padding: 0; margin: 30px auto 0; max-width: 760px; display: grid; gap: 14px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--gold), var(--brand)); opacity: .5; }
.timeline li { position: relative; display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 14px; }
.timeline .t { flex: none; width: 28px; height: 28px; display: grid; place-items: center; font-size: 22px; margin-left: 0; position: relative; z-index: 1; }
.timeline h3 { font-size: 1.05rem; margin-bottom: 4px; }
.timeline p { color: var(--muted); font-size: .95rem; }
.isl-money { padding: 72px 0; background: linear-gradient(180deg, var(--gold-soft), transparent); }
.isl-money .sub { color: var(--muted); max-width: 620px; margin: 10px auto 0; }
.isl-respect { padding: 56px 0; background: var(--brand-deep); }
.isl-respect .tr { padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.isl-respect .tr b { display: block; font-size: 1.4rem; margin-bottom: 8px; }
.isl-respect .tr p { color: #c9e3d8; font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { .isl-mascot { animation: none; } }

/* The phone with the real app's screenshots */
.phone-wrap { margin: 0; justify-self: center; display: grid; justify-items: center; gap: 14px; }
.phone-wrap .phone { aspect-ratio: auto; width: min(310px, 80vw); padding: 9px; border-radius: 48px; transform: rotate(1.5deg); }
/* A real phone's proportions: a status bar with the punch-hole camera, the app, the gesture bar. */
.screen.shots { position: relative; padding: 0; display: flex; flex-direction: column; gap: 0; background: #fff; border-radius: 40px; overflow: hidden; }
.sbar { position: relative; display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 0 26px; font: 600 12px/1 "Plus Jakarta Sans", sans-serif; color: #111827; background: #fff; flex: none; }
.sbar .cam { position: absolute; left: 50%; top: 9px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #0b0f0d; box-shadow: inset 0 0 0 3px #1c2522; }
.sbar .sig { display: inline-flex; align-items: center; gap: 5px; }
.sbar .sig b { display: inline-block; width: 20px; height: 10px; border-radius: 3px; border: 1.5px solid #111827; position: relative; }
.sbar .sig b::after { content: ""; position: absolute; inset: 1.5px; right: 5px; background: #111827; border-radius: 1px; }
.viewport { position: relative; aspect-ratio: 589 / 1263; flex: none; }
/* Android (founder, 29/10/2026 — most of our members, and the APK): the punch-hole camera in the status bar. */
.punch { position: absolute; z-index: 3; left: 50%; top: 1.15%; width: 4%; aspect-ratio: 1; margin-left: -2%; border-radius: 50%; background: #050806; box-shadow: inset 0 0 0 2px #1c2522; }
.homebar { height: 22px; flex: none; background: #fff; position: relative; }
.homebar::after { content: ""; position: absolute; left: 50%; top: 9px; width: 34%; height: 4px; margin-left: -17%; border-radius: 4px; background: #111827; opacity: .8; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .8s ease; }
.shot.on { opacity: 1; }
/* Today's date, where the app writes it (the screenshots' own was erased): right-aligned under the header. */
.viewport { container-type: inline-size; }
.ph-date { position: absolute; z-index: 1; top: 13.35%; right: 4.1%; font: 500 3.2cqw/1.2 "Kantumruy Pro", "Plus Jakarta Sans", sans-serif; color: #374151; white-space: nowrap; }
.screen.shots[data-on="me"] .ph-date { top: 12.85%; }
.screen.shots .ph-toast { position: absolute; left: 10px; right: 10px; bottom: 14%; z-index: 2; font-size: 12px; }
.shot-tabs { display: flex; gap: 8px; }
.shot-tabs span { padding: 5px 12px; border-radius: 999px; font-size: .85rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); transition: all .3s ease; }
.shot-tabs span.on { color: #fff; background: var(--brand); border-color: var(--brand); }
@media (prefers-color-scheme: dark) { .shot-tabs span.on { color: #022c22; } }
.screen.shots .ph-toast { transition: opacity .5s ease; }
.screen.shots[data-on="me"] .ph-toast { opacity: 0; }

.save { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: var(--gold-soft); color: #8a5a00; font-size: .82rem; font-weight: 600; width: max-content; }
@media (prefers-color-scheme: dark) { .save { color: var(--gold); } }

/* Official accounts — grouped in order, each with its icon */
.accts { display: grid; gap: 10px; margin-top: 14px; grid-template-columns: 1fr; text-align: left; }
@media (min-width: 640px) { .accts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .accts { grid-template-columns: repeat(4, 1fr); } }
.acct { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: 14px; text-decoration: none; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: background .2s ease, transform .2s ease; }
.acct:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.ai { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; }
.ai svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ai svg.fill { fill: currentColor; stroke: none; }
/* One look for every official account (founder, 29/10/2026 — «the icons don't match»): the same gold line icon in the same tile. */
.acct .ai { background: rgba(252, 211, 77, .16); color: #fcd34d; }
.at { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.at small { color: #a9cfc0; font-size: .78rem; }
.at b { color: #fff; font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }

/* 404 */
.nf { min-height: 100dvh; display: grid; place-items: center; text-align: center; }
.nf img { margin: 0 auto 10px; border-radius: 26px; }
.nf .code { font: 800 3.6rem/1 "Plus Jakarta Sans", sans-serif; color: var(--brand); }
.nf h1 { margin-top: 8px; }
.nf .cta { justify-content: center; }

/* The bot conversation as the bot does it, and the «example» notes */
.chat-wrap { margin: 0; }
.chat .card { padding: 0; overflow: hidden; max-width: 78%; border-radius: 18px; border-bottom-left-radius: 6px; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.chat .card p { box-shadow: none; max-width: none; padding: 10px 14px 8px; line-height: 1.75; }
.chat .kb { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 0 6px 6px; }
.chat .kb span { text-align: center; font-size: .85rem; padding: 7px 4px; border-radius: 10px; background: rgba(34, 158, 217, .12); color: #1f7ab3; font-weight: 600; }
.note { margin-top: 10px; color: var(--muted); font-size: .8rem; text-align: center; }

/* «ខ្ញុំជា…» — one door per reader (founder, 29/10/2026) */
.doors { padding: 64px 0; }
.door-grid { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 760px) { .door-grid { grid-template-columns: repeat(3, 1fr); } }
.door { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.door:hover { transform: translateY(-3px); border-color: var(--brand); }
.door .ic { font-size: 30px; line-height: 1; }
.door h3 { font-size: 1.2rem; }
.door p { color: var(--muted); flex: 1; }
.door b { color: var(--brand); }
.fam-art { justify-self: center; display: grid; place-items: center; width: min(280px, 70vw); aspect-ratio: 1; margin: 0; border-radius: 50%; background: var(--brand-soft); box-shadow: var(--shadow); }
.fam-art svg { width: 78%; height: auto; display: block; }

/* Line icons in place of emoji (founder, 29/10/2026: «cartoon icons don't fit the app's value») — icons.svg, one stroke
   style in the brand colour; the emoji left on the page are the bot's and the app's own words, shown as they are. */
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.feat .ic, .signature span, .door .ic { color: var(--brand); }
.feat .ic .i, .signature span .i { font-size: 24px; }
.moment > span { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-size: 22px; }
.door .ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); font-size: 26px; }
.timeline .t { color: var(--gold, #d4a514); }
.tr b .i { font-size: 26px; }
.ph-toast .dot { color: #059669; font-size: 18px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; }
.chips li .i { color: var(--brand); font-size: 18px; }
.moment .fix { position: relative; padding-left: 24px; }
.moment .fix::before { content: ""; position: absolute; left: 0; top: .3em; width: 17px; height: 17px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.safe { position: relative; padding-left: 42px; }
.safe::before { content: ""; position: absolute; left: 14px; top: 12px; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.7 9a1 1 0 0 1-.6 0C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.2-2.7a1.2 1.2 0 0 1 1.6 0C14.5 3.8 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat; }

/* The footer (founder, 29/10/2026): the brand with one line, three even columns, the legal links beside the copyright. */
.foot-brand { display: grid; gap: 10px; align-content: start; }
.foot-tag { margin: 0; color: var(--muted); font-size: .92rem; max-width: 26ch; }
.foot-cols h4 { text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); }
.foot .foot-bottom .copy { padding-top: 0; border-top: 0; }
.foot .legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot .legal a { min-height: 32px; font-size: .85rem; }
@media (min-width: 760px) { .foot-bottom { grid-column: 1 / -1; } }

/* The helpline chat (founder, 5/11/2026 — Website/helpline.js): a round button at the bottom right; a sheet on a phone, a
   card on a computer; the brand's emerald and the site's surfaces, light and dark. */
.hl-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; width: 56px; height: 56px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 26px; box-shadow: 0 12px 28px -10px rgba(4, 120, 87, .7); cursor: pointer; transition: transform .15s; }
.hl-fab:hover { transform: translateY(-2px); }
.hl-fab:active { transform: scale(.95); }
.hl-fab[hidden], .hl-panel[hidden] { display: none; }
.hl-panel { position: fixed; z-index: 41; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 384px; margin: 0 auto; max-height: min(72dvh, 560px); display: flex; flex-direction: column; overflow: hidden; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 48px -16px rgba(6, 78, 59, .45); }
@media (min-width: 640px) { .hl-panel { left: auto; right: 24px; bottom: 24px; width: 360px; margin: 0; } }
.hl-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--line); background: var(--brand-soft); }
.hl-face { position: relative; flex: none; width: 40px; height: 40px; }
.hl-face img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); }
.hl-face::after { content: ""; position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--surface); background: #f59e0b; }
.hl-face.hl-on::after { background: #10b981; }
.hl-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hl-who strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-who small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; display: grid; place-items: center; cursor: pointer; }
.hl-x:hover { background: var(--brand-soft); }
.hl-list { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.hl-row { display: flex; align-items: flex-end; gap: 8px; }
.hl-av { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); }
.hl-row .hl-msg { max-width: calc(100% - 44px); }
.hl-dots { display: flex; gap: 4px; padding: 13px 14px; }
.hl-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .5; animation: hl-dot 1s infinite ease-in-out; }
.hl-dots span:nth-child(2) { animation-delay: .15s; }
.hl-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes hl-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .hl-dots span { animation: none; } }
.hl-msg { max-width: 88%; padding: 9px 13px; border-radius: 18px; font-size: 14px; line-height: 1.6; }
.hl-msg p { margin: 0; }
.hl-msg p + p { margin-top: 6px; }
.hl-bot { align-self: flex-start; background: var(--brand-soft); border-bottom-left-radius: 6px; }
.hl-me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
@media (prefers-color-scheme: dark) { .hl-me, .hl-fab { color: #022c22; } }
.hl-q { font-weight: 600; }
.hl-link { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--brand); }
.hl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-left: 36px; }
.hl-chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.hl-chip:hover { border-color: var(--brand); color: var(--brand); }
.hl-human { margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--brand); background: var(--surface); color: var(--brand); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.hl-human:disabled { opacity: .55; cursor: default; }
.hl-contact { display: flex; gap: 6px; margin-top: 8px; }
.hl-contact input, .hl-form input { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; font: inherit; font-size: 16px; background: var(--surface); color: var(--ink); }
.hl-send-text { height: 44px; border: 0; border-radius: 999px; padding: 0 16px; background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.hl-form { display: flex; align-items: center; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.hl-go { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 18px; cursor: pointer; }
@media (prefers-color-scheme: dark) { .hl-send-text, .hl-go { color: #022c22; } }
