/* ============================================================
   TutorDong — Landing Page Waitlist
   Design system mengikuti pitch deck GEMASTIK 2026 (Bisnis TIK):
   Montserrat · navy #1F4E79 · blue #2E75B6 · gray #595959
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --navy: #1F4E79;
  --navy-dark: #16395C;      /* hover tombol navy */
  --navy-deep: #12304C;      /* footer */
  --blue: #2E75B6;
  --blue-soft: #D6E4F0;
  --gray: #595959;
  --gray-soft: #6B6B6B;
  --gray-light: #F4F6F8;
  --white: #FFFFFF;
  --border: #E3E9F0;

  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --radius-card: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(31, 78, 121, 0.06), 0 10px 30px rgba(31, 78, 121, 0.08);
  --shadow-card-hover: 0 2px 4px rgba(31, 78, 121, 0.08), 0 18px 40px rgba(31, 78, 121, 0.12);

  --container: 1100px;
  --space-section: clamp(56px, 8vw, 96px);
  --space-section-sm: clamp(40px, 6vw, 64px);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray);
  background: var(--white);
}

img,
svg {
  display: inline-block;
  vertical-align: middle;
}

a {
  color: var(--blue);
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* Aksesibilitas: focus terlihat jelas */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding-block: 0.6rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--navy);
}

.logo-text {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.header-cta {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.25rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.header-cta:hover {
  background: var(--navy-dark);
}

@media (hover: hover) {
  .header-cta:hover {
    transform: translateY(-1px);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--white);
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius-pill);
  padding: 0.9rem 2rem;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
  }
}

.btn:active {
  transform: translateY(0);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 1rem 2.4rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 50% -180px, rgba(46, 117, 182, 0.12), rgba(255, 255, 255, 0) 65%),
    var(--white);
  text-align: center;
  padding-block: clamp(64px, 10vw, 120px) clamp(48px, 8vw, 88px);
}

.hero h1 {
  max-width: 20ch;
  margin-inline: auto;
  color: var(--navy);
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-sub {
  max-width: 62ch;
  margin: 1.5rem auto 2.25rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--gray);
  text-wrap: pretty;
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
}

/* ---------- Stats band ---------- */
.stats {
  background: var(--gray-light);
  padding-block: var(--space-section-sm);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-number {
  color: var(--navy);
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  max-width: 26ch;
  margin-inline: auto;
  font-size: 0.98rem;
  color: var(--gray);
}

.stats-caption {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--gray-soft);
  font-style: italic;
}

/* ---------- Problem ---------- */
.problem {
  padding-block: var(--space-section);
}

.problem h2,
.how h2,
.pricing h2 {
  color: var(--navy);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-bottom: 2.25rem;
}

.problem-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .problem-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.4rem 1.4rem 1.25rem;
  color: var(--gray);
  font-weight: 600;
  line-height: 1.5;
  box-shadow: var(--shadow-card);
}

.problem-icon {
  flex: none;
  margin-top: 0.15rem;
  color: var(--blue);
}

/* ---------- How it works ---------- */
.how {
  background: var(--gray-light);
  padding-block: var(--space-section);
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: step;
}

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

@media (min-width: 1024px) {
  .how-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.how-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.how-card h3 {
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  text-wrap: balance;
}

/* ---------- Pricing ---------- */
.pricing {
  padding-block: var(--space-section);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 720px;
  margin-inline: auto;
}

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

.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.price-card-featured {
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-card-hover);
}

.price-tag {
  color: var(--navy);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.price-card-featured .price-tag {
  color: var(--blue);
}

.price-desc {
  margin-top: 0.6rem;
  color: var(--gray);
  font-weight: 600;
}

.pricing-note {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gray-soft);
}

/* ---------- Waitlist form ---------- */
.waitlist {
  background: var(--gray-light);
  padding-block: var(--space-section);
}

.waitlist-inner {
  max-width: 680px;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-hover);
  padding: clamp(1.75rem, 5vw, 2.75rem);
}

.form-card h2 {
  color: var(--navy);
  font-size: clamp(1.75rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.form-sub {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  color: var(--gray);
}

.field {
  margin-bottom: 1.35rem;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
}

.field input[type="text"],
.field input[type="tel"],
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--gray);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23595959' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
  cursor: pointer;
}

.field select:invalid {
  color: var(--gray-soft);
}

.field input::placeholder {
  color: var(--gray-soft);
  opacity: 0.75;
}

.field input:hover:not(:focus),
.field select:hover:not(:focus) {
  border-color: #C4D2E2;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 117, 182, 0.18);
  outline: none;
}

.field.has-error input,
.field.has-error select {
  border-color: #B3261E;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.14);
}

.field-error {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #B3261E;
}

/* Checkbox mentor */
.checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  cursor: pointer;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.checkbox-box {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid #C4D2E2;
  border-radius: 6px;
  color: var(--white);
  background: var(--white);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.checkbox-box svg {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.checkbox input:checked + .checkbox-box {
  background: var(--navy);
  border-color: var(--navy);
}

.checkbox input:checked + .checkbox-box svg {
  opacity: 1;
}

.checkbox input:focus-visible + .checkbox-box {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.checkbox-label {
  color: var(--gray);
  font-weight: 600;
  font-size: 0.98rem;
}

/* Grup checkbox tujuan mentoring */
.field-optional {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--gray-soft);
}

.checkbox-group {
  display: grid;
  gap: 0.75rem;
}

.checkbox-group .checkbox {
  margin-bottom: 0;
}

.field-hint {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--gray-soft);
}

/* Status form: sukses / error */
.form-status {
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-status.is-success {
  background: #E7F3EC;
  border: 1px solid #2E7D4F;
  color: #1E5A38;
}

.form-status.is-error {
  background: #FDEBEA;
  border: 1px solid #B3261E;
  color: #8F1D16;
}

.form-status a {
  color: inherit;
  text-decoration: underline;
  font-weight: 700;
}

.form-hint {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  padding-block: 2.25rem;
}

.footer-line {
  font-weight: 600;
  font-size: 0.98rem;
}

.footer-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Motion: hormati preferensi user ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
