/* mybox.la — landing page. Same tokens and type as the app, so stepping from
   the page into LOCA feels like the same product. Phone-first: almost every
   visitor arrives on a phone, most from a shared link. No JavaScript at all. */

@font-face {
  font-family: "Noto Sans Lao";
  src: url("/fonts/NotoSansLao.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans.woff2") format("woff2-variations");
  font-weight: 400 700; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope-ExtraBold.woff2") format("woff2");
  font-weight: 800; font-display: swap;
}

:root {
  color-scheme: light dark;
  --brand: #1A46D8; --brand-ink: #0f2f9e; --brand-soft: #eaf0ff;
  --bg: #ffffff; --bg-2: #f4f6fb; --card: #ffffff;
  --text: #11131a; --text-2: #4b5163; --line: #e3e7f0;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(16 24 40 / .05), 0 8px 24px rgb(16 24 40 / .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6B93FF; --brand-ink: #9cb6ff; --brand-soft: #18213f;
    --bg: #0e0f13; --bg-2: #15171d; --card: #1a1d24;
    --text: #f1f2f6; --text-2: #a3a8b8; --line: #262a33;
    --shadow: 0 1px 2px rgb(0 0 0 / .4);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg); color: var(--text);
  font-family: "Noto Sans Lao", "IBM Plex Sans", "Phetsarath OT", system-ui, sans-serif;
  font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
:lang(lo) { line-break: normal; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
b { font-weight: 650; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wordmark {
  font-family: "Manrope", "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-weight: 800; letter-spacing: -0.035em; line-height: 1;
}

h1, h2, h3 { line-height: 1.35; font-weight: 700; }
h2 { font-size: clamp(24px, 5.4vw, 34px); margin-bottom: 12px; }
h3 { font-size: 18px; margin-bottom: 6px; }
section { padding: 64px 0; }
.section-lede { color: var(--text-2); font-size: 17px; margin: -2px 0 28px; max-width: 34em; }

/* ── top bar ── */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--brand); }
.brand .wordmark { font-size: 22px; transform: translateY(1px); }
.top-cta {
  text-decoration: none; font-weight: 650; font-size: 15px;
  color: var(--brand); padding: 7px 16px; border-radius: 999px;
  border: 1.5px solid currentColor;
}

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 650; font-size: 17px; text-decoration: none;
  transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgb(26 70 216 / .28); }
.btn-primary:hover { background: var(--brand-ink); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #0b1230; } .btn-primary:hover { background: #87a7ff; } }
.btn-ghost { color: var(--text); background: var(--bg-2); }

/* ── hero ── */
.hero {
  padding: 36px 0 56px;
  background:
    radial-gradient(900px 420px at 85% -10%, var(--brand-soft), transparent 70%),
    var(--bg);
}
.hero-in { display: grid; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 650; color: var(--brand);
  background: var(--brand-soft); padding: 5px 13px; border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent); }
.hero h1 { font-size: clamp(34px, 9vw, 56px); line-height: 1.25; margin: 18px 0 16px; letter-spacing: -.005em; }
.hero h1 .hl { color: var(--brand); }
.lede { font-size: 18px; color: var(--text-2); max-width: 31em; }
.lede b { color: var(--text); font-family: "IBM Plex Sans", sans-serif; }

.handle {
  display: inline-flex; align-items: baseline; margin: 22px 0 24px;
  padding: 12px 18px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 19px;
}
.handle-name { color: var(--text-2); border-right: 2px solid var(--brand); padding-right: 2px;
  animation: caret 1.1s steps(1) infinite; }
.handle-domain { font-family: "IBM Plex Sans", sans-serif; font-weight: 600; color: var(--brand); }
@keyframes caret { 50% { border-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .handle-name { animation: none; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn { flex: 1 1 auto; }
.fine { margin-top: 14px; font-size: 14px; color: var(--text-2); }

/* phone mock with the screenshot placeholder */
.phone-wrap { position: relative; justify-self: center; width: min(300px, 78vw); }
.phone {
  border-radius: 42px; padding: 10px; background: #0d0f14;
  box-shadow: 0 30px 60px -20px rgb(16 24 40 / .45), 0 0 0 1px rgb(255 255 255 / .06) inset;
}
.phone img { border-radius: 32px; width: 100%; }
.badge {
  position: absolute; left: -18px; bottom: 54px;
  display: flex; align-items: center; gap: 9px;
  background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: 14px; padding: 9px 13px 9px 10px; box-shadow: var(--shadow);
  font-size: 13px; line-height: 1.35;
}
.badge b { color: var(--brand); }

/* ── who ── */
.who { background: var(--bg-2); }
.who-grid, .why-grid { display: grid; gap: 14px; margin-top: 24px; }
.who article, .why article {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 20px;
}
.who p, .why p { color: var(--text-2); font-size: 16px; }

/* ── why ── */
.why .num {
  display: inline-block; font-family: "IBM Plex Sans", sans-serif; font-weight: 600;
  font-size: 13px; color: var(--brand); margin-bottom: 8px; letter-spacing: .04em;
}

/* ── uses ── */
.uses { background: var(--bg-2); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.chips li {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 15px;
}

/* ── how ── */
.steps { list-style: none; display: grid; gap: 14px; margin-top: 26px; counter-reset: none; }
.steps li { position: relative; padding: 4px 0 4px 58px; }
.step-n {
  position: absolute; left: 0; top: 2px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: #fff;
  font-family: "IBM Plex Sans", sans-serif; font-weight: 700; font-size: 17px;
}
@media (prefers-color-scheme: dark) { .step-n { color: #0b1230; } }
.steps p { color: var(--text-2); }

/* ── honest ── */
.honest-in {
  border-left: 4px solid var(--brand); background: var(--brand-soft);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 26px 24px;
}
.honest h2 { font-size: 24px; }
.honest p { max-width: 40em; }

/* ── get ── */
.get { background: var(--brand); color: #fff; text-align: center; }
@media (prefers-color-scheme: dark) { .get { background: #1736a8; } }
.get-in { display: flex; flex-direction: column; align-items: center; }
.get-mark { margin-bottom: 16px; }
.get h2 { font-size: clamp(28px, 7vw, 42px); }
.get p { opacity: .92; max-width: 30em; font-size: 17px; }
.get p b { font-family: "IBM Plex Sans", "Noto Sans Lao", sans-serif; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 18px; }
.store {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  background: #fff; color: #0d0f14; border-radius: 14px; padding: 10px 20px 10px 16px;
  min-width: 200px; text-align: left; transition: transform .12s ease;
}
.store:active { transform: scale(.98); }
.store span { display: flex; flex-direction: column; font-family: "IBM Plex Sans", "Noto Sans Lao", sans-serif;
  font-weight: 650; font-size: 18px; line-height: 1.2; }
.store small { font-family: "Noto Sans Lao", sans-serif; font-weight: 400; font-size: 12px; opacity: .7; }
.get-note { font-size: 15px !important; opacity: .8 !important; }

/* ── faq ── */
.faq-in { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative;
  font-weight: 650; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: "IBM Plex Sans", sans-serif; font-size: 24px; font-weight: 400; color: var(--brand);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-2); padding: 0 0 18px; }

/* ── footer ── */
.foot { border-top: 1px solid var(--line); padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--brand); }
.foot p { color: var(--text-2); font-size: 14px; }

/* ── legal pages ── */
.legal { padding: 40px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(28px, 6vw, 38px); margin-bottom: 4px; }
.legal .updated { color: var(--text-2); font-size: 14px; margin-bottom: 22px; }
.legal .intro { font-size: 17px; color: var(--text-2); margin-bottom: 30px; }
.legal section { padding: 0; margin-bottom: 26px; }
.legal h2 { font-size: 21px; margin-bottom: 8px; }
.legal section p { color: var(--text-2); margin-bottom: 10px; }
.legal .back { display: inline-block; margin-bottom: 22px; color: var(--brand); text-decoration: none; font-weight: 650; }

/* ── wider screens ── */
@media (min-width: 760px) {
  section { padding: 88px 0; }
  .hero { padding: 64px 0 88px; }
  .hero-in { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero-actions .btn { flex: 0 0 auto; }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .steps li { padding: 58px 0 0; }
  .step-n { top: 0; }
  .badge { left: -44px; }
}
