/* ==========================================================================
   SERVD. WEB DESIGN SYSTEM — 100% APPLE HIG TOKENS
   Supports 9:16 (mobile portrait) & 16:9 (desktop/landscape)
   ========================================================================== */

:root {
  /* Studio & Surface Hierarchy */
  --bg-studio: radial-gradient(circle at 50% 25%, #ECECEF 0%, #DCDCE2 100%);
  --ios-bg-grouped: #F2F2F7;
  --ios-bg-elevated: #FFFFFF;
  --ios-bg-secondary: #EFEFF4;
  --ios-glass: rgba(249, 249, 249, 0.88);
  --ios-glass-dark: rgba(28, 28, 30, 0.85);

  /* Official Apple System Colors */
  --ios-blue: #007AFF;
  --ios-blue-pressed: #0062CC;
  --ios-blue-tint: rgba(0, 122, 255, 0.12);

  --ios-green: #34C759;
  --ios-green-dark: #1E8238;
  --ios-green-tint: rgba(52, 199, 89, 0.14);

  --ios-orange: #FF9500;
  --ios-orange-dark: #C26800;
  --ios-orange-tint: rgba(255, 149, 0, 0.14);

  --ios-red: #FF3B30;
  --ios-red-tint: rgba(255, 59, 48, 0.12);

  --ios-indigo: #5856D6;
  --ios-indigo-tint: rgba(88, 86, 214, 0.12);

  /* Labels & Separators */
  --ios-label-primary: #111113;
  --ios-label-secondary: rgba(60, 60, 67, 0.68);
  --ios-label-tertiary: rgba(60, 60, 67, 0.40);
  --ios-separator: rgba(60, 60, 67, 0.14);
  --ios-separator-light: rgba(60, 60, 67, 0.08);
  --ios-fill-tertiary: rgba(118, 118, 128, 0.12);

  /* Continuous Apple Squircles */
  --radius-button: 13px;
  --radius-card: 18px;
  --radius-sheet: 34px;

  /* Apple HIG Spring Physics */
  --ios-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ios-sheet-spring: cubic-bezier(0.32, 0.72, 0, 1);

  /* SF Pro Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

input, select, textarea {
  font-family: inherit;
  user-select: text;
  -webkit-user-select: text;
}

button {
  font-family: inherit;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-studio);
  color: var(--ios-label-primary);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.tap-scale {
  transition: transform 0.16s var(--ios-spring), opacity 0.16s ease;
  cursor: pointer;
}

.tap-scale:active {
  transform: scale(0.965);
  opacity: 0.88;
}

.glass-surface {
  background: var(--ios-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
