/* ==========================================================
   HinKhoj New UI — Design System
   Ported from Lovable React design (english-playground-ai)
   ========================================================== */

/* --- Fonts ------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* --- CSS Variables ---------------------------------------- */
:root {
  --hkd-primary:        hsl(250, 75%, 58%);
  --hkd-primary-fg:     #ffffff;
  --hkd-secondary:      hsl(172, 66%, 50%);
  --hkd-accent:         hsl(36,  100%, 57%);
  --hkd-accent-fg:      hsl(220, 40%, 13%);
  --hkd-bg:             hsl(220, 20%, 97%);
  --hkd-fg:             hsl(220, 40%, 13%);
  --hkd-card:           #ffffff;
  --hkd-muted:          hsl(220, 14%, 92%);
  --hkd-muted-fg:       hsl(220, 10%, 46%);
  --hkd-border:         hsl(220, 13%, 88%);
  --hkd-shadow-card:    0 4px 24px -4px hsla(250, 75%, 58%, 0.10);
  --hkd-shadow-elev:    0 12px 40px -8px hsla(250, 75%, 58%, 0.20);
  --hkd-font-disp:      'Space Grotesk', sans-serif;
  --hkd-font-body:      'Inter', sans-serif;
}

/* --- Animations ------------------------------------------- */
@keyframes hkd-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes hkd-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hkd-mic-ring {
  0%   { transform: scale(1);   opacity: .55; }
  100% { transform: scale(2);   opacity: 0;   }
}
@keyframes hkd-pulse {
  0%, 100% { opacity: .6; }
  50%       { opacity: 1; }
}

/* --- Base overrides --------------------------------------- */
html {
  font-size: 16px; /* lock rem baseline; Bootstrap 3 only sets body */
}
body {
  background-color: var(--hkd-bg) !important;
  font-family: var(--hkd-font-body) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: var(--hkd-fg) !important;
}
/* Ensure headings/paragraphs inside new sections use correct sizes */
.hkd-section p, .hkd-hero p, .hkd-footer p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--hkd-muted-fg);
}
.hkd-section h1, .hkd-section h2, .hkd-section h3, .hkd-section h4,
.hkd-topnav .hkd-brand, .hkd-footer h4 {
  font-family: var(--hkd-font-disp);
}


/* =====================================================================
   TOP NAV
   ===================================================================== */
.shrinkheader { display: none !important; }   /* hide old blue header */

.hkd-topnav {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--hkd-border);
  background: rgba(247, 248, 250, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hkd-topnav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hkd-brand {
  font-family: var(--hkd-font-disp);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--hkd-fg) !important;
  text-decoration: none !important;
  display: flex;
  align-items: baseline;
  gap: 3px;
  flex-shrink: 0;
}
.hkd-brand__accent { color: var(--hkd-primary); }
.hkd-brand__tag {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--hkd-muted-fg);
  margin-left: 4px;
}
.hkd-topnav__links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.hkd-topnav__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--hkd-muted-fg) !important;
  text-decoration: none !important;
  transition: color .2s;
}
.hkd-topnav__links a:hover { color: var(--hkd-fg) !important; }
.hkd-topnav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hkd-btn-app {
  background: var(--hkd-primary);
  color: #fff !important;
  font-family: var(--hkd-font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 9999px;
  text-decoration: none !important;
  transition: background .2s;
  white-space: nowrap;
  display: inline-block;
}
.hkd-btn-app:hover { background: hsl(250, 75%, 50%); }

/* Login button — replaces old Bootstrap orange login */
.hkd-btn-login, .login-button {
  background: transparent !important;
  color: var(--hkd-primary) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  padding: 6px 16px !important;
  border-radius: 9999px !important;
  border: 1.5px solid var(--hkd-primary) !important;
  transition: all .2s !important;
  cursor: pointer;
}
.hkd-btn-login:hover, .login-button:hover {
  background: var(--hkd-primary) !important;
  color: #fff !important;
}
.hkd-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hkd-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
}
/* Hamburger */
.hkd-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--hkd-fg);
  font-size: 1.4rem;
  line-height: 1;
}
.hkd-topnav__mobile {
  display: none;
  border-top: 1px solid var(--hkd-border);
  background: var(--hkd-card);
  padding: 12px 24px 16px;
}
.hkd-topnav__mobile a {
  display: block;
  padding: 8px 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hkd-muted-fg) !important;
  text-decoration: none !important;
}
.hkd-topnav__mobile a:hover { color: var(--hkd-fg) !important; }
.hkd-topnav__mobile .hkd-btn-app {
  display: block;
  text-align: center;
  margin-top: 10px;
}

@media (max-width: 767px) {
  .hkd-topnav__links       { display: none; }
  .hkd-topnav__actions .hkd-btn-app { display: none; }
  .hkd-hamburger            { display: block; }
}


/* =====================================================================
   SHARED SECTION UTILITIES
   ===================================================================== */
.hkd-section {
  padding: 64px 0;
  font-family: var(--hkd-font-body);
  font-size: 1rem;
  color: var(--hkd-fg);
}
.hkd-section--muted { background: hsla(220, 14%, 92%, .4); }

.hkd-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.hkd-section__hd {
  text-align: center;
  margin-bottom: 48px;
}
.hkd-badge {
  display: inline-block;
  border-radius: 9999px;
  padding: 5px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 14px;
}
.hkd-badge--primary  { background: hsla(250,75%,58%,.12); color: var(--hkd-primary); }
.hkd-badge--secondary{ background: hsla(172,66%,50%,.12); color: var(--hkd-secondary); }
.hkd-badge--muted    { background: var(--hkd-muted);      color: var(--hkd-muted-fg); }
.hkd-badge--accent   { background: hsla(36,100%,57%,.2);  color: var(--hkd-accent-fg); }

.hkd-h1 {
  font-family: var(--hkd-font-disp);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--hkd-fg);
  margin-bottom: 20px;
}
.hkd-h2 {
  font-family: var(--hkd-font-disp);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--hkd-fg);
  margin-bottom: 12px;
}
.hkd-gradient-text {
  background: linear-gradient(135deg, var(--hkd-primary), var(--hkd-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hkd-lead {
  font-size: 1.1rem;
  color: var(--hkd-muted-fg);
  line-height: 1.7;
  margin-bottom: 28px;
}
.hkd-section__desc {
  color: var(--hkd-muted-fg);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Card */
.hkd-card {
  border-radius: 1rem;
  border: 1px solid var(--hkd-border);
  background: var(--hkd-card);
  padding: 24px;
  box-shadow: var(--hkd-shadow-card);
}
.hkd-card--hover {
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.hkd-card--hover:hover {
  box-shadow: var(--hkd-shadow-elev);
  transform: translateY(-4px);
}

/* Buttons */
.hkd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  font-family: var(--hkd-font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  cursor: pointer;
  text-decoration: none !important;
  transition: all .2s;
  border: none;
  white-space: nowrap;
}
.hkd-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.hkd-btn--primary { background: var(--hkd-primary); color: #fff; box-shadow: var(--hkd-shadow-elev); }
.hkd-btn--primary:hover { background: hsl(250,75%,50%); color: #fff; }
.hkd-btn--outline { background: transparent; color: var(--hkd-fg) !important; border: 1.5px solid var(--hkd-border); }
.hkd-btn--outline:hover { background: var(--hkd-accent) !important; color: var(--hkd-accent-fg) !important; border-color: var(--hkd-accent) !important; text-decoration: none !important; }
.hkd-btn-group { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }


/* =====================================================================
   HERO SECTION
   ===================================================================== */
.hkd-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
}
.hkd-hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, hsl(250,75%,58%), hsl(280,70%,55%), hsl(172,66%,50%));
  opacity: .07;
  pointer-events: none;
}
.hkd-hero__blob1 {
  position: absolute; top: 80px; right: 40px;
  width: 288px; height: 288px; border-radius: 50%;
  background: hsla(250,75%,58%,.10);
  filter: blur(64px); pointer-events: none;
}
.hkd-hero__blob2 {
  position: absolute; bottom: 40px; left: 40px;
  width: 224px; height: 224px; border-radius: 50%;
  background: hsla(172,66%,50%,.10);
  filter: blur(64px); pointer-events: none;
}
.hkd-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hkd-stats { display: flex; gap: 28px; }
.hkd-stat__val {
  font-family: var(--hkd-font-disp);
  font-size: 1.4rem; font-weight: 700;
  color: var(--hkd-fg);
}
.hkd-stat__lbl { font-size: .8rem; color: var(--hkd-muted-fg); }

/* Chat mockup */
.hkd-chat-card { max-width: 360px; margin: 0 auto; position: relative; }
.hkd-chat-box {
  border-radius: 1.5rem;
  border: 1px solid var(--hkd-border);
  background: var(--hkd-card);
  padding: 22px;
  box-shadow: var(--hkd-shadow-elev);
}
.hkd-chat-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hkd-chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: hsla(250,75%,58%,.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 1.2rem;
}
.hkd-chat-name { font-family: var(--hkd-font-disp); font-size: .875rem; font-weight: 600; color: var(--hkd-fg); }
.hkd-chat-online { font-size: .7rem; color: var(--hkd-secondary); display: flex; align-items: center; gap: 4px; }
.hkd-chat-online::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--hkd-secondary); }
.hkd-msgs { display: flex; flex-direction: column; gap: 10px; }
.hkd-msg {
  max-width: 82%;
  border-radius: 1rem;
  padding: 10px 14px;
  font-size: .875rem;
  line-height: 1.5;
}
.hkd-msg--ai  { border-radius:1rem 1rem 1rem 4px; background:var(--hkd-muted);    color:var(--hkd-fg);       align-self:flex-start; }
.hkd-msg--usr { border-radius:1rem 1rem 4px 1rem; background:var(--hkd-primary);  color:var(--hkd-primary-fg); align-self:flex-end; }
/* Staggered message pop-in (reset via JS every ~6s) */
.hkd-msg--1 { opacity: 0; animation: hkd-msg-in .35s ease forwards; animation-delay: .4s; }
.hkd-msg--2 { opacity: 0; animation: hkd-msg-in .35s ease forwards; animation-delay: 1.5s; }
.hkd-msg--3 { opacity: 0; animation: hkd-msg-in .35s ease forwards; animation-delay: 2.6s; }
/* Prominent mic button */
.hkd-chat-mic {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hkd-border);
}
.hkd-mic-btn {
  position: relative; width: 54px; height: 54px; border-radius: 50%;
  background: var(--hkd-primary); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 4px 16px hsla(250,75%,58%,.38);
  transition: transform .15s;
}
.hkd-mic-btn:hover { transform: scale(1.08); }
.hkd-mic-btn svg  { width: 22px; height: 22px; pointer-events: none; }
.hkd-mic-btn::before, .hkd-mic-btn::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--hkd-primary);
  animation: hkd-mic-ring 2s ease-out infinite;
}
.hkd-mic-btn::after { animation-delay: 1s; }
.hkd-mic-label { font-size: .78rem; color: var(--hkd-muted-fg); font-weight: 500; letter-spacing: .03em; }
/* India tagline — Option C: bilingual + tricolor underline */
.hkd-tagline-india {
  display: inline-flex; flex-direction: column; gap: 2px;
  margin: 6px 0 18px; padding-bottom: 9px;
  position: relative; width: fit-content;
}
.hkd-tagline-india::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #ff9933 33.3%, var(--hkd-border) 33.3% 66.6%, #138808 66.6%);
  border-radius: 2px;
}
.hkd-tagline-en {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--hkd-muted-fg);
}
.hkd-tagline-hi {
  font-size: 1.1rem; font-weight: 700; color: var(--hkd-fg);
  font-family: 'Noto Sans Devanagari', var(--hkd-font-body), sans-serif;
  line-height: 1.3;
}
.hkd-float {
  position: absolute;
  border-radius: .75rem; border: 1px solid var(--hkd-border);
  background: var(--hkd-card); padding: 7px 12px;
  font-size: .72rem; font-weight: 500; color: var(--hkd-fg);
  box-shadow: var(--hkd-shadow-card); white-space: nowrap;
}
.hkd-float--tl { top:28px; left:-14px; animation: hkd-float 3s ease-in-out infinite; }
.hkd-float--br { bottom:56px; right:-6px; animation: hkd-float 3.5s ease-in-out infinite; }


/* =====================================================================
   SPEAKING SHOWCASE
   ===================================================================== */
.hkd-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hkd-topic-icon {
  width: 48px; height: 48px; border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-size: 1.4rem;
}
.hkd-topic-icon--p { background: hsla(250,75%,58%,.12); }
.hkd-topic-icon--s { background: hsla(172,66%,50%,.12); }
.hkd-topic-icon--a { background: hsla(36,100%,57%,.12);  }
.hkd-card h3 {
  font-family: var(--hkd-font-disp);
  font-size: 1.05rem; font-weight: 600;
  color: var(--hkd-fg); margin-bottom: 4px;
}
.hkd-card p { font-size: .875rem; color: var(--hkd-muted-fg); margin: 0; }
/* App-only CTA banner (below scenario grid) */
.hkd-app-banner {
  margin-top: 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(135deg, hsla(250,75%,58%,.07), hsla(172,66%,50%,.07));
  border: 1px solid var(--hkd-border);
  border-radius: 1rem; padding: 20px 24px;
}
.hkd-app-banner__text {
  display: flex; align-items: center; gap: 16px;
}
.hkd-app-banner__icon { font-size: 2rem; flex-shrink: 0; }
.hkd-app-banner__text strong {
  display: block; font-size: .95rem; font-weight: 700; color: var(--hkd-fg); margin-bottom: 3px;
}
.hkd-app-banner__text span {
  font-size: .8rem; color: var(--hkd-muted-fg);
}
.hkd-app-banner__btn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 600px) {
  .hkd-app-banner { flex-direction: column; align-items: flex-start; }
  .hkd-app-banner__btn { width: 100%; justify-content: center; }
}


/* =====================================================================
   LEARNING PATHS
   ===================================================================== */
.hkd-grid-c3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hkd-path-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hkd-path-hd h3 { font-family:var(--hkd-font-disp); font-size:1.2rem; font-weight:700; color:var(--hkd-fg); margin:0; }
.hkd-tag { border-radius:9999px; padding:3px 12px; font-size:.72rem; font-weight:600; }
.hkd-tag--p { background:hsla(250,75%,58%,.12); color:var(--hkd-primary); }
.hkd-tag--s { background:hsla(172,66%,50%,.12); color:var(--hkd-secondary); }
.hkd-tag--a { background:hsla(36,100%,57%,.15);  color:var(--hkd-accent-fg); }
.hkd-progress { width:100%; height:8px; background:var(--hkd-muted); border-radius:9999px; margin-bottom:18px; overflow:hidden; }
.hkd-progress__bar { height:100%; border-radius:9999px; background:var(--hkd-primary); }
.hkd-mod-list { list-style:none; padding:0; margin:0 0 20px; display:flex; flex-direction:column; gap:10px; }
.hkd-mod-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: .875rem; color: var(--hkd-muted-fg);
}
.hkd-mod-list li::before {
  content:''; width:15px; height:15px; border-radius:50%;
  border: 1.5px solid var(--hkd-border); flex-shrink:0;
}
.hkd-path-cta {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--hkd-primary) !important; font-size:.875rem; font-weight:600;
  text-decoration: none !important; background:none; border:none; cursor:pointer;
  padding: 6px 12px; border-radius: 9999px;
  transition: background .2s, color .2s;
  margin-top: 4px;
}
.hkd-path-cta:hover {
  background: var(--hkd-accent) !important;
  color: var(--hkd-accent-fg) !important;
  text-decoration: none !important;
}
.hkd-path-cta svg { width:16px; height:16px; }


/* =====================================================================
   DICTIONARY SECTION
   ===================================================================== */
.hkd-dict-wrap { max-width: 640px; margin: 0 auto; }
.hkd-search-row { display: flex; gap: 8px; margin-bottom: 28px; }
.hkd-search-inner { position: relative; flex: 1; }
.hkd-search-ico {
  position: absolute; left:14px; top:50%; transform:translateY(-50%);
  width:18px; height:18px; color:var(--hkd-muted-fg); pointer-events:none;
}
.hkd-search-ipt {
  width: 100%; height: 48px;
  border-radius: 9999px; border: 1px solid var(--hkd-border);
  background: var(--hkd-card); padding: 0 14px 0 44px;
  font-size: .975rem; font-family: var(--hkd-font-body);
  color: var(--hkd-fg); box-shadow: var(--hkd-shadow-card);
  outline: none; box-sizing: border-box;
  -webkit-appearance: none;
}
.hkd-search-ipt:focus { border-color: var(--hkd-primary); }
.hkd-search-btn {
  height: 48px; border-radius: 9999px;
  background: var(--hkd-primary); color: #fff; border: none;
  padding: 0 22px; font-family: var(--hkd-font-body);
  font-size: .875rem; font-weight: 600; cursor: pointer;
  transition: background .2s; white-space: nowrap;
}
.hkd-search-btn:hover { background: hsl(250,75%,50%); }
.hkd-wod-lbl {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--hkd-primary); margin-bottom: 8px;
}
.hkd-wod-word {
  font-family: var(--hkd-font-disp); font-size: 1.7rem; font-weight: 700;
  color: var(--hkd-fg); margin: 0 0 2px;
}
.hkd-wod-pron { font-size:.875rem; color:var(--hkd-muted-fg); font-style:italic; margin-bottom:8px; }
.hkd-wod-def  { font-size:.875rem; color:var(--hkd-fg); line-height:1.6; margin-bottom:4px; }
.hkd-wod-hin  { font-size:.875rem; color:var(--hkd-muted-fg); }
.hkd-wod-empty { padding: 20px 0; text-align: center; color: var(--hkd-muted-fg); font-size: .9rem; }
.hkd-trend-lbl {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; font-size: .875rem; font-weight: 500;
  color: var(--hkd-muted-fg); margin-bottom: 10px;
}
.hkd-trend-lbl svg { width:15px; height:15px; }
.hkd-pills { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.hkd-pill {
  display: inline-block; border-radius: 9999px;
  background: var(--hkd-muted); color: var(--hkd-muted-fg);
  font-size: .875rem; font-weight: 500;
  padding: 5px 14px; text-decoration: none; transition: all .2s; cursor: pointer;
}
.hkd-pill:hover { background: hsla(250,75%,58%,.12); color: var(--hkd-primary); text-decoration: none; }

/* Dictionary pills — distinct from trending-word pills */
.hkd-dict-pill {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  border-radius: 10px;                          /* rectangular, not fully-rounded */
  background: hsla(250,75%,58%,.07);
  border: 1.5px solid hsla(250,75%,58%,.28);
  color: var(--hkd-primary);
  padding: 7px 14px 6px;
  gap: 1px; line-height: 1.3;
}
.hkd-dict-pill:hover {
  background: hsla(250,75%,58%,.16);
  border-color: var(--hkd-primary);
  color: var(--hkd-primary);
}
.hkd-dict-pill span {
  font-size: .7rem; opacity: .65; font-weight: 400; color: var(--hkd-text);
}


/* =====================================================================
   APP PROMO
   ===================================================================== */
.hkd-promo-grid { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.hkd-stars { display:flex; align-items:center; gap:3px; margin-bottom:22px; }
.hkd-star { width:20px; height:20px; color:var(--hkd-accent); fill:var(--hkd-accent); }
.hkd-star-txt { font-size:.875rem; font-weight:500; color:var(--hkd-fg); margin-left:8px; }
.hkd-star-sub { font-size:.875rem; color:var(--hkd-muted-fg); margin-left:4px; }
.hkd-dl-btns { display:flex; gap:10px; flex-wrap:wrap; }
.hkd-dl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 9999px; font-family: var(--hkd-font-body);
  font-size: .9rem; font-weight: 600; padding: 11px 22px;
  text-decoration: none !important; transition: all .2s; cursor: pointer;
}
.hkd-dl-btn--dark { background: var(--hkd-fg); color: var(--hkd-bg); border: none; }
.hkd-dl-btn--dark:hover { background: hsl(220,40%,20%); color: #fff; }
.hkd-dl-btn--outline { background: transparent; color: var(--hkd-fg) !important; border: 1.5px solid var(--hkd-border); }
.hkd-dl-btn--outline:hover { background: var(--hkd-muted); }
.hkd-dl-btn img { height: 22px; width: auto; }

/* Phone mockup */
.hkd-phone-wrap { display:flex; justify-content:center; }
.hkd-phone {
  width:240px; height:480px; border-radius:2rem;
  border: 3px solid hsla(220,40%,13%,.10);
  background: var(--hkd-card); padding:10px;
  box-shadow: var(--hkd-shadow-elev); position:relative;
}
.hkd-phone__inner {
  width:100%; height:100%; border-radius:1.5rem;
  background: hsla(220,14%,92%,.5);
  padding:14px; display:flex; flex-direction:column;
}
.hkd-phone__ttl { text-align:center; font-size:.72rem; font-weight:600; color:var(--hkd-primary); margin-bottom:10px; }
.hkd-phone__msgs { flex:1; display:flex; flex-direction:column; gap:7px; overflow:hidden; font-size:.68rem; }
.hkd-phone__msg--ai  { max-width:85%; background:var(--hkd-card); border-radius:.75rem .75rem .75rem 3px; padding:7px 10px; color:var(--hkd-fg); }
.hkd-phone__msg--usr { max-width:85%; background:var(--hkd-primary); border-radius:.75rem .75rem 3px .75rem; padding:7px 10px; color:#fff; align-self:flex-end; }
.hkd-phone__listen {
  display:flex; align-items:center; justify-content:center;
  gap:6px; border-radius:9999px; background:var(--hkd-card);
  padding:6px 10px; margin-top:7px;
}
.hkd-phone__dot { width:9px; height:9px; border-radius:50%; background:var(--hkd-primary); animation:hkd-pulse 2s ease-in-out infinite; }
.hkd-phone__ltxt { font-size:.6rem; color:var(--hkd-muted-fg); }
.hkd-float-tag {
  position:absolute; border-radius:.5rem; border:1px solid var(--hkd-border);
  background:var(--hkd-card); padding:5px 10px;
  font-size:.72rem; font-weight:500; color:var(--hkd-fg);
  box-shadow:var(--hkd-shadow-card); white-space:nowrap;
}
.hkd-float-tag--l { left:-68px; top:80px;    animation:hkd-float 3s   ease-in-out infinite; }
.hkd-float-tag--r { right:-68px; bottom:128px; animation:hkd-float 2.8s ease-in-out infinite; }


/* =====================================================================
   FOOTER
   ===================================================================== */
.hkd-footer {
  border-top: 1px solid var(--hkd-border);
  background: var(--hkd-card);
  padding: 48px 0 20px;
  font-family: var(--hkd-font-body);
}
.hkd-footer__grid { display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:28px; margin-bottom:36px; }
.hkd-footer__brand { font-family:var(--hkd-font-disp); font-size:1.05rem; font-weight:700; color:var(--hkd-fg); display:block; margin-bottom:10px; }
.hkd-footer__tag   { font-size:.7rem; font-weight:400; color:var(--hkd-muted-fg); margin-left:3px; }
.hkd-footer__desc  { font-size:.875rem; color:var(--hkd-muted-fg); line-height:1.6; margin-bottom:14px; }
.hkd-footer__apps  { display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
.hkd-footer__apps img { height:34px; width:auto; }
.hkd-footer__social { display:flex; gap:10px; }
.hkd-footer__social a {
  width:30px; height:30px; border-radius:50%;
  background:var(--hkd-muted); color:var(--hkd-muted-fg);
  display:flex; align-items:center; justify-content:center;
  text-decoration:none; transition:all .2s; font-size:.8rem;
}
.hkd-footer__social a:hover { background:var(--hkd-primary); color:#fff; text-decoration:none; }
.hkd-footer h4 { font-family:var(--hkd-font-disp); font-size:.875rem; font-weight:600; color:var(--hkd-fg); margin-bottom:12px; }
.hkd-footer__ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.hkd-footer__ul a { font-size:.875rem; color:var(--hkd-muted-fg); text-decoration:none; transition:color .2s; }
.hkd-footer__ul a:hover { color:var(--hkd-fg); text-decoration:none; }
.hkd-footer__bottom {
  border-top:1px solid var(--hkd-border); padding-top:20px;
  text-align:center; font-size:.72rem; color:var(--hkd-muted-fg);
}


/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 991px) {
  .hkd-hero__grid, .hkd-promo-grid { grid-template-columns: 1fr; }
  .hkd-grid-3, .hkd-grid-c3 { grid-template-columns: repeat(2,1fr); }
  .hkd-footer__grid { grid-template-columns: 1fr 1fr; }
  .hkd-float, .hkd-float--tl, .hkd-float--br { display: none; }
  .hkd-float-tag { display: none; }
}
@media (max-width: 600px) {
  .hkd-grid-3, .hkd-grid-c3 { grid-template-columns: 1fr; }
  .hkd-footer__grid { grid-template-columns: 1fr; }
  .hkd-hero  { padding: 48px 0 64px; }
  .hkd-section { padding: 48px 0; }
  .hkd-stats { gap: 14px; }
  .hkd-phone-wrap { display: none; }
}


/* =====================================================================
   SHARED PAGE COMPONENTS (breadcrumb, page cards, pagination)
   ===================================================================== */

/* Breadcrumb — used on wordofday, vocab-tips, etc. */
.wod-breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 24px; font-size: 0.8125rem; color: var(--hkd-muted-fg, #6b7280);
}
.wod-breadcrumb a { color: var(--hkd-primary, #6c5ce7); text-decoration: none !important; }
.wod-breadcrumb a:hover { text-decoration: underline !important; }
.wod-breadcrumb__sep { color: var(--hkd-border, #e2e5ec); }

/* Sidebar cards — used on wordofday */
.wod-sidebar-card {
  background: var(--hkd-card, #fff); border: 1px solid var(--hkd-border, #e2e5ec);
  border-radius: 1rem; padding: 20px; margin-bottom: 20px;
  box-shadow: 0 2px 12px -2px hsla(250,75%,58%,.08);
}
.wod-sidebar-card__title {
  font-family: var(--hkd-font-disp, 'Space Grotesk', sans-serif);
  font-size: 1rem; font-weight: 700; color: var(--hkd-fg, #1a1a2e); margin-bottom: 14px;
}
.wod-search-wrap { display: flex; gap: 8px; }
.wod-search-wrap input {
  flex: 1; padding: 8px 12px; border: 1.5px solid var(--hkd-border, #e2e5ec);
  border-radius: 8px; font-size: .875rem; outline: none;
  transition: border-color .2s;
}
.wod-search-wrap input:focus { border-color: var(--hkd-primary, #6c5ce7); }
.wod-search-wrap button {
  padding: 8px 16px; background: var(--hkd-primary, #6c5ce7); color: #fff;
  border: none; border-radius: 8px; font-size: .875rem; font-weight: 600; cursor: pointer;
  transition: opacity .2s;
}
.wod-search-wrap button:hover { opacity: .85; }
.wod-app-card {
  background: linear-gradient(135deg, hsl(250,75%,58%) 0%, hsl(172,66%,50%) 100%);
  border-radius: 1rem; padding: 20px; margin-bottom: 20px; color: #fff;
}
.wod-app-card__title {
  font-family: var(--hkd-font-disp, 'Space Grotesk', sans-serif);
  font-size: 1rem; font-weight: 700; margin-bottom: 4px;
}
.wod-app-card__sub { font-size: .8125rem; opacity: .85; margin-bottom: 14px; }
.wod-app-card__btns { display: flex; flex-direction: column; gap: 8px; }
.wod-app-card__btns img { height: 36px; }

/* HK pagination — styled to match design system */
.hk-pagination { margin-top: 24px; overflow: hidden; }
.hk-pagination .hk-links { float: left; padding: 9px; }
.hk-pagination .hk-results { float: right; padding: 9px; font-size: .875rem; color: var(--hkd-muted-fg, #6b7280); }
.hk-pagination .hk-links a,
.hk-pagination .hk-links b {
  display: inline-block; padding: 6px 12px; margin: 2px;
  border: 1.5px solid var(--hkd-border, #e2e5ec);
  border-radius: 8px; font-size: .875rem;
  color: var(--hkd-fg, #1a1a2e); text-decoration: none;
  background: var(--hkd-card, #fff); transition: all .18s;
}
.hk-pagination .hk-links a:hover {
  border-color: var(--hkd-primary, #6c5ce7);
  color: var(--hkd-primary, #6c5ce7);
  text-decoration: none;
}
.hk-pagination .hk-links b {
  background: var(--hkd-primary, #6c5ce7);
  border-color: var(--hkd-primary, #6c5ce7);
  color: #fff;
}
