/* Hallmark · genre: playful · theme: Hum · design-system: design.md
 * macrostructure: Bento Grid (/) · Long Document (/privasi, /syarat, /hapus-akun)
 * nav: N12 Announcement banner + retracting bar · footer: Ft8 Marquee scroll
 * palette: neoside-mobile AppColors, read as Hum's multi-accent register
 * type: Bricolage Grotesque display · Poppins body (app parity) · JetBrains Mono numerals
 * motion: GSAP + ScrollTrigger on / only; legal pages are CSS-only
 * contrast: every text pair >= 4.5:1, every ring >= 3:1 (verified)
 */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=JetBrains+Mono:wght@400;500&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  /* ---- Palette ----------------------------------------------------------
   * Mirrors neoside-mobile/lib/ui/theme/app_colors.dart. The app already ships
   * four accents, which is exactly Hum's multi-accent register: pear primary,
   * sky-cyan secondary, coral pop, mint occasional. Nothing invented here. */
  --color-paper: oklch(0.989 0.011 85);        /* #FFFBF3 AppColors.background */
  --color-paper-2: oklch(1 0 0);               /* #FFFFFF AppColors.surface */
  --color-paper-muted: oklch(0.965 0.018 82);
  --color-ink: oklch(0.316 0.018 46);          /* #3A2F2A AppColors.textPrimary */
  --color-ink-2: oklch(0.549 0.019 62);        /* #7A6F66 AppColors.textSecondary */
  --color-ink-muted: oklch(0.54 0.020 60);     /* darkened AppColors.textLight */
  /* Body copy that sits on a tinted tile. --color-ink-2 is 4.43:1 on the cyan
   * wash and 3.93:1 on the coral hover wash — it passes on paper and fails on
   * colour, which is the trap a multi-accent theme sets. */
  --color-ink-tile: oklch(0.50 0.019 62);
  --color-rule: oklch(0.929 0.022 77);         /* #F0E6D8 AppColors.border */

  /* Pear — primary action. A fill: 1.33:1 as text, 9.43:1 under dark ink. */
  --color-accent: oklch(0.894 0.132 91.5);     /* #FCD96E AppColors.primary */
  --color-accent-deep: oklch(0.843 0.149 86.5);/* #F6C445 AppColors.primaryDark — the button edge */
  --color-accent-light: oklch(0.925 0.095 92); /* #FFE08A AppColors.primaryLight */
  --color-accent-ink: oklch(0.316 0.018 46);   /* the label ON pear */
  --color-accent-strong: oklch(0.53 0.12 85);  /* dark amber, for pear-as-text */

  /* Cyan — links and hover tints. Mint — success. Coral — the one loud moment. */
  --color-cyan: oklch(0.793 0.118 222.6);      /* #56CCF2 AppColors.accentBlue */
  --color-cyan-text: oklch(0.50 0.14 235);
  --color-mint: oklch(0.781 0.123 156.5);      /* #6FCF97 AppColors.secondary */
  --color-mint-text: oklch(0.50 0.14 152);
  --color-coral: oklch(0.653 0.183 23.7);      /* #EB5757 AppColors.error */
  --color-coral-text: oklch(0.50 0.14 25);

  /* Tile washes. Each accent owns its own surface — they never blend. */
  --tint-pear: oklch(0.965 0.030 92);
  --tint-cyan: oklch(0.965 0.030 235);
  --tint-mint: oklch(0.965 0.030 152);
  --tint-coral: oklch(0.965 0.030 25);
  --tint-pear-hover: oklch(0.945 0.055 92);
  --tint-cyan-hover: oklch(0.945 0.055 235);
  --tint-mint-hover: oklch(0.945 0.055 152);
  --tint-coral-hover: oklch(0.945 0.055 25);

  --color-success: oklch(0.50 0.14 152);
  --color-success-bg: oklch(0.965 0.030 152);
  --color-danger: oklch(0.50 0.14 25);
  --color-danger-bg: oklch(0.965 0.025 25);
  --color-callout-bg: oklch(0.975 0.030 88);
  --color-callout-border: oklch(0.915 0.055 88);
  --color-focus: oklch(0.53 0.12 85);
  --color-shade: 58 47 42;                     /* ink channels, for shadow alpha */
  --color-veil: 255 255 255;                   /* paper channels, for overlay alpha */

  /* ---- Type ----
   * Three families, deliberately. Hum's spec calls for two, but the body face
   * is pinned to Poppins because the Flutter app uses it and the two surfaces
   * must read as one product. Bricolage carries the character instead. */
  --font-display: 'Bricolage Grotesque', 'Poppins', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6.5rem;

  /* Hum is the rounded theme — no square corners anywhere. */
  --radius-input: 12px;
  --radius-card: 20px;
  --radius-tile: 24px;
  --radius-pill: 9999px;

  --shadow-lift: 0 12px 32px -16px rgb(var(--color-shade) / 0.28);
  --shadow-lift-hi: 0 20px 44px -18px rgb(var(--color-shade) / 0.34);

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-push: cubic-bezier(0.2, 0.7, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 220ms;

  --banner-h: 44px;
  --bar-h: 66px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { overflow-x: clip; }

html {
  font-family: var(--font-body);
  background-color: var(--color-paper);
  color: var(--color-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* Clears the fixed header. This lives on body, not main: .legal-container sets
 * a `padding` shorthand and, being a class, beat the element-level rule on
 * main — so the legal pages' h1 was sliding underneath the nav. */
body {
  min-height: 100vh; display: flex; flex-direction: column;
  padding-top: calc(var(--banner-h) + var(--bar-h));
}

h1, h2, h3 { font-family: var(--font-display); font-style: normal; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 var(--space-md); width: 100%; }

.legal-container {
  max-width: 780px; margin: 0 auto; width: 100%;
  padding: var(--space-xl) var(--space-md) var(--space-3xl);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* One ring for everything focusable. Never transitioned. */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-input);
}

.skip-link {
  position: absolute; left: var(--space-sm); top: var(--space-sm); z-index: 900;
  padding: var(--space-2xs) var(--space-sm);
  background: var(--color-paper-2); color: var(--color-ink);
  border: 2px solid var(--color-ink); border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.875rem; text-decoration: none;
  transform: translateY(-250%);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---- N12 · Announcement banner + retracting bar -----------------------
 * The banner is one line, one link, one dismiss — never a second row of nav
 * links, which is the "two nav bars" smell this archetype exists to avoid. */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 500;
  transform: translateY(0);
  transition: transform 320ms var(--ease-out);
}
.nav.is-compact { transform: translateY(calc(var(--banner-h) * -1)); }
.nav.is-dismissed { transform: none; }
.nav.is-dismissed .nav__banner { display: none; }

.nav__banner {
  /* min-height, not height: if the copy ever wraps, the banner grows and
   * motion.js re-measures rather than the bar sliding over the top of it. */
  position: relative; min-height: var(--banner-h);
  display: flex; align-items: center; justify-content: center; gap: var(--space-sm);
  padding: var(--space-3xs) var(--space-xl) var(--space-3xs) var(--space-sm);
  background: var(--color-ink); color: var(--color-paper);
  font-size: 0.8125rem;
}
.nav__banner-text { display: inline-flex; align-items: center; gap: var(--space-2xs); }
.nav__banner-spark {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-accent);
}
.nav__banner-link { color: var(--color-accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav__banner-link:hover { text-decoration: underline; }
.nav__banner-x {
  position: absolute; right: var(--space-sm);
  width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: transparent; color: var(--color-paper);
  cursor: pointer; font-size: 1.1rem; line-height: 1;
  display: grid; place-items: center;
}
.nav__banner-x:hover { background: rgb(var(--color-veil) / 0.16); }

/* The bar centres its own contents. It used to rely on `height: 100%` on the
 * inner, but a percentage height cannot resolve against a parent sized by
 * min-height, so the inner collapsed to its content and all the slack fell
 * below it — the row sat jammed against the banner. */
.nav__bar {
  display: flex; align-items: center;
  min-height: var(--bar-h);
  background: var(--color-paper); border-bottom: 2px solid var(--color-ink);
}
/* Three columns, not flex. The links used to carry `margin-left: auto`, but
 * that lived on the <ul> while the flex item was the <nav> wrapping it — so it
 * had nothing to push against and all three parts bunched up on the left.
 * Equal 1fr rails on either side of an auto middle put the links on the page's
 * real centre line, whatever the brand and the button happen to measure. */
.nav__bar-inner {
  width: 100%; max-width: 1140px; margin: 0 auto;
  padding: var(--space-2xs) var(--space-md);
  /* minmax(0, 1fr), not 1fr: a bare 1fr floors at its content's min-width, so
   * the wider brand would inflate its rail and shove the links off-centre. */
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: var(--space-md);
}
.nav__bar-inner > .brand { grid-column: 1; justify-self: start; }
.nav__bar-inner > nav    { grid-column: 2; }
.nav__bar-inner > .btn   { grid-column: 3; justify-self: end; }

.brand {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  text-decoration: none; color: var(--color-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: -0.02em;
}
/* The character mark: breathes at rest, bursts when the CTA is used. */
.brand-badge {
  width: 30px; height: 30px; border-radius: 10px;
  background: var(--color-accent); color: var(--color-accent-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 1rem;
  animation: mark-breathe 4s ease-in-out infinite;
}
@keyframes mark-breathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.06) rotate(-3deg); }
}

.nav-links { display: flex; align-items: center; gap: var(--space-2xs); list-style: none; }
.nav-link {
  text-decoration: none; color: var(--color-ink-2);
  font-size: 0.875rem; font-weight: 500; white-space: nowrap;
  padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-pill);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.nav-link:hover { color: var(--color-ink); background: var(--tint-cyan); }
.nav-link[aria-current='page'] { color: var(--color-accent-strong); background: var(--tint-pear); }

/* ---- The push button --------------------------------------------------
 * The face colour never changes on hover. The feedback is physical: a solid
 * colour edge underneath that lifts on hover and compresses on press. The
 * edge is flush to the button's width — never a negative spread. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem;
  padding: 0.8rem 1.4rem; border: 0; border-radius: var(--radius-pill);
  cursor: pointer; text-decoration: none; line-height: 1.2; white-space: nowrap;
  position: relative; transform: translateY(0);
  transition: transform 140ms var(--ease-push), box-shadow 140ms var(--ease-push);
}
.btn-primary {
  background: var(--color-accent); color: var(--color-accent-ink);
  box-shadow: 0 4px 0 0 var(--color-accent-deep), 0 6px 12px -3px rgb(var(--color-shade) / 0.30);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 var(--color-accent-deep), 0 12px 22px -4px rgb(var(--color-shade) / 0.30);
}
.btn-primary:active {
  transform: translateY(3px); transition-duration: 70ms;
  box-shadow: 0 1px 0 0 var(--color-accent-deep), 0 2px 6px -2px rgb(var(--color-shade) / 0.30);
}
.btn-secondary {
  background: var(--color-paper-2); color: var(--color-ink);
  box-shadow: 0 4px 0 0 var(--color-rule), 0 5px 10px -4px rgb(var(--color-shade) / 0.20);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 var(--color-rule), 0 10px 18px -5px rgb(var(--color-shade) / 0.22);
}
.btn-secondary:active {
  transform: translateY(3px); transition-duration: 70ms;
  box-shadow: 0 1px 0 0 var(--color-rule);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }

/* Coral star. One firing per primary action, never auto-looped. */
.star-burst {
  position: fixed; width: 26px; height: 26px; z-index: 800; pointer-events: none;
  background:
    linear-gradient(90deg, transparent 47%, var(--color-coral) 47% 53%, transparent 53%),
    linear-gradient(0deg,  transparent 47%, var(--color-coral) 47% 53%, transparent 53%);
  animation: star-burst 420ms ease-out forwards;
}
@keyframes star-burst {
  0%   { transform: translate(-50%, -50%) scale(0) rotate(0deg);   opacity: 1; }
  60%  { transform: translate(-50%, -50%) scale(1.2) rotate(35deg); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.5) rotate(45deg); opacity: 0; }
}

/* ---- Hero -------------------------------------------------------------- */
/* Section rhythm scales with the viewport instead of holding desktop gaps on a
 * phone, where 72 px of air above a hero is most of the first screen. */
.hero {
  /* padding-block, never the shorthand: these elements also carry .container,
   * and a `padding: … 0 …` here has equal specificity but comes later, so it
   * silently zeroed the gutter and ran every line to the screen edge. */
  padding-block: clamp(var(--space-lg), 6vw, var(--space-2xl)) var(--space-lg);
  text-align: center;
}
.hero-title {
  font-family: var(--font-display);
  /* The floor used to be 2.5rem, which at 390 px filled the line edge to edge
   * with nothing left for a gutter. Driving it off vw lets it actually shrink. */
  font-size: clamp(1.95rem, 7.5vw, 4.5rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -0.03em;
  overflow-wrap: anywhere; text-wrap: balance;
  max-width: 16ch; margin: 0 auto;
}
/* One word carries the pear — a drawn bar behind it, never gradient text. */
.hero-title .swash { position: relative; white-space: nowrap; }
.hero-title .swash::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: 0.05em;
  height: 0.28em; z-index: -1;
  background: var(--color-accent); border-radius: var(--radius-pill);
}
.hero-lede {
  font-size: clamp(0.9375rem, 0.6vw + 0.85rem, 1.2rem);
  line-height: 1.6; text-wrap: pretty;
  color: var(--color-ink-2); max-width: 52ch; margin: var(--space-md) auto 0;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: var(--space-xs);
  justify-content: center; margin-top: clamp(var(--space-md), 3vw, var(--space-lg));
}
.hero-footnote {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  margin-top: var(--space-md); font-size: 0.8125rem; color: var(--color-ink-muted);
}
.hero-footnote-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-mint); }

/* ---- Bento grid -------------------------------------------------------- */
.bento-section {
  padding-block: clamp(var(--space-md), 4vw, var(--space-lg))
                 clamp(var(--space-2xl), 8vw, var(--space-3xl));
}

.section-head { max-width: 34ch; margin-bottom: clamp(var(--space-md), 3vw, var(--space-lg)); }
.section-head h2 {
  font-size: clamp(1.6rem, 5vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
  text-wrap: balance;
}
.section-head p {
  margin-top: var(--space-2xs); color: var(--color-ink-2);
  font-size: clamp(0.9375rem, 0.5vw + 0.85rem, 1.05rem); text-wrap: pretty;
}

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-sm); }

.tile {
  border-radius: var(--radius-tile); padding: var(--space-lg);
  display: flex; flex-direction: column; gap: var(--space-2xs);
  background: var(--color-paper-2); box-shadow: var(--shadow-lift);
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-spring),
              background-color var(--dur-base) var(--ease-out);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift-hi); }
.tile h3 { font-size: clamp(1.125rem, 1vw + 0.95rem, 1.3rem); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.tile p { font-size: 0.9375rem; color: var(--color-ink-tile); line-height: 1.6; text-wrap: pretty; }

/* Each tile owns one accent. They never compete because they never share a
 * surface. Rest is a wash; hover deepens it. */
.tile--pear  { background: var(--tint-pear); }
.tile--pear:hover  { background: var(--tint-pear-hover); }
.tile--cyan  { background: var(--tint-cyan); }
.tile--cyan:hover  { background: var(--tint-cyan-hover); }
.tile--mint  { background: var(--tint-mint); }
.tile--mint:hover  { background: var(--tint-mint-hover); }
.tile--coral { background: var(--tint-coral); }
.tile--coral:hover { background: var(--tint-coral-hover); }

.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }

/* The page's one loud moment: a big rounded counter. */
.tile--metric { justify-content: center; }
.metric-label {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-ink-muted);
}
.metric-number {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7vw, 3.9rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--color-ink);
}
.metric-number.is-pulsing { animation: metric-pop 420ms var(--ease-spring); }
@keyframes metric-pop { 0% { transform: scale(1); } 45% { transform: scale(1.06); } 100% { transform: scale(1); } }
.metric-caption { font-size: 0.875rem; color: var(--color-ink-tile); }
.metric-bar {
  height: 8px; margin-top: var(--space-2xs); overflow: hidden;
  border-radius: var(--radius-pill); background: rgb(var(--color-shade) / 0.12);
}
.metric-bar span {
  display: block; height: 100%; width: 0;
  border-radius: var(--radius-pill); background: var(--color-accent);
  transition: width 900ms var(--ease-snap);
}

.tile-chip {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--color-paper-2); color: var(--color-ink-tile);
}
.tile-line {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-sm); padding: var(--space-2xs) 0;
  border-bottom: 1px solid rgb(var(--color-shade) / 0.10);
  font-size: 0.875rem;
}
.tile-line:last-child { border-bottom: 0; }
.tile-line b { font-weight: 600; }
.tile-line span { font-family: var(--font-mono); color: var(--color-ink-tile); font-variant-numeric: tabular-nums; }

/* ---- Pricing / Tier Matrix --------------------------------------------- */
.pricing-section {
  padding-block: clamp(var(--space-md), 4vw, var(--space-lg))
                 clamp(var(--space-2xl), 8vw, var(--space-3xl));
}

.pricing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-lg);
}
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--color-paper-muted);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-rule);
  gap: 4px;
}
.pricing-toggle-btn {
  border: 0;
  background: transparent;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.pricing-toggle-btn:hover {
  color: var(--color-ink);
}
.pricing-toggle-btn.is-active {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}
.pricing-save-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--color-mint);
  color: var(--color-ink);
}
.pricing-toggle-btn.is-active .pricing-save-badge {
  background: var(--color-ink);
  color: var(--color-paper);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  align-items: stretch;
}

.pricing-card {
  border-radius: var(--radius-tile);
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lift);
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-spring),
              border-color var(--dur-base) var(--ease-out);
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift-hi);
}
.pricing-card--popular {
  border: 2px solid var(--color-accent);
  background: var(--tint-pear);
}
.pricing-card--popular:hover {
  border-color: var(--color-accent-deep);
}

.pricing-popular-pill {
  position: absolute;
  top: calc(var(--space-xs) * -1);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lift);
  white-space: nowrap;
}

.pricing-card-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  margin-bottom: var(--space-sm);
}
.pricing-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}
.pricing-tagline {
  font-size: 0.875rem;
  color: var(--color-ink-2);
  line-height: 1.45;
}

.pricing-price-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  padding-block: var(--space-xs);
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  margin-bottom: var(--space-sm);
}
.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3xs);
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pricing-period {
  font-size: 0.875rem;
  color: var(--color-ink-2);
  font-weight: 500;
}
.pricing-billed {
  font-size: 0.78125rem;
  color: var(--color-ink-muted);
  font-weight: 500;
}

.pricing-quota-pill {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-paper-2);
  color: var(--color-ink);
  border: 1px solid var(--color-rule);
  margin-bottom: var(--space-sm);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  flex-grow: 1;
  margin-bottom: var(--space-lg);
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2xs);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-ink);
}
.pricing-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-mint-text);
  margin-top: 2px;
}

.pricing-btn {
  width: 100%;
  margin-top: auto;
}

.pricing-voucher {
  margin-top: var(--space-lg);
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-tile);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  box-shadow: var(--shadow-lift);
}
.pricing-voucher-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tint-pear);
  color: var(--color-accent-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pricing-voucher-text strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-ink);
}
.pricing-voucher-text p {
  font-size: 0.875rem;
  color: var(--color-ink-2);
  line-height: 1.5;
}

/* ---- Long Document (legal pages) --------------------------------------
 * Hum rejects Long Document, and rightly — it is not an essay theme. These
 * three pages exist for Play Store compliance and genuinely are essays, so
 * they take the palette, type, nav and footer and nothing else. No tiles, no
 * counters, no scroll motion, no GSAP. */
.article-header {
  margin-bottom: var(--space-xl); padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--color-ink);
}
.article-header h1 {
  font-size: clamp(1.7rem, 5vw, 2.9rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.18;
  text-wrap: balance;
  margin-bottom: var(--space-xs);
}
/* The separators used to be their own <span>&bull;</span>, which stranded a
 * lone dot at the end of a wrapped line. Drawn instead, so it belongs to the
 * item that follows it and disappears when the list stacks. */
.article-meta {
  display: flex; flex-wrap: wrap; align-items: baseline;
  column-gap: var(--space-sm); row-gap: var(--space-3xs);
  font-size: 0.875rem; color: var(--color-ink-muted);
}
.article-meta > span { display: inline-flex; align-items: baseline; gap: var(--space-3xs); }
.article-meta > span + span::before {
  content: '·'; margin-right: var(--space-sm); color: var(--color-rule);
}
.article-body { display: flex; flex-direction: column; gap: var(--space-xl); }
.article-section { display: flex; flex-direction: column; gap: var(--space-sm); }
.article-section h2 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
  margin-top: var(--space-xs); padding-bottom: var(--space-3xs);
  border-bottom: 1px solid var(--color-rule);
}
.article-section h3 { font-size: 1.075rem; font-weight: 700; margin-top: var(--space-2xs); }
.article-section p { font-size: 0.975rem; color: var(--color-ink-2); line-height: 1.7; }
.article-section ul, .article-section ol {
  padding-left: var(--space-md); display: flex; flex-direction: column;
  gap: var(--space-2xs); font-size: 0.975rem; color: var(--color-ink-2);
}
.article-section li strong { color: var(--color-ink); }
.article-section a { color: var(--color-cyan-text); }

.quiet-callout {
  background: var(--color-callout-bg); border: 1px solid var(--color-callout-border);
  border-radius: var(--radius-card); padding: var(--space-md);
  display: flex; flex-direction: column; gap: var(--space-2xs);
}
.quiet-callout-title {
  font-size: 0.875rem; font-weight: 700; color: var(--color-accent-strong);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.quiet-callout p { font-size: 0.9125rem; color: var(--color-ink); line-height: 1.55; }

.hairline-table-wrap {
  width: 100%; overflow-x: auto; margin: var(--space-xs) 0;
  border-radius: var(--radius-card); border: 1px solid var(--color-rule);
}
.hairline-table {
  width: 100%; border-collapse: collapse; text-align: left;
  font-size: 0.875rem; font-variant-numeric: tabular-nums; background: var(--color-paper-2);
}
.hairline-table th, .hairline-table td {
  padding: var(--space-xs) var(--space-sm);
  border-bottom: 1px solid var(--color-rule); border-right: 1px solid var(--color-rule);
}
.hairline-table th:last-child, .hairline-table td:last-child { border-right: none; }
.hairline-table tr:last-child td { border-bottom: none; }
.hairline-table th { background: var(--tint-pear); color: var(--color-ink); font-weight: 600; }
.hairline-table td { color: var(--color-ink-2); }

.status-badge { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 2px 10px; border-radius: var(--radius-pill); }
.status-badge.deleted { background: var(--color-danger-bg); color: var(--color-danger); }
.status-badge.local { background: var(--color-success-bg); color: var(--color-success); }

.step-list { display: flex; flex-direction: column; gap: var(--space-md); margin: var(--space-xs) 0; }
.step-item { display: flex; gap: var(--space-md); align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--color-accent); color: var(--color-accent-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  display: grid; place-items: center;
}
.step-body { display: flex; flex-direction: column; gap: var(--space-3xs); }
.step-body strong { color: var(--color-ink); font-size: 0.975rem; }
.step-body p { font-size: 0.9rem; color: var(--color-ink-2); }

/* ---- Ft8 · Marquee scroll ---------------------------------------------- */
.site-footer { margin-top: auto; border-top: 2px solid var(--color-ink); background: var(--color-paper); }

/* A seamless loop needs the shift to equal exactly one repeat of the text.
 * The old version used a flex `gap` and shifted -50%: with two children the
 * halfway point falls in the middle of the gap, not on a repeat boundary, so
 * the line jumped and showed a hole. The separator is now baked into the group
 * (its own padding-right), and motion.js clones groups until the track is
 * wider than the viewport, then sets the shift to one group's exact width. */
.foot-marquee { overflow: hidden; background: var(--color-accent); }
.foot-marquee__track {
  display: flex; width: max-content;
  animation: foot-marquee var(--marquee-dur, 26s) linear infinite;
  will-change: transform;
}
.foot-marquee__group {
  white-space: nowrap;
  padding-block: var(--space-xs);
  /* The gap at each seam is a trailing &nbsp; in the text, not padding here:
   * padding made every "TENANG · CATAT" join wider than the joins inside a
   * group, so the rhythm hiccuped once per repeat. */
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: 0.06em; font-size: clamp(0.95rem, 2vw, 1.35rem);
  color: var(--color-accent-ink);
}
/* 50% is correct for the two groups the markup ships; motion.js overwrites it
 * with a pixel value once it knows how many it actually needed. */
@keyframes foot-marquee { from { transform: translateX(0); } to { transform: translateX(calc(var(--marquee-shift, 50%) * -1)); } }

.foot-meta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-md); padding: var(--space-md) 0;
  font-size: 0.8125rem; color: var(--color-ink-muted);
}
.foot-left { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.footer-brand { font-family: var(--font-display); font-weight: 800; color: var(--color-ink); text-decoration: none; }
.footer-legal-links { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-md); list-style: none; }
.footer-legal-links a { color: var(--color-ink-2); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
.footer-legal-links a:hover { color: var(--color-accent-strong); }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .span-4, .span-3, .span-2 { grid-column: span 6; }
  .pricing-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

@media (max-width: 768px) {
  /* Two columns, brand and button on row one; the links take the full width of
   * row two rather than disappearing — on the legal pages they are the only way
   * to reach the sibling documents. */
  .nav__bar-inner {
    grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--space-2xs);
    padding-block: var(--space-xs);
  }
  .nav__bar-inner > .brand { grid-column: 1; grid-row: 1; }
  .nav__bar-inner > .btn   { grid-column: 2; grid-row: 1; }
  .nav__bar-inner > nav    { grid-column: 1 / -1; grid-row: 2; }
  .nav-links {
    width: 100%; justify-content: center; flex-wrap: wrap;
    gap: var(--space-3xs);
    padding-top: var(--space-2xs); border-top: 1px solid var(--color-rule);
  }
  /* Four links overshoot a 390 px row by a few pixels at the desktop padding,
   * which pushed "Syarat" onto a line of its own. Tighten the pill, keep the
   * tap target at 40 px tall. */
  .nav-link { padding: var(--space-2xs) var(--space-2xs); }
  /* One line at 390 px; it was wrapping and making the banner twice as tall. */
  .nav__banner { font-size: 0.75rem; gap: var(--space-2xs); }
  .article-meta { flex-direction: column; align-items: flex-start; }
  .article-meta > span + span::before { content: none; }
  .foot-meta { flex-direction: column; align-items: flex-start; gap: var(--space-2xs); }
}

@media (max-width: 414px) {
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .tile { padding: var(--space-md); }
  .pricing-card { padding: var(--space-md); }
  .pricing-voucher { flex-direction: column; align-items: flex-start; }
}

/* ---- Reduced motion ----------------------------------------------------
 * The page must stay pleasant, not merely stop moving. Colour and tint
 * transitions survive; everything spatial is cut. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .brand-badge, .foot-marquee__track { animation: none; }
  .tile:hover, .btn:hover, .btn:active, .pricing-card:hover { transform: none; }
  .star-burst { display: none; }
}
