/* Reflux Student pages. Layered on landing-cursor.css (tokens, header, buttons),
   the same way contact-sales.css is. Only page layout lives here. */

.student-page {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 96%, white 4%), var(--bg) 34rem),
    var(--bg);
}

.student-page .site-header {
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.student-main {
  min-height: calc(100vh - var(--header-height));
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding-top: 67px;
  padding-bottom: 80px;
}

.student-layout {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
}

.student-copy h1,
.student-narrow h1 {
  max-width: 640px;
  margin: 0 0 20px;
  color: var(--fg);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.2;
}

.student-lede {
  max-width: 600px;
  margin: 0;
  color: var(--fg);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.student-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--fg-mid);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.student-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.student-card {
  border: 1px solid color-mix(in srgb, var(--border) 84%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--card) 72%, transparent);
  padding: 20px;
  box-shadow: 0 18px 54px rgba(38, 37, 30, 0.07);
}

.student-card + .student-card {
  margin-top: 16px;
}

.student-card h2 {
  margin: 0 0 16px;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.25;
}

.student-card h3 {
  margin: 22px 0 8px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.student-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.student-price .amount {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}

.student-price .per {
  color: var(--fg-mid);
  font-size: 0.9375rem;
}

.student-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.student-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.student-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
}

.student-list.numbered {
  counter-reset: step;
}

.student-list.numbered li {
  padding-left: 32px;
}

.student-list.numbered li::before {
  counter-increment: step;
  content: counter(step);
  top: 0.1em;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: var(--fg);
}

.student-note {
  margin: 14px 0 0;
  color: var(--fg-mid);
  font-size: 0.875rem;
  line-height: 1.5;
}

.student-note a,
.student-legal a {
  color: var(--accent);
}

/* Forms: same fields as the contact page. */
.student-form {
  display: grid;
  gap: 18px;
}

.student-form label {
  display: block;
  color: var(--fg);
  font-size: 0.875rem;
  line-height: 1.5;
}

.student-form input[type="email"],
.student-form input[type="text"] {
  width: 100%;
  min-height: 42px;
  margin-top: 5px;
  padding: 0.56em 10px 0.58em;
  border: 1px solid var(--border);
  border-radius: var(--radius-ui);
  background: color-mix(in srgb, var(--bg) 78%, white 22%);
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.5;
  outline: none;
  transition:
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.student-form input::placeholder {
  color: var(--fg-faint);
}

.student-form input:focus {
  border-color: color-mix(in srgb, var(--fg) 82%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg) 8%, transparent);
}

.student-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.5;
}

.student-check input {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--fg);
}

.student-check a {
  color: var(--accent);
}

.student-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.student-actions .button {
  width: fit-content;
  min-width: 0;
}

.student-actions .button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.student-status {
  margin: 0;
  font-size: 0.94rem;
  color: var(--fg);
}

.student-status:empty,
.student-status[hidden] {
  display: none;
}

.student-status.is-error {
  color: var(--accent);
}

.student-status.is-ok {
  color: var(--green);
}

/* The account page toggles its forms with the hidden attribute; their own
   display values (grid, flex) must not win over it. */
.student-page [hidden] {
  display: none !important;
}

/* Licence key, meter, tables. */
.student-key {
  display: block;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-ui);
  background: color-mix(in srgb, var(--bg) 78%, white 22%);
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 1.0625rem;
  word-break: break-all;
}

.student-meter {
  height: 8px;
  margin: 8px 0 10px;
  border-radius: 999px;
  background: var(--card-3);
  overflow: hidden;
}

.student-meter > span {
  display: block;
  height: 100%;
  background: var(--accent);
}

/* Plan cards on the sign-up page and the account page's subscribe block. */
.student-plans {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

a.student-plan {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.student-plan:hover {
  border-color: var(--accent);
}
.student-plan {
  padding: 14px 14px 12px;
  border: 1px solid color-mix(in srgb, var(--border) 84%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 78%, white 22%);
}

.student-plan.is-featured {
  border-color: var(--fg);
}

.student-plan.is-trial {
  border-style: dashed;
}

.student-plan .name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

.student-plan .save {
  padding: 1px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
}

.student-plan .price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.student-plan .amount {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}

.student-plan .unit,
.student-plan .per {
  color: var(--fg-mid);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.student-plan .per {
  margin-top: 8px;
}

.student-choice {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}

.student-choice legend {
  padding: 0;
  margin-bottom: 4px;
  font-size: 0.875rem;
}

.student-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-ui);
  font-size: 0.875rem;
  cursor: pointer;
}

.student-radio:has(input:checked) {
  border-color: var(--fg);
}

.student-radio input {
  margin: 0;
  accent-color: var(--fg);
}

.student-radio small {
  color: var(--fg-mid);
  font-size: 0.8125rem;
  margin-left: 4px;
}

.student-trial-count {
  font-size: 1.375rem;
  font-weight: 400;
  margin: 0 0 6px;
}

@media (max-width: 560px) {
  .student-plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

.student-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.student-table th,
.student-table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.student-table th {
  color: var(--fg-mid);
  font-weight: 500;
}

/* Long-form pages (terms, privacy). */
.student-narrow {
  max-width: 720px;
}

.student-legal h2 {
  margin: 30px 0 8px;
  font-size: 1.125rem;
  font-weight: 500;
}

.student-legal p,
.student-legal li {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.student-legal ul {
  padding-left: 20px;
}

.student-footer {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--fg-mid);
  font-size: 0.8125rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.student-footer a {
  color: var(--fg-mid);
}

.student-footer a:hover {
  color: var(--fg);
}

code {
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

@media (prefers-color-scheme: dark) {
  .student-page {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--bg) 86%, #2a2117 14%), var(--bg) 34rem),
      var(--bg);
  }

  .student-card {
    box-shadow: 0 22px 62px rgba(0, 0, 0, 0.3);
  }

  .student-form input[type="email"],
  .student-form input[type="text"],
  .student-key {
    background: color-mix(in srgb, var(--card-2) 72%, black 28%);
  }
}

@media (max-width: 980px) {
  .student-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .student-page .center-nav {
    display: none;
  }

  .student-main {
    padding-top: 48px;
  }

  .student-copy h1,
  .student-narrow h1 {
    font-size: 1.9rem;
  }

  .student-actions .button {
    width: 100%;
  }
}
