:root {
  --navy: #182740;
  --navy-2: #20344f;
  --navy-3: #0f1b2f;
  --gold: #f0da8a;
  --gold-d: #c9b261;
  --ink: #f6f1e0;
  --mute: #b4bccb;
  --green: #3f9a4d;
  --line: rgba(240, 218, 138, .22);
  --serif: "Cinzel", Georgia, serif;
  --ital: "Cormorant Garamond", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

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

body {
  margin: 0;
  background: var(--navy-3);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.card {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* hero */
.hero {
  position: relative;
  padding: 36px 24px 28px;
  text-align: center;
}

.zodiac {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 380px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%);
}

.zodiac span {
  position: absolute;
  color: var(--gold);
  font-family: "Noto Sans Symbols", "Segoe UI Symbol", sans-serif;
  line-height: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .zodiac span {
    will-change: transform;
  }
}

.hero > *:not(.zodiac) {
  position: relative;
  z-index: 1;
}

.compass-foot {
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  opacity: .55;
}

.photo {
  position: relative;
  width: 176px;
  height: 176px;
  margin: 28px auto 0;
  border-radius: 50%;
  padding: 5px;
  background: conic-gradient(var(--gold), var(--gold-d), var(--gold));
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 50%;
  border: 4px solid var(--navy);
  display: block;
}

.logo {
  position: absolute;
  right: -6px;
  bottom: 2px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
  border: 3px solid var(--navy);
}

.logo svg {
  width: 34px;
  height: 34px;
}

h1 {
  font: 600 36px/1.1 var(--serif);
  margin: 22px 0 6px;
  letter-spacing: .06em;
  color: var(--gold);
}

.role {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.tag {
  margin: 12px auto 0;
  max-width: 30ch;
  font: 500 italic 21px/1.3 var(--ital);
  color: var(--mute);
}

.gu {
  font-family: "Noto Sans Gujarati", var(--sans);
  font-size: 13px;
  color: var(--gold-d);
  margin: 6px 0 0;
  font-style: normal;
}

.actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0 0;
}

.btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 27, 47, .55);
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: background .2s, border-color .2s;
}

.btn:hover {
  background: var(--navy-2);
  border-color: var(--gold);
}

.btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn.pri {
  background: var(--gold);
  color: var(--navy-3);
  border-color: var(--gold);
}

.btn.pri svg {
  stroke: var(--navy-3);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 22px 24px 0;
  border-block: 1px solid var(--line);
}

.stats div {
  padding: 14px 0;
  text-align: center;
}

.stats div + div {
  border-left: 1px solid var(--line);
}

.stats b {
  display: block;
  font: 600 34px/1 var(--serif);
  color: var(--gold);
}

.stats span {
  font-size: 13px;
  color: var(--mute);
}

/* tabs */
.tabs {
  margin: 28px 24px 0;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--navy-3);
  position: relative;
}

.tabs button {
  flex: 1;
  position: relative;
  z-index: 1;
  background: none;
  border: 0;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
  transition: color .25s;
}

.tabs button[aria-selected=true] {
  color: var(--navy-3);
}

.pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  border-radius: 999px;
  background: var(--gold);
}

.panels {
  padding: 22px 24px 8px;
}

.panel[hidden] {
  display: none;
}

h2 {
  font: 600 21px/1.25 var(--serif);
  letter-spacing: .03em;
  margin: 0 0 10px;
  color: var(--gold);
}

p {
  margin: 0 0 12px;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.list li {
  padding-left: 22px;
  position: relative;
  font-size: 15px;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.chips span {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
}

.chips--spaced {
  margin-top: 16px;
}

.chips--flush {
  margin: 0;
}

/* accordion */
.acc {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
  background: rgba(15, 27, 47, .4);
}

.acc > button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: 0;
  padding: 14px 16px;
  font: 600 17px/1.25 var(--serif);
  letter-spacing: .03em;
  color: var(--ink);
  text-align: left;
}

.acc .chev {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
  flex: none;
}

.acc .body {
  height: 0;
  overflow: hidden;
}

.acc .body .list {
  padding: 0 16px 16px;
}

/* slider */
.slider {
  margin: 28px 0 0;
  padding: 0 24px;
}

.viewport {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  touch-action: pan-y;
}

.track {
  display: flex;
}

.slide {
  flex: 0 0 100%;
  padding: 26px 22px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-2), var(--navy-3));
}

.slide h3 {
  font: 600 19px/1.25 var(--serif);
  letter-spacing: .03em;
  margin: 0 0 6px;
  color: var(--gold);
}

.slide p {
  margin: 0;
  color: var(--mute);
  font-size: 15px;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.dots button {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  border: 0;
  padding: 0;
  background: var(--line);
  transition: width .25s, background .25s;
}

.dots button[aria-current=true] {
  width: 24px;
  background: var(--gold);
}

/* footer & toast */
footer {
  margin: 30px 24px 0;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  color: var(--mute);
}

footer b {
  color: var(--ink);
  font-weight: 500;
}

footer address {
  font-style: normal;
}

footer a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

footer a:hover {
  color: var(--gold);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px);
  opacity: 0;
  z-index: 10;
  background: var(--gold);
  color: var(--navy-3);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

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