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

:root {
  --bg: #f5f5f4;
  --text: #3d3d3d;
  --text-muted: #8a8a8a;
  --border: #d4d4d4;
  --accent: #6b7280;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.state {
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.hidden {
  display: none;
}

h1 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

h1.logo {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-style: italic;
  min-height: 1.4em;
}

.subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  color: var(--text);
  margin-bottom: 1.5rem;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
}

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

.duration-options {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.duration-options button {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s;
}

.duration-options button:hover {
  border-color: var(--accent);
}

.duration-options button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Waiting state */
.waiting-label {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.time-display {
  font-size: 2.5rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  margin-bottom: 2rem;
}

.text-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Decision state */
.decision-prompt {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.intention {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 2rem;
  font-style: italic;
}

.decision-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.decision-buttons button {
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  color: var(--text);
  cursor: pointer;
  min-width: 80px;
}

.decision-buttons button:hover {
  border-color: var(--accent);
}

/* Footer */
footer {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  margin-bottom: 0.75rem;
}

.footer-statements {
  font-size: 0.75rem;
  opacity: 0.8;
}

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

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

.sep {
  margin: 0 0.5rem;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 360px;
  position: relative;
}

.modal-content h2 {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  color: var(--text);
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  color: var(--text);
  margin-bottom: 1rem;
  font-family: inherit;
  resize: vertical;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

#contact-form button {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  color: var(--text);
  cursor: pointer;
}

#contact-form button:hover {
  border-color: var(--accent);
}

#contact-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.form-status.success {
  color: #059669;
}

.form-status.error {
  color: #dc2626;
}

/* Minimal responsive */
@media (max-width: 400px) {
  .duration-options button {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  h1.logo {
    font-size: 2rem;
  }
}
