/* Homework Palette — homework.chakriya.net */

:root {
  --purple: #7f77dd;
  --purple-dark: #534ab7;
  --teal: #1d9e75;
  --amber: #854f0b;
  --coral: #993c1d;
  --green: #3b6d11;
  --bg: #faf9fc;
  --surface: #ffffff;
  --text: #1a1625;
  --text-muted: #5c5670;
  --border: rgba(83, 74, 183, 0.12);
  --shadow: 0 8px 32px rgba(83, 74, 183, 0.1);
  --radius: 20px;
  --radius-sm: 14px;
  --max: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --purple: #a79ff0;
    --purple-dark: #8f86e8;
    --teal: #3dd9a0;
    --amber: #e0a73c;
    --coral: #f08a62;
    --green: #8fcc4e;
    --bg: #121018;
    --surface: #1c1828;
    --text: #f4f2fa;
    --text-muted: #a8a2bc;
    --border: rgba(167, 159, 240, 0.16);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--purple-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--purple);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.875rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(83, 74, 183, 0.25);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.9375rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  color: var(--purple-dark);
}

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 14%, transparent);
  color: var(--teal);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(83, 74, 183, 0.35);
}

.btn-secondary {
  background: var(--surface);
  color: var(--purple-dark);
  border: 1px solid var(--border);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  display: block;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 24px rgba(83, 74, 183, 0.2);
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.hero-card li:last-child {
  border-bottom: none;
}

.check {
  flex-shrink: 0;
  color: var(--teal);
  font-weight: 700;
}

section {
  padding: 3rem 0;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: 1.625rem;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 52ch;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.375rem;
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.card-icon.purple { background: color-mix(in srgb, var(--purple) 18%, transparent); }
.card-icon.teal { background: color-mix(in srgb, var(--teal) 18%, transparent); }
.card-icon.amber { background: color-mix(in srgb, var(--amber) 18%, transparent); }
.card-icon.green { background: color-mix(in srgb, var(--green) 18%, transparent); }
.card-icon.coral { background: color-mix(in srgb, var(--coral) 18%, transparent); }

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.split {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.plan.pro {
  border-color: color-mix(in srgb, var(--purple) 35%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--purple) 8%, var(--surface)), var(--surface));
}

.plan-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple-dark);
  margin-bottom: 0.5rem;
}

.plan h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.plan ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.plan li + li {
  margin-top: 0.35rem;
}

.privacy {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.privacy-content h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.0625rem;
}

.privacy-content h3:first-child {
  margin-top: 0;
}

.privacy-content p,
.privacy-content ul {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.privacy-content ul {
  padding-left: 1.25rem;
}

.privacy-content li + li {
  margin-top: 0.25rem;
}

.updated {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2rem;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0.25rem 0;
}
