/* SmartJimat — sister site to SmartSeller, same features, its own colours.
   Green and charcoal come from the SmartJimat logo; the logo's patterned brackets become
   the framing motif (a batik-style tile drawn in SVG, so it stays sharp at any size).
   Soft lime-cream is the 'jimat' (savings) highlight.

   Plain CSS, no build step. Every size is in rem and the root font-size grows with the
   viewport (15px laptop to 24px on a 3840px display) so the layout scales cleanly to 4K. */

:root {
  --brand: #256B3C;
  --brand-dark: #17482A;
  --brand-soft: rgba(37, 107, 60, 0.1);
  --charcoal: #58595B;
  --ink: #16211A;
  --ink-2: #26332B;
  --muted: #667068;
  --faint: #A3ABA5;
  --line: #E4E6DA;
  --white: #FFFFFF;
  --cream: #F8F7EF;
  --cream-2: #EEF0E0;
  --hl: #DFEBAB;
  --gold: #B8913A;
  --hdb: #B8913A;
  --condo: #1F7A7A;
  --landed: #B5553A;
  --whatsapp: #25D366;
  --accent: var(--hdb); /* switched by the package tabs */

  /* KiasuKira's own colours, for the calculator's mark and wordmark where they
     appear on this page. A partner's mark is never repainted in the host
     brand's palette, so these sit apart from the SmartJimat tokens above.
     Navy roof, teal "Kira", gold slash — see assets/branding/LOGO_README.md. */
  --kk-navy: #0B1F3A;
  --kk-teal: #0E7C86;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' fill='%23256B3C'/%3E%3Cg fill='none' stroke='%23E4DFB5' stroke-width='1.1'%3E%3Cpath d='M20 0L40 20L20 40L0 20Z'/%3E%3Cpath d='M20 20C26 13 26 6 20 1C14 6 14 13 20 20ZM20 20C27 26 34 26 39 20C34 14 27 14 20 20ZM20 20C14 27 14 34 20 39C26 34 26 27 20 20ZM20 20C13 14 6 14 1 20C6 26 13 26 20 20Z'/%3E%3Ccircle cx='0' cy='0' r='4'/%3E%3Ccircle cx='40' cy='0' r='4'/%3E%3Ccircle cx='0' cy='40' r='4'/%3E%3Ccircle cx='40' cy='40' r='4'/%3E%3Ccircle cx='20' cy='20' r='1.6'/%3E%3C/g%3E%3C/svg%3E");

  --display: 'Plus Jakarta Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --maxw: 84rem;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 1.4rem;
}

html { font-size: clamp(15px, 0.34vw + 10.6px, 24px); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; margin: 0; line-height: 1.05; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.3rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
/* The menu bar is fixed to the top of the screen and --nav-h tall. A menu link
   jumps to a section, and the browser puts the section's top edge at the top of
   the screen, under the bar. On a wide screen the section's own top padding is
   taller than the bar, so its first line shows; on a phone the padding is
   shorter and the first line (the small red caption) was hidden behind the bar.
   scroll-margin-top stops the jump early by the difference, so the first line
   always lands at least 1.75rem below the bar. */
:root { --nav-h: 5rem; --section-pad: clamp(4.5rem, 9vw, 8rem); }
.section { padding: var(--section-pad) 0; position: relative; scroll-margin-top: max(0px, calc(var(--nav-h) + 1.75rem - var(--section-pad))); }
.section.cream { background: var(--cream); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 4.5vw, 3.6rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 0.9rem 0 1rem; }
.lead { font-size: 1.18rem; line-height: 1.55; color: var(--muted); }
.brand-c { color: var(--brand); }

/* kicker: a tiny bracket, echoing the logo */
.kicker { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
.kicker::before { content: ''; width: 0.9rem; height: 0.9rem; border-top: 3px solid var(--charcoal); border-left: 3px solid var(--charcoal); }
.on-dark .kicker { color: var(--hl); }
.on-dark .kicker::before { border-color: rgba(255,255,255,0.6); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; padding: 1rem 1.7rem; border-radius: 999px; border: 2px solid transparent; font-family: var(--display); font-weight: 700; font-size: 0.98rem; line-height: 1; cursor: pointer; white-space: nowrap; transition: transform .3s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .3s; }
.btn:active { transform: scale(0.98); }
.btn-brand { background: var(--brand); color: var(--white); box-shadow: 0 0.9rem 2rem -0.9rem rgba(37,107,60,0.65); }
.btn-brand:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 1.3rem 2.4rem -0.9rem rgba(37,107,60,0.7); }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.btn-wa { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-wa:hover { border-color: var(--whatsapp); transform: translateY(-2px); }
.btn-wa svg { width: 1.2rem; height: 1.2rem; color: var(--whatsapp); }
.btn-hl { background: var(--hl); color: var(--ink); }
.btn-hl:hover { background: #ecf5c4; transform: translateY(-2px); }
.btn-sm { padding: 0.72rem 1.2rem; font-size: 0.86rem; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- the patterned bracket frame (logo motif) ---------- */
.frame { position: relative; }
.frame::before, .frame::after { content: ''; position: absolute; left: -1.1rem; right: -1.1rem; height: 3rem; background: var(--pattern); background-size: 2.4rem 2.4rem; pointer-events: none; transition: transform .9s var(--ease), opacity .9s var(--ease); }
.frame::before { top: -1.1rem; -webkit-mask: linear-gradient(#000,#000) top / 100% 1rem no-repeat, linear-gradient(#000,#000) left / 1rem 100% no-repeat, linear-gradient(#000,#000) right / 1rem 100% no-repeat; mask: linear-gradient(#000,#000) top / 100% 1rem no-repeat, linear-gradient(#000,#000) left / 1rem 100% no-repeat, linear-gradient(#000,#000) right / 1rem 100% no-repeat; }
.frame::after { bottom: -1.1rem; -webkit-mask: linear-gradient(#000,#000) bottom / 100% 1rem no-repeat, linear-gradient(#000,#000) left / 1rem 100% no-repeat, linear-gradient(#000,#000) right / 1rem 100% no-repeat; mask: linear-gradient(#000,#000) bottom / 100% 1rem no-repeat, linear-gradient(#000,#000) left / 1rem 100% no-repeat, linear-gradient(#000,#000) right / 1rem 100% no-repeat; }
.reveal.frame::before { transform: translateY(-0.8rem); opacity: 0; }
.reveal.frame::after { transform: translateY(0.8rem); opacity: 0; }
.reveal.frame.in::before, .reveal.frame.in::after { transform: none; opacity: 1; transition-delay: .35s; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(255,255,255,0.97); border-bottom-color: var(--line); box-shadow: 0 0.5rem 1.5rem -1rem rgba(0,0,0,0.25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--nav-h); }
.logo img { width: 3rem; height: 3rem; }
.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links > a:not(.btn) { font-family: var(--display); font-weight: 700; font-size: 0.9rem; color: var(--ink-2); position: relative; padding: 0.3rem 0; }
.nav-links > a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -0.1rem; height: 3px; width: 100%; background: var(--c, var(--brand)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); border-radius: 2px; }
.nav-links > a:not(.btn):hover::after { transform: scaleX(1); }
/* A menu label stays on one line: on a small laptop or a tablet held sideways
   "How it works" used to break in two. The row is tightened there instead. */
.nav-links > a { white-space: nowrap; }
.nav .logo { flex: 0 0 auto; } /* the logo keeps its size; a crowded row never squashes it */
@media (min-width: 901px) and (max-width: 1100px) { .nav-links { gap: 1.1rem; } }
/* The Malay labels are the longest: just above the phone menu's width the row is
   tightened further (closer together, slightly smaller, no arrow on the button). */
@media (min-width: 901px) and (max-width: 1020px) {
  .nav-links { gap: 0.7rem; }
  .nav-links > a:not(.btn) { font-size: 0.84rem; }
  .nav-links .btn .arrow { display: none; }
}
.nav-toggle { display: none; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); cursor: pointer; position: relative; padding: 0; }
.nav-toggle span { position: absolute; left: 0.75rem; right: 0.75rem; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 1rem; } .nav-toggle span:nth-child(2) { top: 1.62rem; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(0.31rem) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { transform: translateY(-0.31rem) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(7.5rem, 12vw, 10rem) 0 clamp(4rem, 6vw, 6rem); min-height: 94vh; display: flex; align-items: center; background: var(--cream); overflow: hidden; }
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; opacity: 0.9; will-change: transform; transition: transform 1.4s var(--ease); }
.shape.s1 { width: 26rem; height: 26rem; right: -8rem; top: -9rem; background: var(--hl); }
.shape.s2 { width: 9rem; height: 9rem; left: 46%; bottom: 8%; background: var(--hdb); opacity: 0.14; }
.shape.s3 { width: 5rem; height: 5rem; left: 6%; top: 22%; background: var(--landed); opacity: 0.16; }
.shape.s4 { width: 3.2rem; height: 3.2rem; left: 38%; top: 16%; background: var(--condo); opacity: 0.2; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.hero h1 { margin: 1.3rem 0 1.5rem; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.hero.ready h1 .line > span { transform: none; }
.hero h1 .line:nth-child(2) > span { transition-delay: .12s; } .hero h1 .line:nth-child(3) > span { transition-delay: .24s; }
.strike { position: relative; color: var(--charcoal); white-space: nowrap; }
.strike::after { content: ''; position: absolute; left: -4%; right: -4%; top: 52%; height: 0.11em; background: var(--brand); border-radius: 0.1em; transform: scaleX(0) rotate(-6deg); transform-origin: left; transition: transform .7s var(--ease) 1.1s; }
.hero.ready .strike::after { transform: scaleX(1) rotate(-6deg); }
.hero .lead { max-width: 34rem; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0 1.6rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; font-size: 0.86rem; color: var(--muted); font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-points li::before { content: ''; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--brand); }

/* ---------- savings calculator card ---------- */
.calc { background: var(--white); border-radius: var(--r); padding: clamp(1.4rem, 2.2vw, 2.2rem); box-shadow: 0 3rem 6rem -3rem rgba(27,27,29,0.45); }
.calc-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.calc-top h3 { font-size: 1.05rem; }
.tabs { display: inline-flex; background: var(--cream-2); border-radius: 999px; padding: 0.25rem; }
.tabs button { border: 0; background: transparent; padding: 0.5rem 1rem; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 0.8rem; cursor: pointer; color: var(--muted); transition: background .3s, color .3s; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--white); }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.price-row span { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.price-row output { font-family: var(--display); font-weight: 800; font-size: 2.3rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 0.5rem; border-radius: 999px; background: linear-gradient(to right, var(--accent) var(--fill, 30%), var(--cream-2) var(--fill, 30%)); margin: 0.9rem 0 1.5rem; outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--white); border: 0.35rem solid var(--accent); box-shadow: 0 0.3rem 0.8rem rgba(0,0,0,0.2); transition: transform .2s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--white); border: 0.35rem solid var(--accent); }
input[type="range"]:focus-visible { box-shadow: 0 0 0 3px var(--brand-soft); }
.fee-row { display: grid; grid-template-columns: 7.2rem 1fr 5.6rem; align-items: center; gap: 0.8rem; padding: 0.5rem 0; font-size: 0.84rem; }
.fee-row .name { font-family: var(--display); font-weight: 700; }
.fee-row .name small { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.68rem; color: var(--muted); }
.fee-row .bar { height: 0.9rem; border-radius: 999px; background: var(--cream-2); overflow: hidden; }
.fee-row .bar i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .8s var(--ease); }
.fee-row .bar i.usual { background: var(--charcoal); }
.fee-row .bar i.saver { background: var(--accent); }
.fee-row .bar i.max { background: var(--brand); }
.fee-row b { font-family: var(--display); font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.fee-row.usual b { color: var(--charcoal); text-decoration: line-through; text-decoration-color: var(--brand); }
.save { margin-top: 1.1rem; background: var(--hl); border-radius: 1rem; padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.save span { font-family: var(--display); font-weight: 700; font-size: 0.86rem; line-height: 1.3; }
.save b { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-note { margin-top: 0.9rem; font-size: 0.7rem; color: var(--faint); line-height: 1.5; }

/* ---------- marquee ---------- */
.marquee { background: var(--brand); color: var(--white); overflow: hidden; padding: 1.1rem 0; }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 32s linear infinite; font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; white-space: nowrap; }
.marquee-track span { display: inline-flex; align-items: center; gap: 3rem; }
.marquee-track span::after { content: ''; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--hl); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- packages ---------- */
.pkg-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.pkg-head .section-head { margin-bottom: 0; }
.tabs.lg button { padding: 0.75rem 1.6rem; font-size: 0.95rem; }
.pkgs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pkg { border-radius: var(--r); padding: clamp(1.6rem, 2.4vw, 2.4rem); border: 2px solid var(--line); background: var(--white); display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.pkg:hover { transform: translateY(-0.4rem); box-shadow: 0 2.6rem 4rem -2.6rem rgba(27,27,29,0.45); }
.pkg.max { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pkg .tag { align-self: flex-start; font-family: var(--display); font-weight: 800; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--accent); color: var(--white); margin-bottom: 1.1rem; transition: background .3s; }
.pkg.max .tag { background: var(--hl); color: var(--ink); }
.pkg .name { font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: 0.08em; }
.pkg .price { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 4vw, 3.6rem); letter-spacing: -0.04em; line-height: 1; margin: 0.4rem 0 0.2rem; }
.pkg .price small { font-size: 1rem; letter-spacing: 0; font-weight: 700; margin-left: 0.4rem; opacity: 0.7; }
.pkg .min { font-size: 0.78rem; opacity: 0.65; min-height: 1.2em; }
.pkg .desc { margin: 1rem 0 1.3rem; font-size: 0.95rem; opacity: 0.85; }
.pkg ul { display: grid; gap: 0.55rem; font-size: 0.92rem; padding-top: 1.2rem; border-top: 1px solid var(--line); margin-bottom: 1.5rem; }
.pkg.max ul { border-top-color: rgba(255,255,255,0.16); }
.pkg li { display: flex; gap: 0.6rem; align-items: flex-start; }
.pkg li svg { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin-top: 0.22rem; color: var(--accent); transition: color .3s; }
.pkg.max li svg { color: var(--hl); }
.example { margin-top: auto; border-radius: 1rem; padding: 1.1rem 1.2rem; background: var(--cream); font-size: 0.86rem; }
.pkg.max .example { background: rgba(255,255,255,0.07); }
.example .ex-title { font-family: var(--display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; margin-bottom: 0.5rem; }
.example div { display: flex; justify-content: space-between; padding: 0.25rem 0; }
.example div b { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; }
.example div.s { margin-top: 0.4rem; padding-top: 0.6rem; border-top: 1px dashed rgba(128,128,128,0.4); font-family: var(--display); font-weight: 800; }
.example div.s b { color: var(--brand); font-size: 1.25rem; }
.pkg.max .example div.s b { color: var(--hl); }

.includes { margin-top: 3.2rem; }
.includes h3 { margin-bottom: 1.4rem; }
.inc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.inc { display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem 1.2rem; border-radius: 1rem; background: var(--cream); font-family: var(--display); font-weight: 700; font-size: 0.92rem; line-height: 1.25; transition: background .3s, transform .4s var(--ease); }
.inc:hover { background: var(--cream-2); transform: translateY(-0.2rem); }
.inc svg { flex: 0 0 auto; width: 1.7rem; height: 1.7rem; color: var(--brand); }

/* ---------- deliverables ---------- */
.deliver-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.deliver { background: var(--white); border-radius: var(--r); padding: 1.8rem 1.6rem 2rem; position: relative; overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.deliver:hover { transform: translateY(-0.4rem); box-shadow: 0 2.4rem 4rem -2.6rem rgba(27,27,29,0.4); }
.deliver::before { content: ''; position: absolute; left: 0; top: 0; height: 0.4rem; width: 100%; background: var(--c); transform: scaleX(0.18); transform-origin: left; transition: transform .6s var(--ease); }
.deliver:hover::before { transform: scaleX(1); }
.deliver .ic { width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--cream); margin-bottom: 1.3rem; color: var(--c); }
.deliver .ic svg { width: 1.6rem; height: 1.6rem; }
.deliver h3 { margin-bottom: 0.6rem; }
.deliver p { color: var(--muted); font-size: 0.94rem; }

/* ---------- steps ---------- */
.steps-wrap { position: relative; }
.progress { position: absolute; left: 0; right: 0; top: 1.5rem; height: 3px; background: var(--line); border-radius: 3px; }
.progress i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 3px; transition: width .2s linear; }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; position: relative; }
.step .num { width: 3rem; height: 3rem; border-radius: 50%; background: var(--white); border: 3px solid var(--line); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1rem; margin-bottom: 1.3rem; transition: border-color .4s, background .4s, color .4s, transform .4s var(--ease); }
.step.active .num { border-color: var(--brand); background: var(--brand); color: var(--white); transform: scale(1.08); }
.step .k { font-family: var(--display); font-weight: 800; font-size: 0.68rem; letter-spacing: 0.14em; color: var(--brand); }
.step h3 { margin: 0.2rem 0 0.8rem; font-size: 1.25rem; text-transform: uppercase; letter-spacing: -0.01em; }
.step p { font-size: 0.84rem; color: var(--muted); margin-bottom: 0.6rem; }
.badge-kk { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.2rem; padding: 0.3rem 0.6rem 0.3rem 0.4rem; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: 0.66rem; font-weight: 600; color: var(--ink-2); }
.badge-kk svg { width: 1rem; height: 1rem; color: var(--kk-navy); }

/* ---------- home evaluation + KiasuKira ---------- */
.eval { background: var(--ink); color: var(--white); overflow: hidden; }
.eval .lead { color: rgba(255,255,255,0.72); }
.eval-inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.eval-steps { margin-top: 2rem; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,0.14); }
.eval-step { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.eval-step .n { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--hl); line-height: 1.1; }
.eval-step h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.eval-step p { font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.eval .hero-cta { margin-bottom: 0; }
.ledger { background: var(--cream); color: var(--ink); border-radius: var(--r); padding: clamp(1.4rem, 2.4vw, 2.3rem); }
.ledger-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.2rem; }
.ledger-top h3 { font-size: 1.2rem; }
.ledger-top span { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.wf { display: grid; grid-template-columns: 9.5rem 1fr 6.4rem; align-items: center; gap: 0.9rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); }
.wf small { display: block; font-size: 0.66rem; color: var(--faint); }
.wf .track { position: relative; height: 1rem; }
.wf .seg { position: absolute; top: 0; left: var(--l); height: 100%; width: 0; border-radius: 999px; transition: width 1.1s var(--ease); }
.ledger.on .wf .seg { width: var(--w); }
.wf .seg.ink { background: var(--ink); } .wf .seg.out { background: var(--charcoal); opacity: 0.55; } .wf .seg.fee { background: var(--brand); min-width: 0.5rem; }
.wf .seg.cpf { background: var(--landed); } .wf .seg.total { background: var(--hl); }
.wf b { font-family: var(--display); font-weight: 800; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wf.neg b { color: var(--charcoal); } .wf.fee b { color: var(--brand); }
.wf.total { border-bottom: 0; border-top: 3px solid var(--ink); margin-top: 0.3rem; padding-top: 0.9rem; color: var(--ink); font-family: var(--display); font-weight: 700; }
.wf.total b { font-size: 1.5rem; letter-spacing: -0.02em; }
.ledger-foot { margin-top: 1.1rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem; font-size: 0.72rem; color: var(--muted); line-height: 1.5; }
.powered { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.8rem 0.45rem 0.5rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 0.68rem; color: var(--muted); white-space: nowrap; }
.powered svg { width: 1.3rem; height: 1.3rem; color: var(--kk-navy); }
/* The KiasuKira wordmark, as the app draws it: navy "Kiasu", teal "Kira". */
.kk-word { font-weight: 700; color: var(--kk-navy); }
.kk-word em { font-style: normal; color: var(--kk-teal); }

/* ---------- story ---------- */
.story { background: var(--hl); position: relative; overflow: hidden; }
.story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.story .kicker { color: var(--ink); }
.story .kicker::before { border-color: var(--ink); }
.story p { font-size: 1.05rem; color: var(--ink-2); margin-top: 1rem; max-width: 36rem; }
.story .big { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 7vw, 6.4rem); letter-spacing: -0.045em; line-height: 0.95; }
.story .big span { display: block; }
.story .big .sub { font-size: 0.24em; letter-spacing: 0; font-weight: 700; margin: 0.5em 0 1.2em; line-height: 1.3; opacity: 0.75; }
.story .big span:nth-child(3) { color: var(--brand); }

/* ---------- agents ---------- */
.agents-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.agent { border-radius: var(--r); background: var(--cream); padding: 1.4rem; display: flex; align-items: center; gap: 1rem; transition: transform .45s var(--ease), background .3s; }
.agent:hover { transform: translateY(-0.35rem); background: var(--cream-2); }
.agent .av { flex: 0 0 auto; width: 3.6rem; height: 3.6rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--white); background: var(--c, var(--brand)); transition: transform .45s var(--ease); }
.agent:hover .av { transform: rotate(-8deg) scale(1.06); }
.agent h3 { font-size: 1.02rem; text-transform: uppercase; letter-spacing: 0; }
.agent span { font-size: 0.76rem; color: var(--muted); }
.agents-sub { font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin: 2.6rem 0 1.2rem; }
.agents-foot { margin-top: 2.2rem; display: flex; justify-content: center; }

/* ---------- CTA / form ---------- */
.cta { background: var(--brand); color: var(--white); position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; width: 34rem; height: 34rem; border-radius: 50%; background: var(--brand-dark); right: -10rem; bottom: -16rem; }
.cta-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.cta .lead { color: rgba(255,255,255,0.85); margin-top: 1rem; }
.cta .contact { margin-top: 2rem; display: grid; gap: 0.5rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.cta .contact a:hover { color: var(--hl); }
.form { background: var(--white); color: var(--ink); border-radius: var(--r); padding: clamp(1.5rem, 2.4vw, 2.4rem); display: grid; gap: 1rem; box-shadow: 0 3rem 5rem -3rem rgba(0,0,0,0.6); }
.form h3 { margin-bottom: 0.2rem; }
.form label { display: grid; gap: 0.35rem; font-size: 0.76rem; font-weight: 600; color: var(--muted); }
.form input, .form select { padding: 0.9rem 1rem; border-radius: 0.8rem; border: 2px solid var(--line); background: var(--white); font-size: 1rem; color: var(--ink); transition: border-color .25s; width: 100%; }
.form input:focus, .form select:focus { outline: none; border-color: var(--brand); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .status { font-size: 0.85rem; color: var(--brand); min-height: 1.2em; font-weight: 600; }
.form .fine { font-size: 0.7rem; color: var(--faint); line-height: 1.5; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.65); padding: 4rem 0 2.5rem; font-size: 0.86rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 0.9fr; gap: 2.5rem; padding-bottom: 2.6rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer .logo-tile { display: inline-block; background: var(--white); border-radius: 0.8rem; padding: 0.5rem; }
.footer .logo-tile img { width: 3.4rem; height: 3.4rem; }
.footer h4 { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.footer ul { display: grid; gap: 0.5rem; }
/* Contact is one link, WhatsApp, with its logo (the phone number was dropped, owner 19 Nov 2026). */
.footer-wa { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-wa svg { width: 1.15rem; height: 1.15rem; color: var(--whatsapp); flex: 0 0 auto; }
/* On a phone the three lists sit two across under the logo, not in one long column. */
@media (max-width: 600px) {
  .footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .footer .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer .footer-grid > :nth-child(2) { grid-row: span 2; } /* Explore on the left; the two short lists stack on the right */
}
.footer a:hover { color: var(--hl); }
.social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.social a { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid rgba(255,255,255,0.22); display: grid; place-items: center; color: var(--white); transition: background .25s, border-color .25s, transform .3s var(--ease); }
.social a svg { width: 1.05rem; height: 1.05rem; } /* each network's logo, in place of two letters */
.social a:hover { background: var(--brand); border-color: var(--brand); color: var(--white); transform: translateY(-3px); }
.footer-bottom { padding-top: 1.6rem; display: grid; gap: 0.8rem; font-size: 0.72rem; color: rgba(255,255,255,0.42); line-height: 1.6; }
.footer-bottom .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1.5rem; }
/* The round WhatsApp button sits over the bottom right corner of the screen (1.4rem in,
   3.6rem wide), and at the very bottom of the page it covered the end of the footer's
   last line. On a phone or tablet the footer leaves room under that line; on a wide
   screen, where the line runs to the right edge, it stops short of the button instead. */
@media (max-width: 900px) { .footer { padding-bottom: 6.2rem; } }
@media (min-width: 901px) { .footer-bottom .row { padding-right: max(0px, calc(5.6rem - var(--gutter))); } }

/* floating WhatsApp */
.wa-float { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--whatsapp); color: var(--white); display: grid; place-items: center; box-shadow: 0 1rem 2rem -0.6rem rgba(37,211,102,0.7); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 1.9rem; height: 1.9rem; }
.wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--whatsapp); animation: ping 2.6s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(1.8rem); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; } .reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; } .reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; } .reveal[data-delay="6"] { transition-delay: .6s; }
.reveal[data-delay="7"] { transition-delay: .7s; }

/* ---------- responsive ---------- */
@media (max-width: 1150px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2.4rem; }
  .progress { display: none; }
  .inc-grid, .deliver-grid { grid-template-columns: repeat(2, 1fr); }
  .agents-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  /* The open menu never grows past the bottom of the screen: on a short screen (a phone held sideways) it scrolls inside itself. */
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 0.6rem var(--gutter) 1.4rem; border-bottom: 1px solid var(--line); transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform .4s var(--ease), opacity .3s; }
  .nav.open { background: var(--white); }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links > a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 1rem; }
  .nav-toggle { display: block; }
  .hero { min-height: 0; }
  .hero-inner, .eval-inner, .story-inner, .cta-inner { grid-template-columns: 1fr; }
  .shape.s1 { width: 16rem; height: 16rem; right: -7rem; top: -7rem; }
  .shape.s2, .shape.s3, .shape.s4 { display: none; }
  .pkgs { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .frame::before, .frame::after { left: -0.5rem; right: -0.5rem; border-width: 0.4rem; }
  .frame::before { top: -0.5rem; } .frame::after { bottom: -0.5rem; }
}
@media (max-width: 600px) {
  .steps, .inc-grid, .deliver-grid, .agents-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn, .eval .hero-cta .btn { width: 100%; }
  .fee-row { grid-template-columns: 6rem 1fr 4.8rem; gap: 0.5rem; }
  .price-row output { font-size: 1.9rem; }
  .save b { font-size: 1.6rem; }
  .wf { grid-template-columns: 1fr auto; }
  .wf .track { display: none; }
  .form .two { grid-template-columns: 1fr; }
  .ledger-foot { flex-direction: column; }
  .tabs.lg { width: 100%; } .tabs.lg button { flex: 1; padding: 0.75rem 0.5rem; }
  .marquee-track { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal, .hero h1 .line > span { opacity: 1; transform: none; }
  .reveal.frame::before, .reveal.frame::after { opacity: 1; transform: none; }
}

/* =====================================================================
   SmartJimat additions
   ===================================================================== */
.pattern-strip { height: 1.8rem; background: var(--pattern); background-size: 2.4rem 2.4rem; }
.marquee { background: var(--brand-dark); }
.marquee-track span::after { background: var(--hl); }
.shape.s1 { background: var(--pattern); background-size: 3rem 3rem; opacity: 1; top: 7rem; right: -13rem; }
.shape.s2 { background: var(--gold); opacity: 0.16; }
.shape.s3 { background: var(--brand); opacity: 0.14; }
.shape.s4 { background: var(--gold); opacity: 0.22; }
.save { background: var(--hl); }
.wf .seg.total { background: var(--brand); }
.wf .seg.cpf { background: var(--gold); }
.cta { background: var(--brand-dark); }
.cta::before { background: var(--pattern); background-size: 3rem 3rem; opacity: 0.5; }
.social a:hover { background: var(--brand); border-color: var(--brand); }

/* logo */
.logo svg { width: 3.2rem; height: 3.2rem; }
.footer .logo-tile svg { width: 3.6rem; height: 3.6rem; }

/* language switch */
.lang { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; padding: 0.15rem; background: var(--white); }
.lang button { border: 0; background: transparent; border-radius: 999px; padding: 0.35rem 0.75rem; font-family: var(--display); font-weight: 800; font-size: 0.74rem; letter-spacing: 0.06em; cursor: pointer; color: var(--muted); transition: background .25s, color .25s; }
.lang button[aria-pressed="true"] { background: var(--brand); color: var(--white); }

/* stats band */
.stats { background: var(--ink); color: var(--white); padding: clamp(2.6rem, 5vw, 4rem) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { padding-left: 1.3rem; border-left: 3px solid var(--brand); }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 3.4vw, 3.2rem); letter-spacing: -0.04em; line-height: 1; color: var(--hl); font-variant-numeric: tabular-nums; }
.stat b .star { color: var(--gold); font-size: 0.6em; vertical-align: 0.25em; margin-left: 0.2em; }
.stat > span { display: block; margin-top: 0.6rem; font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.4; max-width: 15rem; }

/* reviews */
.reviews-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.rating { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--display); font-weight: 800; font-size: 1.1rem; margin-bottom: 2.4rem; }
.rating .stars { color: var(--gold); letter-spacing: 0.1em; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.review { background: var(--white); border: 2px solid var(--line); border-radius: var(--r); padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease); }
.review:hover { transform: translateY(-0.35rem); border-color: var(--brand); box-shadow: 0 2.4rem 4rem -2.8rem rgba(22,33,26,0.5); }
.review .stars { color: var(--gold); letter-spacing: 0.12em; font-size: 0.95rem; }
.review p { font-size: 0.98rem; color: var(--ink-2); line-height: 1.55; }
.review .who { margin-top: auto; display: flex; align-items: center; gap: 0.7rem; font-size: 0.8rem; color: var(--muted); }
.review .who i { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; font-style: normal; font-family: var(--display); font-weight: 800; font-size: 0.85rem; }
.review .who b { display: block; color: var(--ink); font-family: var(--display); }

/* featured agents */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 1.4rem; }
/* Each card is meant to feel like meeting the person: a tilted photo on the batik tile, the
   name on slanted black bars (as the current SmartJimat page draws its agents), a "Jom!"
   sticker, a one-line blurb and one-tap questions that open WhatsApp with the question typed. */
.member { background: var(--cream); border-radius: var(--r); overflow: visible; padding: 1.6rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.8rem; transition: transform .45s var(--ease), background .3s; }
.member:hover { transform: translateY(-0.4rem); background: var(--cream-2); }
.member .photo-wrap { position: relative; margin: 0.4rem 0.5rem 1rem; }
.member .photo { aspect-ratio: 1; border-radius: 1rem; background: var(--pattern); background-size: 2.6rem 2.6rem; display: grid; place-items: center; position: relative; overflow: hidden; transform: rotate(-3deg); box-shadow: 0 1.6rem 3rem -1.6rem rgba(22,33,26,0.5); transition: transform .5s var(--ease); }
.member:hover .photo { transform: rotate(0) scale(1.02); }
.member .photo span { width: 5.4rem; height: 5.4rem; border-radius: 50%; background: var(--white); color: var(--brand); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.7rem; }
.member .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 10%; }
.member .nameplate { position: absolute; left: -0.6rem; top: 0.6rem; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; transform: rotate(-5deg); font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.1; }
.member .nameplate span { background: var(--ink); color: var(--white); padding: 0.22rem 0.6rem; }
.member .nameplate span + span { margin-left: 0.9rem; }
.member .jom { position: absolute; right: -0.5rem; bottom: 0.1rem; z-index: 2; background: var(--hl); color: var(--ink); border: 2px solid var(--brand); font-family: var(--display); font-weight: 800; font-size: 0.82rem; padding: 0.4rem 0.9rem; border-radius: 999px; transform: rotate(6deg); box-shadow: 0 0.6rem 1.4rem -0.6rem rgba(22,33,26,0.5); }
.member:hover .jom { animation: jom-wiggle .7s var(--ease); }
@keyframes jom-wiggle { 0%, 100% { transform: rotate(6deg); } 30% { transform: rotate(-5deg) scale(1.12); } 65% { transform: rotate(11deg); } }
.member .role { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.member .blurb { font-size: 0.93rem; line-height: 1.55; color: var(--ink-2); }
.member .ask { margin-top: 0.3rem; font-family: var(--display); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--charcoal); }
.member .chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: -0.3rem; }
.member .chips a { padding: 0.45rem 0.85rem; border-radius: 999px; background: var(--white); border: 2px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 0.8rem; transition: transform .3s var(--ease), border-color .25s, background .25s; }
.member .chips a::after { content: ' \2192'; color: var(--brand); }
.member .chips a:hover { border-color: var(--brand); background: var(--white); transform: translateY(-2px) rotate(-1.5deg); }
.member .actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.4rem; }

@media (max-width: 1150px) { .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; } .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .team { grid-template-columns: 1fr; }
  .member .photo-wrap { max-width: 19rem; }
  .nav-links .lang { align-self: flex-start; margin-top: 1rem; }
  .frame::before, .frame::after { left: -0.6rem; right: -0.6rem; border: 0; }
  .frame::before { top: -0.6rem; } .frame::after { bottom: -0.6rem; }
}
@media (max-width: 600px) {
  .stats-grid, .reviews { grid-template-columns: 1fr; }
  /* The link to the SmartSeller team is one long line, longer still in Malay: on a
     phone it wraps inside the button instead of pushing the page wider than the screen. */
  .agents-foot .btn { white-space: normal; text-align: center; line-height: 1.3; }
}

/* Malay lines run longer: a slightly smaller hero headline keeps it to three lines. */
html[lang="ms"] .hero h1 { font-size: clamp(2.2rem, 4.7vw, 4.2rem); }

/* ============================================================
   Selling or buying?
   The first question on the page. <html data-intent="sell|buy"> is set before
   the page is drawn (the small script in <head>); every block marked
   data-for="sell" or data-for="buy" shows only for its own answer.
   ============================================================ */
:root { --i-brand: var(--brand); --i-hl: var(--hl); }
html[data-intent="sell"] [data-for="buy"],
html[data-intent="buy"] [data-for="sell"] { display: none !important; }
[data-for] { animation: intent-in .45s var(--ease); }
.intent-opts button, .intent-mini button, .intent-form button { animation: none; }
@keyframes intent-in { from { opacity: 0; } }
.hero h1 .h1-set { display: block; }
/* A row the script hides (no ABSD to pay, a choice that does not apply) stays
   hidden even where a layout rule sets its display. */
[hidden] { display: none !important; }

/* the question, at the top of the hero */
.intent { margin-bottom: 1.7rem; }
.intent-q { font-family: var(--display); font-weight: 700; font-size: 0.9rem; color: var(--ink-2); margin-bottom: 0.6rem; }
.intent-opts { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; padding: 0.4rem; background: var(--white); border: 2px solid var(--line); border-radius: 1.3rem; box-shadow: 0 1.4rem 2.6rem -1.8rem rgba(27,27,29,0.4); }
.intent-opts button { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 1.4rem 0.75rem 1rem; border: 0; border-radius: 0.95rem; background: transparent; cursor: pointer; text-align: left; color: var(--ink-2); transition: background .3s, color .3s, transform .3s var(--ease); }
.intent-opts button svg { width: 1.6rem; height: 1.6rem; flex: 0 0 auto; color: var(--i-brand); transition: color .3s; }
.intent-opts button b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.1rem; line-height: 1.1; }
.intent-opts button small { display: block; font-size: 0.74rem; color: var(--muted); transition: color .3s; }
.intent-opts button:hover { background: var(--cream-2); }
.intent-opts button:active { transform: scale(0.98); }
/* The lit button follows <html data-intent>, which is set before the page is
   drawn, so the right one is lit from the first frame. */
html[data-intent="sell"] .intent-opts [data-intent-set="sell"],
html[data-intent="buy"] .intent-opts [data-intent-set="buy"] { background: var(--i-brand); color: var(--white); }
html[data-intent="sell"] .intent-opts [data-intent-set="sell"] svg,
html[data-intent="buy"] .intent-opts [data-intent-set="buy"] svg { color: var(--white); }
html[data-intent="sell"] .intent-opts [data-intent-set="sell"] small,
html[data-intent="buy"] .intent-opts [data-intent-set="buy"] small { color: rgba(255,255,255,0.85); }
.intent-opts button:focus-visible, .intent-mini button:focus-visible, .intent-form button:focus-visible, .calc .chips button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* the same switch, small, in the menu bar */
.intent-mini { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; padding: 0.15rem; background: var(--white); }
.intent-mini button { border: 0; background: transparent; border-radius: 999px; padding: 0.35rem 0.8rem; font-family: var(--display); font-weight: 800; font-size: 0.76rem; letter-spacing: 0.04em; cursor: pointer; color: var(--muted); transition: background .25s, color .25s; }
html[data-intent="sell"] .intent-mini [data-intent-set="sell"],
html[data-intent="buy"] .intent-mini [data-intent-set="buy"] { background: var(--i-brand); color: var(--white); }

/* and in the form */
.intent-form { display: flex; align-items: center; gap: 0.5rem; font-size: 0.76rem; font-weight: 600; color: var(--muted); }
.intent-form button { flex: 1; padding: 0.75rem 1rem; border-radius: 0.8rem; border: 2px solid var(--line); background: var(--white); font-family: var(--display); font-weight: 700; font-size: 0.95rem; cursor: pointer; color: var(--ink-2); transition: background .25s, color .25s, border-color .25s; }
html[data-intent="sell"] .intent-form [data-intent-set="sell"],
html[data-intent="buy"] .intent-form [data-intent-set="buy"] { border-color: var(--i-brand); background: var(--i-brand); color: var(--white); }

/* buying calculator (inside the hero card) */
.picks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: -0.5rem 0 0.7rem; }
.pick { display: flex; align-items: center; gap: 0.5rem; }
.pick-label { font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.calc .chips { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; }
.calc .chips button { border: 2px solid var(--line); background: var(--white); border-radius: 999px; padding: 0.35rem 0.85rem; font-family: var(--display); font-weight: 700; font-size: 0.76rem; cursor: pointer; color: var(--ink-2); transition: background .25s, color .25s, border-color .25s; }
.calc .chips button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--white); }
#buy-rows { margin-top: 0.3rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 0.7rem; }
.facts > div { background: var(--cream); border-radius: 0.9rem; padding: 0.7rem 0.8rem; min-width: 0; }
.facts span { display: block; font-size: 0.62rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.facts b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 0.1rem 0; white-space: nowrap; }
.facts small { display: block; font-size: 0.66rem; color: var(--muted); line-height: 1.3; }
.calc-msg { background: var(--cream); border-radius: 0.9rem; padding: 0.9rem 1rem; font-size: 0.88rem; color: var(--ink-2); margin-top: 0.4rem; }

/* buying: the three numbers, where the packages sit for sellers */
.for-line { font-family: var(--display); font-weight: 700; color: var(--muted); margin-bottom: 1.2rem; }
.pkgs.three { grid-template-columns: repeat(3, 1fr); }
.pkgs.three .pkg .price { font-size: clamp(2.2rem, 3.2vw, 3rem); }
.example div.n { display: block; margin-top: 0.4rem; padding-top: 0.6rem; border-top: 1px dashed rgba(128,128,128,0.4); font-size: 0.8rem; line-height: 1.45; opacity: 0.85; }
.inc-note { margin-top: 1.2rem; font-size: 0.88rem; color: var(--muted); }

@media (max-width: 1150px) {
  .pkgs.three { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-links .intent-mini { align-self: flex-start; margin-top: 1rem; }
}
/* Between the phone menu and a wide screen the menu bar has no room for the
   small switch; the big one at the top of the page and the one in the form stay. */
@media (min-width: 901px) and (max-width: 1240px) {
  .nav-links .intent-mini { display: none; }
}
@media (max-width: 600px) {
  .intent-opts { display: grid; }
  .intent-opts button { padding: 0.7rem 0.9rem; }
  .facts b { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  [data-for] { animation: none; }
}
