:root {
  --ocean-950: #031e35;
  --ocean-900: #073b5c;
  --ocean-800: #075179;
  --ocean-700: #096a8f;
  --lagoon-500: #00a8a8;
  --lagoon-300: #5ed8d3;
  --sky-300: #8dd6f1;
  --coral-500: #f06a5d;
  --sand-300: #f3c969;
  --cloud-50: #f5f8fa;
  --cloud-100: #eaf1f4;
  --slate-500: #607482;
  --ink-900: #102a3a;
  --outline: #d7e2e6;
  --primary-container: #d3eff7;
  --secondary-container: #ffdad5;
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--cloud-50);
  color: var(--ink-900);
}

.app {
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin: 0 auto;
  min-height: 100dvh;
}

.topbar {
  background: linear-gradient(90deg, var(--ocean-950), var(--ocean-700));
  color: #fff;
  padding: calc(10px + var(--safe-top)) 18px 14px;
  position: sticky;
  top: 0;
  z-index: 20;
  overflow: hidden;
}
.topbar-pattern,
.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.topbar-pattern {
  opacity: 0.09;
  background:
    radial-gradient(ellipse at 80% -10%, transparent 40%, #fff 41%, transparent 42%),
    radial-gradient(ellipse at 12% 120%, transparent 46%, #fff 47%, transparent 48%);
}
.topbar-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.eyebrow {
  color: var(--lagoon-300);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.topbar h1 {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 650;
}

.content {
  flex: 1;
  padding: 18px 16px calc(88px + var(--safe-bottom));
}

.stack { display: flex; flex-direction: column; gap: 14px; }

.hero, .card, .state {
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(16, 42, 58, 0.06);
}
.hero {
  background: linear-gradient(135deg, var(--ocean-950), var(--ocean-700));
  color: #fff;
  padding: 22px;
  position: relative;
  overflow: hidden;
  border: 0;
}
.hero-pattern {
  opacity: 0.1;
  background: repeating-radial-gradient(circle at 90% 10%, transparent 0 18px, #fff 19px 20px);
}
.hero > * { position: relative; }
.hero-logo {
  width: 104px;
  height: 104px;
  object-fit: contain;
  display: block;
}
.hero h2 {
  margin: 10px 0 12px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 750;
}
.fact {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 6px 0;
  color: rgba(255,255,255,0.92);
  font-size: 15px;
}
.fact svg { width: 20px; height: 20px; fill: var(--sand-300); flex-shrink: 0; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}
.hero .btn-coral { margin-top: 8px; }
.btn-coral { background: var(--coral-500); color: #fff; }
.btn-lagoon { background: var(--lagoon-500); color: #fff; width: 100%; }
.btn-ghost {
  background: var(--cloud-100);
  color: var(--ocean-800);
  width: 100%;
}
.btn + .btn { margin-top: 8px; }

.card { padding: 19px; }
.opening { background: var(--secondary-container); border-color: transparent; }
.organizer { background: var(--primary-container); border-color: transparent; }
.muted { color: var(--slate-500); font-size: 14px; line-height: 1.45; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.label {
  color: var(--coral-500);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.label.lagoon { color: var(--lagoon-500); }
.row-icon { display: flex; gap: 12px; align-items: flex-start; }
.row-icon svg { width: 28px; height: 28px; fill: var(--coral-500); flex-shrink: 0; }
.row-icon.info svg { fill: var(--lagoon-500); }

.section-head { margin: 6px 0 0; }
.section-head .kicker {
  color: var(--ocean-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-head h2 { margin: 4px 0 0; font-size: 22px; }

.deadlines { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.deadline svg { width: 22px; height: 22px; fill: var(--coral-500); margin-bottom: 8px; display: block; }
.deadlines .deadline:last-child svg { fill: var(--lagoon-500); }
.deadline b { display: block; font-size: 15px; margin-bottom: 4px; color: var(--slate-500); font-weight: 650; }
.deadline span { font-size: 18px; font-weight: 700; }
.hero > svg { width: 30px; height: 30px; fill: #fff; }
.accent-coral { color: var(--coral-500); }
.accent-lagoon { color: var(--lagoon-500); }

.section-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.section-card:active { transform: scale(0.99); }
.search {
  width: 100%;
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--outline);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
}
.chip.active { background: var(--ocean-800); color: #fff; border-color: var(--ocean-800); }
.talk-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 999px;
}
.badge-oral { background: #d3eff7; color: var(--ocean-950); }
.badge-poster { background: #ffdad5; color: #3d0805; }
.heart {
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  color: #b9c8cf;
}
.heart.on { color: var(--coral-500); }
.back {
  border: 0;
  background: transparent;
  color: var(--ocean-800);
  font-weight: 650;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.swatch {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}
.s1 { background: rgba(243, 201, 105, 0.28); color: var(--ocean-950); }
.s2 { background: rgba(141, 214, 241, 0.35); color: var(--ocean-950); }
.s3 { background: rgba(0, 168, 168, 0.22); color: var(--lagoon-500); }
.s4 { background: rgba(240, 106, 93, 0.22); color: var(--coral-500); }

.logo-imgg {
  width: 100%;
  height: 138px;
  object-fit: contain;
  display: block;
}

.state { padding: 22px 18px; text-align: left; }
.state h3 { margin: 10px 0 6px; }

.install {
  display: none;
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: 18px;
  padding: 12px 14px;
  margin: 0 16px 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.install.show { display: flex; }
.install p { margin: 0; font-size: 13px; color: var(--slate-500); }
.install b { display: block; color: var(--ink-900); margin-bottom: 2px; }
.install .btn { flex-shrink: 0; padding: 10px 14px; font-size: 13px; }

.bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-top: 1px solid var(--outline);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 4px calc(8px + var(--safe-bottom));
  z-index: 30;
}
.nav-btn {
  border: 0;
  background: transparent;
  color: var(--slate-500);
  font-size: 11px;
  font-weight: 650;
  padding: 6px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.nav-btn svg { width: 22px; height: 22px; }
.nav-btn.active { color: var(--coral-500); }

a { color: var(--ocean-800); }
.hero .muted { color: rgba(255,255,255,.82); }

@media (max-width: 359px) {
  .deadlines { grid-template-columns: 1fr; }
}

@media (min-width: 720px) {
  body { background: #d7e2ea; }
  .app {
    margin-top: 16px;
    background: var(--cloud-50);
    box-shadow: 0 18px 50px rgba(3, 30, 53, 0.16);
    min-height: calc(100dvh - 32px);
    border-radius: 28px;
    overflow: hidden;
  }
  .bottom { border-radius: 0 0 28px 28px; }
}
