/* =====================================================================
   JinSeon public website — same design language as the JinSeon app:
   soft #F6F7FC canvas, white 20px cards, red (#E00018) for enrol/submit, violet (#3A12C8) for everything else,
   the red→violet mesh gradient of the app's hero card, Poppins headings + Inter text + Noto Sans Myanmar.
   ===================================================================== */
:root {
  /* Brand */
  --red: #E00018; --red-press: #B8000F; --red-50: #FFECEF; --red-100: #FFD5DA; --logo-red: #FF0000;
  --violet: #3A12C8; --violet-press: #2C0E9E; --violet-50: #ECE8FF; --violet-25: #F7F5FF;
  --green-50: #DCF5E6; --green: #12793F;
  --gold-50: #FFF1CF; --gold: #8A5A00;
  /* Surfaces & text (app Home palette) */
  --bg: #F6F7FC; --surface: #FFFFFF; --inline: #F1F2F8; --border: #E6E8F2; --field-border: #D9DCE8;
  --text: #14162B; --muted: #6B7090; --subtle: #9A9FB8;
  /* Legacy aliases used by older markup */
  --text-primary: var(--text); --text-secondary: var(--muted); --text-tertiary: var(--subtle);
  --brand-50: var(--red-50); --brand-600: var(--red); --brand-700: var(--red-press); --blue-600: var(--violet); --blue-50: var(--violet-50);
  --grey-100: var(--inline); --grey-200: var(--border); --grey-300: #C9CCDA; --grey-900: var(--text);
  /* Mesh gradient of the app hero */
  --mesh:
    radial-gradient(60% 80% at 0% 0%, rgba(255, 31, 61, .95) 0%, rgba(255, 31, 61, 0) 60%),
    radial-gradient(55% 75% at 100% 100%, rgba(27, 27, 255, .95) 0%, rgba(27, 27, 255, 0) 60%),
    radial-gradient(50% 60% at 55% 45%, rgba(154, 31, 216, .9) 0%, rgba(154, 31, 216, 0) 70%),
    linear-gradient(135deg, #FF0A2A 0%, #2A10E8 100%);
  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Poppins", "Inter", system-ui, sans-serif;
  --font-myanmar: "Noto Sans Myanmar", "Myanmar Text", "Inter", sans-serif;
  /* Shape & depth */
  --r-pill: 999px; --r-card: 20px; --r-hero: 28px; --r-inline: 14px; --r-field: 14px; --r-btn: 14px; --r-btn-lg: 16px; --r-btn-sm: 12px;
  --radius-md: 12px; --radius-lg: 16px; --radius-xl: 20px; --radius-xs: 8px; --radius-field: var(--r-field);
  --shadow-card: 0 4px 14px rgba(40, 44, 90, .06);
  --shadow-lift: 0 18px 40px -14px rgba(40, 44, 90, .22);
  --shadow-red: 0 6px 16px -4px rgba(224, 0, 24, .38);
  --shadow-violet: 0 6px 16px -4px rgba(58, 18, 200, .35);
  --ring: 0 0 0 4px rgba(58, 18, 200, .14);
  /* Layout & motion */
  --gutter: clamp(16px, 4vw, 24px);
  --section-y: clamp(56px, 8vw, 96px);
  --header-h: 72px;
  --dur: 140ms; --ease: cubic-bezier(.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); font: 400 16px/1.6 var(--font-sans); color: var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-press); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font-family: inherit; }
.mm, [lang="my"] { font-family: var(--font-myanmar); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
::selection { background: var(--violet-50); color: var(--violet-press); }

/* ---------------- Buttons (app AppButton) ---------------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
  border-radius: var(--r-btn); border: 1.5px solid transparent; font: 700 15px/1 var(--font-sans); letter-spacing: .1px; cursor: pointer;
  white-space: nowrap; text-decoration: none !important; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: var(--r-btn-sm); }
.btn.lg { height: 56px; padding: 0 28px; font-size: 16px; border-radius: var(--r-btn-lg); }
.btn.block { display: flex; width: 100%; }
/* Red: enrol / submit (the app's exam & account-entry action) */
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--red-press); color: #fff; }
/* Violet: every other main action */
.btn-violet { background: var(--violet); color: #fff; box-shadow: var(--shadow-violet); }
.btn-violet:hover { background: var(--violet-press); color: #fff; }
/* Outline */
.btn-secondary { background: var(--surface); color: var(--violet); border-color: var(--violet); }
.btn-secondary:hover { background: var(--violet-25); color: var(--violet-press); border-color: var(--violet-press); }
/* Tonal */
.btn-tonal { background: var(--violet-50); color: var(--violet); }
.btn-tonal:hover { background: #DCD5FF; color: var(--violet-press); }
/* On the gradient: white, and frosted glass */
.btn-white { background: #fff; color: var(--violet); box-shadow: 0 8px 20px -6px rgba(20, 22, 43, .35); }
.btn-white:hover { background: var(--violet-25); color: var(--violet-press); }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); color: #fff; }

/* ---------------- Badges (app AppBadge) ---------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 4px 12px; border-radius: var(--r-pill);
  font: 700 12px/1.3 var(--font-sans); letter-spacing: .4px; background: var(--violet-50); color: var(--violet); white-space: nowrap; }
.badge.red { background: var(--red-50); color: var(--red); }
.badge.green { background: var(--green-50); color: var(--green); }
.badge.gold { background: var(--gold-50); color: var(--gold); }
.badge.glass { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.badge.mm { font-family: var(--font-myanmar); letter-spacing: 0; }

/* ---------------- Header ---------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 30; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.header-bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none !important; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font: 700 19px var(--font-display); letter-spacing: -.01em; color: var(--text); }
.brand-text small { font: 500 12px var(--font-sans); color: var(--muted); white-space: nowrap; }
.main-nav { display: flex; gap: 4px; align-items: center; margin-left: auto; margin-right: 8px; }
.main-nav a { font: 600 14.5px var(--font-display); color: var(--muted); padding: 9px 14px; border-radius: var(--r-pill); text-decoration: none; transition: background var(--dur), color var(--dur); }
.main-nav a:hover { color: var(--text); background: var(--bg); }
.main-nav a.active { color: var(--violet); background: var(--violet-50); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--r-btn-sm); border: 1px solid var(--border); background: var(--surface); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex-shrink: 0; }
.menu-btn span { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] { gap: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(2px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-2px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--border); background: var(--surface); padding: 8px 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { font: 600 16px var(--font-display); padding: 13px 14px; border-radius: var(--r-inline); color: var(--text); text-decoration: none; }
.mobile-nav a:hover { background: var(--bg); }
.mobile-nav a.active { color: var(--violet); background: var(--violet-50); }
@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-btn { display: flex; }
}
@media (min-width: 861px) { .mobile-nav { display: none !important; } }
@media (max-width: 400px) { .brand-text small { display: none; } .header-actions .btn.sm { padding: 0 12px; } }

/* ---------------- Sections & type ---------------- */
main { padding-top: var(--header-h); }
.section { padding: var(--section-y) 0; }
.section.grey, .section.white { background: var(--surface); }
.eyebrow { align-self: flex-start; display: inline-flex; align-items: center; min-height: 28px; padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--violet-50); color: var(--violet); font: 700 12px/1.3 var(--font-sans); letter-spacing: .08em; }
.eyebrow.light { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.eyebrow.deep { background: var(--red-50); color: var(--red); }
h2 { font: 700 clamp(28px, 3.6vw, 44px)/1.12 var(--font-display); letter-spacing: -.01em; color: var(--text); text-wrap: balance; }
h2.mm, h2[lang="my"] { font-family: var(--font-myanmar); letter-spacing: 0; line-height: 1.5; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(36px, 6vw, 64px); align-items: center; }
.split.top { align-items: start; gap: clamp(32px, 5vw, 56px); }
.split.stretch { align-items: stretch; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-lg { display: flex; flex-direction: column; gap: 18px; }
.stack-xl { display: flex; flex-direction: column; gap: 36px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.row-head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; max-width: none; }
.section-note { font-size: 15px; line-height: 1.85; color: var(--muted); max-width: 440px; }
.body-mm { font-size: 16px; line-height: 1.95; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-card); }

/* Icon chips (app tile tints) */
.icon-tile { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-tile.sm { width: 32px; height: 32px; border-radius: 10px; }
.icon-tile.lg { width: 48px; height: 48px; border-radius: 14px; }
.icon-tile.red { background: #FFECEF; color: #F0203E; }
.icon-tile.blue { background: #F1ECFF; color: #6D4AFF; }
.icon-tile.teal { background: #E2F6F3; color: #0F9483; }
.icon-tile.amber { background: #FFF2DE; color: #D9860B; }
.icon-tile.indigo { background: #E9EEFF; color: #2B4DFF; }

/* ---------------- Hero: copy left, the real photo right (no overlay) ---------------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-content { display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font: 700 clamp(40px, 5.6vw, 68px)/1.04 var(--font-display); letter-spacing: -.01em; color: var(--text); text-wrap: balance; }
.hero-sub { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.9; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.hero-courses { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 4px; }
.hero-courses li { display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--font-sans); color: var(--text); }
.hero-courses svg { color: var(--green); }
.hero-photo { position: relative; }
.hero-photo > img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 40%; border-radius: var(--r-hero); box-shadow: var(--shadow-lift); }
.hero-float { position: absolute; left: clamp(-28px, -2vw, -12px); bottom: 24px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; max-width: calc(100% - 24px);
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow-lift); color: var(--text) !important; text-decoration: none !important; transition: transform var(--dur) var(--ease); }
.hero-float:hover { transform: translateY(-2px); }
.hero-float > img { width: 40px; height: 40px; }
.hero-float span { display: flex; flex-direction: column; min-width: 0; }
.hero-float b { font: 700 15px var(--font-display); letter-spacing: -.01em; }
.hero-float small { font: 500 12.5px var(--font-sans); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-float svg { color: var(--violet); flex-shrink: 0; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-float { left: 12px; bottom: 12px; }
}
@media (max-width: 520px) { .hero-actions .btn { flex: 1 1 100%; } .hero-photo > img { aspect-ratio: 4 / 3; border-radius: 22px; } }

/* ---------------- About ---------------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; padding-top: 8px; }
.course-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 16px; display: flex; flex-direction: column; gap: 8px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.course-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.course-card h3 { font: 700 16px/1.3 var(--font-display); letter-spacing: -.01em; }
.course-card p { font-size: 13px; line-height: 1.75; color: var(--muted); }
.about-photo { position: relative; }
.about-photo > img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-hero); box-shadow: var(--shadow-lift); }
.photo-badge { position: absolute; left: -16px; bottom: -22px; max-width: calc(100% - 24px); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--r-card); padding: 14px 18px; box-shadow: var(--shadow-lift); display: flex; align-items: center; gap: 12px; }
.photo-badge span { display: flex; flex-direction: column; }
.photo-badge b { font: 700 16px var(--font-display); letter-spacing: -.01em; }
.photo-badge small { font: 400 13px var(--font-sans); color: var(--muted); }
@media (max-width: 560px) { .photo-badge { left: 12px; } }

/* ---------------- Teachers ---------------- */
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.teacher-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.teacher-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
/* Fills the square edge to edge. Portraits are cropped from the bottom only, so the head is never cut off. */
.teacher-photo { width: 100%; height: 340px; object-fit: cover; object-position: center top; }
.teacher-photo.initials { display: flex; align-items: center; justify-content: center; font: 700 64px var(--font-display); letter-spacing: -.01em; }
.teacher-photo.red { background: var(--red-50); color: var(--red); }
.teacher-photo.blue { background: var(--violet-50); color: var(--violet); }
.teacher-photo.grey { background: var(--inline); color: var(--text); }
.teacher-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.teacher-body h3 { font: 700 19px var(--font-display); letter-spacing: -.01em; }
.teacher-role { align-self: flex-start; font: 700 12px/1.3 var(--font-sans); color: var(--violet); background: var(--violet-50); padding: 4px 10px; border-radius: var(--r-pill); }
.teacher-body p { font-size: 14px; line-height: 1.85; color: var(--muted); white-space: pre-line; }

/* ---------------- Gallery ---------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); grid-auto-rows: clamp(200px, 28vw, 260px); gap: 14px; }
.gallery-item a { position: relative; display: block; height: 100%; border-radius: var(--r-card); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-card); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item a:hover img { transform: scale(1.04); }
.gallery-cap { position: absolute; left: 12px; bottom: 12px; font: 700 13px/1.3 var(--font-sans); color: var(--text); background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 6px 12px; border-radius: var(--r-pill); }
@media (min-width: 861px) { .gallery-item:first-child { grid-column: span 2; grid-row: span 2; } }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20, 22, 43, .9); display: flex; align-items: center; justify-content: center; padding: 32px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--r-card); object-fit: contain; }

/* ---------------- Enrolment (light) ---------------- */
.enroll-intro h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; }
.enroll-intro p { font-size: 16px; line-height: 1.95; color: var(--muted); }
.steps { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.steps li { display: flex; gap: 14px; align-items: center; font-size: 15px; line-height: 1.7; color: var(--text); padding: 14px 16px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.steps li span { width: 34px; height: 34px; border-radius: 50%; background: var(--violet-50); color: var(--violet); display: flex; align-items: center; justify-content: center; font: 700 14px var(--font-display); flex-shrink: 0; }
.form-card { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-hero); padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow-lift); }
.form-head { display: flex; flex-direction: column; gap: 4px; }
.form-head h3, .form-head h2 { font: 700 24px/1.2 var(--font-display); letter-spacing: -.01em; }
.form-head span { font-size: 14px; line-height: 1.7; color: var(--muted); }
.enroll-form { display: flex; flex-direction: column; gap: 18px; }
.form-foot { font-size: 12px; line-height: 1.8; color: var(--subtle); text-align: center; }
.form-done { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 28px 8px; }
.form-done h3 { font: 700 24px var(--font-display); letter-spacing: -.01em; }
.form-done p { font-size: 15px; line-height: 1.85; color: var(--muted); }
.done-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--green-50); color: var(--green); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px rgba(220, 245, 230, .5); }
.done-ref { display: inline-flex; gap: 8px; align-items: center; font: 600 14px var(--font-sans); color: var(--muted); background: var(--inline); padding: 8px 14px; border-radius: var(--r-pill); }
.done-ref b { font-family: var(--font-display); letter-spacing: 1px; color: var(--text); }
.notice { display: flex; gap: 10px; font: 500 13.5px/1.6 var(--font-sans); border-radius: var(--r-inline); padding: 12px 14px; }
.notice.error { background: #FFF6F7; color: #B3261E; border: 1px solid var(--red-100); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- Form controls (app text fields) ---------------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, fieldset.field legend { font: 600 14px/1.4 var(--font-sans); color: var(--text); }
.field > label .mm, fieldset.field legend .mm { font-weight: 500; color: var(--muted); }
.field > label .opt { font-weight: 400; color: var(--subtle); }
.input, .select, .textarea { width: 100%; height: 52px; border: 1.5px solid var(--field-border); border-radius: var(--r-field); padding: 0 16px;
  font: 500 16px var(--font-sans); color: var(--text); background: var(--surface); outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease); }
.input::placeholder, .textarea::placeholder { color: var(--subtle); font-weight: 400; }
.input:hover, .select:hover, .textarea:hover { border-color: #B9BDD0; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--violet); box-shadow: var(--ring); }
.select { appearance: none; -webkit-appearance: none; padding: 0 40px 0 16px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236B7090' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.select::-ms-expand { display: none; }
.select:disabled { background-color: var(--inline); color: var(--subtle); cursor: not-allowed; }
.select.mm { font-family: var(--font-myanmar); }
.select.placeholder, .select:has(option[value="0"]:checked) { color: var(--subtle); font-weight: 400; }
.select option { color: var(--text); }
.textarea { height: auto; padding: 14px 16px; resize: vertical; min-height: 104px; line-height: 1.55; }
.input.invalid, .select.invalid, .textarea.invalid, .field.invalid > .input, .field.invalid > .textarea, .field.invalid .dob-grid .select { border-color: var(--red); }
.input.invalid:focus, .select.invalid:focus, .textarea.invalid:focus, .field.invalid > .input:focus, .field.invalid > .textarea:focus { box-shadow: 0 0 0 4px rgba(224, 0, 24, .12); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 1.5px; }
.hint { font: 400 12.5px/1.5 var(--font-sans); color: var(--subtle); }
.field-error { display: flex; gap: 6px; align-items: flex-start; font: 500 12.5px/1.5 var(--font-sans); color: var(--red); }
.field-error::before { content: "!"; flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--red); color: #fff; font: 800 11px/16px var(--font-sans); text-align: center; }

/* Date of birth: Day / Month / Year */
.dob-grid { display: grid; grid-template-columns: minmax(84px, .8fr) minmax(0, 1.3fr) minmax(92px, 1fr); gap: 8px; }
.dob-grid .select { padding: 0 30px 0 14px; background-position: right 10px center; background-size: 16px; }

/* NRC */
.nrc-grid .select { padding: 0 28px 0 12px; background-position: right 8px center; background-size: 16px; }
.nrc-grid .input { padding: 0 12px; }
.nrc-grid { display: grid; grid-template-columns: 96px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; align-items: center; }
.nrc-preview { display: inline-flex; align-self: flex-start; gap: 8px; align-items: center; font: 600 14px var(--font-myanmar); color: var(--violet); background: var(--violet-25); border: 1px solid var(--violet-50); border-radius: var(--r-pill); padding: 6px 14px; }
.nrc-preview[hidden] { display: none; }
@media (max-width: 480px) { .nrc-grid { grid-template-columns: 96px minmax(0, 1fr); } }

/* Choice cards (radio) — app "selected" card */
fieldset.field { border: none; padding: 0; margin: 0; }
fieldset.field legend { margin-bottom: 8px; padding: 0; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--field-border); border-radius: var(--r-inline); background: var(--surface); cursor: pointer;
  transition: border-color var(--dur), background var(--dur), box-shadow var(--dur); }
.choice:hover { border-color: #B9BDD0; }
.choice:has(input:checked) { border-color: var(--violet); background: var(--violet-25); }
.choice:has(input:focus-visible) { box-shadow: var(--ring); }
.choice input { margin-top: 2px; accent-color: var(--violet); width: 18px; height: 18px; flex-shrink: 0; }
.choice span { display: flex; flex-direction: column; gap: 2px; }
.choice b { font: 700 15px var(--font-sans); color: var(--text); }
.choice small { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.fieldset.invalid .choice, .field.invalid .choice { border-color: var(--red); }
@media (max-width: 420px) { .choice-row { grid-template-columns: 1fr; } }
.confirm-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.65; color: var(--muted); cursor: pointer; padding: 14px; border-radius: var(--r-inline); background: var(--inline); }
.confirm-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--red); flex-shrink: 0; }
.confirm-row .mm { display: block; font-size: 13px; }
.confirm-row.invalid { color: #B3261E; background: #FFF6F7; box-shadow: inset 0 0 0 1.5px var(--red-100); }

/* ---------------- App section ---------------- */
.app-card { position: relative; overflow: hidden; border-radius: var(--r-hero); background: var(--mesh); color: #fff; padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow-lift); isolation: isolate; }
.app-card h2 { color: #fff; }
.app-card .body-mm { color: rgba(255, 255, 255, .9); }
.app-points { display: flex; flex-wrap: wrap; gap: 8px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; align-items: center; }
/* "Get it on Google Play" badge — black, 1px grey outline, full-colour Play logo (Google badge style) */
.play-badge { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 16px; border-radius: 12px; background: #000; color: #fff !important; border: 1px solid #A6A6A6;
  text-decoration: none !important; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.play-badge:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .55); }
.play-badge:active { transform: scale(.97); }
.play-badge svg { width: 30px; height: 33px; flex-shrink: 0; }
.play-badge .store-text { display: flex; flex-direction: column; line-height: 1.05; }
.play-badge .store-text small { font: 500 11px var(--font-sans); letter-spacing: .6px; text-transform: uppercase; color: #fff; }
.play-badge .store-text b { font: 600 22px var(--font-sans); letter-spacing: -.2px; white-space: nowrap; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 20px; border-radius: 12px; background: #000; color: #fff !important; border: 1px solid #A6A6A6; min-width: 190px; text-decoration: none !important; }
.store-btn .store-icon { width: 30px; height: 30px; border-radius: 8px; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.store-btn .store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-btn .store-text small { font: 500 11px var(--font-sans); color: #fff; }
.store-btn .store-text b { font: 600 20px var(--font-sans); white-space: nowrap; }
.apk-link { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-card); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  color: #fff !important; max-width: 520px; text-decoration: none !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background var(--dur); }
.apk-link:hover { background: rgba(255, 255, 255, .2); }
.apk-link .icon-tile { width: 40px; height: 40px; background: #fff; color: var(--violet); }
.apk-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.apk-text b { font: 700 15px var(--font-sans); }
.apk-text small { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.apk-go { font: 700 14px var(--font-sans); color: #fff; white-space: nowrap; background: rgba(255, 255, 255, .18); padding: 8px 14px; border-radius: var(--r-pill); }

/* Phone mock-up: the app's Home screen */
.phone-wrap { display: flex; justify-content: center; }
.phone { width: 290px; border-radius: 44px; border: 10px solid #14162B; background: #F6F7FC; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 40px 70px -24px rgba(20, 22, 43, .6), inset 0 0 0 1px rgba(255, 255, 255, .06); transform: rotate(-3deg); }
.phone-status { height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; font: 700 10px var(--font-sans); background: #fff; color: var(--text); }
.phone-screen { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .phone { transform: none; } }

/* ---------------- Contact ---------------- */
.contact-card { padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 22px; }
.contact-list { display: flex; flex-direction: column; gap: 4px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px; margin: 0 -12px; border-radius: var(--r-inline); }
.contact-item + .contact-item { border-top: 1px solid var(--border); border-radius: 0; }
.contact-item > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-item small { font: 600 12.5px var(--font-sans); color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; }
.contact-value { font: 500 16px/1.65 var(--font-sans); color: var(--text); overflow-wrap: anywhere; }
.contact-sub { font-size: 14px; line-height: 1.7; color: var(--muted); }
.phone-list { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.email-list { display: flex; flex-direction: column; }
.phone-list a { font: 700 16px/1.65 var(--font-sans); white-space: nowrap; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.follow-label { font: 600 12.5px var(--font-sans); color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social { width: 46px; height: 46px; border-radius: 14px; color: #fff !important; display: flex; align-items: center; justify-content: center; text-decoration: none !important;
  transition: transform var(--dur) var(--ease), filter var(--dur); }
.social:hover { transform: translateY(-2px); filter: brightness(.95); }
.social.sm { width: 36px; height: 36px; border-radius: 11px; }
.social.sm svg { width: 18px; height: 18px; }
.social.fb { background: #1877F2; }
.social.tg { background: #229ED9; }
.social.yt { background: #FF0000; }
.social.tt { background: #111; }
.map-box { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card); min-height: clamp(320px, 45vw, 460px); background: var(--inline); }
.map-box iframe { border: 0; width: 100%; height: 100%; min-height: clamp(320px, 45vw, 460px); display: block; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 28px 0; }
.footer-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font: 700 15px var(--font-display); letter-spacing: -.01em; }
.footer-brand img { width: 34px; height: 34px; }
.footer-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-phone { font: 700 13.5px var(--font-sans); }
.footer-link { font: 600 13.5px var(--font-sans); color: var(--muted); }
.footer-link:hover { color: var(--violet); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.copy { font: 400 13px var(--font-sans); color: var(--subtle); }

/* ---------------- Simple pages (404 / error / maintenance) ---------------- */
.simple-page { min-height: 100vh; padding: 48px var(--gutter); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.simple-page h1 { font: 700 34px var(--font-display); letter-spacing: -.01em; }
.simple-page p { color: var(--muted); line-height: 1.75; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------------- Secondary pages: Privacy Policy, Delete Account ---------------- */
.site-header.sub { position: sticky; }
.sub-nav { display: flex; align-items: center; gap: 4px; }
.sub-nav a { font: 600 14.5px var(--font-display); color: var(--muted); padding: 9px 14px; border-radius: var(--r-pill); text-decoration: none; }
.sub-nav a:hover { color: var(--text); background: var(--bg); }
.sub-nav a.active { color: var(--violet); background: var(--violet-50); }
@media (max-width: 560px) { .sub-nav a { font-size: 13.5px; padding: 8px 10px; } .sub-nav .hide-sm { display: none; } .brand-text small { display: none; } }
.sub-main { padding: clamp(32px, 6vw, 64px) 0 var(--section-y); }

.legal { max-width: 860px; }
.legal-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.legal-head h1, .delete-info h1 { font: 700 clamp(34px, 4.6vw, 52px)/1.08 var(--font-display); letter-spacing: -.01em; }
.legal-meta { font-size: 14px; color: var(--subtle); line-height: 1.6; }
.legal-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-jump a { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 13.5px/1 var(--font-sans); text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-card);
  transition: border-color var(--dur), color var(--dur), background var(--dur); }
.legal-jump a[lang="my"] { font-family: var(--font-myanmar); font-weight: 500; }
.legal-jump a:hover { border-color: var(--violet); color: var(--violet); background: var(--violet-25); text-decoration: none; }
.legal-jump a.danger { color: var(--red); border-color: var(--red-100); }
.legal-jump a.danger:hover { background: var(--red-50); border-color: var(--red); }
#english, #myanmar { scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-body { font-size: 16px; line-height: 1.85; color: var(--muted); }
.legal-body.mm, .legal-body [lang="my"], .mm-block { line-height: 2; }
.legal-body h2 { font: 700 22px/1.3 var(--font-display); color: var(--text); letter-spacing: -.01em; margin: 36px 0 10px; }
.legal-body.mm h2, .mm-block h2 { font-family: var(--font-myanmar); font-weight: 700; letter-spacing: 0; line-height: 1.6; }
.legal-body h3 { font: 700 17px/1.4 var(--font-sans); color: var(--text); margin: 20px 0 6px; }
.legal-body p { margin: 0 0 12px; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin: 0 0 12px; list-style: revert; }
.legal-body li { margin-bottom: 6px; }
.legal-body li::marker { color: var(--violet); }
.legal-body b { color: var(--text); }
.legal-body code { font-size: 14px; background: var(--inline); border-radius: 6px; padding: 1px 6px; }
.legal-lang-title { font-size: clamp(26px, 3.6vw, 36px) !important; margin-top: 0 !important; }
.legal-divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }
.legal-contact { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-card); font-size: 15px; line-height: 1.7; }
.legal-contact b { font-size: 16px; }
.legal-contact-label { color: var(--subtle); font-weight: 500; }

.delete-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 56px); align-items: start; }
.delete-info h1 { margin: 12px 0 14px; color: var(--text); }
.delete-info h2 { margin-top: 26px; }
.delete-card { border: 1px solid var(--border); box-shadow: var(--shadow-lift); position: sticky; top: calc(var(--header-h) + 16px); }
.mm-block { margin-top: 28px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: var(--r-card); }
.mm-block h2 { margin-top: 0; }
.warn-note { color: #B3261E; font-weight: 700; }
@media (max-width: 900px) { .delete-layout { grid-template-columns: 1fr; } .delete-card { position: static; order: -1; } }
