/*
Theme Name: FreePoints Malaysia
Theme URI: https://forestgreen-butterfly-808501.hostingersite.com/
Author: FreePoints
Description: Private staging theme for FreePoints Malaysia. Test cards only. V3.3 design.
Version: 1.4.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: freepoints-my
*/
:root {
  --white: #ffffff;
  --mist: #f3fbfb;
  --cyan: #d7f5f3;
  --turquoise: #12b5c4;
  --turquoise-deep: #0c8e9b;
  --navy: #0c4a6e;
  --ink: #10283d;
  --muted: #5c7386;
  --line: #d5e8ea;
  --footer: #062033;
  --shadow: 0 14px 40px rgba(12, 74, 110, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
img, svg { max-width: 100%; }
a { color: var(--navy); }
.skip { position: absolute; left: 12px; top: -48px; background: #fff; padding: 8px 12px; z-index: 6; }
.skip:focus { top: 12px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: relative; z-index: 2;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 16px 20px; min-height: 76px; }
.brand {
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 800;
}
.brand img {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px;
  box-shadow: 0 8px 18px rgba(12, 74, 110, .16);
}
.word { display: flex; flex-direction: column; justify-content: center; gap: 3px; line-height: 1; }
.name { white-space: nowrap; font-size: 1.12rem; letter-spacing: -.035em; }
.country {
  color: var(--turquoise-deep); font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
}
.free { color: var(--navy); }
.points { color: var(--turquoise-deep); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--navy); text-decoration: none; white-space: nowrap;
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 12px; border-radius: 999px; flex: 0 0 auto;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--mist); }
.langs {
  display: flex; gap: 4px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--mist); flex: 0 0 auto;
}
.langs button {
  min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--navy); font: inherit; font-size: .92rem; font-weight: 600;
  white-space: nowrap; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.langs button[data-lang="zh"] { font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; }
.langs button[aria-pressed="true"] { background: #fff; color: var(--turquoise-deep); box-shadow: 0 1px 4px rgba(12,74,110,.12); }
.hero {
  overflow: hidden;
  background:
    radial-gradient(520px 260px at 12% 0%, rgba(126,221,216,.42), transparent 70%),
    radial-gradient(420px 260px at 92% 10%, rgba(18,181,196,.16), transparent 68%),
    linear-gradient(180deg, #fff 0%, #f3fbfb 100%);
  padding: 48px 0 40px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 260px; column-gap: 32px; align-items: start; }
.copy { display: contents; }
.kicker { grid-column: 1; grid-row: 1; justify-self: start; }
h1 { grid-column: 1; grid-row: 2; }
.lead { grid-column: 1; grid-row: 3; }
.art { grid-column: 2; grid-row: 1 / span 3; }
.search { grid-column: 1; grid-row: 4; }
.pills { grid-column: 1; grid-row: 5; }
.facts { grid-column: 1 / -1; grid-row: 6; }
.kicker {
  display: inline-flex; align-items: center; min-height: 32px; margin: 0 0 12px; padding: 0 12px;
  border-radius: 999px; background: var(--cyan); color: var(--turquoise-deep); font-size: .82rem; font-weight: 700;
}
h1 { margin: 0 0 12px; font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -.03em; }
.lead { margin: 0; max-width: 40rem; color: var(--muted); font-size: 1.05rem; }
.art {
  position: relative; min-height: 190px; border-radius: 28px;
  background: radial-gradient(120px 90px at 72% 28%, rgba(18,181,196,.28), transparent 70%), linear-gradient(160deg, #fff, #dff6f5);
  border: 1px solid #d7eeef; box-shadow: var(--shadow); overflow: hidden;
}
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.search {
  display: flex; align-items: center; gap: 8px; width: 100%; max-width: 720px; min-height: 68px;
  margin-top: 22px; padding: 8px 8px 8px 18px; background: #fff; border: 1px solid #cfe7ea; border-radius: 18px;
  box-shadow: 0 18px 50px rgba(12,74,110,.12);
}
.search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search input { flex: 1 1 auto; min-width: 0; width: 100%; min-height: 48px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--turquoise); box-shadow: 0 0 0 4px rgba(18,181,196,.16), 0 18px 50px rgba(12,74,110,.12); }
.search button { flex: 0 0 auto; min-width: 48px; min-height: 48px; border: 0; border-radius: 14px; background: var(--turquoise); color: #fff; cursor: pointer; }
.pills, .facts { display: flex; flex-wrap: wrap; gap: 8px; }
.pills { margin-top: 16px; }
.pill, .facts li {
  min-height: 44px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy);
}
.pill { padding: 0 16px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pill[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.facts { margin: 18px 0 0; padding: 0; list-style: none; gap: 10px; }
.facts li {
  display: inline-flex; align-items: center;
  padding: 0; border: 0; background: transparent; min-height: 0;
}
.facts .pill { min-height: 40px; font-size: .92rem; }
.facts .pill:hover { background: var(--cyan); border-color: #9adfe3; }
.logo { width: 72px; height: 72px; object-fit: contain; border-radius: 14px; background: var(--mist); }
.card a.url { font-size: .78rem; line-height: 1.35; }
main section { padding: 28px 0 48px; }
.page-head { padding: 36px 0 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; color: var(--muted); font-size: .92rem; }
.crumbs a { color: var(--turquoise-deep); text-decoration: none; }
h2 { margin: 0 0 8px; font-size: 1.7rem; letter-spacing: -.02em; }
h3 { margin: 0 0 8px; font-size: 1.08rem; }
.note, .prose p { color: var(--muted); }
.note { margin: 0; max-width: 68ch; }
.empty { display: none; color: var(--muted); }
.group { margin-top: 26px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card, .step, .panel, details {
  min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 8px 24px rgba(12,74,110,.05);
}
.card { display: flex; flex-direction: column; gap: 8px; min-height: 210px; padding: 18px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.group .card { min-height: 0; }
.group .face { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px 14px; align-items: center; }
.group .side { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.group .joy { margin: 0; color: var(--ink); font-size: .95rem; font-weight: 600; line-height: 1.35; }
.card:hover { transform: translateY(-4px); border-color: #9adfe3; box-shadow: 0 16px 36px rgba(18,181,196,.16); }
.mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--cyan); color: var(--navy); font-weight: 700; }
.card h3 { margin: 0; color: var(--ink); }
.card p, .step p, .panel p, details p { margin: 0; color: var(--muted); }
.group .card a.url { margin-top: 2px; }
.card a, .text-btn {
  margin-top: auto; align-self: flex-start; max-width: 100%; min-height: 44px;
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 12px;
  background: var(--navy); color: #fff; text-decoration: none; white-space: normal;
}
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.step, .panel, details { padding: 16px; background: var(--mist); box-shadow: none; }
.step h3 { margin: 0 0 6px; }
summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.faq, .stack { display: grid; gap: 12px; }
.facts-table { width: 100%; border-collapse: collapse; }
.facts-table th, .facts-table td { text-align: left; vertical-align: top; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts-table th { width: 34%; color: var(--navy); font-weight: 700; padding-right: 16px; }
.out { word-break: break-all; }
.site-footer { background: var(--footer); color: #d5e4ee; padding: 36px 0; }
.site-footer a { color: #fff; }
.foot-row { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.site-footer .free { color: #fff; }
.site-footer .points { color: #12b5c4; }
.site-footer .country { color: #7eddd8; }
.site-footer .brand img { box-shadow: 0 0 0 1.5px #12b5c4; }
.foot-note { margin: 8px 0 0; max-width: 62ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .card, .facts li { transition: none; } .card:hover { transform: none; } }
@media (max-width: 900px) {
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .grid.two { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: minmax(0,1fr) 168px; }
  .art { min-height: 150px; }
  .bar { flex-wrap: wrap; min-height: 0; padding: 10px 0; }
  .nav { order: 3; width: 100%; margin-left: 0; }
  .langs { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .hero { padding: 20px 0 24px; }
  .hero-grid { display: block; }
  .copy { display: grid; grid-template-columns: minmax(0,1fr) 72px; column-gap: 10px; align-items: center; }
  .kicker { grid-column: 1; grid-row: 1; margin-bottom: 8px; }
  h1 { grid-column: 1; grid-row: 2; margin: 0; font-size: 1.8rem; }
  .art { grid-column: 2; grid-row: 1 / span 2; width: 72px; height: 72px; min-height: 72px; border-radius: 16px; }
  .lead { grid-column: 1 / -1; grid-row: 3; margin-top: 12px; font-size: 1rem; }
  .search, .pills, .facts { grid-column: auto; grid-row: auto; }
  .search { margin-top: 14px; min-height: 60px; padding-left: 14px; }
  .grid, .steps, .grid.two { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .facts-table th { width: 42%; }
  .foot-row { flex-direction: column; }
  .langs {
    flex: none; width: 100%; max-width: 100%; min-width: 0; margin-left: 0;
    display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  }
  .langs button { width: 100%; min-width: 0; max-width: 100%; padding: 0 4px; }
  .langs svg { width: 36px; height: 18px; max-width: none; }
  main section { padding: 16px 0 32px; }
}
@media (max-width: 389px) {
  .wrap { width: calc(100% - 24px); }
  h1 { font-size: 1.65rem; }
  .word { font-size: 1rem; }
}
.group-note, .adnote, .kind { margin: 6px 0 12px; color: #0c4a6e; font-size: 0.92rem; }
.kind { font-weight: 700; }


