@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --color-primary: #1652A8;
  --color-accent: #296FE5;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-gray: #686868;
  --color-gray-50: rgba(104, 104, 104, 0.5);
  --color-blue-light: #B1CEF8;
  --color-blue-light-50: rgba(177, 206, 248, 0.5);
  --color-blue-light-15: rgba(177, 206, 248, 0.15);

  --card-width: 390px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito Sans', sans-serif;
  color: var(--color-black);
}

@media (min-width: 460px) {
  body {
    background: #e8eef7;
  }
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

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

img {
  display: block;
}

.card {
  position: relative;
  width: 100%;
  max-width: var(--card-width);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-accent);
  overflow: hidden;
}

@media (min-width: 460px) {
  .card {
    min-height: auto;
    margin: 24px auto;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(22, 82, 168, 0.25);
  }
}

/* ---------- HERO / VIDEO ---------- */

.hero {
  position: relative;
  height: calc(68px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--color-accent);
  transition: height 0.35s ease;
}

.video-collapsed {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 15px 0;
  background: var(--color-accent);
  opacity: 1;
  transition: opacity 0.2s ease;
}

.video-collapsed.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.video-badge {
  display: flex;
  align-items: center;
  height: 18px;
  margin-top: 17px;
}

.play-btn {
  width: 40px;
  height: 40px;
  transition: transform 0.15s ease;
}

.play-btn:active {
  transform: scale(0.92);
}

.video-player {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 5;
}

.video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero.is-playing {
  height: calc(220px + env(safe-area-inset-top, 0px));
}

/* ---------- SHEET ---------- */

.sheet {
  position: relative;
  background: var(--color-white);
  border-radius: 25px 25px 0 0;
  padding: 25px 30px 40px;
  min-height: calc(100vh - 68px - env(safe-area-inset-top, 0px));
  min-height: calc(100dvh - 68px - env(safe-area-inset-top, 0px));
  transition: border-radius 0.2s ease;
}

.hero.is-playing ~ .sheet {
  border-radius: 0;
}

@media (min-width: 460px) {
  .sheet {
    min-height: auto;
  }
}

/* ---------- PROFILE ---------- */

.profile {
  position: relative;
  margin-bottom: 10px;
}

.profile__badge {
  margin-bottom: 8px;
}

.profile__photo {
  position: absolute;
  top: 0;
  right: 14px;
  width: 127px;
  height: 127px;
  border-radius: 20px;
  object-fit: cover;
}

.profile__name {
  margin: 0;
  max-width: 180px;
  font-size: 28px;
  font-weight: 700;
  line-height: 27px;
  letter-spacing: -0.56px;
  color: var(--color-black);
}

.profile__role {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.32px;
  color: var(--color-primary);
}

/* ---------- ACTIONS ---------- */

.actions {
  border: 1px solid var(--color-blue-light-50);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
}

.action-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 12px 16px;
  min-height: 55px;
  border-bottom: 1px solid var(--color-blue-light-50);
  background: var(--color-white);
  transition: background 0.15s ease;
}

.action-row:last-child {
  border-bottom: none;
}

.action-row:active {
  background: var(--color-blue-light-15);
}

.action-row__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-row__label {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.32px;
  color: var(--color-black);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-row__chevron {
  flex: none;
  opacity: 0.7;
}

.phone-row--desktop {
  display: none;
}

@media (min-width: 460px) {
  .phone-row--mobile {
    display: none;
  }

  .phone-row--desktop {
    display: flex;
  }
}

/* ---------- QUOTE ---------- */

.quote {
  position: relative;
  background: var(--color-blue-light-15);
  border-radius: 20px;
  padding: 20px 26px 20px 50px;
  margin-bottom: 24px;
}

.quote__mark--open {
  position: absolute;
  left: 20px;
  top: 20px;
  transform: rotate(180deg);
}

.quote__mark--close {
  position: absolute;
  right: 22px;
  bottom: 18px;
}

.quote__text {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.3px;
  color: var(--color-black);
}

.quote__text .accent {
  color: var(--color-primary);
}

/* ---------- COLLEGE ---------- */

.college {
  border: 1.5px solid var(--color-blue-light);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.college__badge {
  margin-bottom: 15px;
}

.college__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.32px;
}

.college__text {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.28px;
  color: var(--color-gray);
}

.college__divider {
  height: 1px;
  background: var(--color-blue-light-50);
  margin: 16px 0;
}

.college__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.32px;
  color: var(--color-primary);
}

/* ---------- SHARE ---------- */

.share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.28px;
  color: var(--color-gray);
}

/* ---------- TOAST ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-black);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

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