:root {
  --navy: #152a4a;
  --navy-deep: #0c1a30;
  --gold: #f0c14b;
  --gold-deep: #d4a017;
  --sky: #7ec8f0;
  --paper: #fff8e8;
  --ink: #142033;
  --open: #2f9e5a;
  --open-soft: #d7f5e3;
  --closed: #c44536;
  --closed-soft: #ffe0db;
  --stroke: #1a1a1a;
  --shadow: 4px 4px 0 var(--stroke);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 700;
  background: linear-gradient(180deg, #9fd4f5 0%, #c8e8fa 28%, #f4efe3 70%, #ebe2d0 100%);
  overflow-x: hidden;
}

.sky-wash {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 15% 8%, rgba(255, 236, 150, 0.55), transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 12%, rgba(255, 255, 255, 0.4), transparent 55%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
  background: rgba(21, 42, 74, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
}

/* ——— Top bar ——— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 248, 232, 0.88);
  border-bottom: 3px solid var(--stroke);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--stroke);
  object-fit: cover;
  background: #4a90d9;
}

.topbar nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.topbar nav a {
  position: relative;
}

.topbar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.topbar nav a:hover::after {
  transform: scaleX(1);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(100vh, 820px);
  display: grid;
  place-items: end center;
  padding: 0 1.25rem 3.5rem;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.02);
  animation: bg-drift 18s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 26, 48, 0.15) 0%, rgba(12, 26, 48, 0.05) 35%, rgba(12, 26, 48, 0.55) 100%),
    linear-gradient(90deg, rgba(12, 26, 48, 0.25), transparent 40%, transparent 60%, rgba(12, 26, 48, 0.2));
}

.hero-copy {
  width: min(640px, 100%);
  text-align: center;
  color: var(--paper);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  animation: rise-in 0.8s ease both;
}

.hero-logo {
  margin: 0 auto 0.75rem;
  width: clamp(120px, 22vw, 168px);
  height: auto;
  border-radius: 50%;
  border: 4px solid var(--stroke);
  box-shadow: var(--shadow), 0 0 0 6px rgba(240, 193, 75, 0.35);
  background: #4a90d9;
}

.brand-word {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(3.6rem, 14vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: 0.06em;
  color: var(--gold);
  -webkit-text-stroke: 3px var(--stroke);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--stroke);
}

.tagline {
  margin: 0.85rem auto 1.35rem;
  max-width: 28ch;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  line-height: 1.35;
  font-weight: 800;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border: 3px solid var(--stroke);
  border-radius: 999px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--stroke);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--stroke);
}

.btn.primary {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn.ghost {
  background: rgba(255, 248, 232, 0.92);
  color: var(--navy);
}

.ca-box {
  margin: 1.25rem auto 0;
  width: min(100%, 34rem);
  padding: 0.75rem 0.85rem;
  border: 3px solid var(--stroke);
  border-radius: 1rem;
  background: rgba(255, 248, 232, 0.94);
  box-shadow: var(--shadow);
  text-align: left;
  text-shadow: none;
  color: var(--ink);
}

.ca-label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: "Fredoka", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 32, 51, 0.65);
}

.ca-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ca-address {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.45rem 0.55rem;
  border: 2px solid var(--stroke);
  border-radius: 0.55rem;
  background: #fff;
  font-size: clamp(0.68rem, 2.6vw, 0.85rem);
  font-weight: 700;
  line-height: 1.3;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.btn.ca-copy {
  flex-shrink: 0;
  padding: 0.5rem 0.85rem;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.95rem;
  cursor: pointer;
}

.btn.ca-copy.copied {
  background: var(--open-soft);
  color: var(--open);
}

/* ——— Clock ——— */
.clock-section,
.how,
.hours {
  width: min(880px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3.5rem 0 1rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 32, 51, 0.65);
}

.clock-section h2,
.how h2,
.hours h2 {
  margin: 0 0 1rem;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: 0.02em;
}

.market-panel {
  position: relative;
  padding: 1.5rem 1.35rem 1.35rem;
  border: 4px solid var(--stroke);
  border-radius: 1.35rem;
  box-shadow: 8px 8px 0 var(--stroke);
  background: var(--paper);
  overflow: hidden;
  animation: rise-in 0.7s ease 0.1s both;
}

.market-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--navy) 0 18px,
    var(--gold) 18px 36px
  );
}

.market-panel.open {
  background: linear-gradient(180deg, var(--open-soft), var(--paper) 45%);
}

.market-panel.extended {
  background: linear-gradient(180deg, #fff0c8, var(--paper) 45%);
}

.market-panel.closed {
  background: linear-gradient(180deg, var(--closed-soft), var(--paper) 45%);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.5rem;
  padding: 0.45rem 0.9rem;
  border: 3px solid var(--stroke);
  border-radius: 999px;
  font-family: "Fredoka", sans-serif;
  font-size: 1.05rem;
  background: #fff;
}

.market-panel.open .status-pill {
  color: var(--open);
}

.market-panel.extended .status-pill {
  color: #b57900;
}

.market-panel.closed .status-pill {
  color: var(--closed);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--stroke);
  background: currentColor;
  animation: pulse 1.4s ease-in-out infinite;
}

.status-detail {
  margin: 0.9rem 0 1.25rem;
  font-size: 1.15rem;
  line-height: 1.4;
}

.countdown-label {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(20, 32, 51, 0.6);
}

.digits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.digits div {
  text-align: center;
  padding: 0.75rem 0.35rem;
  border: 3px solid var(--stroke);
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 3px 3px 0 var(--stroke);
}

.digits strong {
  display: block;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.04em;
}

.digits span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(20, 32, 51, 0.55);
}

.et-line {
  margin: 1.1rem 0 0;
  font-size: 0.95rem;
  color: rgba(20, 32, 51, 0.7);
}

.you-line {
  margin-top: 0.35rem;
}

.tz-picker {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(20, 32, 51, 0.6);
}

.tz-picker select {
  appearance: none;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 3px solid var(--stroke);
  border-radius: 0.75rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23142033' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
  background-size: 12px;
  box-shadow: 3px 3px 0 var(--stroke);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.tz-picker select:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.hours-local {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border: 3px solid var(--stroke);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 3px 3px 0 var(--stroke);
}

.hours-local-title {
  margin: 0 0 0.65rem;
  font-family: "Fredoka", sans-serif;
  font-size: 1.05rem;
}

.hours-local-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.hours-local-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.95rem;
}

.hours-local-list span {
  color: rgba(20, 32, 51, 0.58);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  font-weight: 800;
}

.hours-local-list strong {
  font-weight: 800;
  text-align: right;
}

.hours-note {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  color: rgba(20, 32, 51, 0.55);
}

.market-panel.syncing .status-pill {
  color: #8a6a12;
}

/* ——— The Ring chat ——— */
.ring-section {
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.ring-panel {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 4px solid var(--stroke);
  border-radius: 1.25rem;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--stroke);
}

.ring-feed {
  height: min(420px, 55vh);
  overflow-y: auto;
  padding: 0.75rem;
  border: 3px solid var(--stroke);
  border-radius: 0.9rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ring-empty {
  margin: auto;
  text-align: center;
  color: rgba(20, 32, 51, 0.55);
}

.ring-msg {
  padding: 0.65rem 0.75rem;
  border: 2px solid rgba(20, 32, 51, 0.14);
  border-radius: 0.75rem;
  background: rgba(255, 248, 232, 0.65);
}

.ring-msg header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.ring-msg header strong {
  font-family: "Fredoka", sans-serif;
  color: var(--navy);
}

.ring-msg header time {
  color: rgba(20, 32, 51, 0.45);
  font-weight: 700;
}

.ring-msg p {
  margin: 0;
  line-height: 1.35;
  word-break: break-word;
}

.ring-form {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 0.65rem;
  margin-top: 0.85rem;
  align-items: end;
}

.ring-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(20, 32, 51, 0.55);
  font-weight: 800;
}

.ring-field input {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 3px solid var(--stroke);
  border-radius: 0.7rem;
  background: #fff;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

.ring-field input:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.ring-send {
  min-width: 6.5rem;
  height: 2.9rem;
  padding-inline: 1rem;
}

.ring-status {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: rgba(20, 32, 51, 0.6);
}

.ring-status.error {
  color: var(--closed);
}

@media (max-width: 720px) {
  .ring-form {
    grid-template-columns: 1fr;
  }

  .ring-send {
    width: 100%;
  }
}

/* ——— How / hours ——— */
.lead {
  margin: 0 0 1.75rem;
  max-width: 52ch;
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 700;
  color: rgba(20, 32, 51, 0.85);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--stroke);
  border-radius: 50%;
  background: var(--gold);
  font-family: "Fredoka", sans-serif;
  font-size: 1.2rem;
  box-shadow: 3px 3px 0 var(--stroke);
}

.steps h3 {
  margin: 0.15rem 0 0.35rem;
  font-family: "Fredoka", sans-serif;
  font-size: 1.25rem;
}

.steps p {
  margin: 0;
  line-height: 1.5;
  font-weight: 600;
  color: rgba(20, 32, 51, 0.8);
}

.hour-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.hour-list li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.85rem;
  align-items: baseline;
  padding-bottom: 0.85rem;
  border-bottom: 3px dashed rgba(21, 42, 74, 0.2);
  line-height: 1.4;
}

.hour-list span {
  font-family: "Fredoka", sans-serif;
  color: var(--navy);
}

/* ——— Footer ——— */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 3rem;
  padding: 2rem 1rem 2.75rem;
  border-top: 3px solid var(--stroke);
  background: rgba(255, 248, 232, 0.7);
  text-align: center;
}

.footer img {
  border-radius: 50%;
  border: 3px solid var(--stroke);
  background: #4a90d9;
}

.footer > p {
  margin: 0;
  font-family: "Fredoka", sans-serif;
}

.legal {
  max-width: 62ch;
  margin-top: 0.35rem;
  padding: 1rem 1.1rem;
  border: 2px solid rgba(20, 32, 51, 0.18);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.legal p {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 600;
  color: rgba(20, 32, 51, 0.72);
  font-family: "Nunito", system-ui, sans-serif;
}

.legal p:last-child {
  margin-bottom: 0;
}

/* ——— Motion ——— */
.floaty {
  animation: floaty 3.2s ease-in-out infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.7;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bg-drift {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.06) translateY(-1.5%);
  }
}

@media (max-width: 640px) {
  .topbar nav {
    gap: 0.65rem;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 78vh;
    place-items: end center;
    padding-bottom: 2.5rem;
  }

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

  .hour-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
