/*
 * Design tokens. Values mirror the mobile app (agelpack-mobile/src/theme/)
 * so the web shop and the app look the same. Change a value in both places.
 *
 * Contrast notes (WCAG AA, measured in the app):
 * - --color-primary (#F50C00) on white is 4.26:1: buttons, large text and accents only.
 * - White on --color-button-primary (#D20A00) is 5.55:1: small white text.
 * - --color-accent (brand yellow) is never used for text on light backgrounds.
 */

:root {
	/* Brand */
	--color-primary: #f50c00;
	--color-primary-pressed: #d20a00;
	--color-primary-subtle: rgba(245, 12, 0, 0.1);
	--color-accent: #ffc100;

	/* Buttons */
	--color-button-primary: #d20a00;
	--color-button-primary-pressed: #b00800;
	--color-on-button-primary: #fff;
	--color-button-tinted: rgba(245, 12, 0, 0.1);
	--color-button-tinted-pressed: rgba(245, 12, 0, 0.16);
	--color-on-button-tinted: #d20a00;
	--color-on-button-tinted-pressed: #b00800;

	/* Selected element (chip, active filter) */
	--color-selected: #d20a00;
	--color-on-selected: #fff;

	/* Backgrounds */
	--color-background: #fff;
	--color-background-secondary: #f2f2f7;

	/*
	 * Kraft tone: very light shade of brown kraft paper, the material of the
	 * client's bags and boxes. Used for alternating sections instead of plain white.
	 * Measured: text-primary on it 15.1:1, text-secondary 5.3:1, primary-pressed links 4.9:1 (AA);
	 * brand red 3.8:1, so on kraft it is used only for large text (two-tone headings).
	 */
	--color-kraft: #f6f1ea;
	--color-kraft-line: #e7ddd0;

	/* Text */
	--color-text-primary: #1c1c1e;
	--color-text-secondary: #636366;
	--color-text-tertiary: #8e8e93;

	/* Lines */
	--color-separator: #c6c6c8;
	--color-border: #e5e5ea;

	/* Status */
	--color-success: #34c759;
	--color-error: #f50c00;
	--color-status-success: rgba(52, 199, 89, 0.14);
	--color-on-status-success: #18712f;
	--color-status-warning: rgba(255, 193, 0, 0.2);
	--color-on-status-warning: #8a5a00;
	--color-status-neutral: #f2f2f7;
	--color-on-status-neutral: #636366;
	--color-status-error: rgba(245, 12, 0, 0.1);
	--color-on-status-error: #d20a00;

	/* Typography (app scale, Apple text styles) */
	--font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-weight-regular: 400;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;

	--text-large-title: 2.125rem;  /* 34px */
	--text-title1: 1.75rem;        /* 28px */
	--text-title2: 1.375rem;       /* 22px */
	--text-title3: 1.25rem;        /* 20px */
	--text-headline: 1.0625rem;    /* 17px */
	--text-body: 1rem;             /* 16px on the web (app body is 17px) */
	--text-subheadline: 0.9375rem; /* 15px */
	--text-footnote: 0.8125rem;    /* 13px */
	--text-caption: 0.75rem;       /* 12px */

	/* Spacing (4px grid) */
	--space-xxs: 4px;
	--space-xs: 8px;
	--space-sm: 12px;
	--space-md: 16px;
	--space-lg: 20px;
	--space-xl: 24px;
	--space-xxl: 32px;
	--space-xxxl: 40px;

	/* Corner radii */
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 24px;
	--radius-full: 9999px;

	/* Sizes */
	--size-touch-target: 44px;
	--size-button: 50px;
	--size-button-small: 44px;
	--size-field: 50px;
	--size-chip: 36px;

	/* Layout */
	--container-max: 1200px;
	--gutter: 16px;

	/* Elevation */
	--shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);

	/* Motion */
	--transition-fast: 120ms ease-out;
}

@media (min-width: 768px) {
	:root {
		--gutter: 24px;
	}
}
