/* SchoolWithAI — visual design */

:root {
  color-scheme: dark;
  --background: #080e1b;
  --surface: #111a2b;
  --surface-raised: #172238;
  --text: #f3f6fc;
  --muted: #a9b5cc;
  --accent: #d4ff63;
  --accent-text: #111a07;
  --border: #29364d;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--accent-text);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

/* Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  padding: 20px max(6%, calc((100vw - 1240px) / 2));
  background: rgba(8, 14, 27, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.logo {
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -1px;
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

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

nav a:last-child {
  padding: 10px 17px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
}

nav a:last-child:hover {
  border-color: var(--accent);
}

/* First screen */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 1440px;
  margin: 0 auto;
  padding: 105px 7% 115px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(
      ellipse at 95% 20%,
      rgba(91, 130, 255, 0.16),
      transparent 48%
    ),
    radial-gradient(
      ellipse at 80% 95%,
      rgba(212, 255, 99, 0.08),
      transparent 42%
    );
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, transparent 25%, black);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 2px;
  line-height: 1.6;
}

.hero > .eyebrow {
  display: inline-block;
  padding: 9px 15px;
  border: 1px solid rgba(212, 255, 99, 0.28);
  border-radius: 999px;
  background: rgba(212, 255, 99, 0.05);
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 1050px;
  margin: 10px 0 28px;
  font-size: clamp(48px, 6.8vw, 94px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.hero-description {
  max-width: 650px;
  margin-bottom: 35px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 25px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
  background: #e0ff93;
  box-shadow: 0 8px 28px rgba(212, 255, 99, 0.16);
}

.button-secondary {
  margin-left: 12px;
  border-color: var(--border);
  background: rgba(17, 26, 43, 0.7);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface-raised);
  box-shadow: none;
}

/* Section layout */

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 85px 30px;
}

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

h2 {
  max-width: 850px;
  margin: 0 0 24px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

h3 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

p {
  margin: 0 0 20px;
}

.section > p:not(.eyebrow):not(#results-count) {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
}

.card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #152037, #10192a);
}

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

/* Four-step method */

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.method-grid .card {
  position: relative;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.method-grid .card:hover {
  transform: translateY(-5px);
  border-color: #64754c;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border: 1px solid #405332;
  border-radius: 12px;
  background: rgba(212, 255, 99, 0.07);
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.method-grid h3 {
  font-size: 20px;
}

.method-grid p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.75;
}

/* Search and categories */

label[for="prompt-search"] {
  display: block;
  margin: 34px 0 10px;
  font-size: 14px;
  font-weight: 700;
}

#prompt-search {
  width: 100%;
  min-height: 58px;
  padding: 15px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  transition: border-color 180ms ease;
}

#prompt-search::placeholder {
  color: #8997af;
}

#prompt-search:hover {
  border-color: #52617c;
}

#prompt-search:focus {
  border-color: var(--accent);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.filters button {
  min-height: 44px;
  padding: 10px 19px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.filters button:hover {
  border-color: #69768e;
  color: var(--text);
}

.filters button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

#results-count {
  margin: 25px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

/* Prompt cards — connected by script.js next */

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}

.prompt-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.prompt-category {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.prompt-card > p {
  color: var(--muted);
  font-size: 15px;
}

.prompt-text {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid #33425b;
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: #0b1322;
  color: #dbe4f5;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.copy-button {
  width: 100%;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid #405332;
  border-radius: 9px;
  background: rgba(212, 255, 99, 0.08);
  color: var(--accent);
  font-size: 14px;
  font-weight: 750;
  transition: background 180ms ease;
}

.copy-button:hover {
  background: rgba(212, 255, 99, 0.16);
}

.prompt-card details {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.prompt-card summary {
  padding: 4px 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.prompt-card details h4 {
  margin: 20px 0 8px;
  color: var(--accent);
  font-size: 14px;
}

.prompt-card details p,
.prompt-card details li {
  color: var(--muted);
  font-size: 14px;
}

.prompt-card details ul {
  padding-left: 20px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 45px 25px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* $1 product offer */

.toolkit {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 70px;
}

.toolkit > div > p:not(.eyebrow) {
  max-width: 580px;
  color: var(--muted);
  font-size: 17px;
}

.pricing-card {
  padding: 36px;
  border-color: #6c8245;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(212, 255, 99, 0.12),
      transparent 55%
    ),
    var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.pricing-card h3 {
  max-width: 300px;
}

.pricing-card .price {
  margin: 22px 0;
  color: var(--accent);
  font-size: 76px;
  font-weight: 850;
  letter-spacing: -4px;
  line-height: 1.1;
}

.price span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.6;
}

.pricing-card ul {
  padding-left: 22px;
  margin: 25px 0;
  color: var(--text);
  font-size: 15px;
}

.pricing-card li {
  padding: 6px 0;
}

.pricing-card li::marker {
  color: var(--accent);
}

.pricing-card .button {
  width: 100%;
}

.small-text,
.pricing-card .small-text {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* Footer and copy feedback */

footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 30px;
  border-top: 1px solid var(--border);
}

footer .logo {
  display: inline-block;
  margin-bottom: 14px;
}

footer p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
}

footer .small-text {
  margin-top: 8px;
}

#copy-status {
  position: fixed;
  bottom: 25px;
  left: 50%;
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 14px 22px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: #182326;
  color: var(--text);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

#copy-status.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Tablets */

@media (max-width: 1000px) {
  .method-grid,
  .prompt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolkit {
    gap: 35px;
  }

  .hero {
    padding-top: 80px;
    padding-bottom: 85px;
  }
}

/* Phones */

@media (max-width: 650px) {
  html {
    scroll-padding-top: 140px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 6%;
  }

  .logo {
    font-size: 23px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  nav a {
    font-size: 13px;
  }

  nav a:last-child {
    padding: 7px 11px;
  }

  .hero {
    padding: 65px 6% 70px;
  }

  .hero > .eyebrow {
    font-size: 10px;
    letter-spacing: 1.2px;
  }

  h1 {
    font-size: clamp(42px, 10vw, 64px);
    line-height: 1.09;
  }

  .hero-description {
    font-size: 18px;
  }

  .hero .button {
    display: flex;
    width: 100%;
  }

  .button-secondary {
    margin: 12px 0 0;
  }

  .section {
    padding: 55px 6%;
  }

  .method-grid,
  .prompt-grid,
  .toolkit {
    grid-template-columns: 1fr;
  }

  .method-grid {
    gap: 14px;
  }

  .method-grid .card {
    padding: 24px;
  }

  .step-number {
    margin-bottom: 18px;
  }

  .toolkit {
    gap: 30px;
  }

  .pricing-card {
    padding: 28px;
  }

  .filters {
    gap: 8px;
  }

  .filters button {
    padding: 10px 14px;
    font-size: 13px;
  }

  footer {
    padding: 35px 6%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}