:root {
  font-family: Poppins, "Segoe UI", sans-serif;
  color: #082d6b;
  background: #f8f9fa;
  color-scheme: light;
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  min-height: 100svh;
  max-width: 1440px;
  margin: auto;
}
.workspace { padding: clamp(24px, 6vw, 100px); min-width: 0; }
.logo { display: block; width: min(250px, 100%); height: auto; margin-bottom: 48px; }
.family-photo {
  display: block;
  width: 100%;
  height: min(88svh, 800px);
  object-fit: cover;
  object-position: center;
  border-radius: 36px 0 0 36px;
}
h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; margin: 0 0 16px; overflow-wrap: anywhere; }
h2 { font-size: 1.35rem; margin: 28px 0 10px; }
p, li { color: #344763; overflow-wrap: anywhere; }
form { display: grid; gap: 10px; max-width: 400px; margin-block: 16px; }
input, button { font: inherit; border-radius: 12px; min-height: 46px; }
input { width: 100%; padding: 10px 12px; border: 1px solid #8291a6; color: #082d6b; }
label { font-weight: 600; }
button { cursor: pointer; padding: 10px 20px; color: white; background: #082d6b; border: 1px solid #082d6b; font-weight: 600; }
button.secondary { color: #082d6b; background: transparent; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, input:focus-visible { outline: 3px solid #007b78; outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 20px; }
.members { padding-left: 24px; }
.profile-edit { margin: 4px 0 4px 12px; padding-inline: 12px; }
#feedback { color: #164e58; }
#feedback:empty { display: none; }

.layout.is-welcome {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 540px;
  min-height: 100svh;
  background: #fbfbfc;
  text-align: center;
}
.is-welcome::before,
.is-welcome::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
  width: 66%;
  aspect-ratio: 1.75;
}
.is-welcome::before {
  top: -7%;
  right: -12%;
  border-radius: 0 0 0 100%;
  background:
    radial-gradient(ellipse at 95% 0%, #fcd5de 0 39%, transparent 40%),
    radial-gradient(ellipse at 96% 0%, #ffdbc1 0 57%, transparent 58%),
    linear-gradient(135deg, #fae0ab, #fff5e8);
  transform: rotate(12deg);
}
.is-welcome::after {
  right: -27%;
  bottom: -11%;
  border-radius: 100% 0 0;
  background:
    radial-gradient(ellipse at 91% 100%, #ff9043 0 44%, #ffbe4c 45% 61%, #ffda82 62%);
  transform: rotate(-20deg);
}
.is-welcome .workspace {
  padding: clamp(86px, 14vh, 132px) 0 30px;
}
.is-welcome .logo {
  width: 79%;
  max-width: 430px;
  margin: 0 auto clamp(28px, 5vh, 46px);
}
.is-welcome > .family-photo { display: none; }
.is-welcome h1 {
  margin: 0 16px 10px;
  font-size: clamp(1.7rem, 8.6vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -.035em;
}
.welcome-intro {
  max-width: 30ch;
  margin: 0 auto 16px;
  padding-inline: 12px;
  color: #333848;
  font-size: clamp(.95rem, 4.1vw, 1.26rem);
  line-height: 1.4;
}
.welcome-photo {
  display: block;
  width: 100%;
  height: auto;
  mask-image: linear-gradient(to bottom, transparent, #000 5%, #000 94%, transparent);
}
.welcome-actions {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: -2px auto 0;
}
.welcome-actions button { font-weight: 500; }
#get-started {
  width: 70%;
  min-height: 50px;
  border-radius: 999px;
  background: #08265d;
  font-size: 1.06rem;
  box-shadow: 0 8px 22px #08265d18;
}
#open-sign-in {
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 5px;
}
@media (min-width: 600px) {
  .layout.is-welcome {
    max-width: clamp(340px, 55svh, 480px);
    box-shadow: 0 0 60px #08265d0b;
  }
  .is-welcome .workspace { padding-top: clamp(48px, 7svh, 88px); }
  .is-welcome .logo { margin-bottom: clamp(22px, 3.5svh, 36px); }
  .is-welcome h1 { font-size: clamp(1.8rem, 4.8svh, 2.75rem); }
  .welcome-intro { font-size: clamp(.95rem, 2.1svh, 1.15rem); }
}
@media (max-width: 340px) {
  .welcome-break { display: none; }
}
@media (max-width: 740px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .workspace { padding: 28px 24px; }
  .logo { margin-bottom: 32px; }
  .family-photo { height: auto; border-radius: 0; }
}
