/* ---------------------------------------------------------------------------
   koltsov-ps.github.io — shared styles
   Design tokens from the Pencil design (koltsov-ps-design).
   Two page moods:
     .page-home — dark plum, mint accent (personal page)
     .page-app  — deep purple gradient (Remembrall + legal pages)
--------------------------------------------------------------------------- */

:root {
  --mint: #2FE0C4;
  --mint-dim: rgba(47, 224, 196, 0.14);
  --magenta: #D91BDD;
  --coral: #FF8F73;
  --lavender: #8A6BFF;
  --cream: #F9F8FF;
  --font-display: 'Exo 2', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-body);
}

.page-home {
  --bg: #14101F;
  --bg-soft: #1C1730;
  --line: rgba(255, 255, 255, 0.09);
  --text: #F4F2FA;
  --text-dim: #A79FC8;
  --text-faint: #786E96;
  background: var(--bg);
}

.page-app {
  --bg1: #180043;
  --bg2: #2A0A6E;
  --panel: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.12);
  --text: #F4F1FB;
  --text-read: #DAD3EE;
  --text-dim: #B9AFDC;
  --text-faint: #8577A8;
  background: #180043 linear-gradient(160deg, var(--bg1), var(--bg2)) fixed;
}

/* ------------------------------------------------------------------ header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: #0C1310;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.2px;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
}

.site-nav a:hover { color: var(--text); }

.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 14px;
}

.back-link:hover { color: var(--text); }

.header-app {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-app img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.header-app span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

/* ------------------------------------------------------------- typography */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow-accent {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2.5px;
  color: var(--mint);
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 32px 96px;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(255, 255, 255, 0.55) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 80% 15%, rgba(255, 255, 255, 0.4) 50%, transparent 100%),
    radial-gradient(2px 2px at 60% 5%, rgba(47, 224, 196, 0.6) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 32% 40%, rgba(255, 255, 255, 0.35) 50%, transparent 100%),
    radial-gradient(2px 2px at 92% 55%, rgba(255, 255, 255, 0.3) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 48% 70%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  background-repeat: no-repeat;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
  margin: 0 0 24px;
  letter-spacing: -1.5px;
  color: var(--text);
}

.hero-lead {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 0 40px;
}

.hero-lead a { color: var(--mint); }

.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 100px;
  text-decoration: none;
  display: inline-block;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s, color 0.2s;
}

.btn-mint {
  background: var(--mint);
  color: #0C1310;
}

.btn-mint:hover {
  box-shadow: 0 8px 30px rgba(47, 224, 196, 0.35);
  transform: translateY(-2px);
}

.btn-magenta {
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 4px 20px rgba(217, 27, 221, 0.35);
}

.btn-magenta:hover { transform: translateY(-2px); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--mint);
  color: var(--mint);
}

/* --------------------------------------------------------------- sections */

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 32px 64px;
}

.section-rule { border-top: 1px solid var(--line); }

/* ------------------------------------------------------------- home: work */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 56px;
}

.about-grid p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-dim);
  margin: 0 0 16px;
  max-width: 520px;
}

.about-grid p:last-child { margin-bottom: 0; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.chip {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
}

/* ------------------------------------------------------- home: experience */

.xp-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.xp-list li {
  display: flex;
  gap: 24px;
  align-items: baseline;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.xp-list li:last-child { border-bottom: none; }

.xp-years {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  flex: 0 0 110px;
  white-space: nowrap;
}

.xp-role {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  flex: 0 0 auto;
}

.xp-note {
  font-size: 15px;
  color: var(--text-dim);
  flex: 1 1 280px;
}

/* --------------------------------------------------- home: featured card */

.feature-card {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  text-decoration: none;
  color: inherit;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  transition: transform 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 224, 196, 0.4);
}

.feature-card > img {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(90, 20, 160, 0.5);
  flex-shrink: 0;
}

.feature-card-body {
  flex: 1;
  min-width: 240px;
}

.feature-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card-desc {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 520px;
}

.feature-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mint);
  background: var(--mint-dim);
  border-radius: 100px;
  padding: 6px 12px;
}

.feature-card-credit {
  font-size: 13px;
  color: var(--text-faint);
}

.feature-card-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.feature-card-cta strong {
  font-weight: 600;
  color: var(--mint);
  font-size: 15px;
  white-space: nowrap;
}

.feature-card-cta small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ---------------------------------------------------------- home: contact */

.contact h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 28px;
  color: var(--text);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-bottom: 56px;
  font-size: 17px;
}

.contact-links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.contact-links a:hover {
  color: var(--mint);
  border-color: var(--mint);
}

/* ----------------------------------------------------------------- footer */

.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.site-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 32px 64px;
  border-top: 1px solid var(--line);
}

.site-footer .footer-meta { font-family: inherit; font-size: 14px; }

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.footer-copyright a { color: var(--text-faint); }

.footer-copyright a:hover { color: var(--mint); }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
}

.footer-links a:hover { color: var(--text); }

/* -------------------------------------------------------- remembrall hero */

.app-hero {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 32px 88px;
  text-align: center;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 30%, rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(2px 2px at 85% 20%, rgba(47, 224, 196, 0.55) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 70% 65%, rgba(255, 255, 255, 0.4) 50%, transparent 100%),
    radial-gradient(2px 2px at 25% 75%, rgba(255, 143, 115, 0.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 12%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  background-repeat: no-repeat;
}

.app-hero-icon {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  margin-bottom: 28px;
  box-shadow:
    0 0 60px rgba(217, 27, 221, 0.35),
    0 0 110px rgba(122, 72, 249, 0.28),
    0 20px 50px rgba(0, 0, 0, 0.4);
}

.app-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -1px;
  color: var(--text);
}

.app-hero-tagline {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto 16px;
  font-weight: 500;
}

.app-hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 32px;
}

.app-hero .button-row { justify-content: center; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 16px;
  margin-bottom: 36px;
  text-transform: uppercase;
}

.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

/* ---------------------------------------------------------------- features */

.features h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 34px);
  color: var(--text);
  margin: 0 0 40px;
  max-width: 560px;
}

.features .eyebrow { margin-bottom: 14px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.feature-tile img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  position: absolute;
  top: 14px;
  right: 10px;
  opacity: 0.95;
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 13px;
}

.num-mint { color: var(--mint); }
.num-coral { color: var(--coral); }
.num-lavender { color: var(--lavender); }

.feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
}

.feature-tile img ~ .feature-title { max-width: calc(100% - 60px); }

.feature-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ------------------------------------------------------------ theme demo */

.themes {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 32px;
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
  align-items: center;
}

.themes h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 34px);
  color: var(--text);
  margin: 0 0 18px;
}

.themes .eyebrow { margin-bottom: 14px; }

.themes-copy p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 440px;
  margin: 0 0 20px;
}

.themes-credit {
  font-size: 14px !important;
  color: var(--text-faint) !important;
  margin-bottom: 32px !important;
}

.themes-credit a {
  color: var(--text-faint);
  text-decoration: underline;
}

.themes-credit a:hover { color: var(--mint); }

/* CSS-only theme switcher: two radios drive the toggle, the caption, and
   which screenshot is visible, via :has() on the section container. */

.theme-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.theme-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 14px;
}

.theme-toggle label {
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-dim);
}

.themes:has(#theme-space:checked) label[for='theme-space'] {
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 4px 20px rgba(217, 27, 221, 0.4);
}

.themes:has(#theme-lavender:checked) label[for='theme-lavender'] {
  background: var(--cream);
  color: #29095E;
  box-shadow: 0 4px 20px rgba(249, 248, 255, 0.25);
}

.theme-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.themes .caption-lavender,
.themes .shot-lavender { display: none; }

.themes:has(#theme-lavender:checked) .caption-space,
.themes:has(#theme-lavender:checked) .shot-space { display: none; }

.themes:has(#theme-lavender:checked) .caption-lavender { display: block; }
.themes:has(#theme-lavender:checked) .shot-lavender { display: block; }

/* Phone frame */

.phone-wrap {
  width: min(280px, 80%);
  margin: 0 auto;
  position: relative;
}

.phone {
  background: #0B0B14;
  border-radius: 38px;
  padding: 10px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-screen {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 402 / 874;
  background: #000;
}

.phone-screen::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: #0B0B14;
  border-radius: 12px;
  z-index: 5;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ------------------------------------------------------------ legal pages */

.legal-header {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 32px 24px;
}

.legal-header .eyebrow { margin-bottom: 16px; }

.legal-header h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 46px);
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.legal-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 16px 32px 64px;
}

.legal-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--text);
  margin: 0 0 12px;
}

.legal-body section { margin: 0 0 36px; }

.legal-body section:last-child { margin-bottom: 0; }

.legal-body p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-read);
  margin: 0 0 14px;
}

.legal-body p:last-child { margin-bottom: 0; }

.legal-body a { color: var(--mint); }
