/* Kudrat Kalaakari — design tokens & base */

:root {
    --kk-bg: #f7f5f2;
    --kk-surface: #ffffff;
    --kk-elevated: #ffffff;
    --kk-border: rgba(28, 25, 23, 0.08);
    --kk-border-strong: rgba(28, 25, 23, 0.14);
    --kk-ink: #1c1917;
    --kk-ink-muted: #78716c;
    --kk-ink-faint: #a8a29e;
    --kk-accent: #0c3018;
    --kk-accent-hover: #082012;
    --kk-gold: #7a5c3a;
    --kk-gold-light: #c4a574;
    --kk-phulkari: #480c0c;
    --kk-phulkari-light: #f3e4e7;
    --kk-wheat: #d4a84b;
    --kk-wheat-light: #f5ecd8;
    --kk-success: #2d6a4f;
    --kk-success-light: #e8f5ee;
    --kk-danger: #b91c1c;
    --kk-danger-light: #fef2f2;
    --kk-radius-pill: 9999px;
    --kk-transition-fast: 0.15s ease;
    --kk-transition-base: 0.22s ease;
    --kk-radius-sm: 0.375rem;
    --kk-radius-md: 0.625rem;
    --kk-radius-lg: 0.875rem;
    --kk-radius-xl: 1.25rem;
    --kk-space-xs: 0.375rem;
    --kk-space-sm: 0.625rem;
    --kk-space-md: 1rem;
    --kk-space-lg: 1.5rem;
    --kk-space-xl: 2rem;
    --kk-space-2xl: 3rem;
    --kk-shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04);
    --kk-shadow-md: 0 4px 20px rgba(28, 25, 23, 0.06);
    --kk-shadow-lg: 0 12px 40px rgba(28, 25, 23, 0.1);
    --kk-font-sans: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --kk-font-serif: "Noto Serif", Georgia, "Times New Roman", serif;
    --kk-font-gurmukhi: "Noto Sans Gurmukhi", "Noto Sans", var(--kk-font-sans);
    --kk-header-h: 4.75rem;
    --kk-mobile-bar-h: 5rem;
    --kk-container: 80rem;
    --kk-page-pad: clamp(1rem, 4vw, 2rem);
    --kk-safe-top: env(safe-area-inset-top, 0px);
    --kk-safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.kk-site {
    margin: 0;
    min-height: 100vh;
    font-family: var(--kk-font-sans);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--kk-ink);
    background: var(--kk-bg);
    -webkit-font-smoothing: antialiased;
}

body.kk-site.has-mobile-bar {
    padding-bottom: calc(var(--kk-mobile-bar-h) + var(--kk-safe-bottom));
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--kk-gold);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--kk-accent);
}

h1, h2, h3, h4 {
    font-family: var(--kk-font-serif);
    font-weight: 700;
    line-height: 1.25;
    color: var(--kk-ink);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); }

p { margin: 0 0 var(--kk-space-md); }

.kk-container {
    width: 100%;
    max-width: var(--kk-container);
    margin: 0 auto;
    padding-inline: max(var(--kk-page-pad), env(safe-area-inset-left, 0px)) max(var(--kk-page-pad), env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}

/* Avoid double horizontal inset when containers are nested */
.kk-container .kk-container {
    padding-inline: 0;
    max-width: none;
}

/* Vertical page spacing without overriding horizontal padding */
.kk-page-shell {
    padding-block: var(--kk-space-xl) var(--kk-space-2xl);
}

.kk-main {
    padding-top: calc(var(--kk-header-h) + var(--kk-safe-top));
    min-height: calc(100vh - var(--kk-header-h));
}

.kk-eyebrow {
    display: block;
    margin: 0 0 var(--kk-space-sm);
    font-family: var(--kk-font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--kk-gold);
}

.kk-lead {
    font-size: 1.0625rem;
    color: var(--kk-ink-muted);
    max-width: 42rem;
}

.kk-gurmukhi {
    font-family: var(--kk-font-gurmukhi);
    font-weight: 500;
    color: var(--kk-accent);
}

/* Google Material Symbols (icons) */
.kk-icon {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 1.25em;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    vertical-align: middle;
}

.kk-icon--fill {
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.kk-icon-svg {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.kk-section {
    padding-block: var(--kk-space-2xl);
}

.kk-section--surface {
    background: var(--kk-surface);
}

.kk-section--wheat {
    background: var(--kk-wheat-light);
}

.kk-section__head {
    margin-bottom: var(--kk-space-xl);
    text-align: center;
}

.kk-section__head--left {
    text-align: left;
}

.kk-demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--kk-gold);
    background: var(--kk-wheat-light);
    border-radius: var(--kk-radius-pill);
}

/* Price typography */
.kk-price {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--kk-ink);
    letter-spacing: -0.01em;
}

.kk-price--lg {
    font-size: 1.5rem;
    line-height: 1.2;
}

.kk-price--strike {
    font-weight: 500;
    font-size: 0.875em;
    color: var(--kk-ink-faint);
    text-decoration: line-through;
}

.kk-price--save {
    font-weight: 600;
    color: var(--kk-success);
}

.kk-price-stack {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--kk-gold);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
