/* iAbidan website
   Colours follow the app's DesignSystem.swift: neutral paper + terracotta accent. */

/* ---------- Tokens ---------- */
:root {
  --accent: #D4784A;
  --accent-deep: #AA5832;
  --accent-ink: #A8522A;
  --accent-soft: rgba(212, 120, 74, 0.12);
  --bg: #F7F7F8;
  --surface: #FFFFFF;
  --fill: #EEEFF2;
  --text: #1A1F2E;
  --text-2: #4A5060;
  --text-3: #767C8A;
  --hairline: rgba(26, 31, 46, 0.10);
  --shadow: 0 1px 2px rgba(26, 31, 46, 0.05), 0 8px 24px rgba(26, 31, 46, 0.07);
  --shadow-lg: 0 2px 6px rgba(26, 31, 46, 0.06), 0 24px 60px rgba(26, 31, 46, 0.14);
  --header-bg: rgba(247, 247, 248, 0.78);
  --ai-bg: linear-gradient(135deg, #1D1A2B 0%, #2B1F2A 45%, #3A2419 100%);
  --cta-bg: linear-gradient(170deg, #FDF6F1 0%, #FFFFFF 60%, #FAF3EE 100%);
  --cta-glow: rgba(212, 120, 74, 0.20);

  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, "Noto Sans Myanmar", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Myanmar", "Myanmar Text", sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --max: 1160px;
  --gutter: 20px;
  --header-h: 64px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent-ink: #EFA482;
    --accent-soft: rgba(239, 164, 130, 0.14);
    --bg: #0E0F12;
    --surface: #17191E;
    --fill: #23262D;
    --text: #E6EBF2;
    --text-2: #B4BAC6;
    --text-3: #868C99;
    --hairline: rgba(230, 235, 242, 0.10);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.5);
    --header-bg: rgba(14, 15, 18, 0.78);
    --ai-bg: linear-gradient(135deg, #17151F 0%, #221823 45%, #2E1D14 100%);
    --cta-bg: linear-gradient(170deg, #211A17 0%, #17191E 60%, #1B1A1E 100%);
    --cta-glow: rgba(239, 164, 130, 0.14);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --accent-ink: #EFA482;
  --accent-soft: rgba(239, 164, 130, 0.14);
  --bg: #0E0F12;
  --surface: #17191E;
  --fill: #23262D;
  --text: #E6EBF2;
  --text-2: #B4BAC6;
  --text-3: #868C99;
  --hairline: rgba(230, 235, 242, 0.10);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(14, 15, 18, 0.78);
  --ai-bg: linear-gradient(135deg, #17151F 0%, #221823 45%, #2E1D14 100%);
  --cta-bg: linear-gradient(170deg, #211A17 0%, #17191E 60%, #1B1A1E 100%);
  --cta-glow: rgba(239, 164, 130, 0.14);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}

/* Burmese needs taller lines so stacked vowel signs and medials aren't clipped. */
:lang(my) { line-height: 1.95; }
:lang(my) h1, :lang(my) h2, :lang(my) h3 { line-height: 1.6; letter-spacing: 0; }

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.18); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--text); background: var(--fill); }
.main-nav a.is-active { color: var(--accent-ink); }

.header-tools { display: flex; align-items: center; gap: 6px; }

.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.tool-btn:hover { background: var(--fill); color: var(--text); text-decoration: none; }
.tool-btn .icon { width: 20px; height: 20px; }
.lang-switch { border: 1px solid var(--hairline); }

/* The theme button shows the icon for the current choice. */
.theme-toggle .icon { display: none; }
:root[data-theme-pref="auto"] .theme-toggle .i-auto,
:root:not([data-theme-pref]) .theme-toggle .i-auto,
:root[data-theme-pref="light"] .theme-toggle .i-light,
:root[data-theme-pref="dark"] .theme-toggle .i-dark { display: block; }

.menu-toggle { display: none; }

@media (max-width: 880px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 12px 8px; font-size: 17px; }
  .header-tools { margin-left: auto; }
}

@media (max-width: 400px) {
  .brand span { display: none; }
}

/* ---------- Buttons & badges ---------- */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badges a { display: block; border-radius: 10px; transition: transform .15s ease; }
.store-badges a:hover { transform: translateY(-2px); }
.store-badges img { height: 52px; width: auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); }
.section-head p { margin-top: 16px; color: var(--text-2); font-size: 18px; }

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.hero h1 {
  margin-top: 20px;
  font-size: clamp(38px, 5.6vw, 64px);
}
.hero h1 .accent { display: block; color: var(--accent-ink); }
.hero .lead {
  margin-top: 20px;
  max-width: 540px;
  color: var(--text-2);
  font-size: 19px;
}
.hero .store-badges { margin-top: 32px; }
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-3);
  font-size: 15px;
}
.hero-notes li { display: flex; align-items: center; gap: 6px; }
.hero-notes .icon { width: 18px; height: 18px; color: var(--accent); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-device { position: relative; width: min(320px, 78vw); }

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.float-chip .icon { width: 18px; height: 18px; color: var(--accent); }
/* Chips sit mostly outside the device so they never cover the screenshot's content. */
.float-chip.one { right: calc(100% - 14px); top: 20%; }
.float-chip.two { left: calc(100% - 14px); top: 46%; animation-delay: -2s; }
.float-chip.three { right: calc(100% - 14px); bottom: 14%; animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 880px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .store-badges, .hero-notes { justify-content: center; }
}

@media (max-width: 560px) {
  .float-chip { display: none; }
}

@media (max-width: 480px) {
  .store-badges img { height: 46px; }
}

/* ---------- Device frames ---------- */
.phone {
  position: relative;
  padding: 10px;
  border-radius: 46px;
  background: #121317;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2A2C33;
}
.phone .screen {
  overflow: hidden;
  border-radius: 37px;
  background: var(--fill);
  aspect-ratio: 1179 / 2556;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }

.tablet {
  position: relative;
  padding: 12px;
  border-radius: 30px;
  background: #121317;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2A2C33;
}
.tablet .screen {
  overflow: hidden;
  border-radius: 20px;
  background: var(--fill);
  aspect-ratio: 2388 / 1668;
}
.tablet .screen img { width: 100%; height: 100%; object-fit: cover; }

/* Screenshots come in light and dark pairs that follow the site theme. */
.shot-dark { display: none !important; }
:root[data-theme="dark"] .shot-light { display: none !important; }
:root[data-theme="dark"] .shot-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .shot-light { display: none !important; }
  :root:not([data-theme]) .shot-dark { display: block !important; }
}

/* ---------- Stats ---------- */
.stats { padding: 0 0 24px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}
.stat { text-align: center; }
.stat + .stat { border-left: 1px solid var(--hairline); }
.stat-value {
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-value .plus { color: var(--accent); }
.stat-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--text-2);
  font-size: 15px;
}
.stat-label .icon { width: 18px; height: 18px; color: var(--accent); }

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; padding: 8px 20px; gap: 0; }
  .stat { padding: 16px 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--hairline); }
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--hairline);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.feature-card h3 { font-size: 21px; }
.feature-card p { margin-top: 10px; color: var(--text-2); font-size: 16px; }

@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card { padding: 22px; }
}

/* ---------- Spotlight rows ---------- */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.spotlight + .spotlight { margin-top: 112px; }
.spotlight.reverse .spotlight-media { order: 2; }
.spotlight-media { display: flex; justify-content: center; }
.spotlight-media .phone { width: min(300px, 72vw); }
.spotlight-copy h3 { font-size: clamp(28px, 3.6vw, 38px); }
.spotlight-copy > p { margin-top: 16px; color: var(--text-2); font-size: 18px; }
.check-list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; color: var(--text); }
.check-list .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
:lang(my) .check-list .icon { margin-top: 6px; }

.spotlight.wide { grid-template-columns: 1fr; gap: 40px; text-align: center; }
.spotlight.wide .spotlight-copy { max-width: 680px; margin: 0 auto; }
.spotlight.wide .check-list { justify-content: center; grid-template-columns: repeat(3, auto); gap: 12px 28px; text-align: left; }
.spotlight.wide .tablet { width: min(980px, 100%); }

@media (max-width: 880px) {
  .spotlight { grid-template-columns: 1fr; gap: 36px; }
  .spotlight.reverse .spotlight-media { order: 0; }
  .spotlight + .spotlight { margin-top: 80px; }
  .spotlight-copy { text-align: center; }
  .check-list { justify-items: center; }
  .check-list li { text-align: left; max-width: 460px; }
  .spotlight.wide .check-list { grid-template-columns: 1fr; }
}

/* ---------- Look up anywhere ---------- */
.anywhere-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 960px;
  margin: 0 auto;
  gap: 20px;
}
.anywhere-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--hairline);
}
.anywhere-card h3 { font-size: 22px; margin-top: 18px; }
.anywhere-card p { margin-top: 10px; color: var(--text-2); font-size: 16px; }
.anywhere-card .how {
  margin-top: auto;
  padding-top: 18px;
  color: var(--text-3);
  font-size: 14px;
}
.anywhere-art {
  display: grid;
  place-items: center;
  height: 150px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--accent-soft), transparent 80%), var(--fill);
  color: var(--accent-ink);
  overflow: hidden;
}
.anywhere-art svg { width: 100%; height: 100%; }

@media (max-width: 960px) { .anywhere-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* ---------- Apple Intelligence ---------- */
.ai-panel {
  position: relative;
  overflow: hidden;
  padding: 64px;
  border-radius: 32px;
  background: var(--ai-bg);
  color: #F3EEE9;
  box-shadow: var(--shadow-lg);
}
.ai-panel::before {
  content: "";
  position: absolute;
  inset: auto -120px -160px auto;
  width: 480px;
  height: 480px;
  background: radial-gradient(closest-side, rgba(212, 120, 74, .45), transparent);
  pointer-events: none;
}
.ai-panel::after {
  content: "";
  position: absolute;
  inset: -140px auto auto -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(closest-side, rgba(140, 110, 255, .22), transparent);
  pointer-events: none;
}
.ai-panel > * { position: relative; z-index: 1; }
.ai-panel h2 { color: #FFF; font-size: clamp(30px, 4.4vw, 46px); max-width: 640px; }
.ai-panel .ai-lead { margin-top: 16px; max-width: 640px; color: rgba(243, 238, 233, .78); font-size: 18px; }
.ai-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ai-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px;
  font-weight: 600;
}
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.ai-card {
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
}
.ai-card .icon { width: 28px; height: 28px; color: #F0A27E; }
.ai-card h3 { margin-top: 14px; color: #FFF; font-size: 21px; }
.ai-card p { margin-top: 8px; color: rgba(243, 238, 233, .74); font-size: 16px; }
.ai-note { margin-top: 28px; color: rgba(243, 238, 233, .6); font-size: 14px; }

@media (max-width: 880px) {
  .ai-panel { padding: 40px 24px; border-radius: 24px; }
  .ai-grid { grid-template-columns: 1fr; }
}

/* ---------- Showcase carousel ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  padding: 12px var(--gutter) 28px;
  margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item {
  flex: none;
  width: 250px;
  margin: 0;
  scroll-snap-align: center;
}
.carousel-item .phone { padding: 8px; border-radius: 38px; }
.carousel-item .phone .screen { border-radius: 31px; }
.carousel-item figcaption {
  margin-top: 16px;
  text-align: center;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}
.carousel-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.carousel-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-btn .icon { width: 20px; height: 20px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--hairline);
  background: color-mix(in srgb, var(--text) 20%, transparent);
  cursor: pointer;
  transition: width .2s ease, background-color .2s ease;
}
.carousel-dots button[aria-current="true"] { width: 24px; background: var(--accent); }

@media (max-width: 560px) {
  .carousel-item { width: 70vw; max-width: 260px; }
  .carousel-dots { display: none; }
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  columns: 3 300px;
  column-gap: 20px;
}
.testimonial {
  break-inside: avoid;
  margin: 0 0 20px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.testimonial .stars { display: flex; gap: 2px; color: #E7A33E; }
.testimonial .stars .icon { width: 16px; height: 16px; }
.testimonial blockquote {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 16px;
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.testimonial img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--fill);
}
.testimonial .who { display: flex; flex-direction: column; line-height: 1.35; }
.testimonial .name { font-weight: 600; font-size: 15px; }
.testimonial .role { color: var(--text-3); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
}
.faq-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-aside h2 { font-size: clamp(30px, 4.4vw, 44px); }
.faq-aside p { margin-top: 16px; color: var(--text-2); }
.faq-aside .contact-card {
  margin-top: 28px;
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-size: 15px;
}
.faq-aside .contact-card strong,
.faq-aside .contact-card span,
.faq-aside .contact-card a { display: block; }
.faq-aside .contact-card strong { margin-bottom: 4px; }
.faq-aside .contact-card a { font-weight: 600; overflow-wrap: anywhere; }

.faq-group + .faq-group { margin-top: 36px; }
.faq-group h3 {
  margin-bottom: 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.faq-item {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  transition: box-shadow .2s ease;
}
.faq-item + .faq-item { margin-top: 10px; }
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
  width: 20px;
  height: 20px;
  color: var(--text-3);
  transition: transform .25s ease;
}
.faq-item[open] summary .icon { transform: rotate(45deg); color: var(--accent); }
.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-2);
  font-size: 16px;
}
.faq-answer p + p, .faq-answer p + ul, .faq-answer ul + p { margin-top: 10px; }
.faq-answer ul { margin: 10px 0 0; padding-left: 20px; }
.faq-answer li + li { margin-top: 4px; }
.faq-answer .path {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--fill);
  color: var(--text);
  font-size: .95em;
  white-space: normal;
}

@media (max-width: 880px) {
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-aside { position: static; text-align: center; }
}

/* ---------- CTA ---------- */
/* A warm paper card rather than a solid accent fill: the terracotta stays an accent (glow, icon ring). */
.cta {
  position: relative;
  overflow: hidden;
  padding: 72px 32px;
  border-radius: 32px;
  background: var(--cta-bg);
  border: 1px solid var(--hairline);
  color: var(--text);
  text-align: center;
  box-shadow: var(--shadow);
}
.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -220px;
  width: 640px;
  height: 440px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--cta-glow), transparent);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta img.cta-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  border-radius: 20px;
  box-shadow: 0 0 0 6px var(--accent-soft), 0 12px 28px rgba(26, 31, 46, .18);
}
.cta h2 { font-size: clamp(28px, 4.2vw, 44px); }
.cta p { margin: 14px auto 0; max-width: 520px; color: var(--text-2); font-size: 18px; }
.cta .store-badges { justify-content: center; margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 96px;
  padding: 56px 0 40px;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p { margin-top: 12px; max-width: 320px; color: var(--text-2); }
.footer-col h2 {
  margin-bottom: 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--text-2); text-decoration: none; }
.footer-col a:hover { color: var(--accent-ink); text-decoration: underline; }
.social { display: flex; gap: 8px; margin-top: 20px; }
.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--fill);
  color: var(--text-2);
}
.social a:hover { color: var(--accent-ink); }
.social .icon { width: 18px; height: 18px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--text-3);
  font-size: 14px;
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Legal pages ---------- */
.legal-hero { padding: 56px 0 24px; }
.legal-hero h1 { font-size: clamp(36px, 5vw, 54px); }
.legal-hero .updated { margin-top: 12px; color: var(--text-3); }

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 24px;
}
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 14px; }
.legal-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  cursor: pointer;
  list-style: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--hairline); }
.legal-toc a {
  display: block;
  margin-left: -1px;
  padding: 5px 0 5px 14px;
  border-left: 2px solid transparent;
  color: var(--text-2);
  text-decoration: none;
  line-height: 1.4;
}
.legal-toc a:hover { color: var(--text); }
.legal-toc a.is-active { border-left-color: var(--accent); color: var(--accent-ink); }

.prose {
  max-width: 760px;
  padding: 40px 48px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text-2);
  font-size: 16.5px;
  overflow-wrap: anywhere;
}
.prose h2 {
  margin: 44px 0 14px;
  font-size: 27px;
}
.prose h3 {
  margin: 28px 0 10px;
  font-size: 20px;
}
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose li p { margin: 0; }
.prose strong { color: var(--text); }
.prose .notice {
  margin-bottom: 28px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 15px;
}

.legal-toc summary::-webkit-details-marker { display: none; }

@media (min-width: 961px) {
  .legal-toc summary { pointer-events: none; }
}
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc {
    position: static;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--hairline);
  }
  .legal-toc summary { margin: 0; }
  .legal-toc summary::after { content: "+"; font-size: 20px; font-weight: 400; line-height: 1; }
  .legal-toc details[open] summary { margin-bottom: 10px; }
  .legal-toc details[open] summary::after { content: "–"; }
  .legal-toc ol { columns: 2 200px; }
}
@media (max-width: 600px) {
  .prose { padding: 26px 20px; font-size: 16px; }
  .prose h2 { font-size: 23px; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #FFF;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top .icon { width: 22px; height: 22px; }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* AI cards carry a screenshot of the feature when one is available. */
.ai-card .ai-shot {
  width: min(220px, 70%);
  margin: 0 auto 22px;
  padding: 7px;
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45), inset 0 0 0 2px #2A2C33;
}
.ai-card .ai-shot .screen { border-radius: 26px; }
:lang(my) .hero h1 { font-size: clamp(32px, 4.6vw, 52px); }
