/* Tutorgent pre-launch site — brand palette: primary #3E7BEE, secondary #FDB022 */

:root {
  --primary: #3e7bee;
  --primary-dark: #2b5fc4;
  --secondary: #fdb022;
  --secondary-dark: #dd9410;
  --ink: #1c2440;
  --ink-soft: #566089;
  --paper: #fbfcff;
  --panel: #ffffff;
  --panel-tint: #eaf1fe;
  --border: #e1e7f7;
  --success: #1f9d55;
  --danger: #d64545;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1080px;
  --shadow: 0 10px 30px rgba(62, 123, 238, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-dark); }

img, svg { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Header ---------- */

header.site {
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: rgba(251, 252, 255, 0.9);
  backdrop-filter: blur(6px);
  z-index: 20;
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.brand img { width: 36px; height: 36px; }

.brand-name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary-dark);
  background: #fff4de;
  border: 1px solid #ffe1a3;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-soon .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; padding: 80px 0 50px; }
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 18px;
}

.pitch {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 0 28px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

.btn:active { transform: scale(0.97); }

.btn:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(62, 123, 238, 0.32);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); }

.hero-illustration {
  justify-self: center;
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Why Tutorgent ---------- */

section.features {
  padding: 30px 0 60px;
}

.section-heading {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 36px;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.section-heading p {
  color: var(--ink-soft);
  margin: 0;
}

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

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--panel-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg { width: 28px; height: 28px; }

.feature-card h3 {
  font-size: 1.08rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Feedback section ---------- */

section.feedback {
  padding: 20px 0 70px;
}

.feedback-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 44px);
  box-shadow: var(--shadow);
}

.feedback-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 32px;
}

.feedback-intro h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 10px;
}

.feedback-intro p {
  color: var(--ink-soft);
  margin: 0;
}

form#feedback-form {
  display: grid;
  gap: 20px;
}

.field-row {
  display: grid;
  gap: 16px;
}

/* Our own .field-row rule above would otherwise beat the browser's default
   [hidden] { display: none } — author styles win over UA styles even at
   equal specificity, so without this override a hidden .field-row (e.g.
   #referral-section before "Someone I know" is picked) would still render. */
.field-row[hidden] {
  display: none;
}

@media (min-width: 600px) {
  .field-row.two-col { grid-template-columns: 1fr 1fr; }
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.hint {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(62, 123, 238, 0.18);
}

textarea { resize: vertical; min-height: 100px; }

.char-counter {
  text-align: right;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

fieldset {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 0;
}

fieldset legend {
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0 6px;
}

.radio-group,
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.92rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.radio-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--panel-tint);
}

.radio-option input { accent-color: var(--primary); }

#referral-section .hint {
  margin: 6px 0 12px;
}

.referral-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.referral-row input {
  padding: 10px 12px;
}

.referral-remove-btn {
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--danger);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.referral-remove-btn:hover { background: #fdecec; border-color: var(--danger); }

#add-referral-btn {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.thumb-toggle {
  display: flex;
  gap: 10px;
}

.thumb-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--ink);
}

.thumb-btn[aria-pressed="true"].thumb-up {
  border-color: var(--success);
  background: #eafaf0;
  color: var(--success);
}

.thumb-btn[aria-pressed="true"].thumb-down {
  border-color: var(--danger);
  background: #fdecec;
  color: var(--danger);
}

.age-gate-message {
  display: none;
  background: #fff4de;
  border: 1.5px solid #ffe1a3;
  border-radius: var(--radius-sm);
  padding: 18px;
  color: #7a5710;
  font-size: 0.95rem;
}

.age-gate-message.is-visible { display: block; }

.form-status {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.92rem;
  display: none;
}

.form-status.is-visible { display: block; }
.form-status.status-success { background: #eafaf0; color: #14683a; display: block; }
.form-status.status-error { background: #fdecec; color: #9c2b2b; display: block; }

.submit-row {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--border);
  padding: 30px 0 44px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.footer-brand {
  font-weight: 800;
  color: var(--ink);
}

.privacy-note {
  max-width: 620px;
}

@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
