:root {
  --ink: #1a2744;
  --muted: #5c6b86;
  --field: #e7eef8;
  --card: #ffffff;
  --line: #d5e0f0;
  --accent: #2346c0;
  --accent-2: #9d2456;
  --soft: #e8eeff;
  --danger: #9d2456;
  --shadow: 0 10px 30px rgba(26, 39, 68, 0.08);
  --radius: 20px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Golos Text", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, #c5d4ee 0 8px, transparent 8px) 0 0 / 100% 100% no-repeat,
    var(--field);
  line-height: 1.45;
}

body.student { --accent: #9d2456; --soft: #fde8f0; }

h1, h2, .brand-name {
  font-family: Unbounded, "Golos Text", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

a { color: var(--accent); }

.wrap { max-width: 880px; margin: 0 auto; padding: 20px 20px 48px; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-family: Unbounded, sans-serif;
  font-size: 16px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero, .panel {
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

h1 { font-size: 2.15rem; line-height: 1.12; margin: 0 0 12px; }

h2 { font-size: 1.25rem; margin: 28px 0 10px; }

.slogan { font-size: 1.08rem; margin: 0 0 18px; max-width: 38rem; }

.muted { color: var(--muted); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
  margin: 12px 0;
}

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

button, .button {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button.secondary, a.secondary { background: var(--accent-2); }

button.ghost, a.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

input, select, textarea {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #f8fbff;
  margin: 6px 0 8px;
  color: var(--ink);
}

input[type="file"] {
  width: auto;
  border: 0;
  background: transparent;
  padding: 8px 0;
}

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }

.price strong {
  display: block;
  font-family: "Golos Text", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 6px 0;
}

.price.featured {
  background: var(--ink);
  color: white;
  transform: translateY(-6px);
}

.price.featured .muted { color: #c5d2ea; }

.steps { list-style: none; padding: 0; margin: 8px 0 0; }

.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  margin: 12px 0;
}

.steps span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--accent);
  font-weight: 700;
}

.status { font-weight: 600; }

.error { color: var(--danger); min-height: 1.2em; }

header.page { padding-bottom: 0; }

.wrap { padding-bottom: 96px; }

.dock {
  position: fixed;
  z-index: 4;
  background: white;
  display: flex;
  gap: 6px;
}

.dock button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 68px;
  min-height: 52px;
  background: transparent;
  color: var(--muted);
  border-radius: 14px;
  padding: 6px 8px 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
}

.dock svg {
  width: 22px;
  height: 22px;
  display: block;
}

.dock button.active { background: var(--soft); color: var(--accent); }

.switcher { margin-bottom: 8px; }

.workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.folders button, .day-card {
  width: 100%;
  text-align: left;
  background: white;
  color: var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin: 0 0 8px;
}

.folders button.active { box-shadow: inset 0 0 0 2px var(--accent); }

.bubble {
  background: white;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  margin: 8px 0;
}

.bubble img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; }

.sheet {
  position: fixed;
  inset: 0;
  background: rgba(26, 39, 68, 0.35);
  z-index: 6;
  display: grid;
  align-items: end;
}

.sheet .card { margin: 0; border-radius: 24px 24px 0 0; padding: 18px; }

@media (min-width: 801px) {
  .dock {
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 999px;
    box-shadow: var(--shadow);
    padding: 6px;
  }
  .wrap { padding-top: 92px; }
}

@media (max-width: 800px) {
  .dock {
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: space-around;
    padding: 8px 4px 14px;
    box-shadow: 0 -8px 24px rgba(26, 39, 68, 0.08);
  }
  .dock button {
    flex: 1;
    min-width: 0;
    font-size: 10px;
    padding: 6px 2px 7px;
  }
  .workspace { grid-template-columns: 1fr; }
  .workspace.chat-open .folders { display: none; }
  .workspace:not(.chat-open) .thread { display: none; }
  .prices { grid-template-columns: 1fr; }
  .price.featured { transform: none; }
  h1 { font-size: 1.7rem; }
  .hero, .panel { padding: 22px 16px; }
}
