:root {
  color-scheme: dark;
  --ink: #f4f1e9;
  --muted: #b8c3ba;
  --panel: rgba(10, 30, 29, 0.86);
  --line: rgba(244, 241, 233, 0.16);
  --green: #55c7a4;
  --coral: #ff8a63;
  --amber: #e9bc65;
  --sea: #102526;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #091716;
  color: var(--ink);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.app {
  min-height: 100vh;
  overflow-x: hidden;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-content: space-between;
  padding: clamp(18px, 3vw, 32px);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("./assets/canggu-night.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 12, 13, 0.9), rgba(3, 12, 13, 0.46) 54%, rgba(3, 12, 13, 0.2)),
    linear-gradient(0deg, #091716 0%, rgba(9, 23, 22, 0.1) 45%);
}

.topbar,
.summary-band,
.info-band,
.control-band {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.eyebrow,
.area,
.meta,
.fit,
.info-band p {
  color: var(--muted);
}

.install-button,
#useNow,
.chips button,
.actions a {
  min-height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  padding: 0 14px;
  text-decoration: none;
  display: inline-grid;
  place-items: center;
}

.install-button:hover,
#useNow:hover,
.chips button:hover,
.actions a:hover {
  border-color: rgba(255, 255, 255, 0.38);
}

.hero-copy {
  width: min(720px, 100%);
  margin: 18vh auto 10vh;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 11ch;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  max-width: 640px;
  color: #e7e0d4;
  font-size: clamp(1rem, 1.8vw, 1.24rem);
  line-height: 1.8;
}

main {
  margin-top: -8vh;
  position: relative;
  z-index: 2;
}

.control-band {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(280px, 1.2fr);
  gap: 18px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.time-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

output {
  display: block;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 850;
  line-height: 1;
}

.time-slider {
  display: grid;
  align-content: center;
  gap: 10px;
  color: var(--muted);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--coral);
}

.chips {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chips button.active {
  background: var(--green);
  color: #06211b;
  border-color: transparent;
  font-weight: 800;
}

.summary-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(280px, 1fr);
  gap: 24px;
  padding: 54px 18px 22px;
  align-items: end;
}

.summary-band h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.summary-band p {
  color: #ddd6ca;
  line-height: 1.8;
}

.bar-list {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.bar-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0;
  min-height: 190px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.score {
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  display: grid;
  align-content: space-between;
}

.rank {
  color: var(--amber);
  font-size: 2rem;
  font-weight: 850;
}

.fit {
  writing-mode: vertical-rl;
  justify-self: end;
}

.bar-body {
  padding: 18px;
}

.bar-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.bar-head h3 {
  margin-bottom: 4px;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.price {
  color: var(--green);
  font-weight: 850;
  white-space: nowrap;
}

.reason {
  color: #eee7dd;
  line-height: 1.7;
}

.meta {
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.tags,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d6ded7;
  padding: 6px 9px;
  font-size: 0.82rem;
}

.actions {
  margin-top: 16px;
}

.actions .primary-link {
  background: var(--coral);
  border-color: transparent;
  color: #240b05;
  font-weight: 850;
}

.info-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 42px 18px 70px;
}

.info-band h2 {
  color: var(--amber);
}

.info-band p {
  line-height: 1.75;
}

@media (max-width: 760px) {
  .hero {
    min-height: 84svh;
  }

  .hero-copy {
    margin: 12vh auto 9vh;
  }

  h1 {
    max-width: 8ch;
  }

  .control-band,
  .summary-band,
  .info-band {
    grid-template-columns: 1fr;
  }

  .control-band {
    width: calc(100% - 24px);
  }

  .time-panel {
    align-items: end;
  }

  .bar-card {
    grid-template-columns: 1fr;
  }

  .score {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .fit {
    writing-mode: horizontal-tb;
  }
}
