/* Shared iOS-inspired surface system for the local prototype. */
:root {
  --ios-glass: rgba(255,255,255,.58);
  --ios-glass-strong: rgba(255,255,255,.78);
  --ios-highlight: rgba(255,255,255,.84);
  --ios-shadow: rgba(17,38,51,.12);
}

html { background: #eef2f3; }
body { background-image: radial-gradient(circle at 8% -5%, rgba(141,225,207,.16), transparent 30%), radial-gradient(circle at 96% 10%, rgba(157,185,255,.12), transparent 29%); }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(77,167,183,.55); outline-offset: 3px; }

.fa-icon { display: inline-block; width: 1em; height: 1em; flex: 0 0 auto; vertical-align: -.16em; fill: currentColor; }
.fa-icon--sm { width: 14px; height: 14px; }
.fa-icon--md { width: 17px; height: 17px; }
.fa-icon--lg { width: 21px; height: 21px; }
.site-logo { display: block; width: auto; height: 38px; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(24,57,82,.18)); }
.brand-wordmark { display: inline-block; color: inherit; font-size: 1.12em; font-weight: 850; letter-spacing: -.035em; line-height: 1; white-space: nowrap; }
.brand-four { color: #d95713; text-shadow: 0 1px 0 rgba(128,54,11,.12); }
.brand .brand-wordmark { color: #164f7a; font-size: 1.26em; }
.brand .brand-word { color: #164f7a; background-image: linear-gradient(180deg,#65b8e7 0%,#328fc0 38%,#176393 70%,#082d50 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; -webkit-text-stroke: .4px rgba(255,255,255,.58); text-shadow: 0 -1px 0 rgba(255,255,255,1),1px 1px 0 #58a9d3,1px 2px 0 #3488b7,1px 3px 0 #216994,1px 4px 0 #164d72,1px 5px 0 #0b3556,1px 7px 7px rgba(15,48,71,.34); filter: drop-shadow(0 3px 2px rgba(13,53,83,.24)); }
.brand .brand-four { color: #c65312; background-image: linear-gradient(180deg,#ffb44f 0%,#f28a2b 38%,#d45e16 70%,#9b3908 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; -webkit-text-stroke: .35px rgba(255,247,223,.68); text-shadow: 0 -1px 0 rgba(255,249,229,1),1px 1px 0 #f69a38,1px 2px 0 #dd711f,1px 3px 0 #bd5012,1px 4px 0 #963a0b,1px 5px 0 #702c08,1px 7px 6px rgba(104,44,14,.34); filter: drop-shadow(0 3px 2px rgba(104,44,14,.22)); }
.brand-mark, .mark { position: relative; box-shadow: inset 3px 3px 5px rgba(255,255,255,.78), inset -4px -4px 7px rgba(21,42,39,.16), 0 8px 13px rgba(21,42,39,.12); }
.brand-mark::after, .mark::after { content: ""; position: absolute; top: 4px; left: 5px; width: 9px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.68); transform: rotate(-10deg); }

.ghost-btn, .solid-btn, .primary, .secondary, .view, .choose, .tab, .filter-chip, .mode-chip, .sort-select, .today-badge, .stage-pill, .pill, .chip, .badge, .radar-badge {
  box-shadow: inset 2px 2px 5px var(--ios-highlight), inset -3px -4px 8px rgba(15,42,52,.10), 0 7px 14px var(--ios-shadow);
}
.ghost-btn, .secondary, .tab, .filter-chip, .mode-chip, .sort-select { background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(235,242,241,.55)); }
.solid-btn, .view { color: #f9ffff; background: linear-gradient(145deg, var(--ink), color-mix(in srgb, var(--ink) 72%, #6ab2b0)); }
.primary { color: var(--ink); background: linear-gradient(145deg, var(--acid), color-mix(in srgb, var(--acid) 72%, #fff)); }
.feature-actions .solid-btn { color: var(--ink); background: linear-gradient(145deg, var(--acid), color-mix(in srgb, var(--acid) 72%, #fff)); }
.solid-btn:hover, .ghost-btn:hover, .primary:hover, .secondary:hover, .view:hover, .tab:hover, .filter-chip:hover, .mode-chip:hover { box-shadow: inset 2px 2px 5px rgba(255,255,255,.92), inset -3px -4px 8px rgba(15,42,52,.13), 0 11px 20px rgba(15,42,52,.16); }
.search-wrap { box-shadow: inset 3px 3px 6px rgba(255,255,255,.88), inset -4px -5px 10px rgba(15,42,52,.07), 0 15px 30px rgba(15,42,52,.10); }
.search-wrap button { box-shadow: inset 2px 2px 4px rgba(255,255,255,.8), inset -3px -3px 6px rgba(120,112,20,.17), 0 6px 12px rgba(15,42,52,.12); }

.category-item { position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--category-accent) 21%, var(--line)); background: linear-gradient(145deg, var(--category-soft), rgba(255,255,255,.36)); box-shadow: inset 3px 3px 7px rgba(255,255,255,.86), inset -4px -5px 9px rgba(15,42,52,.06), 0 8px 16px rgba(15,42,52,.06); }
.category-item::after { content: ""; position: absolute; top: -15px; right: -21px; width: 56px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.38); transform: rotate(-24deg); }
.category-item:hover, .category-item.active { border-color: var(--category-accent); background: linear-gradient(145deg, #fff, var(--category-soft)); box-shadow: inset 3px 3px 7px rgba(255,255,255,.95), inset -4px -5px 9px rgba(15,42,52,.08), 0 12px 20px color-mix(in srgb, var(--category-accent) 18%, transparent); }
.category-icon { position: relative; z-index: 1; color: #fff; background: linear-gradient(145deg, var(--category-accent), var(--category-accent-soft)); box-shadow: inset 3px 3px 6px rgba(255,255,255,.52), inset -4px -4px 8px rgba(0,0,0,.18), 0 8px 14px color-mix(in srgb, var(--category-accent) 25%, transparent); }
.category-item:nth-child(1) { --category-accent:#5b52ba; --category-accent-soft:#a78ce0; --category-soft:#eee9ff; }
.category-item:nth-child(2) { --category-accent:#247f99; --category-accent-soft:#69c9d1; --category-soft:#def4f3; }
.category-item:nth-child(3) { --category-accent:#2f9d8a; --category-accent-soft:#83d8b5; --category-soft:#dcf6eb; }
.category-item:nth-child(4) { --category-accent:#c95a79; --category-accent-soft:#f49aa3; --category-soft:#fde7e7; }
.category-item:nth-child(5) { --category-accent:#c78b28; --category-accent-soft:#f3ca68; --category-soft:#fff1c9; }
.category-item:nth-child(6) { --category-accent:#a0497f; --category-accent-soft:#db8db2; --category-soft:#f7e3f3; }
.category-item:nth-child(7) { --category-accent:#5c9b68; --category-accent-soft:#9dcf87; --category-soft:#e4f4df; }
.category-item:nth-child(8) { --category-accent:#9a3b62; --category-accent-soft:#dc7e94; --category-soft:#fae4ee; }
.mode-chip:nth-child(1) { --mode-accent:#247f99; --mode-soft:#def4f3; }
.mode-chip:nth-child(2) { --mode-accent:#5b52ba; --mode-soft:#eee9ff; }
.mode-chip:nth-child(3) { --mode-accent:#c95a79; --mode-soft:#fde7e7; }
.mode-chip:nth-child(4) { --mode-accent:#5c9b68; --mode-soft:#e4f4df; }
.mode-chip:hover, .mode-chip.active { border-color: var(--mode-accent); color: var(--ink); background: linear-gradient(145deg, #fff, var(--mode-soft)); }

.phase-card, .tool-card, .call-card, .signal, .side-card, .topic, .hero-note, .option, .ribbon, .method, .scorecard table { backdrop-filter: blur(16px); }
.phase-card, .tool-card, .call-card, .side-card, .topic, .hero-note { box-shadow: inset 3px 3px 7px rgba(255,255,255,.72), inset -4px -5px 10px rgba(15,42,52,.05), 0 14px 27px rgba(15,42,52,.07); }
.tool-icon, .signal-icon, .check, .call-logo { box-shadow: inset 3px 3px 6px rgba(255,255,255,.64), inset -4px -4px 8px rgba(15,42,52,.16), 0 7px 12px rgba(15,42,52,.10); }
.tool-icon, .signal-icon, .check { display: inline-grid; place-items: center; }
.bookmark { box-shadow: inset 2px 2px 4px rgba(255,255,255,.8), inset -3px -3px 6px rgba(15,42,52,.09), 0 6px 11px rgba(15,42,52,.08); }
.bookmark.saved, .bookmark:hover { box-shadow: inset 2px 2px 4px rgba(255,255,255,.8), inset -3px -3px 6px rgba(15,42,52,.14), 0 8px 14px rgba(15,42,52,.13); }
.chain-dot, .step-dot::before { box-shadow: inset 2px 2px 4px rgba(255,255,255,.70), inset -2px -2px 4px rgba(15,42,52,.16), 0 6px 13px rgba(15,42,52,.12); }

.fa-icon--button { margin-right: 7px; }
.top-links a, .nav a, .footer-links a, .back a { transition: color .2s ease, transform .2s ease; }
.top-links a:hover, .nav a:hover, .footer-links a:hover, .back a:hover { transform: translateY(-1px); }

.language-switcher { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid rgba(141,166,157,.38); border-radius: 999px; background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(225,237,233,.58)); box-shadow: inset 2px 2px 5px rgba(255,255,255,.9), inset -3px -3px 6px rgba(15,42,52,.08), 0 7px 14px rgba(15,42,52,.08); }
.language-option { min-width: 31px; border: 0; border-radius: 999px; padding: 5px 7px; color: #6e817a; background: transparent; font-size: 9px; font-weight: 900; letter-spacing: .05em; line-height: 1; }
.language-option:hover { color: var(--ink); }
.language-option.active { color: var(--ink); background: linear-gradient(145deg, var(--acid), color-mix(in srgb, var(--acid) 72%, #fff)); box-shadow: inset 1px 1px 3px rgba(255,255,255,.86), inset -2px -2px 4px rgba(15,42,52,.10), 0 3px 7px rgba(15,42,52,.10); }
.nav-actions .language-switcher { margin-right: 2px; }

@media (max-width: 560px) {
  .brand-wordmark { font-size: 1.14em; }
  .language-option { min-width: 29px; padding: 5px 6px; }
}

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