/*
 * NexKira owner design tokens: design system v3 (redesign v2, 26 Nov 2026). Kira indigo action, cool slate
 * neutrals, Inter type on a 1.2 scale, 4px spacing, 6–18px radius, three elevations and motion tokens.
 *
 * One place for colour roles, type scale, spacing, radius and elevation, in
 * light and dark. Every text pair below was checked for WCAG AA (≥ 4.5:1 for
 * text, ≥ 3:1 for field borders, focus rings and chart marks) against the
 * surfaces it sits on; the pairs and ratios are listed in REDESIGN-NOTES.md.
 *
 * - Roles (`--nk-*`) are what new styles use.
 * - The older `--nko-*` names are aliases only because the parallel frontend
 *   lane still writes them; rename them in one sweep after that merge.
 * - Dark mode follows the OS setting unless the page stamps data-theme="light";
 *   data-theme="dark" forces it. Dark values are chosen for the dark surface,
 *   not flipped automatically.
 * - Chart series 1 and 2 come from the validated categorical palette
 *   (adjacent CVD ΔE ≥ 24, ≥ 3:1 on both surfaces).
 */
.nko-owner {
    color-scheme: light;

    /* Surfaces: cool slate paper, white work surfaces, three quiet wells. */
    --nk-paper: #F5F6F8;
    --nk-surface: #FFFFFF;
    --nk-surface-2: #F0F2F5;
    --nk-surface-3: #E7EAEF;
    --nk-hover: #EEF0F4;
    --nk-row-hover: #F7F8FA;
    --nk-sunken: #ECEEF2;
    --nk-skeleton: #E4E7EC;
    --nk-currency: #EEF0F3;

    /* Ink (AA on paper and surface: ink 16:1, ink-2 9.6:1, muted 5.4:1; field line 3.4:1) */
    --nk-ink: #111726;
    --nk-ink-2: #353E50;
    --nk-muted: #586174;
    --nk-line: #E1E4EA;
    --nk-line-strong: #C3C9D3;
    --nk-field-line: #7A8395;

    /* Action: Kira indigo (white on it 6.4:1; action-ink on surface 8.9:1) */
    --nk-action: #3A4BD1;
    --nk-action-hover: #2F3FBD;
    --nk-action-press: #2734A4;
    --nk-action-ink: #2A37A6;
    --nk-on-action: #FFFFFF;
    --nk-action-soft: #ECEFFD;
    --nk-action-line: #C6CDF6;
    --nk-ok-tint: #F6F7FE;

    /* Status: done (green), warn (amber), danger (red), neutral */
    --nk-ok: #0E7A4E; --nk-ok-ink: #0A5C3B; --nk-ok-soft: #E4F4EC; --nk-ok-line: #A9DCC2;
    --nk-warn: #8A5300;
    --nk-warn-ink: #5C3700;
    --nk-warn-soft: #FFF1D6;
    --nk-warn-line: #E2B867;
    --nk-warn-tint: #FFFBF1;
    --nk-danger: #B42318;
    --nk-danger-ink: #7A1A12;
    --nk-danger-soft: #FDECEA;
    --nk-danger-line: #F2B8B1;
    --nk-danger-tint: #FFF8F7;
    --nk-neutral-soft: #EFF1F4;
    --nk-neutral-ink: #4F5869;

    /* "Not available yet" notes */
    --nk-notyet-bg: #F4F5F7;
    --nk-notyet-line: #DDE1E7;
    --nk-notyet-ink: #2F3747;
    --nk-notyet-sub: #586174;
    --nk-notyet-tag-bg: #E6E9F0;
    --nk-notyet-tag-ink: #3E475A;

    /* Brand and flags */
    --nk-brand: #3A4BD1;
    --nk-brand-bg: #3A4BD1;
    --nk-focus: #3A4BD1;
    --nk-blue-soft: #E8F0FD; --nk-blue-ink: #1F4E9C; --nk-blue-line: #BFD3F4;
    --nk-violet-soft: #F0EAFC; --nk-violet-ink: #5A35A8; --nk-violet-line: #D8C8F4;
    --nk-accent-late: #E0796E; --nk-accent-done: #5DB98E; --nk-accent-credit: #8E9BEB;

    /* Charts (validated pair; text never wears these) */
    --nk-chart-1: #2a78d6;
    --nk-chart-2: #eb6834;
    --nk-chart-grid: #E4E7EC;
    --nk-chart-zero: #C3C9D3;

    /* Elevation: flat at rest, lifted on interaction, raised for overlays */
    --nk-shadow-rgb: 17, 23, 38;
    --nk-shadow-0: 0 0 0 1px var(--nk-line);
    --nk-shadow-1: 0 1px 2px rgba(var(--nk-shadow-rgb), .06), 0 1px 1px rgba(var(--nk-shadow-rgb), .04);
    --nk-shadow-2: 0 4px 12px -2px rgba(var(--nk-shadow-rgb), .10), 0 2px 4px rgba(var(--nk-shadow-rgb), .05);
    --nk-shadow-3: 0 24px 48px -12px rgba(var(--nk-shadow-rgb), .28);

    /* Type: one sans family; a 1.2 scale on a 16px body; tabular figures for money */
    --nk-font-display: "Inter", "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --nk-font-body: "Inter", "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --nk-text-xs: 13px;
    --nk-text-sm: 14px;
    --nk-text-md: 16px;
    --nk-text-lg: 19px;
    --nk-text-xl: 23px;
    --nk-text-2xl: 28px;
    --nk-text-3xl: 33px;
    --nk-text-4xl: 40px;
    --nk-text-display: 40px;
    --nk-weight-body: 400; --nk-weight-strong: 600; --nk-weight-heading: 700;
    --nk-leading-tight: 1.15; --nk-leading: 1.5;

    /* Spacing (4px grid) */
    --nk-space-1: 4px; --nk-space-2: 8px; --nk-space-3: 12px; --nk-space-4: 16px;
    --nk-space-5: 24px; --nk-space-6: 32px; --nk-space-7: 48px; --nk-space-8: 64px;

    /* Radius: controls < fields and buttons < cards < sheets */
    --nk-radius-sm: 6px; --nk-radius-md: 10px; --nk-radius-lg: 14px; --nk-radius-xl: 18px; --nk-radius-pill: 999px;

    /* Motion (docs/design/owner-redesign-v2/MOTION.md). Short and eased, and the same in light and dark (motion
       carries no colour). Under prefers-reduced-motion the distances go to 0 and the scales to 1, so every motion
       becomes an opacity change or nothing; durations stay so a fade is still a fade, and loops stop.
       Durations: 1 micro (press, hover, colour, field focus), 2 small surfaces (menus, flyout) and every exit,
       3 content (route, palette, step, validation, tab ink), 4 large surfaces (sheets, drawer) and the success mark. */
    --nk-dur-0: 0ms; --nk-dur-1: 100ms; --nk-dur-2: 150ms; --nk-dur-3: 200ms; --nk-dur-4: 300ms;
    --nk-dur-delay: 300ms;   /* a loader waits this long before it shows, so quick loads never flash */
    --nk-dur-loop: 1600ms;   /* one calm loader cycle (well under 3 flashes a second: it never flashes) */
    --nk-dur-spin: 800ms;    /* the busy ring on a button */
    --nk-ease: cubic-bezier(.2, 0, 0, 1);            /* standard: things that move or change on screen */
    --nk-ease-enter: cubic-bezier(.05, .7, .1, 1);   /* decelerate: arrives fast, settles gently */
    --nk-ease-exit: cubic-bezier(.3, 0, .8, .15);    /* accelerate: leaves quickly, out of the way */
    --nk-ease-loop: cubic-bezier(.45, 0, .55, 1);    /* in-out: loaders and skeleton shimmer only */
    /* Distances and scales: small, so motion explains where a thing came from without travelling */
    --nk-move-1: 2px;  /* validation and inline status */
    --nk-move-2: 4px;  /* route content, menus, flyout, step panels */
    --nk-move-3: 8px;  /* palette, confirmations, success */
    --nk-move-4: 24px; /* sheets (from the right) and the phone drawer (from the left) */
    --nk-scale-in: .98;    /* menus and the palette grow from 98% */
    --nk-scale-press: .98; /* a pressed button */
    --nk-scale-mark: .6;   /* the success check starts at 60% */

    /* Layout */
    --nk-page-max: 1200px;
    --nk-measure: 64ch;
    --nk-control-h: 44px;
}
/* Reduced motion: no travel, no growth, no loops. Fades stay (they move nothing); see MOTION.md. */
@media (prefers-reduced-motion: reduce) {
    .nko-owner { --nk-move-1: 0px; --nk-move-2: 0px; --nk-move-3: 0px; --nk-move-4: 0px; --nk-scale-in: 1; --nk-scale-press: 1; --nk-scale-mark: 1; }
}

/* Dark: OS setting, unless the page is stamped light. Values chosen for the dark surface, not flipped. */
@media (prefers-color-scheme: dark) {
    :root:where(:not([data-theme="light"])) .nko-owner {
        color-scheme: dark;
        --nk-paper: #0B0F17; --nk-surface: #121826; --nk-surface-2: #182031; --nk-surface-3: #1F293C;
        --nk-hover: #1C2537; --nk-row-hover: #161E2E; --nk-sunken: #161E2E; --nk-skeleton: #1F293C; --nk-currency: #1F293C;
        --nk-ink: #E9EDF5; --nk-ink-2: #C3CBDA; --nk-muted: #A0AABD; --nk-line: #263045; --nk-line-strong: #38445E; --nk-field-line: #6C7891;
        --nk-action: #8C9BFF; --nk-action-hover: #A2AEFF; --nk-action-press: #7787F5; --nk-action-ink: #B0BAFF; --nk-on-action: #0B0F17;
        --nk-action-soft: #1B2248; --nk-action-line: #323D7A; --nk-ok-tint: #131A33;
        --nk-ok: #4CC38A; --nk-ok-ink: #7FD8AD; --nk-ok-soft: #0F2C20; --nk-ok-line: #22573F;
        --nk-warn: #F2B45A; --nk-warn-ink: #F5C77E; --nk-warn-soft: #33260F; --nk-warn-line: #6B5121; --nk-warn-tint: #221B0E;
        --nk-danger: #FF8A80; --nk-danger-ink: #FFB3AB; --nk-danger-soft: #3A1714; --nk-danger-line: #6E2C26; --nk-danger-tint: #241311;
        --nk-neutral-soft: #1D2536; --nk-neutral-ink: #B8C1D2;
        --nk-notyet-bg: #161D2B; --nk-notyet-line: #2C364B; --nk-notyet-ink: #DCE2EE; --nk-notyet-sub: #B3BCCD; --nk-notyet-tag-bg: #263045; --nk-notyet-tag-ink: #CBD3E2;
        --nk-brand: #8C9BFF; --nk-brand-bg: #3A4BD1; --nk-focus: #A2AEFF;
        --nk-blue-soft: #14223D; --nk-blue-ink: #A9C6F5; --nk-blue-line: #2B4370;
        --nk-violet-soft: #231B3D; --nk-violet-ink: #CDBDF5; --nk-violet-line: #45376E;
        --nk-accent-late: #C4655B; --nk-accent-done: #3E9C77; --nk-accent-credit: #6F7FD6;
        --nk-chart-1: #3987e5; --nk-chart-2: #d95926; --nk-chart-grid: #222C3F; --nk-chart-zero: #46526B;
        --nk-shadow-rgb: 0, 0, 0;
    }
}
:root[data-theme="dark"] .nko-owner {
    color-scheme: dark;
    --nk-paper: #0B0F17; --nk-surface: #121826; --nk-surface-2: #182031; --nk-surface-3: #1F293C;
    --nk-hover: #1C2537; --nk-row-hover: #161E2E; --nk-sunken: #161E2E; --nk-skeleton: #1F293C; --nk-currency: #1F293C;
    --nk-ink: #E9EDF5; --nk-ink-2: #C3CBDA; --nk-muted: #A0AABD; --nk-line: #263045; --nk-line-strong: #38445E; --nk-field-line: #6C7891;
    --nk-action: #8C9BFF; --nk-action-hover: #A2AEFF; --nk-action-press: #7787F5; --nk-action-ink: #B0BAFF; --nk-on-action: #0B0F17;
    --nk-action-soft: #1B2248; --nk-action-line: #323D7A; --nk-ok-tint: #131A33;
    --nk-ok: #4CC38A; --nk-ok-ink: #7FD8AD; --nk-ok-soft: #0F2C20; --nk-ok-line: #22573F;
    --nk-warn: #F2B45A; --nk-warn-ink: #F5C77E; --nk-warn-soft: #33260F; --nk-warn-line: #6B5121; --nk-warn-tint: #221B0E;
    --nk-danger: #FF8A80; --nk-danger-ink: #FFB3AB; --nk-danger-soft: #3A1714; --nk-danger-line: #6E2C26; --nk-danger-tint: #241311;
    --nk-neutral-soft: #1D2536; --nk-neutral-ink: #B8C1D2;
    --nk-notyet-bg: #161D2B; --nk-notyet-line: #2C364B; --nk-notyet-ink: #DCE2EE; --nk-notyet-sub: #B3BCCD; --nk-notyet-tag-bg: #263045; --nk-notyet-tag-ink: #CBD3E2;
    --nk-brand: #8C9BFF; --nk-brand-bg: #3A4BD1; --nk-focus: #A2AEFF;
    --nk-blue-soft: #14223D; --nk-blue-ink: #A9C6F5; --nk-blue-line: #2B4370;
    --nk-violet-soft: #231B3D; --nk-violet-ink: #CDBDF5; --nk-violet-line: #45376E;
    --nk-accent-late: #C4655B; --nk-accent-done: #3E9C77; --nk-accent-credit: #6F7FD6;
    --nk-chart-1: #3987e5; --nk-chart-2: #d95926; --nk-chart-grid: #222C3F; --nk-chart-zero: #46526B;
    --nk-shadow-rgb: 0, 0, 0;
}

/* Older names: aliases until the post-merge rename sweep. */
.nko-owner {
    --nko-paper: var(--nk-paper); --nko-surface: var(--nk-surface); --nko-ink: var(--nk-ink); --nko-muted: var(--nk-muted);
    --nko-line: var(--nk-line); --nko-line-strong: var(--nk-line-strong);
    --nko-green: var(--nk-action); --nko-green-ink: var(--nk-action-ink); --nko-green-soft: var(--nk-action-soft);
    --nko-amber: var(--nk-warn); --nko-amber-soft: var(--nk-warn-soft); --nko-amber-line: var(--nk-warn-line);
    --nko-danger: var(--nk-danger); --nko-danger-soft: var(--nk-danger-soft);
    --nko-focus: var(--nk-focus); --nko-brand: var(--nk-brand);
    --nko-display: var(--nk-font-display); --nko-body: var(--nk-font-body);
    --nko-blue-soft: var(--nk-blue-soft); --nko-blue-ink: var(--nk-blue-ink); --nko-violet-soft: var(--nk-violet-soft); --nko-violet-ink: var(--nk-violet-ink);
    --nko-shadow: var(--nk-shadow-1);
}

/* nexkira.my landing. The design system v3 tokens (owner ui/tokens.css) are prepended by build-landing.mjs; the body
   carries .nko-owner so those roles apply in light and dark (OS setting). Phone first. */
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("inter-latin-wght-normal.woff2") format("woff2-variations"); }
html, body { margin: 0; }
body { background: var(--nk-paper); color: var(--nk-ink); font-family: "Inter Variable", var(--nk-font-body); font-size: 16px; line-height: 1.55; -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; }
:focus-visible { outline: 3px solid var(--nk-focus); outline-offset: 2px; border-radius: 6px; }
a { color: var(--nk-action-ink); text-underline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--nk-surface); font-weight: 600; border-radius: 10px; }
.skip:focus { left: 16px; z-index: 5; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1120px; }
.top { background: var(--nk-surface); border-bottom: 1px solid var(--nk-line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; max-width: 1120px; }
.word { font-weight: 800; font-size: 22px; letter-spacing: -.03em; color: var(--nk-ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.word b { color: var(--nk-brand); }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.lang:hover { background: var(--nk-hover); }
main { display: block; }
h1 { font-size: 34px; line-height: 1.12; margin: 0 0 16px; letter-spacing: -.025em; }
h2 { font-size: 26px; line-height: 1.2; margin: 0 0 12px; letter-spacing: -.015em; }
h3 { font-size: 18px; margin: 0 0 4px; }
p { margin: 0 0 12px; }
.hero { padding: 48px 0 40px; }
.lead { font-size: 19px; color: var(--nk-ink-2); max-width: 56ch; }
.lead-sm { color: var(--nk-ink-2); max-width: 70ch; }
.muted { color: var(--nk-muted); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 10px; font: inherit; font-weight: 650; text-decoration: none; border: 1px solid transparent; text-align: center; }
.btn-primary { background: var(--nk-action); color: var(--nk-on-action); }
.btn-primary:hover { background: var(--nk-action-hover); }
.btn-secondary { background: var(--nk-surface); color: var(--nk-action-ink); border-color: var(--nk-field-line); }
.btn-secondary:hover { background: var(--nk-hover); }
.btn-quiet { background: transparent; color: var(--nk-action-ink); border-color: var(--nk-field-line); width: 100%; }
.btn-quiet:hover { background: var(--nk-hover); }
.plan .btn-primary { width: 100%; }
.how, .pricing { padding: 40px 0; border-top: 1px solid var(--nk-line); }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 20px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps p { margin: 0; color: var(--nk-ink-2); }
.num { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--nk-action); color: var(--nk-on-action); font-weight: 700; }
.plans { display: grid; gap: 16px; margin: 20px 0 16px; }
.plan { display: flex; flex-direction: column; background: var(--nk-surface); border: 1px solid var(--nk-line); border-radius: 14px; padding: 20px; }
.plan-mark { border-color: var(--nk-action); box-shadow: 0 0 0 1px var(--nk-action) inset; }
.price { font-size: 22px; margin: 4px 0 2px; }
.start { color: var(--nk-action-ink); font-weight: 600; margin-bottom: 12px; }
.facts, .feats { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.facts li::before, .feats li::before { content: "✓"; color: var(--nk-brand); font-weight: 700; margin-right: 8px; }
.feats { padding-top: 12px; border-top: 1px solid var(--nk-line); }
.feats li.soon { color: var(--nk-muted); }
.feats li.soon::before { content: "·"; color: var(--nk-muted); }
.tag { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px; background: var(--nk-neutral-soft); color: var(--nk-neutral-ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.note { color: var(--nk-muted); font-size: 14px; }
.cta { margin: auto 0 0; padding-top: 12px; }
footer { border-top: 1px solid var(--nk-line); background: var(--nk-surface); color: var(--nk-ink-2); font-size: 13px; line-height: 1.5; }
footer .wrap { max-width: 1120px; padding-top: 16px; padding-bottom: 20px; }
footer p { margin: 0; }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-top: 8px; }
footer a { color: var(--nk-ink-2); display: inline-flex; align-items: center; min-height: 24px; }
footer a:hover { color: var(--nk-ink); }
@media (min-width: 720px) {
    h1 { font-size: 48px; }
    .hero { padding: 72px 0 56px; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .steps li { flex-direction: column; }
    .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1060px) { .plans { grid-template-columns: repeat(4, 1fr); } }
