/* ============================================================
   SugarClock Project Site — Dark Neubrutalist Theme
   ============================================================ */

/* --- Base & Variables --- */
:root {
  /* Brand Colors - Vibrant Neubrutalism */
  --primary: #82EDA6;
  --primary-hover: #5ad585;
  --primary-light: rgba(130, 237, 166, 0.2);

  --accent-pink: #FCCDDC;
  --accent-yellow: #FFFF94;
  --accent-blue: #AEFBFF;

  /* UI Colors - Light Mode Base (Default) */
  --bg-base: #fafafa;
  --bg-surface: #ffffff;
  --bg-soft: rgba(0, 0, 0, 0.05);
  --bg-nav: rgba(255, 255, 255, 0.8);

  --grid-color: rgba(0, 0, 0, 0.1);

  --border-light: #e4e4e7;

  --text-main: #18181b;
  --text-muted: #52525b;
  --text-dark: #18181b;

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing & Neubrutalism */
  --radius: 24px;
  /* Extreme chunky corners for cards */
  --radius-pill: 100px;
  /* Pill shapes for buttons */
  --container: 1100px;

  --shadow-brutal: -4px 4px 0px 0px #000000;
  --shadow-brutal-hover: -2px 2px 0px 0px #000000;
  --border-brutal: 3px solid #000000;
}

body.dark-theme,
.dark-theme {
  /* UI Colors - Dark Mode Base */
  --bg-base: #18181b;
  --bg-surface: #27272a;
  --bg-soft: rgba(39, 39, 42, 0.5);
  --bg-nav: rgba(24, 24, 27, 0.8);

  --grid-color: rgba(255, 255, 255, 0.4);

  --border-light: #3f3f46;

  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-muted {
  color: var(--text-muted);
}

.text-dark {
  color: var(--text-dark);
}

.text-primary {
  color: var(--primary) !important;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.fw-bold {
  font-weight: 600;
}

.text-sm {
  font-size: 0.95rem;
}

.bg-soft {
  background-color: transparent;
}

.bg-soft-green {
  background: var(--primary);
  color: var(--text-dark);
}

.bg-soft-blue {
  background: var(--accent-blue);
  color: var(--text-dark);
}

.bg-soft-orange {
  background: var(--accent-yellow);
  color: var(--text-dark);
}

/* --- Components --- */

/* Clean Cards - Neubrutalism Dark Theme */
.clean-card {
  background: var(--bg-surface);
  border: var(--border-brutal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-brutal);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.clean-card:hover {
  transform: translate(-2px, 2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-brutal-hover);
}

.border-primary {
  border-color: var(--primary);
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-light);
}

.site-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-logo {
  height: 24px;
  width: auto;
  border-radius: 4px;
}

.nav-logo.gray {
  filter: grayscale(100%) opacity(60%);
}

.nav-logo.icon-sm {
  height: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a:not(.btn) {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
  color: var(--text-main);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: var(--border-brutal);
  box-shadow: var(--shadow-brutal);
}

.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.theme-toggle:hover {
  background-color: var(--bg-soft);
}

.theme-toggle .moon-icon {
  display: none;
}

body.dark-theme .theme-toggle .sun-icon {
  display: none;
}

body.dark-theme .theme-toggle .moon-icon {
  display: block;
}



.btn:hover {
  text-decoration: none;
  transform: translate(-2px, 2px);
  box-shadow: var(--shadow-brutal-hover);
}

.feature-card .btn {
  margin-top: auto;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-dark);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--text-dark);
}

.btn-secondary {
  background: var(--accent-blue);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: #80e6eb;
  /* slightly darker blue */
}

.btn-text {
  padding: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 500;
  border-radius: 0;
}

.btn-text:hover {
  text-decoration: underline;
  background: transparent;
  border-color: transparent;
}

/* Sections */
main {
  padding-top: 70px;
}

.section-py {
  padding: 5rem 0;
}

.section-pycta {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* background transparent to reveal body animated gradient */
}

/* Retro Grid Animation (Ported from React/Tailwind to Vanilla CSS) */
.retro-grid-container {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  opacity: 1;
  perspective: 200px;
  z-index: 0;
}

.retro-grid {
  position: absolute;
  inset: 0;
  transform: rotateX(65deg);
  width: 600vw;
  height: 300vh;
  margin-left: -50%;
  transform-origin: 100% 0 0;
  background-repeat: repeat;
  background-size: 60px 60px;
  background-image:
    linear-gradient(to right, var(--grid-color) 1px, transparent 0),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 0);
  animation: retro-grid-anim 15s linear infinite;
}

.retro-grid-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, transparent, var(--bg-base) 90%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 16px;
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.info-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-top: 330px;
}

@media (max-width: 768px) {
  .hero-content {
    margin-top: 15vh;
  }

  .hero-subtitle {
    margin-bottom: 3rem !important;
  }
}

@media (max-width: 480px) {
  .hero-content {
    margin-top: 30vh;
  }

  .hero-subtitle {
    margin-bottom: 4rem !important;
  }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    padding: 0 1rem;
  }
}

/* Hero Photo */
.hero-photo {
  width: 100%;
  max-width: 550px;
  height: auto;
  margin: 0 auto;
  display: block;
  mix-blend-mode: multiply;
  /* Blends pure white backgrounds seamlessly into the layout */
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15)) drop-shadow(0 5px 10px rgba(0, 0, 0, 0.05));
  /* Shadows the object silhouette rather than the bounding box */
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) scale(1.05);
  /* Adds premium 3D depth to the flat image */
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
}

.hero-photo:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0) scale(1.08) translateY(-5px);
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.2)) drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}


/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

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

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: auto;
  /* push the button to the bottom */
}

@media (max-width: 768px) {
  .feature-card {
    text-align: center;
    align-items: center;
  }
}

/* --- Steps Modern --- */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.step-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
}

.step-modern.reverse {
  text-align: right;
}

.step-modern.reverse .step-content-modern {
  align-items: flex-end;
}

.step-content-modern {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  box-shadow: none;
  /* remove default clean card shadow, rely on border */
}

.step-num-modern {
  position: absolute;
  font-size: 10rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--bg-soft);
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  cursor: default;
  user-select: none;
}

.step-modern:not(.reverse) .step-num-modern {
  left: -30px;
}

.step-modern.reverse .step-num-modern {
  right: -30px;
}

.step-content-modern h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.step-content-modern p {
  color: var(--text-muted);
  font-size: 1rem;
}

.step-visual {
  z-index: 2;
}

.visual-pane {
  aspect-ratio: 16/9;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.visual-pane svg {
  width: 60px;
  height: 60px;
  color: var(--primary);
  opacity: 0.8;
}

/* --- Comparison Table --- */
.table-container {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table th {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.02);
}

.comparison-table tbody tr:hover {
  background: var(--bg-soft);
}

.highlight-col {
  background: var(--primary-light);
}

.icon-sm {
  width: 18px;
  height: 18px;
  vertical-align: text-bottom;
}


/* --- CTA Banner --- */
.cta-banner {
  padding: 4rem 2rem;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2.5rem;
}

.cta-banner .hero-buttons {
  justify-content: center;
}

/* --- Footer --- */
.site-footer {
  background: transparent;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-desc {
  color: var(--text-muted);
  max-width: 300px;
  font-size: 0.9rem;
}

.footer-links h4 {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.disclaimer {
  opacity: 0.8;
  font-size: 0.8rem;
}

/* --- Mobile Nav Toggle --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  margin: 5px 0;
  transition: 0.3s;
}

/* Animations */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes retro-grid-anim {
  0% {
    transform: translateY(-50%) rotateX(65deg);
  }

  100% {
    transform: translateY(0) rotateX(65deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-subtitle {
    margin: 0 auto 2.5rem;
  }

  .step-modern {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .step-modern.reverse {
    text-align: left;
  }

  .step-modern.reverse .step-content-modern {
    align-items: flex-start;
  }

  .step-num-modern {
    display: none;
  }

  .visual-pane {
    aspect-ratio: 2/1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .section-py {
    padding: 3rem 0;
  }

  .cta-banner {
    padding: 3rem 1.5rem;
  }

  .hero-title {
    font-size: 2.75rem;
  }

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

/* --- Setup Guide Specifics --- */
.guide-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.guide-sidebar {
  position: sticky;
  top: 100px;
}

.guide-nav {
  padding: 1.5rem;
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.guide-nav h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.guide-nav ul {
  list-style: none;
}

.guide-nav li {
  margin-bottom: 0.5rem;
}

.guide-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: block;
  padding: 0.25rem 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -12px;
}

.guide-nav a:hover,
.guide-nav a.active {
  color: var(--primary);
  border-left-color: var(--primary);
  text-decoration: none;
  background: var(--primary-light);
}

.guide-content h2 {
  font-size: 2rem;
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
}

.guide-content h2:first-child {
  margin-top: 0;
}

.guide-content h3 {
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
}

.guide-content p {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.guide-divider {
  border: 0;
  height: 1px;
  background: var(--border-light);
  margin: 4rem 0;
}

/* Callouts */
.callout {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

@media (max-width: 600px) {
  .callout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.callout-icon {
  flex-shrink: 0;
}

.callout-icon svg {
  width: 24px;
  height: 24px;
}

.callout-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

.callout-info {
  border-left: 4px solid var(--accent-blue);
  background: var(--accent-blue-light);
}

.callout-info .callout-icon {
  color: var(--accent-blue) !important;
}

.callout-warning {
  border-left: 4px solid var(--accent-orange);
  background: var(--accent-orange-light);
}

.callout-warning .callout-icon {
  color: var(--accent-orange) !important;
}

.callout-success {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
}

.callout-success .callout-icon {
  color: var(--primary) !important;
}

/* Code Blocks */
.code-block {
  background: #111827;
  color: #e5e7eb;
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  line-height: 1.7;
}

.code-block pre {
  margin: 0;
}

.code-block .comment {
  color: #6b7280;
}

/* Lists & Steps */
.guide-list {
  margin: 1rem 0 2rem 2rem;
}

.guide-list li {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.guide-steps {
  margin: 1rem 0 2rem 2rem;
  padding: 0;
}

.guide-steps li {
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: 1.05rem;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.faq-item {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faq-answer p {
  margin-bottom: 0;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .guide-sidebar {
    position: static;
  }
}

/* --- Install / Web Flasher Page --- */

.install-flash-card,
.install-steps-card {
  overflow: hidden;
}

.install-flash-inner {
  padding: 2.5rem;
}

.install-flash-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.install-prereq-list {
  margin: 0 0 2rem 1.5rem;
  padding: 0;
}

@media (max-width: 600px) {
  .install-prereq-list {
    margin: 0 0 2rem 0;
    list-style-position: inside;
    text-align: center;
  }
}

.install-prereq-list li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.install-button-wrap {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

.install-button-wrap esp-web-install-button {
  display: contents;
}

/* Numbered post-flash steps */
.install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.install-steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.install-steps li:last-child {
  border-bottom: none;
}

.install-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-steps li strong {
  display: block;
  margin-bottom: 0.15rem;
}

.install-steps li code {
  background: var(--bg-base);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Browser warning callout */
.install-browser-warning {
  margin-bottom: 1.5rem;
}

/* WiFi config form */
.install-wifi-form {
  max-width: 100%;
}

.install-field {
  margin-bottom: 1rem;
}

.install-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.install-field input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.install-field input:focus {
  outline: none;
  border-color: var(--primary);
}

.install-field input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.install-wifi-status {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

.install-wifi-status.status-progress {
  background: rgba(174, 251, 255, 0.1);
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
}

.install-wifi-status.status-success {
  background: rgba(130, 237, 166, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
}

.install-wifi-status.status-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
}

@media (max-width: 600px) {
  .install-flash-inner {
    padding: 1.5rem;
    text-align: center;
  }

  .install-flash-header {
    flex-direction: column;
    align-items: center;
  }
}