/* ==========================================================================
   180° Drug Store — design tokens
   Brand: Navy #04307A (trust, science) · Teal #00A89C (care, vitality)
   Motifs: the 180° arc (turnaround), the degree ring (precision), the capsule (pill radius)
   ========================================================================== */

/* ---- Self-hosted fonts (no third-party requests) ---- */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-300-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  /* ---- Brand scales ---- */
  --navy-50: #eef3fc; --navy-100: #dce6f8; --navy-200: #b5c9ef; --navy-300: #86a5e2; --navy-400: #5279cf;
  --navy-500: #2a55b4; --navy-600: #0d3e97; --navy-700: #04307a; --navy-800: #062762; --navy-900: #071d48; --navy-950: #04112c;
  --teal-50: #e7f8f6; --teal-100: #c4efea; --teal-200: #8fe1d8; --teal-300: #52cec2; --teal-400: #1dbbad;
  --teal-500: #00a89c; --teal-600: #00877f; --teal-700: #046c67; --teal-800: #085654; --teal-900: #0a4745;
  --slate-0: #ffffff; --slate-25: #fafbfd; --slate-50: #f4f6fa; --slate-100: #eceff5; --slate-200: #dde2ec; --slate-300: #c5ccda;
  --slate-400: #98a2b6; --slate-500: #67728c; --slate-600: #4e5872; --slate-700: #3a4259; --slate-800: #242b3d; --slate-900: #131826; --slate-950: #0b0f1a;

  /* ---- Semantic (light) ---- */
  --bg: var(--slate-50);
  --surface: #ffffff;
  --surface-2: var(--slate-25);
  --surface-sunken: var(--slate-100);
  --surface-raised: #ffffff;
  --border: var(--slate-200);
  --border-strong: var(--slate-300);
  --text: var(--slate-900);
  --text-2: var(--slate-600);
  --text-3: var(--slate-500);
  --text-inverse: #ffffff;
  --primary: var(--navy-700);
  --primary-hover: var(--navy-800);
  --primary-soft: var(--navy-50);
  --primary-soft-2: var(--navy-100);
  --primary-text: var(--navy-700);
  --accent: var(--teal-500);
  --accent-hover: var(--teal-600);
  --accent-soft: var(--teal-50);
  --accent-text: var(--teal-700);
  --success: #12985a; --success-soft: #e5f6ed; --success-text: #0b7444;
  --warning: #f2a516; --warning-soft: #fff4dc; --warning-text: #995d00;
  --danger: #dc3b3b; --danger-soft: #fdeceb; --danger-text: #b42323;
  --info: #2d6fe0; --info-soft: #eaf1fd; --info-text: #1d55b8;
  --neutral-soft: var(--slate-100); --neutral-text: var(--slate-600);
  --ring: 0 0 0 3px rgba(0, 168, 156, 0.32);
  --ring-danger: 0 0 0 3px rgba(220, 59, 59, 0.25);
  --overlay: rgba(7, 18, 44, 0.45);

  --shadow-xs: 0 1px 2px rgba(7, 29, 72, 0.06);
  --shadow-sm: 0 1px 2px rgba(7, 29, 72, 0.06), 0 1px 3px rgba(7, 29, 72, 0.06);
  --shadow: 0 2px 4px rgba(7, 29, 72, 0.04), 0 6px 16px rgba(7, 29, 72, 0.07);
  --shadow-lg: 0 8px 24px rgba(7, 29, 72, 0.10), 0 24px 48px rgba(7, 29, 72, 0.10);

  --radius-xs: 6px; --radius-sm: 8px; --radius: 12px; --radius-lg: 16px; --radius-xl: 22px; --radius-pill: 999px;

  --font-sans: "Plus Jakarta Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, Tahoma, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --text-xs: 0.75rem; --text-sm: 0.8125rem; --text-base: 0.875rem; --text-md: 1rem; --text-lg: 1.125rem;
  --text-xl: 1.375rem; --text-2xl: 1.75rem; --text-3xl: 2.25rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 160ms;

  --chart-1: #04307a; --chart-2: #00a89c; --chart-3: #5279cf; --chart-4: #8fe1d8; --chart-5: #f2a516; --chart-6: #dc3b3b; --chart-7: #98a2b6;
  color-scheme: light;
}

/* ---- Semantic (dark): explicit choice, or system preference when the user picked "system" ---- */
:root[data-theme="dark"] {
  --bg: #090e1a;
  --surface: #10172a;
  --surface-2: #131b30;
  --surface-sunken: #0c1222;
  --surface-raised: #161f37;
  --border: #212b45;
  --border-strong: #2f3b5b;
  --text: #e9edf5;
  --text-2: #aab4c8;
  --text-3: #8590a8;
  --primary: #6f97ee;
  --primary-hover: #8badf2;
  --primary-soft: rgba(82, 121, 207, 0.16);
  --primary-soft-2: rgba(82, 121, 207, 0.26);
  --primary-text: #9db9f5;
  --accent: #22c3b4;
  --accent-hover: #3fd2c4;
  --accent-soft: rgba(0, 168, 156, 0.15);
  --accent-text: #52d8cb;
  --success: #2fbf78; --success-soft: rgba(47, 191, 120, 0.14); --success-text: #5fd69b;
  --warning: #f5b23a; --warning-soft: rgba(245, 178, 58, 0.14); --warning-text: #f7c56a;
  --danger: #f06363; --danger-soft: rgba(240, 99, 99, 0.14); --danger-text: #f58b8b;
  --info: #5b92f0; --info-soft: rgba(91, 146, 240, 0.15); --info-text: #8db3f5;
  --neutral-soft: rgba(152, 162, 182, 0.12); --neutral-text: #aab4c8;
  --overlay: rgba(2, 6, 16, 0.65);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --chart-1: #6f97ee; --chart-2: #22c3b4; --chart-3: #a5bdf3; --chart-4: #8fe1d8; --chart-5: #f5b23a; --chart-6: #f06363; --chart-7: #6a7590;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090e1a; --surface: #10172a; --surface-2: #131b30; --surface-sunken: #0c1222; --surface-raised: #161f37;
    --border: #212b45; --border-strong: #2f3b5b; --text: #e9edf5; --text-2: #aab4c8; --text-3: #8590a8;
    --primary: #6f97ee; --primary-hover: #8badf2; --primary-soft: rgba(82, 121, 207, 0.16); --primary-soft-2: rgba(82, 121, 207, 0.26); --primary-text: #9db9f5;
    --accent: #22c3b4; --accent-hover: #3fd2c4; --accent-soft: rgba(0, 168, 156, 0.15); --accent-text: #52d8cb;
    --success: #2fbf78; --success-soft: rgba(47, 191, 120, 0.14); --success-text: #5fd69b;
    --warning: #f5b23a; --warning-soft: rgba(245, 178, 58, 0.14); --warning-text: #f7c56a;
    --danger: #f06363; --danger-soft: rgba(240, 99, 99, 0.14); --danger-text: #f58b8b;
    --info: #5b92f0; --info-soft: rgba(91, 146, 240, 0.15); --info-text: #8db3f5;
    --neutral-soft: rgba(152, 162, 182, 0.12); --neutral-text: #aab4c8; --overlay: rgba(2, 6, 16, 0.65);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.35); --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --chart-1: #6f97ee; --chart-2: #22c3b4; --chart-3: #a5bdf3; --chart-4: #8fe1d8; --chart-5: #f5b23a; --chart-6: #f06363; --chart-7: #6a7590;
    color-scheme: dark;
  }
}

/* ---- Base reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
[dir="rtl"] body { line-height: 1.7; }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.92em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--teal-200); color: var(--navy-950); }

.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; vertical-align: -0.2em; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -3rem; z-index: 1000; background: var(--primary); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; }
[hidden] { display: none !important; }

@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; }
}
