:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --border: #e4e4e7;
  --text: #18181b;
  --text-muted: #71717a;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0b;
    --surface: #18181b;
    --surface-2: #27272a;
    --border: #27272a;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --accent: #60a5fa;
    --accent-hover: #3b82f6;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }

.nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--accent); }

main { flex: 1; padding: 3rem 0; }

.hero { text-align: center; margin-bottom: 3rem; }
.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.hero p { color: var(--text-muted); font-size: 1.125rem; }

/* Controls */
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.btn:hover { background: var(--accent-hover); }

.btn-secondary { background: var(--surface-2); color: var(--text); }
.btn-secondary:hover { background: var(--border); }

.toggle-group {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.toggle-group button {
  padding: 0.4rem 0.9rem;
  background: transparent;
  border: none;
  border-radius: 5px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.toggle-group button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* Clock grid */
.clock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.clock-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.15s;
}
.clock-card:hover { border-color: var(--accent); }

.clock-card .remove {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
}
.clock-card:hover .remove { opacity: 1; }
.clock-card .remove:hover {
  background: var(--surface-2);
  color: var(--danger);
  opacity: 1;
}

.clock-head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
}
.clock-flag { font-size: 1.5rem; line-height: 1; }
.clock-name { font-weight: 600; font-size: 1rem; }
.clock-country { color: var(--text-muted); font-size: 0.8rem; }

.local-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 1px 8px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  vertical-align: 2px;
  white-space: nowrap;
}
@media (prefers-color-scheme: dark) {
  .local-badge { background: rgba(96, 165, 250, 0.18); }
}

.clock-time {
  font-size: 2.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.clock-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  gap: 0.5rem;
}
.clock-meta .offset {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 100;
  padding: 4rem 1rem;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 480px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.modal-head {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.modal-head input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.modal-head input:focus {
  outline: none;
  border-color: var(--accent);
}

.modal-list {
  overflow-y: auto;
  padding: 0.5rem;
}

.city-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.1s;
}
.city-option:hover { background: var(--surface-2); }
.city-option.added { opacity: 0.45; cursor: not-allowed; }
.city-option-flag { font-size: 1.25rem; line-height: 1; }
.city-option-body { flex: 1; min-width: 0; }
.city-option-name { font-weight: 500; }
.city-option-country { color: var(--text-muted); font-size: 0.8rem; }
.city-option-added {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
}
.city-option-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Meeting Planner */
.legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
.swatch-work { background: #bbf7d0; }
.swatch-edge { background: #fed7aa; }
.swatch-sleep { background: #1e293b; }
@media (prefers-color-scheme: dark) {
  .swatch-work { background: #14532d; }
  .swatch-edge { background: #431407; }
  .swatch-sleep { background: #0f172a; }
}

.planner-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.planner-wrap::-webkit-scrollbar { height: 10px; }
.planner-wrap::-webkit-scrollbar-track {
  background: var(--surface-2);
  border-radius: 5px;
}
.planner-wrap::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
}
.planner-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.planner-grid {
  display: flex;
  flex-direction: column;
  width: max-content;
  min-width: 100%;
  gap: 4px;
}

.planner-row {
  display: grid;
  grid-template-columns: 180px repeat(24, minmax(28px, 1fr));
  gap: 3px;
  align-items: stretch;
}

.planner-header {
  margin-bottom: 4px;
}

.planner-cell-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 0.25rem;
  font-size: 0.875rem;
}

.planner-header-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.planner-flag { font-size: 1.25rem; line-height: 1; }

.planner-city-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.planner-city-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
}
.planner-city-tz {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.planner-remove {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.planner-row:hover .planner-remove { opacity: 1; }
.planner-remove:hover {
  background: var(--surface-2);
  color: var(--danger);
  opacity: 1;
}

.planner-cell-hour {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.35rem 0;
  cursor: pointer;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  background: transparent;
  border: none;
  font-family: inherit;
}
.planner-cell-hour:hover {
  background: var(--surface-2);
  color: var(--text);
}
.planner-cell-hour.now {
  color: var(--accent);
  font-weight: 700;
}
.planner-cell-hour.selected {
  background: var(--accent);
  color: white;
}

.planner-cell {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: filter 0.1s, outline-color 0.15s;
}
.planner-cell:hover { filter: brightness(0.93); }

.planner-cell-sleep { background: #1e293b; color: #94a3b8; }
.planner-cell-early { background: #fef3c7; color: #92400e; }
.planner-cell-evening { background: #fed7aa; color: #9a3412; }
.planner-cell-work { background: #bbf7d0; color: #14532d; }

@media (prefers-color-scheme: dark) {
  .planner-cell-sleep { background: #0f172a; color: #475569; }
  .planner-cell-early { background: #422006; color: #fbbf24; }
  .planner-cell-evening { background: #431407; color: #fb923c; }
  .planner-cell-work { background: #14532d; color: #86efac; }
}

.planner-cell.selected {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  z-index: 1;
  position: relative;
}

/* Detail panel */
.detail-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.detail-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.5rem;
}

.detail-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.detail-verdict {
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.verdict-good {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}
.verdict-bad {
  background: rgba(251, 146, 60, 0.12);
  color: #c2410c;
}
@media (prefers-color-scheme: dark) {
  .verdict-good { background: rgba(34, 197, 94, 0.16); color: #4ade80; }
  .verdict-bad { background: rgba(251, 146, 60, 0.16); color: #fb923c; }
}

.detail-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}
.detail-row:first-of-type { border-top: none; }

.detail-city {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.detail-time {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.detail-time-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.detail-day {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.detail-category {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  white-space: nowrap;
}
.detail-category-work {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}
.detail-category-early,
.detail-category-evening {
  background: rgba(251, 146, 60, 0.15);
  color: #c2410c;
}
.detail-category-sleep {
  background: rgba(100, 116, 139, 0.15);
  color: #475569;
}
@media (prefers-color-scheme: dark) {
  .detail-category-work { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
  .detail-category-early,
  .detail-category-evening { background: rgba(251, 146, 60, 0.18); color: #fb923c; }
  .detail-category-sleep { background: rgba(100, 116, 139, 0.2); color: #94a3b8; }
}

/* Converter */
.converter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem 1.5rem;
  margin-bottom: 1.5rem;
}

.converter-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}

.source-controls {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 0.625rem;
  align-items: stretch;
}

.source-city-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  text-align: left;
  transition: border-color 0.15s;
  min-width: 0;
}
.source-city-btn:hover { border-color: var(--accent); }

.source-city-flag { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }

.source-city-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.source-city-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.source-city-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.source-city-arrow { color: var(--text-muted); font-size: 0.875rem; flex-shrink: 0; }

.converter-input {
  padding: 0.625rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  color-scheme: light dark;
  min-width: 0;
}
.converter-input:focus {
  outline: none;
  border-color: var(--accent);
}

.destinations-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 1rem;
}
.destinations-header .converter-label { margin-bottom: 0; }

.destination-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.dest-empty {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
}

.dest-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.dest-city {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.dest-flag { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.dest-name {
  font-weight: 600;
  font-size: 1rem;
}
.dest-country {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.dest-time { text-align: right; min-width: 0; }
.dest-time-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.dest-time-day {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}
.dest-time-day.different {
  color: var(--accent);
  font-weight: 600;
}

.dest-remove {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.dest-row:hover .dest-remove { opacity: 1; }
.dest-remove:hover {
  background: var(--surface-2);
  color: var(--danger);
  opacity: 1;
}

@media (max-width: 640px) {
  .source-controls {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .source-city-btn { grid-column: 1 / -1; }
  #now-btn { grid-column: 1 / -1; }
  .destinations-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .destinations-header .btn { width: 100%; }
  .dest-row {
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
    padding: 1rem;
  }
  .dest-time { text-align: left; grid-column: 1; }
  .dest-time-value { font-size: 1.4rem; }
  .dest-remove { grid-row: 1; grid-column: 2; }
}

/* Countdown */
.countdown-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.countdown-title-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  text-align: center;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  padding: 0.5rem 0;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  border-bottom: 2px dashed transparent;
  transition: border-color 0.15s, color 0.15s;
}
.countdown-title-input:hover { border-bottom-color: var(--border); }
.countdown-title-input:focus { border-bottom-color: var(--accent); }
.countdown-title-input::placeholder { color: var(--text-muted); }

.countdown-display {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.time-tile {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 1.5rem 0.5rem;
}

.time-value {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.time-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Past-state tiles stay full-contrast — the status pill below carries the indicator */
.is-past .time-value { color: var(--text); }
.is-past .time-tile { opacity: 1; }

.countdown-target {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
.countdown-target strong {
  color: inherit;
  font-weight: 700;
}
.is-past .countdown-target {
  background: rgba(251, 146, 60, 0.14);
  color: #c2410c;
}
.is-past .countdown-title-input { color: #c2410c; }
.status-future,
.status-past { font-weight: 700; }

@media (prefers-color-scheme: dark) {
  .countdown-target { background: rgba(96, 165, 250, 0.18); }
  .is-past .countdown-target { background: rgba(251, 146, 60, 0.18); color: #fb923c; }
  .is-past .countdown-title-input { color: #fb923c; }
}

.countdown-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.625rem;
  max-width: 520px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .countdown-card { padding: 1.5rem 1rem; }
  .countdown-title-input { font-size: 1.25rem; }
  .countdown-display { gap: 0.4rem; }
  .time-tile { padding: 1rem 0.25rem; }
  .countdown-controls {
    grid-template-columns: 1fr 1fr;
  }
  .countdown-controls .btn { grid-column: 1 / -1; }
}

/* Content pages (about, contact, privacy, terms) */
.content-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0.5rem 0 2rem;
}
.content-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.content-page .effective {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}
.content-page h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2.25rem;
  margin-bottom: 0.625rem;
}
.content-page p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text);
}
.content-page p strong { color: var(--text); font-weight: 600; }
.content-page ul {
  margin: 0 0 1rem 1.25rem;
  line-height: 1.7;
}
.content-page ul li { margin-bottom: 0.4rem; }
.content-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.content-page a:hover { color: var(--accent-hover); }
.content-page code {
  background: var(--surface-2);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.contact-email {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 2rem;
}

/* FAQ accordion */
.faq {
  margin-top: 0.5rem;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-of-type {
  border-top: 1px solid var(--border);
}
.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 0.25rem 1.1rem 0;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.15s;
  font-size: 1rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.15s;
  flex-shrink: 0;
  margin-top: -3px;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 3px;
  border-color: var(--accent);
}
.faq-item summary:hover {
  color: var(--accent);
}
.faq-item summary:hover::after {
  border-color: var(--accent);
}
.faq-item p {
  padding: 0 0.25rem 1.1rem 0;
  margin-bottom: 0;
  line-height: 1.7;
  color: var(--text);
}

/* Explainer content under tools */
.content-section {
  max-width: 800px;
  margin: 3rem auto 0;
}
.content-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.625rem;
}
.content-section h2:first-of-type { margin-top: 0; }
.content-section p {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--text);
}
.content-section ul {
  margin: 0 0 1rem 1.25rem;
  line-height: 1.7;
}
.content-section ul li { margin-bottom: 0.4rem; }
.content-section strong { font-weight: 600; }

/* Footer nav */
.footer-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.875rem;
}
.footer-nav a { font-weight: 500; }
.footer-tagline { font-size: 0.85rem; }

/* Coming soon */
.coming-soon {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
}
.coming-soon h2 {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}
.coming-soon p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--text); }

/* Mobile */
@media (max-width: 640px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .nav { width: 100%; gap: 1rem; }
  main { padding: 2rem 0; }
  .clock-time { font-size: 2rem; }
  .clock-card .remove { opacity: 0.75; }
  .planner-remove { opacity: 0.75; }
}
