/* ============================================
   6ixwch Luxury-Minimal Brand Theme (FINAL)
   - Thinner navbar (one line on iPhone)
   - iPhone checkbox visible when checked
   ============================================ */

:root {
  /* Brand Colors - Backgrounds */
  --bg-primary: #0A0A0B;
  --bg-secondary: #0B0B0D;
  --surface-primary: #111114;
  --surface-secondary: #14141A;
  --surface-elevated: #1A1A1F;

  /* Brand Colors - Text */
  --text-primary: #F5F5F5;
  --text-secondary: #A9A9A9;
  --text-muted: #6B6B6B;

  /* Brand Colors - Borders */
  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-strong: rgba(255, 255, 255, 0.25);

  /* Brand Colors - Accent */
  --accent-white: #FFFFFF;
  --accent-warm: #F8F8F6;

  /* Spacing & Sizing */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 999px;

  /* Effects */
  --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(255, 255, 255, 0.05);
  --focus-ring: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Navigation (thinner + one line)
   ============================================ */

.nav {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 10, 11, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); /* iPhone Safari */
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 18px;              /* thinner */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;               /* keep on one line */
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;                    /* allow text to shrink */
}

.logo-mark {
  width: 32px;                     /* slightly smaller */
  height: 32px;
  border-radius: 10px;
  border: 1.5px solid var(--accent-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--accent-white);
  font-size: 16px;
  background: var(--surface-primary);
  flex: 0 0 auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.logo-title {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);

  /* prevent wrapping */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;

  /* prevent weird wrap */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.nav-tag {
  font-size: 11px;
  padding: 6px 12px;               /* thinner pill */
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--surface-secondary);
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Mobile: keep one line + hide subtitle to save space */
@media (max-width: 520px) {
  .nav-inner {
    padding: 10px 12px;
    gap: 10px;
  }

  .logo-mark {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .logo-subtitle {
    display: none;
  }

  .logo-title {
    font-size: 13px;
    letter-spacing: 0.14em;
    max-width: 180px;
  }

  .nav-tag {
    font-size: 10px;
    padding: 5px 10px;
    letter-spacing: 0.03em;
  }
}

/* Extra tiny: still one line, but shorten title more */
@media (max-width: 380px) {
  .logo-title {
    max-width: 140px;
  }
}

/* ============================================
   Layout
   ============================================ */

.page {
  min-height: 100vh;
  padding-bottom: 60px;
}

.shell {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    margin: 28px auto;
  }
}

@media (max-width: 600px) {
  .shell {
    padding: 0 16px;
    margin: 20px auto;
  }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  padding-top: 12px;
}

.eyebrow {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  margin: 0 0 14px;
}

h1 {
  margin: 0 0 18px;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h4 {
  margin: 28px 0 12px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  h1 {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 28px;
  }

  .hero-copy {
    font-size: 14px;
  }
}

.hero-copy {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
  max-width: 540px;
}

.hero-points {
  margin: 20px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.dot {
  margin-top: 6px;
  width: 5px;
  height: 5px;
  min-width: 5px;
  border-radius: 50%;
  background: var(--accent-white);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 28px;
}

.meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.meta-value {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================
   Form Card
   ============================================ */

.form-card {
  background: var(--surface-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 28px;
  box-shadow: var(--shadow-medium);
  position: sticky;
  top: 88px; /* slightly closer since navbar is thinner */
}

@media (max-width: 900px) {
  .form-card {
    position: static;
  }
}

@media (max-width: 600px) {
  .form-card {
    padding: 20px;
    border-radius: var(--radius-md);
  }

  .form-header h2 {
    font-size: 20px;
  }
}

.form-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.form-sub {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   Stepper
   ============================================ */

.stepper {
  margin-bottom: 24px;
}

.stepper-track {
  position: relative;
  width: 100%;
  height: 3px;
  background: var(--surface-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.stepper-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-white);
  transition: width 0.3s ease;
}

.stepper-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}

.stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stepper-dot {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--surface-secondary);
  transition: all 0.25s ease;
  font-weight: 500;
}

.stepper-dot.active {
  border-color: var(--accent-white);
  background: var(--surface-elevated);
  color: var(--accent-white);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.stepper-dot.done {
  border-color: var(--border-strong);
  background: var(--surface-elevated);
  color: var(--text-secondary);
}

.stepper-text {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ============================================
   Form Fields
   ============================================ */

.watch-form {
  margin-top: 12px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

.field-group {
  margin-bottom: 18px;
}

.field-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.field-row .field-group {
  flex: 1;
  min-width: 0;
}

@media (max-width: 500px) {
  .field-row {
    flex-direction: column;
  }
}

label {
  display: block;
  font-size: 13px;
  margin-bottom: 7px;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 0.01em;
}

input[type="text"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-secondary);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  line-height: 1.5;
}

input[type="text"]::placeholder,
input[type="url"]::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input[type="text"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-white);
  background: var(--surface-elevated);
  box-shadow: var(--focus-ring);
}

input[type="text"]:hover,
input[type="url"]:hover,
select:hover,
textarea:hover {
  border-color: var(--border-medium);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A9A9A9' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

/* ============================================
   Checkbox (VISIBLE on iPhone)
   ============================================ */

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 4px;
  border-radius: 12px;
  touch-action: manipulation;
}

.field-checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;

  width: 22px;
  height: 22px;
  min-width: 22px;

  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface-secondary);

  display: grid;
  place-content: center;

  cursor: pointer;
  position: relative;
}

.field-checkbox input[type="checkbox"]::after {
  content: "";
  width: 6px;
  height: 12px;
  transform: rotate(45deg);

  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
}

.field-checkbox input[type="checkbox"]:checked {
  background: var(--accent-white);
  border-color: var(--accent-white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.10);
}

.field-checkbox input[type="checkbox"]:checked::after {
  border-right-color: var(--bg-primary);
  border-bottom-color: var(--bg-primary);
}

.field-checkbox label {
  margin: 0;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.35;
}

/* File input note */
.file-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 0;
  line-height: 1.4;
}

input[type="file"] {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-medium);
  background: var(--surface-secondary);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

/* ============================================
   Buttons
   ============================================ */

.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.btn-primary,
.btn-secondary {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-white);
  color: var(--bg-primary);
  font-weight: 600;
  flex: 1;
}

.btn-primary[disabled] {
  opacity: 0.5;
  cursor: default;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  flex-basis: 80px;
}

.btn-secondary[disabled] {
  opacity: 0.4;
  cursor: default;
}

/* ============================================
   Messages & Status
   ============================================ */

.disclaimer {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
}

.form-message {
  margin-top: 8px;
  font-size: 13px;
  min-height: 18px;
  font-weight: 500;
  text-align: center;
}

.form-message.error {
  color: #FF6B6B;
}

.form-message.success {
  color: #51CF66;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 20px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-dot {
  opacity: 0.5;
}

/* ============================================
   Utilities
   ============================================ */

.hidden {
  display: none !important;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid var(--accent-white);
  outline-offset: 2px;
}