:root {
  --bg-top: #f2e9d8;
  --bg-bottom: #f7f4ee;
  --ink: #1f2933;
  --muted: #52606d;
  --card: rgba(255, 252, 245, 0.84);
  --card-strong: #fffaf1;
  --line: rgba(47, 72, 88, 0.14);
  --accent: #c8553d;
  --accent-deep: #8b3a2c;
  --accent-soft: #f5b971;
  --shadow: 0 24px 60px rgba(75, 60, 35, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 244, 205, 0.9), transparent 34%),
    radial-gradient(circle at top right, rgba(238, 108, 77, 0.18), transparent 30%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.hero {
  padding: 20px 8px 30px;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--accent-deep);
}

.hero h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2.6rem, 4vw, 4.8rem);
  line-height: 0.96;
  max-width: 12ch;
}

.hero-copy {
  max-width: 62ch;
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.banner-stack {
  display: grid;
  gap: 20px;
}

.mode-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow: clip;
}

.mode-banner {
  width: 100%;
  border: 0;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.6), transparent),
    linear-gradient(90deg, rgba(248, 208, 114, 0.26), rgba(238, 108, 77, 0.18));
  cursor: pointer;
}

.mode-banner strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 2vw, 2.25rem);
}

.mode-banner small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.98rem;
}

.mode-pill {
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(139, 58, 44, 0.14);
}

.mode-panel {
  padding: 0 26px 28px;
}

.planner-form {
  display: grid;
  gap: 22px;
}

.form-grid {
  display: grid;
  gap: 22px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-col {
  grid-template-columns: 1fr 1.05fr 1.05fr;
}

.input-block {
  display: grid;
  gap: 12px;
}

.input-block label,
.timezone-select-label span {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

input[type="date"],
.timezone-select {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  padding: 0 14px;
  color: var(--ink);
}

.submit-btn {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: white;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(200, 85, 61, 0.28);
  cursor: pointer;
}

.clock-card,
.timezone-card,
.results {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card-strong);
  padding: 18px;
}

.clock-card {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.clock-face {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 0 26%, rgba(245, 185, 113, 0.45) 27%, rgba(245, 185, 113, 0.2) 28%, rgba(255, 255, 255, 0.94) 29% 100%);
  border: 1px solid rgba(82, 96, 109, 0.18);
  box-shadow: inset 0 8px 24px rgba(248, 208, 114, 0.22);
}

.clock-markers {
  position: absolute;
  inset: 0;
}

.marker {
  position: absolute;
  left: calc(50% - 1px);
  top: 10px;
  width: 2px;
  height: 16px;
  border-radius: 999px;
  background: rgba(31, 41, 51, 0.24);
  transform-origin: 1px 130px;
}

.marker.major {
  height: 22px;
  width: 3px;
  left: calc(50% - 1.5px);
  background: rgba(31, 41, 51, 0.5);
}

.hand {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  transform-origin: 50% calc(100% - 18px);
  border: 0;
  border-radius: 999px;
  translate: -50% calc(-100% + 18px);
  cursor: grab;
}

.hand:active {
  cursor: grabbing;
}

.hour-hand {
  height: 88px;
  background: #25323e;
}

.minute-hand {
  height: 120px;
  width: 4px;
  background: var(--accent);
}

.clock-center {
  position: absolute;
  inset: calc(50% - 10px);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  box-shadow: 0 0 0 4px rgba(255, 250, 241, 0.95);
}

.clock-readout {
  width: 100%;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.time-output {
  font-size: 1.4rem;
  font-weight: 700;
}

.time-fields {
  display: inline-grid;
  grid-template-columns: 64px auto 64px;
  align-items: center;
  gap: 8px;
}

.time-fields input {
  width: 100%;
  min-height: 42px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
}

.timezone-card {
  display: grid;
  gap: 14px;
}

.timezone-map {
  width: 100%;
  display: block;
  border-radius: 20px;
  overflow: hidden;
}

.map-ocean {
  fill: #113b53;
}

.map-haze ellipse {
  fill: rgba(255, 255, 255, 0.09);
}

.map-land path {
  fill: rgba(240, 233, 214, 0.88);
  stroke: rgba(255, 250, 241, 0.45);
  stroke-width: 3;
}

.timezone-node {
  fill: rgba(255, 250, 241, 0.92);
  stroke: rgba(31, 41, 51, 0.25);
  stroke-width: 2;
  cursor: pointer;
  transition: transform 140ms ease, fill 140ms ease;
}

.timezone-node:hover,
.timezone-node.active {
  fill: url(#mapGlow);
  transform: scale(1.06);
}

.results {
  margin-top: 20px;
  display: none;
  gap: 18px;
}

.results.visible {
  display: grid;
}

.summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.summary-card {
  border-radius: 18px;
  padding: 14px;
  background: rgba(248, 208, 114, 0.15);
}

.summary-card strong {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

.summary-card span {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.plan-list {
  display: grid;
  gap: 10px;
}

.plan-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(31, 41, 51, 0.04);
}

.plan-item strong {
  display: block;
}

.plan-item span,
.timezone-help,
.empty-state {
  color: var(--muted);
}

@media (max-width: 980px) {
  .two-col,
  .three-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .mode-banner,
  .mode-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .mode-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}
