/* ——————————————————————————————————————————————
   Podii.London — base layout & design tokens
   Modern refresh · Ukrainian identity
   —————————————————————————————————————————————— */

:root {
  /* Surfaces */
  --bg:        #f5f6f8;
  --surface:   #ffffff;
  --surface-2: #fbfbfc;

  /* Ink scale */
  --ink-1: #0e1626;   /* deep navy-black — headings */
  --ink-2: #353d4e;   /* body */
  --ink-3: #6b7383;   /* secondary */
  --ink-4: #9aa1ae;   /* tertiary / placeholder */

  /* Lines */
  --line:   #e8eaef;
  --line-2: #d7dbe2;

  /* Brand — Ukrainian flag, modernised */
  --blue:        #1f5fd6;   /* primary interactive */
  --blue-700:    #1a4fb4;   /* hover */
  --blue-soft:   #eaf1fe;   /* tint */
  --yellow:      #ffce1a;   /* warm highlight accent */
  --yellow-soft: #fff6d6;

  /* Radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Shadows — soft, layered */
  --sh-sm: 0 1px 2px rgba(14,22,38,0.04), 0 1px 3px rgba(14,22,38,0.06);
  --sh-md: 0 4px 12px rgba(14,22,38,0.06), 0 2px 6px rgba(14,22,38,0.05);
  --sh-lg: 0 16px 40px rgba(14,22,38,0.12), 0 6px 14px rgba(14,22,38,0.07);

  /* Type */
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-ui: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background:
    radial-gradient(1200px 480px at 50% -240px, #eef3fb 0%, rgba(238,243,251,0) 70%),
    var(--bg);
  color: var(--ink-2);
  min-height: 100vh;
  padding: 16px;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
}

/* ——— Sticky top cluster ——— */
#sticky-top {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: -16px -16px 0;
  padding: 12px 16px 14px;
  background: rgba(245, 246, 248, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

/* ——— Primary nav ——— */
#main-nav {
  max-width: var(--container);
  margin: 0 auto 12px;
  display: flex;
  gap: 6px;
}

.nav-link {
  color: var(--ink-3);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: background .16s ease, color .16s ease;
}
.nav-link:hover { background: rgba(31,95,214,0.07); color: var(--ink-1); }
.nav-link.active { background: var(--ink-1); color: #fff; }

/* ——— Header / wordmark ——— */
header h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 2px 0 4px;
  text-align: center;
}
.header-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  line-height: 1.1;
}
.header-brand .dot { color: var(--blue); }
.header-sub {
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* ——— Info page ——— */
.info-main { max-width: var(--container); margin: 36px auto 0; padding: 0 8px 80px; line-height: 1.7; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 28px;
  margin-bottom: 20px;
}
.info-card h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-1);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.info-card p { margin: 0; color: var(--ink-2); }
.info-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.info-card li { position: relative; padding-left: 26px; color: var(--ink-2); }
.info-card li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft);
}
.inline-link {
  color: var(--blue); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}
.inline-link:hover { color: var(--blue-700); }

/* ——— Info page footer (legal links) ——— */
.info-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.info-footer a {
  color: var(--ink-3);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s ease;
}
.info-footer a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.info-footer .sep { color: var(--ink-4); }

/* ——— Link list (Про сайт) ——— */
.link-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.link-list li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}
.link-list .link-note { color: var(--ink-3); font-size: 0.9rem; }

/* ——— Numbered steps (Як додати подію) ——— */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
}
.steps h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-1);
  margin: 4px 0 4px;
  letter-spacing: -0.01em;
}
.steps p { margin: 0 0 6px; color: var(--ink-2); }
.steps .link-note { color: var(--ink-3); font-size: 0.9rem; margin: 0 4px; }

/* free + questions notes */
.free-note {
  display: inline-block;
  margin: 0 0 18px;
  padding: 9px 14px;
  background: var(--blue-soft);
  border: 1px solid #cfe0fb;
  border-radius: var(--r-pill);
  color: var(--blue-700);
  font-size: 0.9rem;
  font-weight: 600;
}
.questions-note {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.92rem;
}

/* ——— Work in progress card ——— */
.wip-card {
  background: linear-gradient(135deg, var(--yellow-soft), #fffdf3);
  border-color: #f1de8f;
}
.wip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--yellow);
  color: #5a4500;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.wip-card p { color: var(--ink-2); margin: 0; }

/* ——— Home page footer ——— */
#home-footer {
  max-width: var(--container);
  margin: 40px auto 28px;
  padding: 26px 16px 4px;
  border-top: 1px solid var(--line);
}
.home-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.hf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .08s ease;
}
.hf-link svg { flex: none; color: var(--blue); transition: color .15s ease; }
.hf-link:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.hf-link:active { transform: scale(0.97); }
.home-footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.home-footer-legal a {
  color: var(--ink-3);
  font-size: 0.83rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s ease;
}
.home-footer-legal a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.home-footer-legal .sep { color: var(--ink-4); }
