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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9fafb;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2, h3 {
  line-height: 1.2;
  color: #1a202c;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Header */
.site-header {
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2b6cb0;
  text-decoration: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  color: #4a5568;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #2b6cb0;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #ebf4ff 0%, #e2e8f0 100%);
  padding: 4rem 0;
  text-align: center;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.btn-primary {
  display: inline-block;
  background-color: #2b6cb0;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary:hover {
  background-color: #2c5282;
}

/* How It Works */
.how-it-works {
  padding: 4rem 0;
  background-color: #fff;
}

.steps {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.step {
  flex: 1 1 250px;
  text-align: center;
  padding: 1.5rem;
  background: #f7fafc;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.step-icon {
  color: #2b6cb0;
  margin-bottom: 1rem;
}

/* Planner */
.planner {
  padding: 4rem 0;
  background-color: #f9fafb;
}

.app-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 2rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-group {
  flex: 1 1 200px;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: #4a5568;
}

.form-group input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #cbd5e0;
  border-radius: 0.25rem;
  font-size: 1rem;
}

.applications-list {
  display: grid;
  gap: 1.5rem;
}

.application-card {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-left: 4px solid #2b6cb0;
}

.application-card h3 {
  margin-bottom: 0.5rem;
  color: #2b6cb0;
}

.timeline {
  margin: 1rem 0;
}

.timeline p {
  margin-bottom: 0.5rem;
}

.template-box {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  padding: 1rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-btn {
  background: #edf2f7;
  border: 1px solid #cbd5e0;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

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

.delete-btn {
  background: #fed7d7;
  border: 1px solid #feb2b2;
  color: #c53030;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  margin-left: 0.5rem;
}

.delete-btn:hover {
  background: #feb2b2;
}

/* Tips */
.tips {
  padding: 4rem 0;
  background-color: #fff;
}

.tips-list {
  max-width: 700px;
  margin: 0 auto;
  list-style: none;
}

.tips-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.tips-list li:last-child {
  border-bottom: none;
}

/* Footer */
.site-footer {
  background-color: #1a202c;
  color: #a0aec0;
  padding: 2rem 0;
  text-align: center;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.footer-nav a {
  color: #a0aec0;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .steps {
    flex-direction: column;
  }
  .app-form {
    flex-direction: column;
  }
  .site-header .container {
    flex-direction: column;
    gap: 0.5rem;
  }
  .main-nav ul {
    gap: 1rem;
  }
}

/* Utility */
.text-center {
  text-align: center;
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
