:root {
  /* AWS Colors */
  --aws-orange: #FF9900;
  --aws-dark: #232F3E;
  --aws-navy: #1B2838;
  --aws-light: #F2F3F3;
  --aws-white: #FFFFFF;
  
  /* Kiro Colors */
  --kiro-green: #4AF626;
  --kiro-dark: #1A1A2E;
  --kiro-purple: #6B4CE6;
}

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

body {
  font-family: 'Amazon Ember', 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a2e;
  line-height: 1.6;
  background-color: var(--aws-light);
}

/* URL Banner (large, projector-readable page URL) */
.url-banner {
  background: var(--aws-orange);
  color: #0a0a0a;
  text-align: center;
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.url-banner-label {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.url-banner-url {
  font-family: 'Courier New', monospace;
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 700;
  word-break: break-all;
}

/* Header */
.header {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-logos img {
  height: 40px;
}

.header-logos .divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.3);
}

.header-title {
  color: var(--aws-white);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, var(--kiro-purple) 100%);
  color: var(--aws-white);
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  opacity: 0.85;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.prereq-step {
  font-size: 1.05rem;
  opacity: 1 !important;
  margin-bottom: 2rem !important;
  background: rgba(255, 153, 0, 0.15);
  border: 1px solid var(--aws-orange);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.prereq-step a {
  color: var(--aws-orange);
  text-decoration: underline;
  font-weight: 600;
}

.prereq-step a:hover {
  color: #ec8e00;
}

.credit-callout {
  background: rgba(107, 76, 230, 0.15);
  border: 2px solid var(--kiro-purple);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 0 auto 2rem;
  max-width: 550px;
  backdrop-filter: blur(4px);
}

.credit-callout h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--aws-white);
}

.credit-callout p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1.25rem;
}

.credit-btn {
  display: inline-block;
  background: var(--kiro-purple);
  color: var(--aws-white);
  text-decoration: none;
  padding: 0.85rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(107, 76, 230, 0.4);
}

.credit-btn:hover {
  background: #5a3dd1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(107, 76, 230, 0.5);
}

.credit-description {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 550px;
  margin: 0 auto 2rem;
}

.expiry-notice {
  font-size: 0.85rem;
  opacity: 0.85 !important;
  margin-top: 1.25rem !important;
  margin-bottom: 0 !important;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  display: inline-block;
}

.launch-label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem !important;
  opacity: 1 !important;
}

.workshop-btn {
  display: inline-block;
  background: var(--aws-orange);
  color: #0a0a0a;
  text-decoration: none;
  padding: 1rem 2.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
}

.workshop-btn:hover {
  background: #ec8e00;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 153, 0, 0.5);
}

/* Team Section */
.team-section {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 2rem;
  text-align: center;
}

.team-section h2 {
  font-size: 2rem;
  color: #0a0a0a;
  margin-bottom: 0.5rem;
}

.team-section .section-subtitle {
  color: #555;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.team-card {
  background: var(--aws-white);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 200px;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.team-card img {
  width: 140px;
  height: auto;
  margin-bottom: 1rem;
  border: 3px solid var(--aws-orange);
  border-radius: 8px;
}

.team-card .email {
  font-size: 0.8rem;
  color: var(--aws-orange);
  text-decoration: none;
  margin-top: 0.25rem;
  display: inline-block;
}

.team-card .email:hover {
  text-decoration: underline;
}

.team-card h3 {
  font-size: 1rem;
  color: #0a0a0a;
  margin-bottom: 0.25rem;
}

.team-card p {
  font-size: 0.85rem;
  color: #555;
}

/* Presentations Section */
.presentations-section {
  max-width: 900px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
  text-align: center;
}

.presentations-section h2 {
  font-size: 2rem;
  color: #0a0a0a;
  margin-bottom: 0.5rem;
}

.presentations-section .section-subtitle {
  color: #555;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.presentations-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.presentation-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--aws-white);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.presentation-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.presentation-icon {
  font-size: 1.5rem;
}

.presentation-title {
  flex: 1;
  text-align: left;
  font-weight: 600;
  color: #0a0a0a;
}

.presentation-download {
  font-size: 0.85rem;
  color: var(--aws-orange);
  font-weight: 500;
}

/* Feedback Section */
.feedback-section {
  max-width: 900px;
  margin: 3rem auto 4rem;
  padding: 0 2rem;
  text-align: center;
}

.feedback-box {
  background: var(--aws-white);
  border-radius: 12px;
  padding: 3rem 2rem;
  color: #0a0a0a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.feedback-box h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #0a0a0a;
}

.feedback-box p {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 1.5rem;
}

/* Learn More Section */
.learn-more-section {
  max-width: 900px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
  text-align: center;
}

.learn-more-section h2 {
  font-size: 2rem;
  color: #0a0a0a;
  margin-bottom: 0.5rem;
}

.learn-more-section .section-subtitle {
  color: #555;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.learn-more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.learn-more-card {
  background: var(--aws-white);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 3px solid var(--kiro-purple);
}

.learn-more-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.learn-more-card h3 {
  font-size: 1rem;
  color: #0a0a0a;
  margin-bottom: 0.5rem;
}

.learn-more-card p {
  font-size: 0.85rem;
  color: #555;
}

/* Setup Page */
.hero-small {
  padding: 0 2rem 3rem;
}

.setup-section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.setup-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.setup-step {
  display: flex;
  gap: 1.5rem;
  background: var(--aws-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--kiro-purple);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 1.25rem;
  color: #0a0a0a;
  margin-bottom: 0.5rem;
}

.step-content p {
  margin-bottom: 0.75rem;
  color: #333;
}

.step-content ol,
.step-content ul {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
}

.step-content li {
  margin-bottom: 0.4rem;
  color: #333;
}

.step-content a {
  color: var(--aws-orange);
  text-decoration: none;
}

.step-content a:hover {
  text-decoration: underline;
}

/* Buttons inside step cards keep dark text on the orange background
   (overrides the .step-content a link color above) */
.step-content a.workshop-btn {
  color: #0a0a0a;
  margin-top: 0.5rem;
}

.step-content a.workshop-btn:hover {
  text-decoration: none;
}

.setup-section h2 {
  font-size: 2rem;
  color: #0a0a0a;
  margin-bottom: 0.5rem;
  text-align: center;
}

.setup-section .section-subtitle {
  color: #555;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  text-align: center;
}

.code-block {
  background: #1a1a2e;
  color: #e0e0e0;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  margin: 0.75rem 0;
}

.code-block-wrapper {
  position: relative;
  margin: 0.75rem 0;
}

.code-block-wrapper .code-block {
  margin: 0;
  padding-right: 5.5rem;
  overflow-x: auto;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--aws-orange);
  color: #0a0a0a;
  border: none;
  border-radius: 4px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.copy-btn:hover {
  background: #ec8e00;
}

.copy-btn:focus-visible {
  outline: 2px solid var(--aws-white);
  outline-offset: 2px;
}

.copy-btn.copied {
  background: #2e7d32;
  color: var(--aws-white);
}

.code-block code {
  color: #e0e0e0;
  background: none;
  padding: 0;
}

.hint {
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
}

/* Collapsible reference images inside step cards */
.reference-image {
  margin: 0.75rem 0;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fafafa;
}

.reference-image summary {
  cursor: pointer;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--aws-orange);
}

.reference-image summary:hover {
  text-decoration: underline;
}

.reference-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0 0 6px 6px;
  border-top: 1px solid #e0e0e0;
}

.callout {
  background: #fff8ed;
  border-left: 4px solid var(--aws-orange);
  padding: 0.75rem 1rem;
  border-radius: 0 6px 6px 0;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.verification-box {
  background: var(--aws-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-top: 3px solid #4AF626;
}

.verification-box h3 {
  font-size: 1.25rem;
  color: #0a0a0a;
  margin-bottom: 1rem;
}

.verification-box p {
  margin-bottom: 0.75rem;
  color: #333;
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  padding: 0.4rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: #333;
}

.checklist li::before {
  content: '☐';
  position: absolute;
  left: 0;
  font-size: 1.1rem;
}

.checklist code {
  background: #f0f0f0;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85rem;
}

.help-box {
  background: var(--aws-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-top: 3px solid var(--aws-orange);
}

.help-box h3 {
  font-size: 1.25rem;
  color: #0a0a0a;
  margin-bottom: 0.75rem;
}

.help-box a {
  color: var(--aws-orange);
  text-decoration: none;
}

.help-box a:hover {
  text-decoration: underline;
}

.remote-ide-box {
  background: var(--aws-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-top: 3px solid #d32f2f;
}

.remote-ide-box h3 {
  font-size: 1.25rem;
  color: #0a0a0a;
  margin-bottom: 0.75rem;
}

.remote-ide-box p {
  margin-bottom: 0.75rem;
  color: #333;
}

.remote-ide-box ol {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
}

.remote-ide-box li {
  margin-bottom: 0.5rem;
  color: #333;
}

.remote-ide-box a {
  color: var(--aws-orange);
  text-decoration: none;
}

.remote-ide-box a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

.footer a {
  color: var(--aws-orange);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}


/* ---- User Card login box (Step 2) ---- */
.usercard-box { margin-top: 0.75rem; }
.usercard-box summary.usercard-toggle {
  display: inline-block;
  background: var(--aws-orange);
  color: #0a0a0a;
  padding: 1rem 2.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
  transition: all 0.2s ease;
}
.usercard-box summary.usercard-toggle::-webkit-details-marker { display: none; }
.usercard-box summary.usercard-toggle::after { content: " \25be"; }
.usercard-box[open] summary.usercard-toggle::after { content: " \25b4"; }
.usercard-box summary.usercard-toggle:hover {
  background: #ec8e00;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 153, 0, 0.5);
}
.usercard-content {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--aws-white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  line-height: 1.6;
}
.usercard-content h1, .usercard-content h2, .usercard-content h3 { color: var(--aws-dark); margin: 0.6rem 0 0.3rem; }
.usercard-content p { margin: 0.5rem 0; }
.usercard-content code { background:#f1f3f5; padding:1px 6px; border-radius:4px; font-family:'Courier New', monospace; }
.usercard-content table { border-collapse: collapse; width: 100%; margin: 0.75rem 0; }
.usercard-content th, .usercard-content td { border:1px solid #e0e0e0; padding:6px 10px; text-align:left; }
.usercard-content th { background:#f4f6f8; }

/* ---- Choose Your Adventure cards (Step 3) ---- */
.adventure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.adventure-card {
  background: var(--aws-white);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-top: 3px solid var(--aws-orange);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
a.adventure-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.adventure-card h3 { color: var(--aws-dark); margin-bottom: 0.5rem; font-size: 1.15rem; }
.adventure-card p { color: #555; font-size: 0.9rem; flex: 1; margin: 0; }
.adventure-cta { color: var(--aws-orange); font-weight: 700; margin-top: 1rem; display: inline-block; }
.adventure-card-pending { border-top-color: #cfd6dd; opacity: 0.75; }
.adventure-cta-pending { color: #8a94a0; }
